/* ==========================================================================
   Multi-Theme System — 4 Professional Grocery Store Identities
   ========================================================================== */

/* ─── 1. EMERALD FRESH — الأخضر الطازج (Nature, Fresh, Organic) ─── */
:root,
[data-theme="emerald"] {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ECFDF5;
    --primary-ultra-light: #F0FDF4;
    --dark-green: #064E3B;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-light: #FFFBEB;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --bg-light: #F8FAFC;
    --bg-subtle: #F0FDF4;
    --surface: #FFFFFF;
    --border: #D1FAE5;
    --border-default: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --theme-meta-color: #064E3B;
    --hero-gradient: linear-gradient(135deg, #064E3B 0%, #059669 60%, #10B981 100%);
    --card-gradient: linear-gradient(145deg, #FFFFFF, #F0FDF4);
    --navbar-bg: rgba(255,255,255,0.97);
    --shadow-sm: 0 2px 8px rgba(5, 150, 105, 0.07);
    --shadow-md: 0 8px 24px rgba(5, 150, 105, 0.10);
    --shadow-lg: 0 20px 40px rgba(6, 78, 59, 0.14);
    --shadow-btn: 0 4px 14px rgba(5, 150, 105, 0.30);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --tab-active-bg: var(--primary);
    --tab-active-text: #FFFFFF;
    --price-color: #047857;
    --badge-bg: #F59E0B;
    --badge-text: #FFFFFF;
    color-scheme: light;
}

/* ─── 2. OCEAN BLUE — المحيط الأزرق (Trustworthy, Modern, Clean) ─── */
[data-theme="blue"] {
    --primary: #0284C7;
    --primary-hover: #0369A1;
    --primary-light: #E0F2FE;
    --primary-ultra-light: #F0F9FF;
    --dark-green: #0C4A6E;
    --accent: #06B6D4;
    --accent-hover: #0891B2;
    --accent-light: #ECFEFF;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --bg-light: #F8FAFC;
    --bg-subtle: #F0F9FF;
    --surface: #FFFFFF;
    --border: #BAE6FD;
    --border-default: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --theme-meta-color: #0C4A6E;
    --hero-gradient: linear-gradient(135deg, #0C4A6E 0%, #0284C7 60%, #06B6D4 100%);
    --card-gradient: linear-gradient(145deg, #FFFFFF, #F0F9FF);
    --navbar-bg: rgba(255,255,255,0.97);
    --shadow-sm: 0 2px 8px rgba(2, 132, 199, 0.07);
    --shadow-md: 0 8px 24px rgba(2, 132, 199, 0.11);
    --shadow-lg: 0 20px 40px rgba(12, 74, 110, 0.14);
    --shadow-btn: 0 4px 14px rgba(2, 132, 199, 0.32);
    --tab-active-bg: var(--primary);
    --tab-active-text: #FFFFFF;
    --price-color: #0369A1;
    --badge-bg: #06B6D4;
    --badge-text: #FFFFFF;
    color-scheme: light;
}

/* ─── 3. SUNSET GOLD — البازار الذهبي (Warm, Bold, Vibrant Market Energy) ─── */
[data-theme="orange"] {
    --primary: #D97706;
    --primary-hover: #B45309;
    --primary-light: #FEF3C7;
    --primary-ultra-light: #FFFBEB;
    --dark-green: #78350F;
    --accent: #DC2626;
    --accent-hover: #B91C1C;
    --accent-light: #FEF2F2;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --bg-light: #FFFBEB;
    --bg-subtle: #FEF9EF;
    --surface: #FFFFFF;
    --border: #FDE68A;
    --border-default: #E2E8F0;
    --text-main: #1C1917;
    --text-muted: #78716C;
    --theme-meta-color: #78350F;
    --hero-gradient: linear-gradient(135deg, #78350F 0%, #D97706 55%, #F59E0B 100%);
    --card-gradient: linear-gradient(145deg, #FFFFFF, #FFFBEB);
    --navbar-bg: rgba(255,251,235,0.97);
    --shadow-sm: 0 2px 8px rgba(217, 119, 6, 0.09);
    --shadow-md: 0 8px 24px rgba(217, 119, 6, 0.13);
    --shadow-lg: 0 20px 40px rgba(120, 53, 15, 0.16);
    --shadow-btn: 0 4px 14px rgba(217, 119, 6, 0.35);
    --tab-active-bg: var(--primary);
    --tab-active-text: #FFFFFF;
    --price-color: #B45309;
    --badge-bg: #DC2626;
    --badge-text: #FFFFFF;
    color-scheme: light;
}

/* ─── 4. MIDNIGHT PREMIUM — الليلي الفاخر (Dark, Luxury, Night Market) ─── */
[data-theme="midnight"] {
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --primary-light: #2D1F6E;
    --primary-ultra-light: #1E1A4A;
    --dark-green: #1E1B4B;
    --accent: #EC4899;
    --accent-hover: #DB2777;
    --accent-light: #3B0F2B;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --bg-light: #0A0A1A;
    --bg-subtle: #111128;
    --surface: #16163A;
    --border: #2D2D6B;
    --border-default: #252550;
    --text-main: #F1F0FF;
    --text-muted: #9CA3C0;
    --theme-meta-color: #8B5CF6;
    --hero-gradient: linear-gradient(135deg, #0A0A1A 0%, #1E1B4B 50%, #2D1F6E 100%);
    --card-gradient: linear-gradient(145deg, #16163A, #1A1A42);
    --navbar-bg: rgba(10, 10, 26, 0.97);
    --shadow-sm: 0 2px 10px rgba(139, 92, 246, 0.15);
    --shadow-md: 0 8px 28px rgba(139, 92, 246, 0.20);
    --shadow-lg: 0 20px 45px rgba(139, 92, 246, 0.25);
    --shadow-btn: 0 4px 18px rgba(139, 92, 246, 0.40);
    --tab-active-bg: var(--primary);
    --tab-active-text: #FFFFFF;
    --price-color: #A78BFA;
    --badge-bg: #EC4899;
    --badge-text: #FFFFFF;
    color-scheme: dark;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Alexandria', 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--dark-green);
    border: 1.5px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn-whatsapp-large {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-whatsapp-confirm {
    background: linear-gradient(135deg, #25D366, #16A34A);
    color: white;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Static Store Closed Notice Banner (Fixed & Non-Animated) */
.store-closed-banner {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
    color: #FFFFFF !important;
    text-align: center !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    animation: none !important;
    transition: none !important;
    white-space: normal !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1001 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2) !important;
}

.store-closed-banner i {
    font-size: 0.95rem !important;
    color: #FEF08A !important;
}

/* World-Class Header & Navbar */
.navbar, .header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    padding: 0.15rem 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.nav-container, .top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 0.85rem !important;
    gap: 0.5rem !important;
    box-sizing: border-box !important;
}

/* ======================================================
   Ultra-Smart Responsive Wordmark Logo (Full Horizontal Span)
   ====================================================== */

.brand {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
}

.brand-logo.full-wordmark-container {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
}

.brand-logo:hover {
    transform: scale(1.01) !important;
}

.brand-logo:not(.full-wordmark-container) img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.brand-logo.full-wordmark-container img,
.brand-logo.full-wordmark-container img.full-wordmark-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 64px !important;
    object-fit: contain !important;
    object-position: right center !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Mobile Devices (≤640px): Larger logo, tight padding, zero gaps */
@media (max-width: 640px) {
    .nav-container, .top-bar {
        padding: 0 0.4rem !important;
        gap: 0.35rem !important;
    }

    .brand {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: -2px !important;
    }

    .brand-logo.full-wordmark-container {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 68px !important;
        display: block !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    .brand-logo.full-wordmark-container img,
    .brand-logo.full-wordmark-container img.full-wordmark-img {
        width: 100% !important;
        height: 100% !important;
        max-height: 68px !important;
        object-fit: contain !important;
        object-position: right center !important;
        display: block !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 480px) {
    .navbar, .header {
        padding: 0 !important;
    }
    .nav-container, .top-bar {
        padding: 0 0.1rem !important;
        gap: 0.1rem !important;
    }
    .brand {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .brand-logo.full-wordmark-container {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 95px !important;
        max-height: 95px !important;
        overflow: hidden !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .brand-logo.full-wordmark-container img,
    .brand-logo.full-wordmark-container img.full-wordmark-img {
        width: 100% !important;
        height: 100% !important;
        max-height: 95px !important;
        object-fit: fill !important;
        object-position: center center !important;
        transform: scale(1.22) !important;
        transform-origin: center center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #cartBtn {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.82rem !important;
        gap: 0.35rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

.brand-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: right !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
}

.brand-info.hidden-brand-text {
    display: none !important;
}

.brand-info h1 {
    font-size: 1.12rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.2px !important;
}

.brand-info h1 span {
    color: var(--primary) !important;
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.cart-btn {
    background: linear-gradient(135deg, #065F46 0%, #047857 100%) !important;
    color: #ffffff !important;
    padding: 0.5rem 0.95rem !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
}

.cart-btn:hover {
    transform: translateY(-1px) !important;
}

.cart-count {
    background: #F59E0B !important;
    color: #0F172A !important;
    font-weight: 900 !important;
    font-size: 0.78rem !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    line-height: 1 !important;
}

/* Sub-Header Info Strip - Sleek Single Row Ticker */
.header-sub-bar {
    background: #F0FDF4 !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #A7F3D0 !important;
    padding: 0.4rem 0.5rem !important;
    margin-top: 0 !important;
}

.sub-bar-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.sub-bar-container::-webkit-scrollbar {
    display: none !important;
}

.sub-tagline, .store-address-badge, .work-hours-badge {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.sub-tagline {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1px solid #A7F3D0 !important;
}

.store-address-badge {
    background: #EFF6FF !important;
    color: #1E40AF !important;
    border: 1px solid #93C5FD !important;
}

.work-hours-badge {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FCD34D !important;
}

.brand-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1px;
    white-space: nowrap;
}

/* Social Media Links in Navbar Header */
.social-nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    border: none;
    flex-shrink: 0;
}

.social-nav-link.fb-link {
    background: #1877F2;
}

.social-nav-link.fb-link:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 5px 14px rgba(24, 119, 242, 0.4);
}

.social-nav-link.ig-link {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.15rem !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    border-radius: var(--radius-full) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.cart-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--dark-green) 100%) !important;
}

.cart-btn i {
    font-size: 1.15rem;
    color: #FDE68A;
}

.cart-count {
    background: #F59E0B !important;
    color: #000000 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    padding: 3px 9px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5) !important;
    margin-right: 2px;
}

/* Hero Section Centered Layout & Proportional Typography */
.hero-banner {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-hover) 50%, var(--primary) 100%);
    color: white;
    padding: 2.75rem 0 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-banner.has-custom-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#storeDescriptionText, .store-description-box {
    margin-top: 0.85rem;
    padding: 0.65rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.98rem;
    color: #ffffff;
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text-centered {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badges-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

/* Step 1: Topmost & Largest Badge */
.badge-fresh-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-hover);
    font-size: 1.15rem;
    font-weight: 900;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* Step 2: Medium Badge Below It */
.badge-free-del-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    color: #FDE68A;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.4rem 1.15rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
}

/* Step 3: Main Title Below Badges */
.hero-title-main {
    font-size: clamp(1.15rem, 4.2vw, 1.75rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

@media (max-width: 640px) {
    .hero-title-main {
        font-size: 1.18rem !important;
        line-height: 1.4 !important;
    }
}

/* Step 4: Small Subtitle Below Main Title */
.hero-sub-main {
    font-size: 0.95rem;
    color: #A7F3D0;
    line-height: 1.6;
    font-weight: 600;
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.hero-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 650px !important;
    margin-top: 1.25rem !important;
    align-items: stretch !important;
}

.hero-features .stat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    height: 100% !important;
    min-height: 76px !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.hero-features .stat-card div {
    text-align: center !important;
    width: 100% !important;
}

.hero-features .stat-card h4,
.hero-features .stat-card p {
    text-align: center !important;
    margin: 0 auto !important;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stat-card div {
    text-align: center;
}

.stat-card i {
    font-size: 1.6rem;
    color: #FCD34D;
}

.stat-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.stat-card p {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
}

/* Controls Bar */
.main-content {
    margin-top: 2rem;
    margin-bottom: 5rem;
    padding-bottom: 120px;
}

.controls-bar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 2.85rem 0.85rem 1rem;
    font-family: inherit;
    font-size: clamp(0.8rem, 3.4vw, 0.95rem);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-box input::placeholder {
    font-size: clamp(0.74rem, 3.15vw, 0.9rem);
    color: #94A3B8;
    opacity: 1;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.categories-tabs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--dark-green);
    color: white;
    border-color: var(--dark-green);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

/* Responsive Products Grid System */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Medium Desktop / Laptops: 3 columns */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Tablets & Small Laptops: 2 columns */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(5, 150, 105, 0.3);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #F1F5F9;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(6, 78, 59, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.badge-tag.out-of-stock {
    background: #EF4444;
}

.product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    white-space: nowrap !important;
    overflow: hidden;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--price-color, var(--primary));
    white-space: nowrap !important;
    display: inline-block;
}

.product-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap !important;
    display: inline-block;
}

/* Quick Weight Chips Layout (Option 1) */
.quick-chips-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.quick-chips-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.quick-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.chip-btn {
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 0.45rem 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-align: center;
}

.chip-btn:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.chip-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.chip-weight {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.chip-btn.active .chip-weight {
    color: #ffffff;
}

.chip-price {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748B;
    margin-top: 1px;
}

.chip-btn.active .chip-price {
    color: rgba(255, 255, 255, 0.9);
}

/* Option 2: Instant Direct Stepper Layout */
.option2-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.option2-direct-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 12px;
    padding: 0.35rem 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
}

.option2-step-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.option2-step-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.option2-weight-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.option2-weight-val {
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.1;
}

.option2-weight-cost {
    font-size: 0.72rem;
    color: #FDE68A;
    font-weight: 800;
}

/* Option 3: Quick Grocery Checklist View (List Layout) */
.products-grid.option3-grid-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
}

.option3-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.option3-item-card:hover {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
}

.option3-item-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-grow: 1;
    min-width: 0;
}

.option3-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F1F5F9;
}

.option3-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.option3-item-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option3-item-price {
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--primary);
}

.option3-item-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Smart Grocery Suggestion Banner */
.smart-suggest-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid var(--primary);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 0.75rem 0 0.85rem;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-suggest-banner.active {
    bottom: 0;
}

.suggest-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.suggest-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--dark-green);
}

.close-suggest-btn {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 1rem;
    cursor: pointer;
}

.suggest-chips-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.suggest-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggest-chip-btn:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

/* Smart Dropdown Weight Selector */
.weight-selector-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.weight-dropdown-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--dark-green);
    background: var(--primary-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.05);
}

.weight-dropdown-select:focus, .weight-dropdown-select:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.weight-dropdown-select option {
    font-weight: 700;
    color: var(--text-main);
    padding: 8px;
    background: white;
}

/* Custom Weight Stepper Component with Large Touch Buttons */
.custom-weight-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    background: #FEF3C7;
    border: 1.5px solid #FCD34D;
    border-radius: var(--radius-md);
    padding: 3px;
}

.custom-step-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #F59E0B;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.custom-step-btn:hover {
    background: #D97706;
}

