/* public/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-green: #166534;
    --primary-green-hover: #14532d;
    --dark-green: #052e16;
    --secondary-green: #dcfce7;
    --bg-light: #f8faf7;
    --bg-cream: #fbf9f4;
    --text-dark: #0f172a;
    --text-muted: #334155;
    --border-color: #cbd5e1;
    --white: #ffffff;
    --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 30px rgba(22, 101, 52, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--primary-green-hover);
}

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

/* Section Rhythm Backgrounds */
.bg-white { background-color: var(--white); }
.bg-cream { background-color: var(--bg-cream); }
.bg-sage { background-color: var(--secondary-green); }
.bg-light { background-color: var(--bg-light); }

/* Utilities */
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }

/* Responsive Utilities */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.responsive-flex-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.responsive-flex-item-lg {
    flex: 2;
    min-width: 300px;
}

.responsive-flex-item-md {
    flex: 1.5;
    min-width: 300px;
}

.responsive-flex-item-sm {
    flex: 1;
    min-width: 300px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 113, 46, 0.2);
}

.btn:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 113, 46, 0.3);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-green) !important;
    border: 2px solid var(--primary-green);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 113, 46, 0.2);
}

/* Full-Bleed Hero Section */
.hero-fullbleed-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 480px;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-fullbleed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 45, 17, 0.92) 0%, rgba(15, 45, 17, 0.75) 45%, rgba(15, 45, 17, 0.15) 100%);
    z-index: 1;
}

.hero-fullbleed-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    padding: 60px 20px;
}

/* Header */
.header-main {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    height: 55px;
    max-width: 260px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 580px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease;
    background: var(--white);
}

.search-bar:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(37, 113, 46, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: var(--text-dark);
}

.search-bar select {
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 0 16px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-family: inherit;
    outline: none;
    font-weight: 500;
    cursor: pointer;
}

.search-bar button {
    background: var(--primary-green);
    border: none;
    color: var(--white);
    padding: 0 22px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.search-bar button:hover {
    background: var(--primary-green-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.action-item:hover {
    transform: translateY(-1px);
}

.action-icon {
    font-size: 24px;
    color: var(--primary-green);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e11d48;
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
    margin-left: 10px;
}

.mobile-menu-toggle:focus {
    outline: none;
}

/* Navigation Bar */
.nav-wrapper {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

.nav-inner {
    display: flex;
    align-items: center;
}

.shop-by-category {
    background: var(--primary-green);
    color: var(--white);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    transition: background-color 0.25s ease;
}

.shop-by-category:hover {
    background: var(--primary-green-hover);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0 0 0 25px;
    padding: 0;
    gap: 24px;
}

.nav-links > li > a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 0;
    display: block;
    transition: color 0.2s ease;
}

.nav-links > li > a:hover {
    color: var(--primary-green);
}

/* Mega Menu / Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-radius: 0 0 10px 10px;
    padding: 10px 0;
    z-index: 1001;
    list-style: none;
    border: 1px solid var(--border-color);
    margin: 0;
}

.has-dropdown:hover > .dropdown {
    display: block;
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown li a:hover {
    background-color: var(--secondary-green);
    color: var(--primary-green);
    padding-left: 24px;
}

/* Sub-level dropdown styling & hover bridges */
@media (min-width: 993px) {
    .dropdown .has-dropdown > .dropdown {
        top: -5px;
        left: 100%;
        border-radius: 10px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    }
    .has-dropdown > .dropdown::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
    }
    .dropdown .has-dropdown > .dropdown::before {
        content: '';
        position: absolute;
        top: 0;
        left: -15px;
        width: 15px;
        height: 100%;
    }
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.product-image-wrap {
    padding: 20px;
    text-align: center;
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

/* Equal Height Recipe & Blog Cards */
.recipe-card, .blog-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.recipe-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-green);
}

.card-img-wrap {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

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

.recipe-card:hover .card-img-wrap img, .blog-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-body-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px 0;
    flex-grow: 1;
    text-align: justify;
}

.card-btn-footer {
    margin-top: auto;
    width: 100%;
}

.product-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.product-title:hover {
    color: var(--primary-green);
}

.product-unit {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-green);
}

.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    background: var(--white);
    color: var(--primary-green) !important;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 16px;
    transition: all 0.25s ease;
}

.product-card:hover .add-to-cart-btn {
    background: var(--primary-green);
    color: var(--white) !important;
}

