/* ==========================================================
   COBO MILK - Premium Mobile-First Storefront Stylesheet
   Quick-Commerce App Feel (Inspired by Zepto / Blinkit / Instamart)
   100% Pure CSS3 — Fast, Zero Bloat, Large Touch Targets
   ========================================================== */

:root {
    --primary: #15803d;
    --primary-light: #16a34a;
    --primary-dark: #0f5127;
    --accent: #eab308;
    --accent-light: #fef9c3;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --bottom-nav-height: 60px;
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.4;
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ==========================================================
   CORE FORM CONTROLS & INPUTS (APP-STYLE)
   ========================================================== */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-dark);
    background-color: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
    background-color: #fff;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* ==========================================================
   BUTTONS (CORE APP STYLES)
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
    box-sizing: border-box;
    background: #f1f5f9;
    color: var(--text-dark);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-accent {
    background-color: var(--accent) !important;
    color: #0f172a !important;
    border-color: var(--accent) !important;
}

.btn-accent:hover {
    background-color: #ca8a04 !important;
}

.btn-outline {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

.btn-outline:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.btn-danger {
    background-color: var(--danger) !important;
    color: #ffffff !important;
    border-color: var(--danger) !important;
}

.btn-block {
    display: flex !important;
    width: 100% !important;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==========================================================
   ALERTS & STATUS BADGES
   ========================================================== */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-discount {
    background: #fef2f2;
    color: #b91c1c;
    border: 0.5px solid #fecaca;
}

/* ==========================================================
   1. COMPACT DUAL-ROW MOBILE STICKY HEADER
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 4px;
    gap: 8px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 22px;
    line-height: 1;
}

.brand-text-block {
    display: none; /* Mobile displays ONLY the clean cow icon - no trailing text */
    flex-direction: column;
}

.brand-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.delivery-eta-badge {
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    background: var(--accent-light);
    padding: 1px 5px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
    width: fit-content;
}

.location-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
}

.badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Row 2: Search Bar */
.header-search-row {
    padding: 4px 12px 8px;
}

.search-fake-input {
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.search-fake-input:hover {
    background: #e2e8f0;
}

/* ==========================================================
   2. PROMOTIONAL COMPACT CAROUSEL
   ========================================================== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0d441e 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-tag {
    font-size: 10px;
    font-weight: 800;
    background: var(--accent);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.promo-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.promo-subtitle {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

/* ==========================================================
   3. HORIZONTAL CATEGORY SCROLL
   ========================================================== */
.category-scroll-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll-bar::-webkit-scrollbar {
    display: none;
}

.category-pill-item {
    flex: 0 0 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
}

.category-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eaf5ea;
    border: 1.5px solid #c9e7ca;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.category-pill-item:hover .category-icon-circle {
    transform: scale(1.05);
    border-color: var(--primary);
}

.category-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.category-pill-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
}

/* ==========================================================
   4. APP-LIKE SECTION CAROUSEL & HEADER
   ========================================================== */
.home-section {
    margin: 16px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 2px;
}

.section-head h2 {
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
}

.see-all-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.carousel-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-scroll::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 160px;
    max-width: 160px;
}

@media (min-width: 600px) {
    .carousel-item {
        flex: 0 0 180px;
        max-width: 180px;
    }
}