.custom-input-inner {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.custom-weight-input {
    width: 100%;
    padding: 0.45rem 2.2rem 0.45rem 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    color: #78350F;
    border: 1px solid #FBBF24;
    border-radius: var(--radius-sm);
    background: white;
    outline: none;
    text-align: center;
}

.custom-weight-input:focus {
    border-color: #D97706;
}

.custom-unit-tag {
    position: absolute;
    right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #92400E;
    pointer-events: none;
}

/* Product Item Custom Note Input */
.item-note-input {
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-family: inherit;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    outline: none;
    transition: var(--transition);
    background: #F9FAFB;
}

.item-note-input:focus {
    border-color: var(--primary);
    background: white;
}

.card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.qty-stepper {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    border-radius: var(--radius-md);
    padding: 2px;
}

.step-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.qty-display {
    width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.add-cart-btn {
    flex-grow: 1;
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 440px;
    max-width: 95vw;
    height: 100%;
    height: 100dvh;
    background: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

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

.cart-header {
    padding: 1.25rem 1.5rem;
    background: var(--dark-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Free Delivery Progress Bar */
.free-delivery-bar-wrap {
    background: var(--primary-light);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.free-del-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 0.35rem;
}

.progress-track {
    width: 100%;
    height: 7px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-cart-state i {
    font-size: 3.5rem;
    color: #CBD5E1;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F8FAFC;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.cart-item-weight {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.cart-item-note-text {
    font-size: 0.75rem;
    color: #D97706;
    font-weight: 700;
    margin-top: 2px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 2px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: var(--transition);
}

.remove-item-btn:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 1.25rem 1.5rem calc(2.25rem + env(safe-area-inset-bottom, 24px)) !important;
    border-top: 1px solid var(--border);
    background: white;
    flex-shrink: 0 !important;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.delivery-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.del-fee-price {
    color: var(--text-main);
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.total-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

/* Lock background scrolling and suppress floating cart bar when any modal is open */
body.modal-open {
    overflow: hidden !important;
}

body.modal-open .mobile-sticky-cart-bar,
.modal.active ~ .mobile-sticky-cart-bar,
.cart-drawer-overlay.active ~ .mobile-sticky-cart-bar,
.cart-drawer.active ~ .mobile-sticky-cart-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Mobile Sticky Floating Cart Bar */
.mobile-sticky-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 78, 59, 0.96);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.85rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 20px)) !important;
    z-index: 900;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
}

.mobile-sticky-cart-bar.active {
    display: flex;
}

.mobile-cart-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-cart-info i {
    font-size: 1.4rem;
    color: #FCD34D;
}

.mobile-cart-info span {
    font-size: 0.75rem;
    opacity: 0.85;
    display: block;
}

.mobile-cart-info strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.btn-whatsapp-mobile {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    box-shadow: var(--shadow-md);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;      /* Bottom Sheet على الجوال */
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;  /* مستدير من الأعلى فقط */
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);   /* يبدأ من الأسفل */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    flex-shrink: 0 !important;
}

/* ===== نافذة تفاصيل المنتج - Bottom Sheet على موبايل، Modal على الأكبر ===== */
.product-modal-content {
    /* Mobile: Full-width Bottom Sheet */
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.modal.active .product-modal-content {
    transform: translateY(0) !important;
}

/* iPad & Tablet (768px+): Centered modal */
@media (min-width: 768px) {
    .modal {
        align-items: center;
        padding: 1.5rem;
    }
    .modal-content {
        border-radius: 20px;
        max-width: 560px;
        transform: translateY(20px) scale(0.98);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
    }
    .modal.active .modal-content {
        transform: translateY(0) scale(1);
    }
    .product-modal-content {
        width: 100% !important;
        max-width: 480px !important;
        max-height: 88vh !important;
        border-radius: 24px !important;
        transform: translateY(20px) scale(0.98) !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28) !important;
    }
    .modal.active .product-modal-content {
        transform: translateY(0) scale(1) !important;
    }
}

/* Desktop (1024px+): Slightly larger */
@media (min-width: 1024px) {
    .product-modal-content {
        max-width: 520px !important;
    }
}

.checkout-modal-content {
    max-width: 540px !important;
    max-height: calc(85vh - env(safe-area-inset-bottom, 16px)) !important;
    height: auto !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    margin-bottom: calc(1rem + env(safe-area-inset-bottom, 16px)) !important;
}

.checkout-modal-content form,
.modal-content form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.modal-content form.modal-body,
.checkout-modal-content .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 !important;
    min-height: 0 !important;
    padding: 1.25rem 1.25rem 2.75rem !important;
}

.product-modal-content .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 !important;
    min-height: 0 !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}

