/* SA Halal Mart V8.3: larger product tiles, scoped to the storefront. */
#shop-root .market-grid,
#shop-root .featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
#shop-root .product-card { border-radius: 18px; min-width: 0; }
#shop-root .product-card .product-media > a { display: block; }
#shop-root .product-card .product-media img,
#shop-root .product-card .product-placeholder {
    display: flex;
    width: 100%;
    height: clamp(230px, 21vw, 290px);
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}
#shop-root .product-card .product-info { padding: 20px; gap: 3px; }
#shop-root .product-card .product-info > small:first-child {
    font-size: 11px; letter-spacing: .8px; color: #617085;
}
#shop-root .product-card .product-name {
    font-size: 17px; line-height: 1.5; min-height: 51px;
    overflow-wrap: anywhere; margin: 7px 0 12px;
}
#shop-root .product-card .price-line strong { font-size: 25px; }
#shop-root .product-card .price-line span,
#shop-root .product-card .price-line del { font-size: 13px; }
#shop-root .product-card .in-stock,
#shop-root .product-card .out-stock { font-size: 12px; line-height: 1.5; }
#shop-root .product-card .shop-add {
    min-height: 46px; margin-top: 15px; padding: 12px 10px;
    font-size: 14px; border-radius: 10px;
}
#shop-root .product-card .shop-add svg { width: 19px; height: 19px; flex-shrink: 0; }
#shop-root .product-card .wish { width: 42px; height: 42px; }
#shop-root .product-card .offer-badge { font-size: 11px; max-width: calc(100% - 68px); }
#shop-root a:focus-visible,
#shop-root button:focus-visible,
#shop-root input:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
#shop-root .checkout-form .payment-options { margin-top: 24px; }
#shop-root .payment-options legend { margin: 0 0 8px; font-size: 16px; }
#shop-root .payment-option {
    display: flex; align-items: flex-start; gap: 12px;
    border: 1px solid #dfe4ed; border-radius: 12px;
    padding: 15px; margin: 10px 0 0; cursor: pointer;
    background: #fff;
}
#shop-root .payment-option.selected { border-color: var(--brand-blue); background: #f2f6ff; }
#shop-root .payment-option input[type=radio] {
    width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px;
    margin: 2px 0 0; accent-color: var(--brand-blue);
}
#shop-root .payment-option strong { display: block; font-size: 14px; line-height: 1.5; }
#shop-root .payment-option small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: #526174; white-space: pre-line; }
@media (max-width: 1279px) {
    #shop-root .market-grid, #shop-root .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 899px) {
    #shop-root .market-grid, #shop-root .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    #shop-root .product-card .product-media img, #shop-root .product-card .product-placeholder { height: 250px; }
}
@media (max-width: 540px) {
    #shop-root .market-grid, #shop-root .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    #shop-root .product-card .product-media img, #shop-root .product-card .product-placeholder { height: 280px; padding: 22px; }
    #shop-root .product-card .product-name { font-size: 18px; min-height: 0; }
    #shop-root .product-card .shop-add { min-height: 48px; }
}