/* Product Catalog Grid (Category Page & Catalog) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0 24px;
}

.products-grid .carousel-item {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* Downward Grid Section (6 products downward on mobile) */
.products-grid-downward {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.products-grid-downward .carousel-item {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .products-grid-downward {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .products-grid-downward {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

/* Product Detail Gallery & Video Frame */
.gallery-stage-container {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.detail-main-img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.2s ease;
}

.gallery-video-frame {
    width: 100%;
    height: 380px;
    max-height: 480px;
    background: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.gallery-thumbnails-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 2px 4px;
    scrollbar-width: thin;
    margin-top: 8px;
}

.gallery-thumb-item {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
    display: block;
}

.gallery-thumb-item:hover {
    border-color: #94a3b8;
}

.gallery-thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.25);
}

.gallery-thumb-video {
    background: #0f172a;
}

.video-thumb-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 2;
}

.video-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* ==========================================================
   5. COMPACT PRODUCT CARDS (ZEPTO / BLINKIT STYLE)
   ========================================================== */
.card-mini {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.card-mini:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.card-top-tags {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discount-tag {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    border: 0.5px solid #fecaca;
    width: fit-content;
}

.btn-wishlist {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-light);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    transition: all 0.15s;
}

.btn-wishlist.active {
    color: #ef4444;
}

.card-img-wrap {
    width: 100%;
    height: 105px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    cursor: pointer;
}

.card-img-wrap img {
    max-height: 95px;
    object-fit: contain;
    transition: transform 0.2s;
}

.card-mini:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-brand {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 2px 0 4px;
    height: 30px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
}

/* Variant Selector inside card */
.card-variant-select {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: #f8fafc;
    color: var(--text-dark);
    margin-bottom: 6px;
    cursor: pointer;
}

.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.card-price-box {
    display: flex;
    flex-direction: column;
}

.card-current-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
}

.card-mrp-price {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Add Button & Interactive Stepper (-) [qty] (+) */
.btn-card-add {
    background: #f0fdf4;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn-card-add:active {
    transform: scale(0.96);
    background: var(--primary);
    color: #fff;
}

.card-stepper {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 28px;
}

.stepper-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    width: 24px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stepper-btn:active {
    background: rgba(0, 0, 0, 0.2);
}

.stepper-qty {
    font-size: 12px;
    font-weight: 800;
    padding: 0 4px;
    min-width: 18px;
    text-align: center;
}

/* ==========================================================
   6. PRODUCT DETAIL BOTTOM SHEET / MODAL
   ========================================================== */
.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(2px);
    transition: opacity 0.25s ease;
}

.sheet-backdrop.active {
    display: block;
}

.sheet-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    z-index: 1001;
    overflow-y: auto;
    padding: 14px 16px 20px;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.22);
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .sheet-drawer {
        max-width: 480px;
        left: 50%;
        transform: translate(-50%, 100%);
        border-radius: 20px;
        bottom: 30px;
        max-height: 86vh;
    }
    .sheet-drawer.open {
        transform: translate(-50%, 0) !important;
    }
}

.sheet-drawer.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 44px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0 auto;
}

.sheet-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    z-index: 25;
    transition: all 0.15s ease;
}