/* زر السحب (drag handle) على الجوال */
.product-modal-content .modal-drag-handle {
    width: 40px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 4px;
    margin: 0.65rem auto 0;
    display: block;
}

@media (min-width: 768px) {
    .product-modal-content .modal-drag-handle {
        display: none;
    }
}

/* صورة المنتج في النافذة */
.product-modal-content .modal-body img#modalProdImg {
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

@media (min-width: 768px) {
    .product-modal-content .modal-body img#modalProdImg {
        height: 230px !important;
    }
}

.modal-sticky-footer {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 0.85rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 16px)) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 999 !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

.modal-sticky-footer button {
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    justify-content: center !important;
    border-radius: var(--radius-md) !important;
    touch-action: manipulation;
}

/* Saved Customer Profile Smart Banner */
.saved-customer-badge {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1.5px solid #86EFAC;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
}

.saved-badge-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.saved-badge-content i {
    font-size: 1.25rem;
    color: #16A34A;
    background: rgba(22, 163, 74, 0.12);
    padding: 0.45rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.saved-badge-content strong {
    display: block;
    font-size: 0.88rem;
    color: #14532D;
    font-weight: 800;
}

.saved-badge-sub {
    display: block;
    font-size: 0.76rem;
    color: #15803D;
    font-weight: 600;
    margin-top: 1px;
}

.btn-clear-profile {
    background: #FFFFFF;
    color: #15803D;
    border: 1px solid #86EFAC;
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-clear-profile:hover {
    background: #F0FDF4;
    border-color: #16A34A;
    color: #14532D;
}

/* Interactive GPS Location Button & Info */
.btn-gps-location {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px dashed #0284C7;
    color: #0369A1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

.btn-gps-location:hover:not(:disabled) {
    background: #E0F2FE;
    border-color: #0369A1;
    transform: translateY(-1px);
}

.btn-gps-location.success {
    background: var(--primary-light) !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary-hover) !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-open-maps-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: #0284C7;
    border: 1.25px solid #38BDF8;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-open-maps-app:hover {
    background: #F0F9FF;
    border-color: #0284C7;
    color: #0369A1;
}

.gps-status-info {
    font-size: 0.76rem;
    color: #64748B;
    margin-top: 6px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 640px) {
    #productDetailModal, #checkoutModal {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .product-modal-content, .checkout-modal-content {
        max-height: calc(85vh - env(safe-area-inset-bottom, 0px)) !important;
        height: auto !important;
        border-radius: 24px 24px 0 0 !important;
        animation: slideUpSheet 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: env(safe-area-inset-bottom, 0px);
    }
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Step-by-Step Guided Action Modal (Sleek Mobile First) */
.guided-step-modal {
    text-align: center;
    padding: 1.25rem 1rem 1.1rem;
    position: relative;
}

.close-guided-btn {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 32px;
    height: 32px;
    background: #F1F5F9;
    border: none;
    border-radius: 50%;
    color: #64748B;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.close-guided-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.guided-icon-badge {
    width: 58px;
    height: 58px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 0.85rem;
    box-shadow: var(--shadow-sm);
}

.guided-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 0.3rem;
}

.guided-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 1.1rem;
    line-height: 1.4;
}

.guided-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Primary Action: Go to Cart & Checkout (Dynamic Theme Color) */
.guided-btn-checkout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    min-height: 44px;
}

.guided-btn-checkout i {
    font-size: 1.05rem;
    background: transparent;
    padding: 0;
}

.guided-btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

/* Secondary Action: Continue Shopping (Sleek Gold/Amber Accent) */
.guided-btn-continue {
    background: #FEF3C7;
    color: #92400E;
    border: 1.25px solid #F59E0B;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
    transition: all 0.2s ease;
    min-height: 44px;
}

.guided-btn-continue i {
    font-size: 1rem;
    color: #D97706;
    background: transparent;
    padding: 0;
}

.guided-btn-continue:hover {
    background: #FDE68A;
    border-color: #D97706;
}

/* Tertiary Action: Cancel / Dismiss */
.guided-btn-cancel {
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    min-height: 40px;
}

.guided-btn-cancel i {
    font-size: 0.95rem;
    color: #94A3B8;
}

.guided-btn-cancel:hover {
    background: #F1F5F9;
    color: #1E293B;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: var(--dark-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-modal-content .modal-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--dark-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.85rem 1rem 1.05rem;
    min-height: 50px;
    line-height: 1.6;
    font-family: inherit;
    font-size: 0.98rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    background: white;
}

#custAddress {
    padding: 0.9rem 1rem 1.1rem !important;
    min-height: 56px !important;
    line-height: 1.6 !important;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.summary-breakdown {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 3px;
}

.order-summary-box {
    background: #F8FAFC;
    border: 1px dashed var(--border);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 1.25rem 0;
}

.summary-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.summary-list {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.summary-total strong {
    color: var(--primary);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--dark-green);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: white;
    padding: 2.5rem 0 5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--primary);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-icon-ft {
    color: #A7F3D0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon-ft:hover {
    color: white;
}