/* Section Titles & Section Dividers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Features & Trust Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-green);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-green);
    line-height: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Customer Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-green);
}

.avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary-green);
    color: var(--primary-green);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #bbf7d0;
}

/* Footer */
.site-footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-logo-badge {
    background: var(--white);
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-badge img {
    height: 42px;
    width: auto;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    margin-top: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-widget ul li a:hover {
    color: #a3e635;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 15px;
    color: #cbd5e1;
    flex-wrap: wrap;
    gap: 15px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #ffffff !important;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE SYSTEM
   Covers all Chrome DevTools presets:
   Desktop 1920/1440/1280, iPad Pro 1024, iPad 768,
   Surface Duo 540, iPhone 14 Pro Max 430, iPhone SE 375,
   Galaxy S/Fold 280-344, Pixel 7 412, Nest Hub 1024x600
   ═══════════════════════════════════════════════════════════════ */

/* Large Desktop (1201px+) — No changes needed, base styles apply */

/* ─── Medium Desktop / Small Laptop ≤ 1200px ─── */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ─── Tablet Landscape / iPad Pro ≤ 1024px ─── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ─── Tablet Portrait / iPad ≤ 992px ─── */
@media (max-width: 992px) {
    .header-main-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    .logo {
        flex-shrink: 0;
    }
    .logo img {
        height: 45px;
        max-width: 140px;
    }
    .search-bar {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        order: 3; /* Push search bar to the bottom row */
        margin: 0;
    }
    .header-actions {
        justify-content: flex-end;
        flex-shrink: 0;
        width: auto;
        gap: 15px;
        order: 2;
    }
    .action-text {
        display: none; /* Hide text, keep only icons for account and cart on mobile */
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Navigation Drawer */
    .nav-wrapper {
        display: none; /* Hidden by default */
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        background: var(--white);
    }
    .nav-wrapper.active {
        display: block; /* Shown when toggled */
    }
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
        width: 100%;
        overflow: visible; /* Prevent horizontal scroll hiding dropdowns */
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin: 0;
        gap: 0;
    }
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links > li > a {
        padding: 14px 20px;
        width: 100%;
    }
    
    /* Mobile Shop By Category Dropdown */
    .has-dropdown.mobile-category-dropdown {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    .shop-by-category {
        width: 100%;
        justify-content: space-between;
        padding: 14px 20px;
    }
    .mobile-category-dropdown > .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        padding: 0;
    }
    .mobile-category-dropdown > .dropdown > li > a {
        padding: 12px 30px;
        border-bottom: 1px solid #f1f5f9;
    }
    .dropdown .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        background: #f8faf7;
    }
    .dropdown .dropdown li a {
        padding: 10px 40px;
        font-size: 13px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .hero-fullbleed-wrapper {
        min-height: 400px;
    }
    .hero-fullbleed-content {
        max-width: 100%;
        padding: 40px 10px;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Shop Layout Breakpoint */
    .shop-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .shop-sidebar {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .shop-sidebar ul {
        max-height: 250px;
        overflow-y: auto;
    }
}

/* ─── Small Tablet / Large Phone ≤ 768px ─── */
@media (max-width: 768px) {
    /* Responsive Flex Layouts */
    .responsive-flex-container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .responsive-flex-item-lg,
    .responsive-flex-item-md,
    .responsive-flex-item-sm {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Hero */
    .hero-fullbleed-wrapper {
        min-height: 350px;
    }
    .hero-fullbleed-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    .hero-fullbleed-content p {
        font-size: 15px !important;
        margin-bottom: 25px !important;
    }

    /* Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .product-card { border-radius: 10px; }
    .product-image-wrap { height: 150px; padding: 12px; }
    .product-info { padding: 12px; }
    .product-title { font-size: 14px; }
    .product-price { font-size: 16px; }
    .add-to-cart-btn { font-size: 12px; padding: 8px 10px; }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Delivery Banner Mobile Layout */
    .delivery-banner {
        flex-direction: column !important;
        padding: 35px 25px 20px !important;
        text-align: center !important;
        min-height: auto !important;
    }
    .delivery-text {
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    .delivery-text .btn {
        margin: 0 auto;
    }
    .delivery-text div[style*="flex-wrap: wrap"] {
        justify-content: center !important;
    }
    .delivery-graphic {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        margin-top: 30px !important;
        justify-content: center !important;
    }
    .delivery-graphic img {
        max-height: 220px !important;
    }

    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    #backToTopBtn {
        width: 50px !important;
        height: 50px !important;
        bottom: 18px !important;
        left: 18px !important;
        padding: 12px !important;
    }

    /* Section Padding */
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .section-title {
        font-size: 20px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-box {
        padding: 16px;
        gap: 12px;
    }
    .feature-icon { font-size: 26px; }
    .feature-title { font-size: 14px; }
    .feature-desc { font-size: 12px; }
}

/* ─── Phablet ≤ 576px ─── */
@media (max-width: 576px) {
    /* Hide category select in search bar to save horizontal space */
    .search-bar select {
        display: none !important;
    }
    .search-bar input {
        border-radius: 8px 0 0 8px !important;
    }
    
    /* Stack newsletter form inputs */
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form input {
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }
}

/* ─── Surface Duo / Large Phone ≤ 540px ─── */
@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .feature-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 10px;
        gap: 8px;
    }
}

/* ─── Standard Phone ≤ 480px (iPhone 14, Pixel 7, Galaxy S) ─── */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    .hero-fullbleed-wrapper {
        min-height: 320px;
    }
    .hero-fullbleed-content h1 {
        font-size: 26px !important;
    }
    .hero-fullbleed-content p {
        font-size: 14px !important;
    }
    .hero-fullbleed-content {
        padding: 30px 8px;
    }

    /* Stack hero buttons */
    .hero-buttons-container {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    .hero-buttons-container .btn {
        width: 100%;
        text-align: center;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-image-wrap { height: 130px; padding: 10px; }
    .product-info { padding: 10px; }
    .product-title { font-size: 13px; }
    .product-price { font-size: 15px; }
    .product-unit { font-size: 11px; margin-bottom: 8px; }
    .add-to-cart-btn { font-size: 11px; padding: 7px 8px; }

    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Search */
    .search-bar input {
        padding: 10px 8px;
        font-size: 13px;
        min-width: 0; /* Critical to prevent flex overflow on small screens */
    }
    .search-bar button {
        padding: 0 12px;
    }

    /* Cards */
    .card-img-wrap { height: 160px; }
    .card-body-content { padding: 16px; }
    .card-body-content p { font-size: 13px; }

    /* Payment badges */
    .payment-icons {
        flex-wrap: wrap;
    }
    .payment-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Reviews */
    .review-card {
        padding: 20px;
    }
    .avatar-badge {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ─── iPhone 16 Pro Max / Large Phones ≤ 430px ─── */
@media (max-width: 430px) {
    .container {
        padding: 0 12px;
    }
    .hero-fullbleed-wrapper {
        min-height: 300px;
        background-position: center 30%;
    }
    .hero-fullbleed-content h1 {
        font-size: 24px !important;
        margin-bottom: 10px;
    }
    .hero-fullbleed-content p {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    .products-grid {
        gap: 8px;
    }
    .product-card {
        border-radius: 8px;
    }
    .product-title { 
        font-size: 12px; 
    }
    .product-price { 
        font-size: 14px; 
    }

    .section-title {
        font-size: 18px;
    }
    
    .nav-links > li > a {
        font-size: 13px;
        padding: 12px 16px;
    }

    .shop-by-category {
        padding: 12px 16px;
        font-size: 13px;
    }

    .feature-icon {
        font-size: 24px;
    }
    .feature-title {
        font-size: 13px;
    }
    
    .auth-form-wrapper {
        padding: 30px 20px !important;
    }
}

/* ─── Small Phone ≤ 375px (iPhone SE, Galaxy S mini) ─── */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    .hero-fullbleed-content h1 {
        font-size: 22px !important;
    }
    .logo img {
        height: 42px;
        max-width: 200px;
    }
    .header-actions {
        gap: 15px;
    }
    .action-item {
        font-size: 12px;
        gap: 6px;
    }
    .action-icon {
        font-size: 20px;
    }
    .section-title {
        font-size: 18px;
    }
    .feature-box {
        padding: 12px 8px;
    }
    .feature-icon { font-size: 22px; }
    .feature-title { font-size: 13px; }
    .feature-desc { font-size: 11px; }
}

/* ─── Galaxy Fold / Ultra-Small ≤ 320px ─── */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-image-wrap { height: 180px; }
    .hero-fullbleed-content h1 {
        font-size: 20px !important;
    }
    .hero-fullbleed-content p {
        font-size: 13px !important;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        gap: 12px;
        margin-left: 10px;
    }
    .nav-links > li > a {
        font-size: 12px;
        padding: 10px 0;
    }
    .shop-by-category {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ─── Nest Hub (1024x600, landscape, touch) ─── */
@media (max-width: 1024px) and (max-height: 650px) {
    .hero-fullbleed-wrapper {
        min-height: 300px;
    }
    .hero-fullbleed-content h1 {
        font-size: 30px !important;
    }
    .hero-fullbleed-content {
        padding: 25px 10px;
    }
}

/* ─── User Notification / Toast System ─── */
.notification-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification-toast {
    background: #1a5632;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
    max-width: 350px;
    border-left: 4px solid #a3e635;
}

.notification-toast.info {
    background: #0f172a;
    border-left-color: #3b82f6;
}

.notification-toast.warning {
    background: #7c2d12;
    border-left-color: #f97316;
}

.notification-toast.error {
    background: #7f1d1d;
    border-left-color: #ef4444;
}

.notification-toast .toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    font-size: 16px;
    line-height: 1;
}

.notification-toast .toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