.sheet-close-btn:hover, .sheet-close-btn:active {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.sheet-action-footer {
    position: sticky;
    bottom: -20px;
    background: #ffffff;
    padding: 10px 0 16px;
    margin-top: 14px;
    border-top: 1px solid #e2e8f0;
    z-index: 20;
    box-shadow: 0 -6px 14px rgba(255, 255, 255, 0.95);
}

/* Variant Pills in Sheet */
.sheet-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.sheet-variant-pill {
    padding: 6px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.15s;
}

.sheet-variant-pill.selected {
    border-color: var(--primary);
    background: #ecfdf5;
    color: var(--primary);
}

/* Bottom Sheet & Product Media Stage Gallery */
.sheet-media-stage {
    position: relative;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-light, #e2e8f0);
    padding: 10px;
    margin-bottom: 12px;
}
.sheet-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.sheet-thumb:hover {
    border-color: #94a3b8;
}
.sheet-thumb.active {
    border-color: var(--primary, #15803d) !important;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.25);
}
.sheet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}
.sheet-thumb-video {
    background: #0f172a;
    color: #ffffff;
}
.sheet-thumb-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #e11d48;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

/* Fullscreen Product Photo Zoom / Lightbox Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-zoom-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.image-zoom-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 12px) 16px env(safe-area-inset-bottom, 16px);
    box-sizing: border-box;
    user-select: none;
}

.image-zoom-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.75);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #ffffff;
    max-width: 800px;
    margin: 8px auto 0;
    width: 100%;
    box-sizing: border-box;
}

.image-zoom-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.zoom-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.zoom-img-counter {
    background: rgba(255, 255, 255, 0.18);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    flex-shrink: 0;
}

.image-zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.zoom-btn.zoom-close-btn {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    margin-left: 4px;
}

.zoom-btn.zoom-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.image-zoom-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    margin: 10px 0;
    touch-action: none;
}

.image-zoom-stage.is-zoomed {
    cursor: grab;
}

.image-zoom-stage.is-zoomed:active {
    cursor: grabbing;
}

#image-zoom-target {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
    border-radius: 12px;
}

.zoom-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 52px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.zoom-nav-arrow:hover {
    background: rgba(21, 128, 61, 0.8);
    border-color: #22c55e;
    transform: translateY(-50%) scale(1.08);
}

.zoom-nav-prev { left: 16px; }
.zoom-nav-next { right: 16px; }

.image-zoom-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.zoom-hint-text {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 3px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.zoom-thumbnails-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
    max-width: 100%;
    scrollbar-width: thin;
}

.zoom-thumb-item {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.zoom-thumb-item.active {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
    transform: scale(1.06);
}

/* Standalone Detail Page Gallery */
.gallery-stage-container {
    position: relative;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}
.detail-main-img {
    max-height: 320px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.gallery-video-frame {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
}
.gallery-video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.gallery-thumbnails-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 4px;
    margin-top: 8px;
}
.gallery-thumb-item {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.gallery-thumb-item:hover {
    border-color: #94a3b8;
}
.gallery-thumb-item.active {
    border-color: var(--primary, #15803d) !important;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.25);
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}
.gallery-thumb-video {
    background: #0f172a;
    color: #ffffff;
}
.video-thumb-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #e11d48;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}
.video-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ==========================================================
   7. SLIDE-OUT QUICK CART DRAWER
   ========================================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.free-delivery-banner {
    background: #ecfdf5;
    border-bottom: 1px solid #a7f3d0;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
}

.free-delivery-progress {
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin-top: 5px;
    overflow: hidden;
}

.free-delivery-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.cart-drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-light);
    background: #f8fafc;
}

/* ==========================================================
   7B. LOCATION SELECTION MODAL & BOTTOM SHEET (ZEPTO/BLINKIT)
   ========================================================== */
.location-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    z-index: 1050;
    overflow-y: auto;
    padding: 16px 18px 32px;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .location-modal-sheet {
        max-width: 460px;
        left: 50%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -40%) scale(0.95);
        border-radius: 20px;
        max-height: 85vh;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .location-modal-sheet.open {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.location-modal-sheet.open {
    transform: translateY(0);
}

.location-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.location-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-location {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background 0.15s;
}

.btn-close-location:hover {
    background: #e2e8f0;
}

.location-search-wrap {
    margin-bottom: 18px;
}

.location-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 4px 6px 4px 12px;
    gap: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.location-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
    background: #fff;
}

.location-search-icon {
    font-size: 16px;
    opacity: 0.6;
}

.location-pincode-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
    padding: 8px 0;
    font-family: inherit;
}

