/**
 * ShopMart PHP - Flipkart-style CSS
 * Converted from the React/Tailwind application
 */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #212121;
    background: #f1f3f6;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; border: none; outline: none; }
button { cursor: pointer; background: none; }
ul { list-style: none; }

/* Hide Leaflet attribution watermark */
.leaflet-control-attribution { display: none !important; }

/* ── Utility Classes ── */
.text-primary { color: #2874f0; }
.text-success { color: #388e3c; }
.text-muted { color: #878787; }
.text-link { color: #2874f0; font-size: 12px; font-weight: 500; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #2874f0; color: #fff; border-radius: 4px;
    padding: 10px 24px; font-size: 14px; font-weight: 600;
    transition: background 0.2s;
}
.btn-primary:hover { background: #1a5dc8; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: #2874f0; border: 1px solid #2874f0; border-radius: 4px;
    padding: 10px 24px; font-size: 14px; font-weight: 600;
}
.btn-outline-small {
    font-size: 12px; padding: 4px 12px; border: 1px solid #d0d0d0;
    border-radius: 4px; background: #fff; color: #212121;
}
.btn-disabled {
    display: inline-flex; align-items: center; justify-content: center;
    background: #e0e0e0; color: #878787; border-radius: 4px;
    padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: not-allowed;
}
.btn-place-order {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fb641b; color: #fff; border-radius: 4px;
    padding: 12px 24px; font-size: 15px; font-weight: 600;
}
.btn-place-order:hover { background: #f55a0e; }
.btn-add-cart {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: #212121; border: none;
    padding: 14px 12px; font-size: 16px; font-weight: 700; border-radius: 0;
}
.btn-buy-now {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #ffe500; color: #212121; border: none;
    padding: 14px 12px; font-size: 16px; font-weight: 700; border-radius: 0;
}

/* ── Header ── */
.sticky-header { position: sticky; top: 0; z-index: 50; }
.header-tabs {
    padding: 8px 8px 0;
    background: linear-gradient(to bottom, #7ebcff 0%, #cce5ff 100%);
}
.header-tabs-inner {
    max-width: 1500px; margin: 0 auto;
    display: flex; align-items: center; gap: 6px;
}
.tab-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 6px; height: 36px; border-radius: 8px; background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: background 0.15s;
}
.tab-btn.active { background: #ffe500; }
.tab-label { font-size: 12px; font-weight: 700; font-style: italic; color: #333; white-space: nowrap; }
.tab-btn.active .tab-label { color: #1f63c2; }
.tab-icon-img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.cart-icon {
    position: relative; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.3); color: #1f63c2; flex-shrink: 0;
}
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    display: grid; place-items: center;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: #ff5252;
    color: #fff; font-size: 10px; font-weight: 700;
}
.location-bar {
    max-width: 1500px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 8px 8px 6px; font-size: 12px;
}
.location-left { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; color: #444; }
.location-text { font-weight: 600; white-space: nowrap; }
.location-link { color: #2874f0; display: flex; align-items: center; gap: 2px; }
.supercoin { display: flex; align-items: center; gap: 4px; color: #f57d00; font-weight: 700; font-size: 12px; }
.coin-icon {
    display: grid; place-items: center; width: 20px; height: 20px;
    border-radius: 50%; background: #ffe500; border: 1.5px solid #f59900; font-size: 10px;
}
.coin-img { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; }
.search-bar-wrapper {
    padding: 8px 12px 12px;
    background: linear-gradient(to bottom, #cce5ff 0%, #ffffff 100%);
}
.search-bar {
    display: flex; align-items: center; gap: 10px; width: 100%;
    max-width: 1500px; margin: 0 auto;
    background: #fff; border-radius: 999px; padding: 10px 16px;
    border: 1px solid #e0e0e0; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-placeholder { flex: 1; font-size: 15px; color: #aaa; }

/* ── Category Strip ── */
.category-strip { background: #fff; border-bottom: 1px solid #eee; }
.category-scroll {
    max-width: 1500px; margin: 0 auto;
    display: flex; overflow-x: auto; padding: 0 4px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 66px; padding: 10px 10px 8px; flex-shrink: 0;
    border-bottom: 2.5px solid transparent; transition: border-color 0.15s;
}
.category-item.active { border-bottom-color: #2874f0; }
.category-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; padding: 4px; background: #f0f5ff;
}
.category-icon.active { background: #dbeaff; }
.category-icon img { width: 100%; height: 100%; object-fit: contain; }
.category-letter { font-size: 10px; font-weight: 700; color: #2874f0; }
.category-name { font-size: 11px; white-space: nowrap; color: #878787; font-weight: 500; }
.category-name.active { color: #2874f0; font-weight: 700; }

/* ── Banner Carousel ── */
.banner-section { background: #fff; padding: 10px 14px; margin-top: 8px; }
.banner-carousel { position: relative; border-radius: 12px; overflow: hidden; background: #f8f8f8; }
.banner-track {
    display: flex; transition: transform 0.5s ease-out;
}
.banner-slide { width: 100%; flex-shrink: 0; }
.banner-image { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
@media (min-width: 768px) { .banner-image { height: 240px; } }
.banner-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.banner-dot {
    width: 7px; height: 7px; border-radius: 4px;
    background: #ddd; border: none; transition: all 0.2s; cursor: pointer;
}
.banner-dot.active { width: 18px; background: #333; }

/* ── Product Grid ── */
.product-grid-section { background: #fff; margin-top: 8px; padding: 14px; }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.product-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 8px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
.empty-message { text-align: center; color: #878787; font-size: 14px; padding: 48px 0; }

/* ── Product Card ── */
.product-card { display: flex; flex-direction: column; background: #fff; height: 100%; overflow: hidden; border-radius: 8px; }
.product-image-wrapper { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #f8f8f8; flex-shrink: 0; border-radius: 8px; }
.product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.product-rating-badge {
    position: absolute; left: 6px; bottom: 6px;
    display: inline-flex; align-items: center; gap: 2px;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 3px;
    padding: 2px 6px; font-size: 11px; font-weight: 600; color: #212121;
}
.product-rating-badge .star { color: #388e3c; }
.product-info { padding: 8px 4px 10px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 13px; line-height: 18px; color: #212121; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.product-discount { font-size: 12px; font-weight: 600; color: #388e3c; margin-top: 4px; }
.product-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.product-mrp { font-size: 12px; color: #878787; text-decoration: line-through; }
.product-price { font-size: 15px; font-weight: 700; color: #212121; }
.product-bank-offer { font-size: 11px; margin-top: 4px; }
.product-bank-offer .bank-price { font-weight: 700; color: #2874f0; }
.product-bank-offer .bank-text { color: #878787; }
.product-delivery { font-size: 11px; color: #212121; margin-top: 4px; }
.product-delivery strong { color: #212121; }
.product-deal { font-size: 11px; color: #2874f0; font-weight: 500; margin-top: 2px; min-height: 16px; }

/* ── Product Detail Page ── */
.product-page { min-height: 100vh; background: #f1f3f6; padding-bottom: 80px; }
.product-header {
    position: sticky; top: 0; z-index: 40;
    background: #dbeeff; padding: 10px 12px;
    display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.product-search-bar {
    flex: 1; display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 999px; border: 1px solid #cfe1f7; padding: 8px 12px;
}
.product-search-bar span { font-size: 13px; color: #9aa0a6; }
.cart-link { position: relative; }
.product-gallery { background: #fff; position: relative; }
.gallery-main { width: 100%; overflow: hidden; background: #fff; max-height: 400px; }
.gallery-main.aspect-square { aspect-ratio: 1; max-height: 400px; }
.gallery-main.aspect-3-4 { aspect-ratio: 3/4; max-height: 500px; }
@media (min-width: 768px) {
    .gallery-main, .gallery-main.aspect-square { max-height: 500px; }
    .gallery-main.aspect-3-4 { max-height: 600px; }
}
.gallery-image { width: 100%; height: 100%; object-fit: contain; }
.no-image { width: 100%; height: 100%; display: grid; place-items: center; color: #878787; }
.gallery-dots { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px 16px 20px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: #cfd8dc; border: none; cursor: pointer; transition: background 0.15s; }
.gallery-dot.active { background: #2874f0; }
.more-images { font-size: 10px; color: #878787; margin-left: 4px; }
.rating-section { background: #fff; padding: 10px 16px; border-bottom: 1px solid #eee; }
.rating-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.rating-value { font-weight: 600; color: #212121; }
.rating-star { color: #388e3c; }
.rating-divider { color: #878787; }
.rating-count { color: #878787; }
.section-card { background: #fff; margin-top: 12px; padding: 12px 16px; }
.section-label { font-size: 13px; color: #212121; }
.section-row { display: flex; align-items: center; justify-content: space-between; }
.section-heading { font-size: 15px; font-weight: 700; color: #212121; margin-bottom: 12px; }
.variant-grid { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.variant-btn { width: 56px; height: 56px; border-radius: 4px; border: 2px solid #e0e0e0; overflow: hidden; background: #fff; transition: border-color 0.15s; }
.variant-btn.active { border-color: #2874f0; }
.variant-btn img { width: 100%; height: 100%; object-fit: contain; }
.variant-swatch { display: block; width: 100%; height: 100%; }
.size-grid { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.size-btn { padding: 0 16px; height: 40px; border-radius: 4px; font-size: 13px; font-weight: 600; border: 1px solid #e0e0e0; background: #fff; color: #212121; transition: all 0.15s; }
.size-btn.active { background: #212121; color: #fff; border-color: #212121; }
.product-brand { font-size: 12px; color: #878787; margin-bottom: 4px; }
.product-detail-title { font-size: 14px; color: #212121; line-height: 1.4; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.discount-badge { color: #388e3c; font-weight: 700; font-size: 15px; }
.price-mrp { color: #878787; text-decoration: line-through; font-size: 14px; }
.price-main { font-size: 20px; font-weight: 700; color: #212121; }
.upi-offer { font-size: 13px; color: #2874f0; font-weight: 500; margin-top: 4px; }
.wow-deal { padding: 0 12px; padding-top: 12px; }
.wow-deal-inner { border-radius: 12px; overflow: hidden; background: linear-gradient(to right, #1a4fa3, #2874f0); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.wow-deal-content { display: flex; align-items: center; gap: 8px; }
.wow-badge { background: #fff; color: #2874f0; font-size: 10px; font-weight: 800; font-style: italic; padding: 2px 6px; border-radius: 3px; line-height: 1.2; }
.wow-price { font-size: 15px; font-weight: 700; }
.wow-deal-cta { background: #cfe1f7; color: #1a4fa3; font-size: 12px; text-align: center; padding: 8px; border-radius: 0 0 12px 12px; }
.delivery-box { display: flex; align-items: flex-start; gap: 10px; background: #f5f5f5; border-radius: 6px; padding: 12px; }
.delivery-date { font-size: 13px; font-weight: 700; color: #212121; }
.delivery-countdown { font-size: 11px; color: #fb641b; font-weight: 600; }
.delivery-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eee; }
.delivery-feature { text-align: center; }
.delivery-feature p { font-size: 11px; color: #212121; margin-top: 6px; line-height: 1.3; }
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; font-size: 12px; }
.highlights-grid dt { color: #878787; }
.highlights-grid dd { color: #212121; font-weight: 500; margin-top: 2px; }
.product-description { font-size: 13px; color: #444; line-height: 1.6; white-space: pre-line; }

/* ── Reviews Section ── */
.review-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.review-overview { margin-bottom: 16px; }
.review-score-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.review-score-big { font-size: 26px; font-weight: 700; color: #212121; }
.review-score-star-big { font-size: 20px; color: #388e3c; }
.review-label-badge { display: inline-block; padding: 2px 10px; border-radius: 3px; background: #e8f5e9; color: #388e3c; font-size: 12px; font-weight: 600; margin-left: 4px; }
.review-verified-text { font-size: 12px; color: #878787; }
.verified-icon { color: #388e3c; font-weight: 700; }
.review-bars-section { margin-bottom: 20px; }
.review-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.review-bar-label { font-size: 13px; color: #212121; width: 12px; text-align: right; flex-shrink: 0; }
.review-bar-star { font-size: 12px; color: #878787; flex-shrink: 0; }
.review-bar-track { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.review-bar-fill { height: 100%; border-radius: 3px; }
.review-bar-pct { font-size: 12px; color: #878787; width: 30px; text-align: right; flex-shrink: 0; }
.review-images { display: flex; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.review-image-thumb { width: 100px; height: 100px; border-radius: 6px; overflow: hidden; border: 1px solid #eee; flex-shrink: 0; }
.review-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reviews-list { display: flex; flex-direction: column; }
.review-item { padding: 16px 0; border-top: 1px solid #f0f0f0; }
.review-item:first-child { border-top: none; }
.review-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-rating-badge { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 3px; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.review-rating-badge.good { background: #388e3c; }
.review-rating-badge.avg { background: #ff9800; }
.review-rating-badge.bad { background: #f44336; }
.review-title { font-size: 14px; font-weight: 600; color: #212121; flex: 1; }
.review-time { font-size: 12px; color: #878787; flex-shrink: 0; }
.review-body { font-size: 13px; color: #444; line-height: 1.6; margin-bottom: 10px; }
.review-more { color: #2874f0; font-size: 13px; text-decoration: none; }
.review-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.review-author-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #878787; }
.review-author { font-weight: 500; color: #212121; }
.review-verified { display: flex; align-items: center; gap: 3px; color: #878787; }
.review-actions { display: flex; align-items: center; gap: 12px; }
.review-helpful-btn { font-size: 12px; color: #878787; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.product-sticky-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    display: flex; 
    background: #fff; border-top: 1px solid #eee; box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

/* ── Cart Page ── */
.cart-page { min-height: 100vh; background: #f1f3f6; padding-bottom: 80px; }
.page-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #eee; }
.page-title { font-size: 16px; font-weight: 600; }
.back-btn { padding: 4px; }
.empty-cart { padding: 60px 20px; text-align: center; background: #fff; }
.empty-cart svg { margin: 0 auto 16px; }
.empty-title { font-size: 18px; font-weight: 600; }
.empty-subtitle { font-size: 14px; color: #878787; margin-top: 4px; }
.empty-cart .btn-primary { margin-top: 20px; }
.cart-layout { padding: 12px; display: grid; gap: 16px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 360px; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-card { background: #fff; border-radius: 6px; padding: 12px 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.deliver-row { display: flex; align-items: center; gap: 8px; }
.deliver-row p { flex: 1; font-size: 13px; min-width: 0; }
.savings-card { display: flex; align-items: center; gap: 8px; color: #388e3c; font-size: 14px; }
.cart-item-card { background: #fff; border-radius: 6px; padding: 12px 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.cart-item-body { display: flex; gap: 12px; }
.cart-item-image { flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.cart-item-image img { width: 80px; height: 80px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; padding: 4px; }
.placeholder-img { width: 80px; height: 80px; display: grid; place-items: center; background: #f5f5f5; border-radius: 4px; font-size: 24px; }
.qty-form { display: block; }
.qty-select { width: 80px; height: 28px; border: 1px solid #d0d0d0; border-radius: 4px; padding: 0 8px; font-size: 12px; font-weight: 500; background: #fff; cursor: pointer; appearance: auto; }
.cart-item-details { flex: 1; min-width: 0; }
.deal-badge { display: inline-flex; align-items: center; gap: 4px; background: #e3f2e1; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; color: #1f7a1f; margin-bottom: 4px; }
.cart-item-title { font-size: 13px; font-weight: 500; color: #212121; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; }
.rating-badge { display: inline-flex; align-items: center; gap: 2px; background: #388e3c; color: #fff; padding: 1px 4px; border-radius: 3px; font-size: 11px; }
.rating-count { color: #878787; }
.item-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.item-discount { font-size: 12px; font-weight: 600; color: #388e3c; }
.item-mrp { font-size: 11px; color: #878787; text-decoration: line-through; }
.item-price { font-size: 15px; font-weight: 600; color: #212121; }
.delivery-info { font-size: 11px; color: #212121; margin-top: 8px; }
.delivery-info strong { color: #2874f0; }
.cart-item-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #eee; margin-top: 12px; padding-top: 8px; }
.item-action { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: #212121; padding: 4px; }
.item-action.danger { color: #d32f2f; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.item-action:last-child { color: #2874f0; }
.price-sidebar { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); height: fit-content; position: sticky; top: 80px; }
.price-header { padding: 16px; border-bottom: 1px solid #eee; }
.price-header h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; color: #878787; letter-spacing: 0.5px; }
.price-body { padding: 16px; }
.price-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.price-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; border-top: 1px solid #eee; padding-top: 12px; }
.free-delivery-hint { font-size: 12px; color: #878787; margin-top: 8px; }
.price-savings { padding: 16px; border-top: 1px solid #eee; font-size: 14px; font-weight: 500; color: #388e3c; }
.price-secure { display: flex; align-items: center; gap: 8px; padding: 16px; border-top: 1px solid #eee; font-size: 12px; color: #878787; }
.cart-sticky-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: #fff; border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
@media (min-width: 1024px) { .cart-sticky-footer { display: none; } }
.footer-price { }
.footer-mrp { font-size: 12px; color: #878787; text-decoration: line-through; }
.footer-total { font-size: 18px; font-weight: 700; }

/* ── Search Page ── */
.search-page { min-height: 100vh; background: #f1f3f6; }
.search-header { position: sticky; top: 0; z-index: 40; background: #dbeeff; padding: 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.search-form { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; border: 1px solid #cfe1f7; padding: 8px 12px; }
.search-input { flex: 1; background: transparent; font-size: 14px; }
.search-input::placeholder { color: #9aa0a6; }
.clear-btn { color: #878787; font-size: 14px; padding: 4px; }
.discover-section { background: #fff; padding: 12px 16px; }
.discover-title { font-size: 13px; font-weight: 600; color: #212121; margin-bottom: 12px; }
.discover-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.discover-tag { padding: 6px 12px; border: 1px solid #cfe1f7; border-radius: 4px; font-size: 13px; color: #2874f0; background: #fff; }
.search-results { background: #fff; }
.search-result-item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid #eee; }
.search-result-item:hover { background: #f5f5f5; }
.result-image { width: 80px; height: 80px; flex-shrink: 0; border: 1px solid #eee; border-radius: 4px; display: grid; place-items: center; padding: 4px; background: #fff; }
.result-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.result-info { flex: 1; min-width: 0; }
.result-title { font-size: 13px; color: #212121; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; }
.result-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.no-results { padding: 40px 20px; text-align: center; font-size: 14px; color: #878787; background: #fff; }

/* ── Category Page ── */
.category-page-content { }
.breadcrumb { background: #fff; padding: 10px 16px; font-size: 12px; color: #878787; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #eee; }
.breadcrumb a:hover { color: #2874f0; }
.breadcrumb-sep { color: #ccc; }
.breadcrumb-current { color: #212121; font-weight: 500; }
.category-header { background: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; }
.category-title { font-size: 18px; font-weight: 700; }
.sort-form { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sort-label { font-size: 12px; font-weight: 600; color: #212121; }
.sort-select { font-size: 12px; font-weight: 500; border: 1px solid #ddd; border-radius: 4px; padding: 6px 8px; background: #fff; }
.category-products { background: #fff; margin-top: 8px; padding: 12px; }

/* ── Checkout Page ── */
.checkout-page { min-height: 100vh; background: #f1f3f6; }
.checkout-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.checkout-header-inner { max-width: 800px; margin: 0 auto; padding: 12px; display: flex; align-items: center; justify-content: space-between; }
.checkout-header h1 { font-size: 16px; font-weight: 600; color: #212121; }
.stepper { max-width: 800px; margin: 0 auto; padding: 12px; display: flex; align-items: center; }
.step { display: flex; flex-direction: column; align-items: center; }
.step-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; border: 2px solid #c2c2c2; color: #878787; background: #fff; }
.step-circle.active { background: #2874f0; border-color: #2874f0; color: #fff; }
.step-label { font-size: 11px; margin-top: 4px; color: #878787; }
.step.active .step-label { font-weight: 600; color: #212121; }
.step-line { flex: 1; height: 2px; background: #e0e0e0; margin: 0 8px; margin-bottom: 18px; }
.checkout-main { max-width: 800px; margin: 0 auto; padding: 12px; padding-bottom: 100px; }
.checkout-section { background: #fff; border-radius: 6px; padding: 16px; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #212121; margin-bottom: 4px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 14px; transition: border-color 0.15s; }
.form-input:focus { border-color: #2874f0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-group { display: flex; gap: 16px; margin-top: 4px; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.order-items-list { }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 60px; height: 60px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; flex-shrink: 0; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-title { font-size: 13px; color: #212121; margin-bottom: 2px; }
.order-item-meta { font-size: 12px; color: #878787; }
.order-item-total { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.price-details { }
.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer; transition: border-color 0.15s; }
.payment-option:has(input:checked) { border-color: #2874f0; background: #f5f9ff; }
.payment-option input[type="radio"] { margin-top: 3px; accent-color: #2874f0; }
.payment-option-content { display: flex; flex-direction: column; gap: 2px; }
.payment-option-content strong { font-size: 14px; }
.payment-option-content span { font-size: 12px; }
.upi-apps { padding: 12px 0 0 24px; }
.upi-label { font-size: 12px; color: #212121; font-weight: 500; margin-bottom: 8px; }
.upi-app-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.upi-app-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.15s; }
.upi-app-btn:has(input:checked) { border-color: #2874f0; background: #f5f9ff; }
.upi-app-btn input { accent-color: #2874f0; }
.checkout-step { position: relative; padding-bottom: 80px; }
.checkout-step .checkout-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    background: #fff; border-top: 1px solid #eee; box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    max-width: 800px; margin: 0 auto;
}
.checkout-footer-price { }
.savings-banner { background: #e8f5e9; color: #1b5e20; font-size: 13px; text-align: center; padding: 8px; border-radius: 4px; margin-top: 12px; }

/* ── Order Page ── */
.order-page { min-height: 100vh; background: #f1f3f6; padding: 32px 12px; }
.order-container { max-width: 800px; margin: 0 auto; }
.order-status-card { background: #fff; border-radius: 8px; padding: 32px 24px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.status-icon { margin: 0 auto 12px; }
.status-icon.pending svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-title { font-size: 24px; font-weight: 700; margin-top: 8px; }
.status-desc { color: #878787; margin-top: 4px; font-size: 14px; }
.reference-id { font-size: 14px; margin-top: 12px; }
.upi-redirect { margin-top: 16px; }
.order-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; align-items: center; }
@media (min-width: 640px) { .order-actions { flex-direction: row; justify-content: center; } }
.order-details-card { background: #fff; border-radius: 8px; padding: 20px; margin-top: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.order-details-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.order-detail-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eee; align-items: center; font-size: 14px; }
.order-detail-item:last-child { border-bottom: none; }
.order-item-thumb { width: 48px; height: 48px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; flex-shrink: 0; }
.order-totals { border-top: 1px solid #eee; padding-top: 12px; margin-top: 12px; }
.order-totals .price-line { margin-bottom: 8px; }
.order-totals .price-total { margin-top: 8px; border-top: 1px solid #eee; padding-top: 8px; }
.order-address { border-top: 1px solid #eee; padding-top: 12px; margin-top: 12px; font-size: 12px; color: #878787; }

/* ── 404 Page ── */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-code { font-size: 72px; font-weight: 700; color: #2874f0; }
.error-title { font-size: 20px; font-weight: 600; margin-top: 8px; }
.error-desc { font-size: 14px; color: #878787; margin-top: 8px; }
.error-page .btn-primary { margin-top: 16px; }

/* ── Footer ── */
.site-footer { margin-top: 48px; background: oklch(0.18 0.03 250); color: oklch(0.85 0.01 250); }
.footer-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 40px 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: oklch(0.65 0.02 250); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 14px; }
.footer-col li a:hover { text-decoration: underline; }
.footer-col p { font-size: 14px; }
.footer-bottom { border-top: 1px solid oklch(0.28 0.02 250); max-width: 1500px; margin: 0 auto; padding: 16px 24px; font-size: 12px; color: oklch(0.65 0.02 250); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── Main Content ── */
.main-content { flex: 1; }


/* ── Reviews Section ── */
.review-overview { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-score { display: flex; align-items: center; gap: 4px; }
.review-score-num { font-size: 22px; font-weight: 700; }
.review-star { color: #388e3c; font-size: 16px; }
.review-badge { background: #e8f5e9; color: #388e3c; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.review-count-text { font-size: 11px; color: #878787; margin-bottom: 16px; }
.rating-bars { margin-bottom: 20px; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rating-bar-label { font-size: 12px; color: #212121; min-width: 30px; text-align: right; }
.rating-bar-track { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; border-radius: 3px; }
.rating-bar-fill.green { background: #388e3c; }
.rating-bar-fill.yellow { background: #ff9800; }
.rating-bar-fill.red { background: #d32f2f; }
.rating-bar-count { font-size: 11px; color: #878787; min-width: 40px; }
.reviews-list { border-top: 1px solid #eee; padding-top: 12px; }
.review-item { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-rating-badge { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; color: #fff; }
.review-rating-badge.good { background: #388e3c; }
.review-rating-badge.avg { background: #ff9800; }
.review-rating-badge.bad { background: #d32f2f; }
.review-title { font-size: 13px; font-weight: 600; color: #212121; }
.review-text { font-size: 13px; color: #444; line-height: 1.5; margin-bottom: 8px; }
.review-footer { display: flex; align-items: center; justify-content: space-between; }
.review-author { font-size: 11px; color: #878787; }
.review-helpful { display: flex; gap: 8px; }
.helpful-btn { background: none; border: 1px solid #e0e0e0; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: #555; }
.helpful-btn:hover { background: #f5f5f5; }