.footer-content p {
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-sub {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.35rem;
}

/* Unified Responsive System (Smartphones, iPads/Tablets & Desktops) */

/* 1. Smartphones & Small Devices (max-width: 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 0.85rem;
    }

    .navbar {
        padding: 0.5rem 0 0;
    }

    /* Mobile Header & Navbar Transformation (World-Class Clean Layout) */
    .nav-container, .top-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.4rem 0.65rem !important;
        gap: 0.4rem !important;
    }

    .brand {
        display: flex !important;
        align-items: center !important;
        gap: 0.55rem !important;
        text-align: right !important;
        flex: 1 !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
    }

    .brand-logo:not(.full-wordmark-container) {
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        border: 2px solid #10B981 !important;
        box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25) !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }

    .brand-logo:not(.full-wordmark-container) img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .brand-logo.full-wordmark-container {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    .brand-logo.full-wordmark-container img,
    .brand-logo.full-wordmark-container img.full-wordmark-img {
        width: 100% !important;
        height: auto !important;
        max-height: 70px !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
        border-radius: 0 !important;
    }

    .brand-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .brand-info h1 {
        font-size: clamp(0.95rem, 3.8vw, 1.15rem) !important;
        font-weight: 900 !important;
        color: #064E3B !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: right !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 100% !important;
        letter-spacing: -0.2px !important;
    }

    .cart-btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #065F46 0%, #047857 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 3px 10px rgba(4, 120, 87, 0.25) !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }

    .cart-btn i {
        font-size: 0.9rem !important;
    }

    .cart-count {
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
        background: #F59E0B !important;
        color: #0F172A !important;
        border-radius: 8px !important;
    }

    .header-sub-bar {
        background: #F0FDF4 !important;
        border-top: 1px solid #E2E8F0 !important;
        border-bottom: 1px solid #A7F3D0 !important;
        padding: 0.4rem 0.5rem !important;
        margin-top: 0 !important;
    }

    .sub-bar-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem 0.5rem !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        padding: 0 !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sub-tagline, .store-address-badge, .work-hours-badge {
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: center !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.3rem !important;
        max-width: 100% !important;
    }

    .sub-tagline {
        background: #ECFDF5 !important;
        color: #065F46 !important;
        border: 1px solid #A7F3D0 !important;
    }

    .store-address-badge {
        background: #EFF6FF !important;
        color: #1E40AF !important;
        border: 1px solid #93C5FD !important;
    }

    .work-hours-badge {
        background: #FEF3C7 !important;
        color: #92400E !important;
        border: 1px solid #FCD34D !important;
    }

    /* Hero Banner Mobile Spacing & Title */
    .hero-banner {
        padding: 1.5rem 0.5rem 1.8rem !important;
        overflow: visible !important;
    }

    .badge-fresh-main {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.85rem !important;
        white-space: normal !important;
        text-align: center !important;
        max-width: 95% !important;
    }

    .badge-free-del-main {
        font-size: 0.78rem !important;
        padding: 0.25rem 0.75rem !important;
        white-space: normal !important;
        text-align: center !important;
        max-width: 95% !important;
    }

    .hero-title-main {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.65rem !important;
        padding: 0 0.5rem !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-sub-main {
        font-size: 0.8rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.15rem !important;
        padding: 0 0.5rem !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem !important;
    }

    .hero-features .stat-card {
        min-height: 72px !important;
        padding: 0.5rem 0.3rem !important;
        border-radius: 12px !important;
        gap: 0.25rem !important;
        box-sizing: border-box !important;
    }

    .stat-card h4 {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
        text-align: center !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    .stat-card p {
        font-size: 0.68rem !important;
        text-align: center !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .product-img-wrap {
        height: 135px !important;
    }

    .product-title {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
    }

    .product-price {
        font-size: 1.05rem !important;
    }

    .cart-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
    }

    .cart-footer {
        padding: 1rem 1.15rem calc(3.2rem + env(safe-area-inset-bottom, 28px)) !important;
    }

    .cart-footer .btn-whatsapp-large {
        padding: 0.9rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
        min-height: 52px !important;
        border-radius: 16px !important;
    }

    .toast {
        bottom: calc(90px + env(safe-area-inset-bottom, 20px)) !important;
        right: 15px !important;
        left: 15px !important;
        text-align: center !important;
        pointer-events: none !important;
        z-index: 9999 !important;
    }

    /* Mobile Modal & Bottom Sheet Ergonomic Layout */
    .modal {
        padding: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .modal-content,
    .product-modal-content,
    .checkout-modal-content {
        max-width: 100vw !important;
        width: 100vw !important;
        max-height: calc(88dvh - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(88vh - env(safe-area-inset-bottom, 0px)) !important;
        display: flex !important;
        flex-direction: column !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
    }

    .modal-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 1rem !important;
    }

    .modal-sticky-footer {
        flex-shrink: 0 !important;
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0.85rem 1.15rem calc(1.2rem + env(safe-area-inset-bottom, 16px)) !important;
        background: #FFFFFF !important;
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.12) !important;
        z-index: 1000 !important;
        margin-top: auto !important;
    }

    .modal-sticky-footer button {
        padding: 0.9rem 1rem !important;
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        min-height: 52px !important;
        border-radius: 16px !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }
}

/* 2. iPads & Tablets (min-width: 641px and max-width: 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }

    .brand-info h1 {
        font-size: 1.45rem !important;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .cart-drawer {
        width: 420px !important;
        max-width: 90vw !important;
    }
}

/* 3. Laptops & Desktop PCs (min-width: 1025px) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

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

/* Store Closed Notification Banner */
.store-closed-banner {
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

/* Out of Stock Card Disabled Styling */
.product-card.out-of-stock-card {
    opacity: 0.68 !important;
    filter: grayscale(0.3) !important;
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

.product-card.out-of-stock-card .product-title,
.product-card.out-of-stock-card .product-img-wrap {
    cursor: not-allowed !important;
}

.product-card.out-of-stock-card button,
.product-card.out-of-stock-card select,
.product-card.out-of-stock-card input {
    cursor: not-allowed !important;
}

/* ==========================================================================
   Modern Floating Mobile Bottom Bars (Emerald Fresh Theme)
   ========================================================================== */

/* 1. Mobile Floating Cart Bar (Floating Pill Style - Elevated for comfortable touch) */
.mobile-cart-bar,
.mobile-sticky-cart-bar {
    display: none !important;
    position: fixed !important;
    bottom: calc(40px + env(safe-area-inset-bottom, 24px)) !important;
    left: 14px !important;
    right: 14px !important;
    background: linear-gradient(135deg, #064E3B 0%, #047857 100%) !important;
    color: #ffffff !important;
    padding: 0.85rem 1.15rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 9990 !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 35px rgba(4, 78, 59, 0.45), 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

.mobile-cart-bar.active,
.mobile-sticky-cart-bar.active {
    display: flex !important;
}

.mobile-cart-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.mobile-cart-info i {
    font-size: 1.35rem !important;
    color: #FDE68A !important;
}

.mobile-cart-count {
    font-size: 0.75rem !important;
    color: #A7F3D0 !important;
    font-weight: 700 !important;
    display: block !important;
}

.mobile-cart-total {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

.btn-whatsapp-mobile,
.mobile-cart-action-btn,
#mobileOpenCartBtn {
    background: #ffffff !important;
    color: #065F46 !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    padding: 0.55rem 1rem !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    cursor: pointer !important;
}

/* 2. Floating Smart Suggestion Card (Sleek Emerald Toast Above Cart Bar) */
.smart-suggest-banner {
    display: none !important;
    position: fixed !important;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 14px !important;
    background: #ECFDF5 !important;
    border: 1.5px solid #6EE7B7 !important;
    color: #065F46 !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: 18px !important;
    z-index: 999 !important;
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.18) !important;
    transition: all 0.3s ease !important;
}

.smart-suggest-banner.active {
    display: block !important;
}

.suggest-title {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #065F46 !important;
}

.close-suggest-btn {
    background: #D1FAE5 !important;
    border: none !important;
    color: #047857 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
}

.suggest-chips-scroll {
    display: flex !important;
    gap: 0.4rem !important;
    overflow-x: auto !important;
    margin-top: 0.4rem !important;
    padding-bottom: 0.2rem !important;
}

.suggest-chip-btn {
    background: #ffffff !important;
    border: 1px solid #A7F3D0 !important;
    color: #047857 !important;
    padding: 0.35rem 0.7rem !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

/* Hide floating bottom bars when modal or drawer is open */
body.modal-open .mobile-cart-bar,
body.modal-open .mobile-sticky-cart-bar,
body.modal-open .smart-suggest-banner {
    display: none !important;
}

/* ==========================================================================
   Multi-Layout Presets Framework (Visual Identity System)
   ========================================================================== */

/* 1. CLASSIC LAYOUT PRESET (Compact, Functional Grocery Grid) */
[data-layout="classic"] .hero-banner {
    padding: 1.5rem 0 1.75rem;
    border-bottom: 2px solid var(--border);
}

[data-layout="classic"] .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.75rem;
}

[data-layout="classic"] .product-card {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.65rem;
    box-shadow: none;
}

[data-layout="classic"] .product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

[data-layout="classic"] .nav-tab {
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* 2. MODERN LAYOUT PRESET (Clean, Soft Rounded Cards & Floating Elements) - DEFAULT */
[data-layout="modern"] .hero-banner {
    padding: 2.75rem 0 3rem;
    border-radius: 0 0 24px 24px;
}

[data-layout="modern"] .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

[data-layout="modern"] .product-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

[data-layout="modern"] .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

[data-layout="modern"] .nav-tab {
    border-radius: var(--radius-full);
    padding: 0.55rem 1.15rem;
}

/* 3. OFFERS LAYOUT PRESET (High-Impact Price Highlights, Bold CTA Badges) */
[data-layout="offers"] .hero-banner {
    padding: 3rem 0 3.25rem;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary) 100%);
    border-bottom: 4px solid var(--accent);
}

[data-layout="offers"] .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

[data-layout="offers"] .product-card {
    border-radius: 20px;
    border: 2px solid var(--primary);
    padding: 1.1rem;
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    position: relative;
}

[data-layout="offers"] .product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-hover);
}

[data-layout="offers"] .product-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    white-space: nowrap !important;
    gap: 0.35rem !important;
    margin-bottom: 0.5rem !important;
}

[data-layout="offers"] .product-price {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: var(--primary-hover) !important;
    background: #EFF6FF !important;
    padding: 0.25rem 0.55rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

[data-layout="offers"] .product-unit {
    font-size: 0.78rem !important;
    color: #475569 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* ─────────────────────────────────────────────────────────────
   4. BOLD NEON LAYOUT — نابض وجريء (High Energy, Large Cards)
   ─────────────────────────────────────────────────────────────
   Big attention-grabbing cards, oversized prices, neon badge
   accents — designed to POP on mobile screens.
   ───────────────────────────────────────────────────────────── */
[data-layout="bold"] .hero-banner {
    padding: 3.5rem 0 3.75rem;
    background: var(--hero-gradient);
    border-bottom: 5px solid var(--accent);
    position: relative;
    overflow: hidden;
}

[data-layout="bold"] .hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.03) 40px,
        rgba(255,255,255,0.03) 80px
    );
    pointer-events: none;
}