.btn-apply-pin {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.btn-apply-pin:hover {
    background: var(--primary-dark);
}

.pincode-feedback-box {
    margin-top: 8px;
}

.modal-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.modal-manage-addr-link {
    font-size: 11px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: none;
}

.modal-address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.modal-addr-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-addr-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.modal-addr-card.selected {
    border-color: var(--primary);
    background: #f0fdf4;
}

.addr-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.modal-addr-card.selected .addr-icon-badge {
    background: #dcfce7;
}

.addr-info {
    flex: 1;
    min-width: 0;
}

.addr-tag-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.addr-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

.addr-default-badge {
    font-size: 9px;
    font-weight: 800;
    background: #dcfce7;
    color: #15803d;
    padding: 1px 5px;
    border-radius: 4px;
}

.addr-name {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.addr-detail {
    font-size: 12px;
    color: #334155;
    line-height: 1.35;
}

.addr-check-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: transparent;
    transition: all 0.15s ease;
}

.check-circle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.modal-login-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.modal-popular-zones {
    margin-top: 4px;
}

.zone-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.zone-chip strong {
    color: var(--primary);
    font-weight: 800;
}

.zone-chip:hover, .zone-chip:active {
    background: #ecfdf5;
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ==========================================================
   8. FIXED BOTTOM NAVIGATION
   ========================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 400;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    width: 20%;
    height: 100%;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================
   9. FLOATING ACTION BUTTONS (CALL & WHATSAPP) - ANIMATED & PREMIUM
   ========================================================== */
.floating-actions {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 14px);
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 350;
    pointer-events: none; /* children re-enable pointer events */
}

.floating-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.floating-btn:active {
    transform: translateY(0) scale(0.95);
}

/* WhatsApp Floating Button */
.floating-wa {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.floating-wa:hover {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Call Floating Button */
.floating-call {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.floating-call:hover {
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.6), 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Floating Icon Wrapper & SVG */
.floating-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.floating-icon-wrap svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Animated Radar Pulse Rings */
.floating-pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.floating-wa .floating-pulse-ring {
    border: 2px solid rgba(37, 211, 102, 0.7);
    animation: wa-pulse-radar 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.floating-call .floating-pulse-ring {
    border: 2px solid rgba(2, 132, 199, 0.7);
    animation: call-pulse-radar 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite 1.2s;
}

@keyframes wa-pulse-radar {
    0% {
        transform: scale(0.9);
        opacity: 0.85;
    }
    60%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes call-pulse-radar {
    0% {
        transform: scale(0.9);
        opacity: 0.85;
    }
    60%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* Periodic Attention Wobble / Bounce Animations */
.wa-icon-anim {
    animation: wa-subtle-bounce 4s ease-in-out infinite;
}

.call-icon-anim {
    animation: phone-subtle-ring 4s ease-in-out infinite 2s;
}

@keyframes wa-subtle-bounce {
    0%, 70%, 100% {
        transform: scale(1) rotate(0deg);
    }
    74% {
        transform: scale(1.18) rotate(-8deg);
    }
    78% {
        transform: scale(1.18) rotate(8deg);
    }
    82% {
        transform: scale(1.1) rotate(-4deg);
    }
    86% {
        transform: scale(1.05) rotate(0deg);
    }
}

@keyframes phone-subtle-ring {
    0%, 70%, 100% {
        transform: rotate(0deg) scale(1);
    }
    74% {
        transform: rotate(-18deg) scale(1.14);
    }
    78% {
        transform: rotate(18deg) scale(1.14);
    }
    82% {
        transform: rotate(-12deg) scale(1.1);
    }
    86% {
        transform: rotate(10deg) scale(1.05);
    }
    90% {
        transform: rotate(0deg) scale(1);
    }
}

/* WhatsApp Online Live Status Dot */
.wa-status-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.wa-status-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #10b981;
    animation: live-dot-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
    z-index: -1;
}

@keyframes live-dot-ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Smooth Slide-out Tooltip */
.floating-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 11px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================
   10. SEARCH MODAL / DRAWER
   ========================================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1100;
    display: none;
    flex-direction: column;
}

.search-modal.open {
    display: flex;
}

.search-modal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}

.search-modal-input {
    flex: 1;
    border: none;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.search-results-box {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

/* Order timeline */
.timeline-step {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-step.completed .timeline-dot {
    background: #15803d;
    color: #fff;
}

.timeline-step.completed::before {
    background: #15803d;
}

.timeline-step.cancelled .timeline-dot {
    background: #ef4444;
    color: #fff;
}

/* ==========================================================
   11. ACCESSIBILITY & KEYBOARD FOCUS (WCAG AA)
   ========================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Minimum touch target sizes */
button, 
.btn, 
.nav-item, 
.icon-btn,
.floating-btn,
.stepper-btn {
    min-height: 40px;
    min-width: 40px;
}

/* ==========================================================
   12. ULTRA-COMPACT MOBILE BREAKPOINT OPTIMIZATION (360px - 430px)
   ========================================================== */
@media (max-width: 430px) {
    .container {
        padding: 0 10px;
    }
    .header-top-row {
        padding: 6px 10px 4px;
    }
    .brand-logo-img {
        height: 45px;
        width: auto;
        max-width: 48px;
    }
    .brand-name {
        font-size: 15px;
    }
    .delivery-eta-badge {
        font-size: 9px;
    }
    .product-card {
        width: 160px;
    }
    .card-title {
        font-size: 12px;
    }
    .card-current-price {
        font-size: 14px;
    }
    .btn-card-add {
        padding: 6px 10px;
        font-size: 12px;
    }
    .category-chip {
        min-width: 68px;
    }
    .category-name {
        font-size: 10px;
    }
}

/* ==========================================================
   13. PREMIUM DESKTOP VIEWPORT ENHANCEMENTS (>= 992px)
   ========================================================== */
@media (min-width: 992px) {
    .container {
        max-width: 1180px;
        padding: 0 24px;
    }

    .header-top-row {
        padding: 14px 24px 10px;
    }

    .brand-text-block {
        display: flex;
    }

    .brand-name {
        font-size: 22px;
    }

    .header-search-row {
        padding: 0 24px 14px;
        max-width: 640px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }

    .detail-container {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 36px;
        align-items: start;
        background: #ffffff;
        padding: 32px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-sm);
    }

    .detail-gallery {
        position: sticky;
        top: 120px;
    }

    .detail-main-img {
        max-height: 380px;
        margin: 0 auto;
    }

    .bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: 30px;
    }

    .floating-actions {
        bottom: 28px;
        right: 28px;
        gap: 14px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* ==========================================================
   14. SITE FOOTER & DEVELOPED BY SAMINUS
   ========================================================== */
.site-footer {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    margin: 24px 0 100px;
    text-align: center;
}
.site-footer-inner {
    max-width: 600px;
    margin: 0 auto;
}
.footer-brand-section strong {
    font-size: 15px;
    color: var(--primary-dark);
}
.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 12px 0 14px;
    flex-wrap: wrap;
}
.footer-links-row a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-row a:hover {
    color: var(--primary);
}
.footer-links-row .sep {
    color: var(--border-medium);
}
.footer-credits-section {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-light);
    padding-top: 12px;
    line-height: 1.7;
}
.dev-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.dev-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

/* ==========================================================
   15. PWA APP INSTALL BOTTOM POPUP BANNER (24H Cooldown)
   ========================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 70px; /* Above mobile bottom-nav */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 420px;
    z-index: 550;
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 25px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.pwa-banner-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 8px 12px -6px rgba(0, 0, 0, 0.12);
}

.pwa-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.pwa-close-btn:hover {
    color: #ef4444;
    background: #fee2e2;
    border-color: #fca5a5;
}

.pwa-banner-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
}

.pwa-banner-icon-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwa-banner-info {
    flex: 1;
    min-width: 0;
}

.pwa-app-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-app-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-install-btn {
    flex-shrink: 0;
    background: #15803d;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
    transition: transform 0.15s, background 0.2s;
}

.pwa-install-btn:hover {
    background: #166534;
    transform: translateY(-1px);
}

.pwa-install-btn:active {
    transform: scale(0.96);
}

/* Desktop Responsive for footer & popup */
@media (min-width: 992px) {
    .site-footer {
        margin-bottom: 24px;
    }
    .pwa-install-banner {
        bottom: 24px;
        right: 24px;
        left: auto;
        transform: none;
        width: 360px;
    }
    @keyframes pwaSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* iOS instructions modal */
.pwa-ios-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pwa-ios-modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
}