[data-layout="bold"] .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
}

[data-layout="bold"] .product-card {
    border-radius: 24px;
    border: 3px solid var(--primary);
    padding: 1.25rem;
    background: var(--card-gradient);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

[data-layout="bold"] .product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

[data-layout="bold"] .product-price {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--price-color, var(--primary));
}

[data-layout="bold"] .product-img-wrap {
    height: 175px;
    border-radius: 16px;
}

[data-layout="bold"] .nav-tab {
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-weight: 800;
    font-size: 0.93rem;
    border: 2px solid transparent;
}

[data-layout="bold"] .nav-tab.active,
[data-layout="bold"] .tab-btn.active {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ─────────────────────────────────────────────────────────────
   MIDNIGHT DARK THEME — Global Dark UI Overrides
   All surfaces switch to dark, text inverts, borders glow.
   ─────────────────────────────────────────────────────────────*/
[data-theme="midnight"] body {
    background-color: #0A0A1A;
    color: #F1F0FF;
}

[data-theme="midnight"] .navbar,
[data-theme="midnight"] .header {
    background: rgba(10, 10, 26, 0.97) !important;
    border-bottom: 1px solid #2D2D6B !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12) !important;
}

[data-theme="midnight"] .brand-info h1,
[data-theme="midnight"] .brand-info p {
    color: #F1F0FF !important;
}

[data-theme="midnight"] .hero-banner {
    background: linear-gradient(135deg, #0A0A1A 0%, #1E1B4B 50%, #2D1F6E 100%) !important;
    border-bottom: 3px solid #8B5CF6;
}

[data-theme="midnight"] .categories-section {
    background: #111128;
    border-bottom: 1px solid #2D2D6B;
}

[data-theme="midnight"] .tab-btn,
[data-theme="midnight"] .nav-tab {
    background: #16163A;
    color: #C4C0FF;
    border: 1.5px solid #2D2D6B;
}

[data-theme="midnight"] .tab-btn.active,
[data-theme="midnight"] .nav-tab.active {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: #FFFFFF;
    border-color: #8B5CF6;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

[data-theme="midnight"] .product-card {
    background: linear-gradient(145deg, #16163A, #1A1A42);
    border: 1.5px solid #2D2D6B;
    color: #F1F0FF;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.15);
}

[data-theme="midnight"] .product-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.30);
}

[data-theme="midnight"] .product-title {
    color: #F1F0FF;
}

[data-theme="midnight"] .product-price {
    color: #A78BFA;
}

[data-theme="midnight"] .product-unit {
    color: #9CA3C0;
}

[data-theme="midnight"] .btn-primary {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.40);
}

[data-theme="midnight"] .btn-secondary {
    background: #16163A;
    color: #C4C0FF;
    border-color: #2D2D6B;
}

[data-theme="midnight"] .cart-drawer,
[data-theme="midnight"] .checkout-modal-box {
    background: #16163A;
    border: 1px solid #2D2D6B;
    color: #F1F0FF;
}

[data-theme="midnight"] .cart-drawer input,
[data-theme="midnight"] .checkout-modal-box input,
[data-theme="midnight"] .checkout-modal-box select,
[data-theme="midnight"] .checkout-modal-box textarea {
    background: #111128;
    border-color: #2D2D6B;
    color: #F1F0FF;
}

[data-theme="midnight"] .modal-overlay {
    background: rgba(0, 0, 10, 0.85);
}

[data-theme="midnight"] .mobile-sticky-cart-bar {
    background: linear-gradient(135deg, #1E1B4B, #16163A);
    border-top: 1px solid #2D2D6B;
}

[data-theme="midnight"] .footer {
    background: #060613;
    border-top: 1px solid #2D2D6B;
    color: #9CA3C0;
}

[data-theme="midnight"] .work-hours-badge,
[data-theme="midnight"] .stat-card {
    background: #16163A;
    border-color: #2D2D6B;
    color: #C4C0FF;
}

[data-theme="midnight"] .section-title {
    color: #F1F0FF;
}

[data-theme="midnight"] .section-divider-title {
    color: #A78BFA;
}

[data-theme="midnight"] .search-bar input {
    background: #16163A;
    border-color: #2D2D6B;
    color: #F1F0FF;
}

[data-theme="midnight"] .search-bar input::placeholder {
    color: #6B7280;
}

[data-theme="midnight"] .store-closed-banner {
    background: linear-gradient(135deg, #1E1B4B, #2D1F6E);
    border-bottom: 2px solid #8B5CF6;
    color: #F1F0FF;
}

/* ─────────────────────────────────────────────────────────────
   HERO BANNER — use theme gradient var for all themes
   ─────────────────────────────────────────────────────────────*/
.hero-banner {
    background: var(--hero-gradient, linear-gradient(135deg, var(--dark-green) 0%, var(--primary) 100%));
}

/* NAVBAR — use theme navbar-bg var */
.navbar, .header {
    background: var(--navbar-bg, rgba(255,255,255,0.97)) !important;
}

/* PRODUCT CARD — use theme card-gradient var */
.product-card {
    background: var(--card-gradient, #FFFFFF);
}

/* PRICE — use theme price-color var */
.product-price {
    color: var(--price-color, var(--primary));
}

/* BTN-PRIMARY shadow — use theme shadow-btn var */
.btn-primary {
    box-shadow: var(--shadow-btn, 0 4px 12px rgba(5, 150, 105, 0.25));
}

/* Ultra-Responsive Mobile Design Adjustments */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .product-card {
        border-radius: 16px !important;
        border: 1px solid var(--border-default, #E2E8F0) !important;
    }

    .product-img-wrap {
        height: 135px !important;
    }

    .product-body {
        padding: 0.65rem 0.55rem !important;
    }

    .product-title {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.25 !important;
        height: 2.4em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-price-row {
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 0.4rem !important;
        gap: 0.25rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .product-price {
        font-size: 0.98rem !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    .product-unit {
        font-size: 0.72rem !important;
    }

    .product-card-picker-wrap {
        padding: 0.4rem 0.3rem !important;
        margin: 0.35rem 0 0.45rem !important;
    }

    .btn-add-card {
        padding: 0.55rem 0.35rem !important;
        font-size: 0.8rem !important;
    }

    .smart-suggest-banner {
        bottom: calc(96px + env(safe-area-inset-bottom, 16px)) !important;
    }

    body {
        padding-bottom: calc(115px + env(safe-area-inset-bottom, 20px)) !important;
    }
}

/* Proactive Upfront Fulfillment Header Banner */
.fulfillment-header-banner {
    border-radius: var(--radius-lg, 14px);
    padding: 0.85rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
    animation: fadeInSlideDown 0.4s ease forwards;
}

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fulfillment-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fulfillment-banner-content .icon-lg {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fulfillment-banner-content strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
}

.fulfillment-banner-content p {
    font-size: 0.84rem;
    margin: 0.2rem 0 0 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Banner States */
.fulfillment-header-banner.banner-dual {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(243,244,246,0.95));
    border: 1.5px solid var(--border, #E5E7EB);
    backdrop-filter: blur(8px);
}

.fulfillment-banner-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main, #1F2937);
}

.fulfillment-pill-toggle {
    display: flex;
    background: #E2E8F0;
    padding: 3px;
    border-radius: 30px;
    gap: 3px;
}

.fulfillment-pill-toggle .pill-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 0.95rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fulfillment-pill-toggle .pill-btn.active {
    background: var(--primary, #059669);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fulfillment-header-banner.banner-pickup-only {
    background: #FEF3C7;
    border: 1.5px solid #F59E0B;
    color: #78350F;
}
.fulfillment-header-banner.banner-pickup-only .icon-lg { color: #D97706; }

.fulfillment-header-banner.banner-delivery-only {
    background: #ECFDF5;
    border: 1.5px solid #10B981;
    color: #064E3B;
}
.fulfillment-header-banner.banner-delivery-only .icon-lg { color: #059669; }

.fulfillment-header-banner.banner-closed-all {
    background: #FEF2F2;
    border: 1.5px solid #EF4444;
    color: #991B1B;
}
.fulfillment-header-banner.banner-closed-all .icon-lg { color: #DC2626; }

/* Enhanced Toast Styling */
.toast-sub-note {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================================================
   Products 20-Item Pagination & Load More System
   ========================================================================== */
.products-pagination-wrap {
    width: 100%;
    margin: 2.2rem 0 3rem;
    display: flex;
    justify-content: center;
}

.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 440px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.pagination-count-info {
    font-size: 0.92rem;
    color: #475569;
    font-weight: 800;
    text-align: center;
}

.pagination-progress-bar {
    width: 100%;
    height: 7px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.pagination-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.btn-load-more {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.35);
    background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more i {
    font-size: 1.15rem;
    animation: bounceDown 1.6s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.pagination-all-loaded-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #F0FDF4;
    border: 1.5px solid #A7F3D0;
    color: #065F46;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   PWA Smart Install Prompt Banner (شريط التثبيت الذكي للتطبيق)
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 185, 129, 0.25);
    z-index: 99999;
    animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    direction: rtl;
    color: #F8FAFC;
}

@keyframes pwaSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pwa-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #064E3B;
    border: 1.5px solid #10B981;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.pwa-banner-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.15rem;
}

.pwa-banner-desc {
    font-size: 0.76rem;
    color: #CBD5E1;
    line-height: 1.35;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.btn-pwa-install {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-pwa-install:active {
    transform: translateY(0);
}

.btn-pwa-dismiss {
    background: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-pwa-dismiss:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #EF4444;
}

.pwa-install-guide {
    margin-top: 0.65rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    color: #E2E8F0;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.6rem;
}

@media (max-width: 480px) {
    .pwa-install-banner {
        bottom: 68px;
        left: 10px;
        right: 10px;
        padding: 0.75rem 0.85rem;
    }
    .pwa-banner-title {
        font-size: 0.88rem;
    }
    .pwa-banner-desc {
        font-size: 0.74rem;
    }
    .btn-pwa-install {
        padding: 0.45rem 0.75rem;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   In-App Browser Floating Smart Notice (شريط الخروج من متصفح فيسبوك)
   ========================================================================== */
.in-app-browser-notice {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #F8FAFC;
    border-bottom: 2px solid #38BDF8;
    padding: 0.6rem 1rem;
    z-index: 999999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    direction: rtl;
    font-size: 0.82rem;
    animation: pwaSlideDown 0.3s ease forwards;
}

@keyframes pwaSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.in-app-notice-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.in-app-notice-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
}

.in-app-notice-close {
    background: rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.in-app-notice-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* ==========================================================================
   Modern Mobile-First UI Theme (Matching Exact Design Mockup)
   ========================================================================== */

/* 1. Header & Navigation */
.navbar {
    background: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    padding: 0.55rem 0 !important;
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    direction: rtl !important;
}

.brand-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
}

.brand-logo img {
    height: 48px !important;
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

.brand-info h1 {
    display: none !important; /* Wordmark logo already contains the full brand title */
}

.cart-pill-btn {
    background: #064E3B !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25) !important;
    transition: transform 0.2s, background 0.2s !important;
}

.cart-pill-btn:hover {
    transform: translateY(-1px) !important;
    background: #047857 !important;
}

.cart-pill-btn i {
    font-size: 1.22rem !important;
}

.cart-pill-text {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
}

.cart-pill-badge {
    background: #F59E0B !important;
    color: #0F172A !important;
    font-weight: 900 !important;
    font-size: 0.8rem !important;
    padding: 2px 7.5px !important;
    border-radius: 12px !important;
    line-height: 1.2 !important;
}

/* 2. Main Content Container */
.main-content-layout {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 0.85rem 5.5rem 0.85rem !important;
}

/* 3. Hero Banner Card */
.hero-banner-card {
    margin: 0.85rem 0 1.25rem 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #0F172A !important;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1200&q=85');
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18) !important;
}

.hero-card-inner {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.78) 100%) !important;
    padding: 2.2rem 1.25rem !important;
    min-height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero-card-content {
    max-width: 540px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero-main-title {
    color: #FFFFFF !important;
    font-size: 1.7rem !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    margin: 0 0 0.65rem 0 !important;
    text-align: center !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    width: 100% !important;
    letter-spacing: -0.5px !important;
}

.hero-loc-pill {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FEF3C7 !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    margin: 0 auto 0.75rem auto !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

.hero-loc-pill i {
    color: #FBBF24 !important;
}

.hero-free-shipping-pill {
    background: rgba(16, 185, 129, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    margin: 0 auto !important;
    text-align: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.hero-free-shipping-pill i {
    color: #FEF08A !important;
}

.store-custom-desc,
.store-description-box {
    margin-top: 0.65rem !important;
    font-size: 0.86rem !important;
    color: rgba(255, 255, 255, 0.98) !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* 4. Search Bar Pill */
.search-section-wrap {
    margin-bottom: 1.1rem !important;
}

.search-box-pill {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.15rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}

.search-box-pill:focus-within {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
}

.search-pill-icon {
    color: #64748B !important;
    font-size: 1.05rem !important;
}

.search-box-pill input {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    background: transparent !important;
    font-family: inherit !important;
}

.search-clear-btn {
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    font-size: 1rem !important;
}

/* 5. Category Pills Section (Hybrid Auto-Center + Fade + Quick Grid) */
.category-pills-section {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    position: relative !important;
}

.category-pills-scroll-wrap {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    /* Subtle fade gradient on the left edge indicating more scrollable items in RTL */
    -webkit-mask-image: linear-gradient(to left, black 88%, transparent 100%) !important;
    mask-image: linear-gradient(to left, black 88%, transparent 100%) !important;
}

.category-pills-track {
    display: flex !important;
    gap: 0.55rem !important;
    overflow-x: auto !important;
    padding: 0.2rem 0.2rem 0.4rem 0.8rem !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
}

.category-pills-track::-webkit-scrollbar {
    display: none !important;
}

.cat-pill {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.cat-pill:hover {
    border-color: #10B981 !important;
    background: #F0FDF4 !important;
}

.cat-pill.active {
    background: #064E3B !important;
    color: #FFFFFF !important;
    border-color: #064E3B !important;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25) !important;
}

/* Quick "All Categories" Grid Button */
.btn-all-cats-quick {
    background: #F0FDF4 !important;
    border: 1.5px solid #10B981 !important;
    border-radius: 50px !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    color: #065F46 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
    transition: all 0.2s ease !important;
}

.btn-all-cats-quick:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

/* All Categories Visual Modal Grid */
.all-categories-visual-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
}

.all-cat-card {
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 0.85rem 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: right !important;
}

.all-cat-card:hover {
    border-color: #10B981 !important;
    background: #F0FDF4 !important;
    transform: translateY(-2px) !important;
}

.all-cat-card.active {
    background: #ECFDF5 !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15) !important;
}

.all-cat-icon {
    font-size: 1.6rem !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.all-cat-info {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.all-cat-name {
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    color: #0F172A !important;
}

.all-cat-count {
    font-size: 0.74rem !important;
    color: #64748B !important;
    font-weight: 700 !important;
}

.all-cat-arrow {
    color: #94A3B8 !important;
    font-size: 0.85rem !important;
}

/* 6. Section Heading Bar */
.section-heading-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.85rem !important;
}

.section-heading-title {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.view-all-link {
    color: #059669 !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

/* 7. Products Grid Modern */
.products-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    margin-bottom: 0.5rem !important;
}

.products-pagination-wrap {
    margin: 0.25rem 0 !important;
}

.products-pagination-wrap:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-content-layout {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

@media (min-width: 640px) {
    .products-grid-modern {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.1rem !important;
    }
}

@media (min-width: 1024px) {
    .products-grid-modern {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
    }
}

.product-card-modern {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 0.85rem !important;
    border: 1px solid #F1F5F9 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-card-modern:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #E2E8F0 !important;
}

.product-img-wrap {
    width: 100% !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.5rem !important;
    background: #FAFAFA !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.product-img-wrap img {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.product-card-modern:hover .product-img-wrap img {
    transform: scale(1.06) !important;
}

.product-title-modern {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 2px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-unit-modern {
    font-size: 0.76rem !important;
    color: #64748B !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
}

.product-price-modern {
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #059669 !important;
    margin-bottom: 0.65rem !important;
}

.btn-add-cart-modern {
    background: #064E3B !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.55rem 0.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 10px rgba(6, 78, 59, 0.2) !important;
}

.btn-add-cart-modern:hover {
    background: #047857 !important;
    transform: scale(0.98) !important;
}

/* 8. Trust Badges Section (3 Elegant White Cards with Circular Icons) */
.trust-badges-wrapper {
    margin: 0.35rem 0 0.25rem !important;
}

.trust-badges-card {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.55rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.trust-col {
    background: #FFFFFF !important;
    border: 1.5px solid #F1F5F9 !important;
    border-radius: 18px !important;
    padding: 1rem 0.4rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.trust-col:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
    border-color: #E2E8F0 !important;
}

.trust-col::after {
    display: none !important;
}

.trust-icon-circle {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #ECFDF5 !important;
    border: 1px solid #A7F3D0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.5rem !important;
    color: #065F46 !important;
    font-size: 1.2rem !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
}

.trust-title {
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
}

.trust-desc {
    font-size: 0.7rem !important;
    color: #64748B !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

/* Modern Curved Forest Emerald Footer (Matching Image Exactly) */
.footer-modern-emerald {
    background: #044E3B !important;
    background: radial-gradient(circle at 50% 20%, #065F46 0%, #044E3B 100%) !important;
    color: #FFFFFF !important;
    border-top-left-radius: 32px !important;
    border-top-right-radius: 32px !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 1.5rem 1rem 5.5rem !important;
    text-align: center !important;
    margin-top: 0 !important;
    box-shadow: 0 -10px 30px rgba(4, 78, 59, 0.15) !important;
}

.footer-emerald-inner {
    position: relative !important;
    z-index: 2 !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.footer-logo-wrap {
    margin-bottom: 0.75rem !important;
    display: flex !important;
    justify-content: center !important;
}

.footer-brand-lockup {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.footer-brand-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.brand-apple-svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25)) !important;
}

.footer-brand-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.footer-brand-name {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    line-height: 1.15 !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 2px !important;
}

.footer-brand-sub {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700 !important;
    margin-top: 3px !important;
    letter-spacing: 0.2px !important;
}

.footer-emerald-tagline {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    color: #6EE7B7 !important;
    margin: 0.4rem 0 1rem 0 !important;
    letter-spacing: -0.2px !important;
}

/* Decorative Leaf Divider */
.footer-leaf-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 280px !important;
    margin-bottom: 1.15rem !important;
}

.footer-leaf-divider .divider-line {
    flex: 1 !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

.footer-leaf-divider .divider-leaf-icon {
    color: #6EE7B7 !important;
    font-size: 1rem !important;
}

.footer-emerald-desc {
    font-size: 0.88rem !important;
    color: #FFFFFF !important;
    line-height: 1.6 !important;
    max-width: 320px !important;
    margin: 0 auto 1.4rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    opacity: 0.95 !important;
}

/* 3 Social Media Action Capsules */
.footer-social-capsules {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
}

.social-capsule-pill {
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 50px !important;
    padding: 0.55rem 0.95rem !important;
    color: #FFFFFF !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

.social-capsule-pill:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}

.social-capsule-pill i {
    font-size: 1.05rem !important;
}

/* Main Content Layout Spacing */
.main-content-layout {
    padding-bottom: 2rem !important;
}

/* 10. Side Menu Drawer */
.side-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
    backdrop-filter: blur(3px) !important;
}

.side-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 290px !important;
    height: 100% !important;
    background: #FFFFFF !important;
    z-index: 99999 !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2) !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    direction: rtl !important;
}

.side-menu-drawer.active {
    right: 0 !important;
}

.side-menu-header {
    background: #064E3B !important;
    color: #FFFFFF !important;
    padding: 1.25rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.side-menu-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
}

.side-menu-brand h3 {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

.side-menu-close-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.side-menu-body {
    padding: 1.25rem 1rem !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
}

.side-menu-info-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

.info-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.side-menu-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
}

.side-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    color: #1E293B !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: background 0.2s !important;
}

.side-link:hover, .side-link.active {
    background: #F0FDF4 !important;
    color: #064E3B !important;
}

/* ==========================================================================
   Product Detail Sheet (Matching Uploaded Image Exactly)
   ========================================================================== */
#productDetailModal {
    direction: rtl !important;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
}

#productDetailModal.active {
    display: flex !important;
}

#bagExplainModal {
    z-index: 100005 !important;
}

#bagExplainModal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

/* Guided Next-Step Confirmation Bottom Sheet (Matching Reference Image 100%) */
#guidedNextStepModal {
    direction: rtl !important;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100006 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    align-items: flex-end;
    justify-content: center;
}

#guidedNextStepModal.active {
    display: flex !important;
}

@media (min-width: 640px) {
    #guidedNextStepModal {
        align-items: center !important;
        padding: 1.5rem !important;
    }
}

.guided-sheet-content {
    background: #FFFFFF !important;
    border-top-left-radius: 32px !important;
    border-top-right-radius: 32px !important;
    max-width: 480px !important;
    width: 100% !important;
    padding: 1.25rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 16px)) !important;
    position: relative !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2) !important;
    animation: slideUpSheet 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@media (min-width: 640px) {
    .guided-sheet-content {
        border-radius: 30px !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
    }
}

.guided-close-btn {
    position: absolute !important;
    top: 1.2rem !important;
    left: 1.2rem !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #F1F5F9 !important;
    border: none !important;
    color: #0F172A !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.guided-close-btn:hover {
    background: #E2E8F0 !important;
    transform: scale(1.06) !important;
}

/* Success Festive Art */
.guided-success-art-wrap {
    position: relative !important;
    width: 120px !important;
    height: 120px !important;
    margin: 0.5rem auto 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.guided-floating-particles {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
}

.guided-floating-particles .particle {
    position: absolute !important;
    font-size: 1rem !important;
    animation: floatParticle 3s infinite ease-in-out alternate !important;
}

.p-leaf-1 { top: 10%; left: -10%; transform: rotate(-25deg); font-size: 1.15rem !important; animation-delay: 0.2s !important; }
.p-spark-1 { top: -5%; right: 5%; font-size: 0.9rem !important; animation-delay: 0.5s !important; }
.p-leaf-2 { top: 5%; right: -12%; transform: rotate(30deg); font-size: 1.1rem !important; animation-delay: 0.8s !important; }
.p-confetti-1 { bottom: 15%; left: -8%; color: #F59E0B; font-size: 1.2rem !important; }
.p-spark-2 { bottom: 8%; right: -6%; font-size: 0.95rem !important; animation-delay: 1.1s !important; }
.p-leaf-3 { bottom: 2%; left: 10%; transform: rotate(15deg); font-size: 0.95rem !important; animation-delay: 0.4s !important; }

@keyframes floatParticle {
    0% { transform: translateY(0px) scale(0.95); }
    100% { transform: translateY(-6px) scale(1.05); }
}

.guided-success-ring-outer {
    width: 106px !important;
    height: 106px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(236, 253, 245, 0.8) 0%, rgba(209, 250, 229, 0.4) 70%, transparent 100%) !important;
    border: 2px dashed rgba(16, 185, 129, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.guided-success-ring-inner {
    width: 86px !important;
    height: 86px !important;
    border-radius: 50% !important;
    background: #ECFDF5 !important;
    border: 3px solid #A7F3D0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.18) !important;
}

.guided-success-check-circle {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    font-size: 1.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

/* Title */
.guided-main-title {
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    margin: 0.75rem 0 0.65rem !important;
    letter-spacing: -0.5px !important;
}

/* Product Pill */
.guided-product-pill {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 6px 14px !important;
    margin: 0 auto 0.6rem !important;
}

.guided-prod-pill-img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.guided-pill-divider {
    width: 1.5px !important;
    height: 22px !important;
    background: #CBD5E1 !important;
}

.guided-prod-pill-text {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    color: #1E293B !important;
}

.guided-sub-helper-text {
    font-size: 0.88rem !important;
    color: #64748B !important;
    font-weight: 700 !important;
    margin: 0 0 1.25rem !important;
}

/* Action Buttons Column */
.guided-action-buttons-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-bottom: 0.35rem !important;
}

.guided-btn-whatsapp-primary {
    width: 100% !important;
    height: 64px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #064E3B 0%, #047857 50%, #059669 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.32) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.guided-btn-whatsapp-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(6, 78, 59, 0.4) !important;
}

.guided-btn-whatsapp-primary:active {
    transform: scale(0.98) !important;
}

.guided-btn-right-col {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    text-align: right !important;
}

.guided-wa-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: #FFFFFF !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4) !important;
    flex-shrink: 0 !important;
}

.guided-btn-text-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
}

.guided-btn-main-label {
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    line-height: 1.2 !important;
}

.guided-btn-sub-label {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #A7F3D0 !important;
    margin-top: 2px !important;
}

.guided-btn-arrow-icon {
    color: #A7F3D0 !important;
    font-size: 1.1rem !important;
}

/* Secondary Button: Continue Shopping */
.guided-btn-continue-card {
    width: 100% !important;
    height: 64px !important;
    border-radius: 20px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #059669 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.guided-btn-continue-card:hover {
    background: #F0FDF4 !important;
    transform: translateY(-2px) !important;
}

.guided-btn-continue-card:active {
    transform: scale(0.98) !important;
}

.guided-bag-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: #ECFDF5 !important;
    color: #059669 !important;
    font-size: 1.35rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.guided-btn-main-label-dark {
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    line-height: 1.2 !important;
}

.guided-btn-sub-label-dark {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #64748B !important;
    margin-top: 2px !important;
}

.modal-bottom-bar-indicator {
    width: 110px !important;
    height: 4px !important;
    background: #E2E8F0 !important;
    border-radius: 10px !important;
    margin: 1.25rem auto 0 !important;
}

@media (min-width: 640px) {
    #productDetailModal {
        align-items: center !important;
        padding: 1.5rem !important;
    }
}

.product-modal-sheet {
    background: #FFFFFF !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    max-width: 480px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    max-height: 92vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); opacity: 0.5; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
    .product-modal-sheet {
        border-radius: 28px !important;
        animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
}

@keyframes modalScaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-drag-handle {
    width: 44px !important;
    height: 5px !important;
    background: #CBD5E1 !important;
    border-radius: 10px !important;
    margin: 12px auto 4px !important;
}

.product-sheet-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 0.4rem 1.25rem 0.5rem !important;
    background: #FFFFFF !important;
    border-bottom: none !important;
}

.product-sheet-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    text-align: right !important;
}

.product-sheet-title {
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    letter-spacing: -0.01em !important;
}

.product-sheet-title .text-emerald {
    color: #059669 !important;
    font-size: 1.15rem !important;
}

.product-sheet-badge {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
}

.product-sheet-badge i {
    color: #10B981 !important;
    font-size: 0.92rem !important;
}

.sheet-close-circle-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.sheet-close-circle-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

.product-sheet-body {
    padding: 0.4rem 1.25rem 0.85rem !important;
    overflow-y: auto !important;
    flex: 1 !important;
}

.product-sheet-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: 195px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #F8FAFC !important;
    margin-bottom: 0.85rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #F1F5F9 !important;
}

.product-sheet-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.product-sheet-img-wrap img.hidden-modal-img {
    display: none !important;
    height: 0 !important;
}

.img-corner-leaf-badge {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(6, 78, 59, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Price & Stepper Box */
.modal-price-stepper-box {
    background: #FFFFFF !important;
    border: 1.5px solid #F1F5F9 !important;
    border-radius: 20px !important;
    padding: 0.75rem 0.85rem !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.95rem !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
}

.modal-price-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    flex-shrink: 0 !important;
}

.modal-unit-price-val {
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    color: #0F172A !important;
    line-height: 1.1 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.modal-unit-price-val .iqd-unit {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #64748B !important;
}

.modal-unit-price-sub {
    font-size: 0.76rem !important;
    color: #94A3B8 !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
}

.modal-stepper-capsule {
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 50px !important;
    padding: 4px 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    flex: 1 !important;
    max-width: 220px !important;
}

.stepper-circle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #64748B !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.stepper-circle-btn.plus-btn {
    color: #059669 !important;
}

.stepper-circle-btn:active {
    transform: scale(0.92) !important;
}

.stepper-text-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 70px !important;
}

.stepper-weight-text {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    color: #0F172A !important;
    line-height: 1.1 !important;
}

.stepper-price-text {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    color: #059669 !important;
    margin-top: 1px !important;
}

/* Section Title */
.modal-section-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    margin-bottom: 0.65rem !important;
    flex-direction: row !important;
}

.modal-section-h4 {
    font-size: 0.96rem !important;
    font-weight: 900 !important;
    color: #0F172A !important;
    margin: 0 !important;
}

.modal-section-icon-badge {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #ECFDF5 !important;
    color: #059669 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
}

/* Weight Presets Row */
.modal-weight-chips-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.95rem !important;
}

.modal-weight-pill-btn {
    border-radius: 50px !important;
    padding: 0.6rem 0.5rem !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    border: 1.5px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #334155 !important;
}

.modal-weight-pill-btn.active {
    background: #ECFDF5 !important;
    border-color: #10B981 !important;
    color: #064E3B !important;
    font-weight: 900 !important;
}

.modal-weight-pill-btn.active i {
    color: #10B981 !important;
    font-size: 0.9rem !important;
}

/* Add Separate Bag Card */
.add-separate-bag-card {
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 18px !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.4rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.add-separate-bag-card:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

.add-bag-icon-plus {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    background: #ECFDF5 !important;
    color: #059669 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    flex-shrink: 0 !important;
}

.add-bag-text-col {
    flex: 1 !important;
    margin: 0 0.75rem !important;
    text-align: right !important;
}

.add-bag-title {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    line-height: 1.2 !important;
}

.add-bag-subtitle {
    font-size: 0.74rem !important;
    color: #94A3B8 !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
}

.add-bag-arrow {
    color: #64748B !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
}

/* Modal Footer */
.product-sheet-footer {
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 8px)) !important;
    background: #FFFFFF !important;
    border-top: 1px solid #F1F5F9 !important;
}

.btn-modal-add-cart-emerald {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35) !important;
    transition: all 0.2s ease !important;
}

.btn-modal-add-cart-emerald:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45) !important;
}

/* ====================================================
   Modern Cart Item Weight Controls (Distinct Header Above Stepper)
   ==================================================== */
.cart-weight-box-modern {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 0.4rem 0.55rem !important;
    margin-bottom: 0.45rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
}

.cart-weight-header-distinct {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.cart-weight-title {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    color: #065F46 !important;
    background: #ECFDF5 !important;
    border: 1px solid #A7F3D0 !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
}

.cart-weight-title i {
    color: #059669 !important;
    font-size: 0.78rem !important;
}

.cart-stepper-capsule-modern {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
    border: 1.5px solid #059669 !important;
    border-radius: 20px !important;
    padding: 2px 6px !important;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.12) !important;
    width: 100% !important;
    max-width: 175px !important;
    box-sizing: border-box !important;
}

.cart-step-mini-btn {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ECFDF5 !important;
    color: #047857 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.cart-step-mini-btn:hover {
    background: #059669 !important;
    color: #FFFFFF !important;
}

.cart-step-mini-btn:active {
    transform: scale(0.9) !important;
}

.cart-weight-pill-val {
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    color: #064E3B !important;
    padding: 0 0.55rem !important;
    min-width: 68px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* ======================================================
   World-Class Product Image Placeholder (When Deleted / Missing)
   ====================================================== */
.product-img-placeholder-card {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: linear-gradient(145deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1.5px dashed #CBD5E1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    box-sizing: border-box;
    text-align: center;
    user-select: none;
    transition: all 0.25s ease;
}

.product-card-modern:hover .product-img-placeholder-card,
.product-card:hover .product-img-placeholder-card {
    background: linear-gradient(145deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: #86EFAC;
    transform: scale(1.02);
}

.placeholder-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    color: #059669;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.product-card-modern:hover .placeholder-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    color: #047857;
}

.placeholder-tag-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.modal-img-placeholder {
    width: 100% !important;
    height: 100% !important;
    min-height: 195px !important;
    background: linear-gradient(145deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    border: 2px dashed #CBD5E1 !important;
    border-radius: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    color: #64748B !important;
    text-align: center !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}

.modal-img-placeholder i {
    font-size: 1.8rem;
    color: #059669;
}

.modal-img-placeholder span {
    font-size: 0.88rem;
    font-weight: 800;
    color: #334155;
}


