@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900;1,6..12,400;1,6..12,600;1,6..12,700&display=swap');

:root {
    /* TYPOGRAPHY: PHƯƠNG ÁN 3 - PHONG CÁCH Y TẾ, THÂN THIỆN */
    --font-heading: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-btn: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Brand NATURAL 5-Color Palette */
    --color-gold: #cca633;        /* 1. Mustard Gold */
    --color-lime: #a9bf39;        /* 2. Fresh Lime Green */
    --color-leaf: #688c2a;        /* 3. Leaf Green (Primary) */
    --color-forest: #496619;      /* 4. Forest Dark Green */
    --color-brown: #735639;       /* 5. Warm Earth Brown */

    /* Complementary Medical & UI Accent Palette */
    --color-cyan: #0284c7;        /* Medical Cyan / Blue */
    --color-rose: #e11d48;        /* Beauty / Hot Rose */
    --color-purple: #7c3aed;      /* VIP Purple */
    --color-amber: #ea580c;       /* Sunset Amber */
    --color-emerald: #059669;     /* Verified Emerald */

    /* Semantic mappings */
    --primary-color: #688c2a;
    --primary-hover: #496619;
    --accent-color: #cca633;
    --accent-hover: #a9bf39;
    --brand-brown: #735639;
    
    --text-color: #2c3024;
    --text-light: #735639;
    --bg-light: #f8f9ea;
    --bg-warm: #faf7f2;
    --bg-white: #ffffff;
    --border-color: #e5e4d8;
    --danger-color: #dc2626;
    --success-color: #688c2a;
    --shadow-sm: 0 2px 4px rgba(115, 86, 57, 0.06);
    --shadow-md: 0 4px 12px rgba(73, 102, 25, 0.08);
    --shadow-lg: 0 12px 24px rgba(73, 102, 25, 0.12);
    --border-radius: 14px;
    --border-radius-sm: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6,
.brand-name, .logo, .navbar-brand, .section-title, .modal-title,
.product-card-title, .category-card-title, th, .fw-bold {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

button, .btn, .pill-btn, .nav-link, .auth-submit-btn, .badge, .slot-chip, .pill-badge {
    font-family: var(--font-btn);
    letter-spacing: 0.01em;
}

input, textarea, select, .form-control, .form-select, p, span, li, a, td, label {
    font-family: var(--font-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* 5-Color & Complementary Utilities */
.bg-gold { background-color: var(--color-gold) !important; color: #fff !important; }
.bg-lime { background-color: var(--color-lime) !important; color: #fff !important; }
.bg-leaf { background-color: var(--color-leaf) !important; color: #fff !important; }
.bg-forest { background-color: var(--color-forest) !important; color: #fff !important; }
.bg-brown { background-color: var(--color-brown) !important; color: #fff !important; }
.bg-cyan { background-color: var(--color-cyan) !important; color: #fff !important; }
.bg-rose { background-color: var(--color-rose) !important; color: #fff !important; }
.bg-purple { background-color: var(--color-purple) !important; color: #fff !important; }
.bg-amber { background-color: var(--color-amber) !important; color: #fff !important; }
.bg-emerald { background-color: var(--color-emerald) !important; color: #fff !important; }

.text-gold { color: var(--color-gold) !important; }
.text-lime { color: var(--color-lime) !important; }
.text-leaf { color: var(--color-leaf) !important; }
.text-forest { color: var(--color-forest) !important; }
.text-brown { color: var(--color-brown) !important; }
.text-cyan { color: var(--color-cyan) !important; }
.text-rose { color: var(--color-rose) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-amber { color: var(--color-amber) !important; }
.text-emerald { color: var(--color-emerald) !important; }

.border-gold { border-color: var(--color-gold) !important; }
.border-lime { border-color: var(--color-lime) !important; }
.border-leaf { border-color: var(--color-leaf) !important; }
.border-forest { border-color: var(--color-forest) !important; }
.border-brown { border-color: var(--color-brown) !important; }
.border-cyan { border-color: var(--color-cyan) !important; }
.border-rose { border-color: var(--color-rose) !important; }
.border-purple { border-color: var(--color-purple) !important; }

.badge-cyan { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-rose { background-color: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }
.badge-purple { background-color: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.badge-amber { background-color: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-emerald { background-color: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }

.natural-gradient-cyan { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important; color: #fff; }
.natural-gradient-rose { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important; color: #fff; }
.natural-gradient-purple { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important; color: #fff; }
.natural-gradient-amber { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important; color: #fff; }
.natural-gradient-emerald { background: linear-gradient(135deg, #059669 0%, #047857 100%) !important; color: #fff; }

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-leaf) 0%, var(--color-forest) 100%);
    color: var(--bg-white);
    border: 1px solid var(--color-forest);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-leaf) 100%);
    box-shadow: 0 4px 12px rgba(104, 140, 42, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-gold) 0%, #e0b83e 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(73, 102, 25, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #e0b83e 0%, var(--color-gold) 100%);
    box-shadow: 0 4px 12px rgba(204, 166, 51, 0.35);
}

.btn-lime {
    background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-leaf) 100%);
    color: #fff;
}

.btn-brown {
    background: linear-gradient(135deg, var(--color-brown) 0%, #5a412b 100%);
    color: #fff;
}

.text-primary {
    color: var(--color-leaf) !important;
}

.text-accent {
    color: var(--color-gold) !important;
}

.font-bold {
    font-weight: 700;
}

/* =========================================
   HEADER STYLES (Circa Layout)
   ========================================= */
.store-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Topbar */
.header-topbar {
    background: linear-gradient(90deg, #f3f5db 0%, #faf6ee 100%);
    font-size: 0.85rem;
    padding: 6px 0;
    color: var(--color-brown);
    border-bottom: 1px solid rgba(204, 166, 51, 0.2);
}

.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 18px;
    font-weight: 500;
}

.topbar-link {
    color: var(--color-brown);
}

.topbar-link:hover {
    color: var(--color-forest);
    font-weight: 600;
}

/* Main Header */
.header-main {
    padding: 14px 0;
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-leaf) 65%, #5a7d22 100%);
    border-bottom: 2px solid var(--color-gold);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-logo img,
.header-logo .site-main-logo {
    height: 54px;
    max-height: 58px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
}

.header-logo span {
    color: var(--accent-color);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    border: 2px solid var(--bg-white);
    background-color: var(--bg-white);
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}

.search-btn {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.search-btn:hover {
    color: var(--accent-color);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    color: var(--bg-white);
    cursor: pointer;
}

.action-item i {
    font-size: 1.18rem;
    margin-bottom: 3px;
}

.action-item:hover {
    color: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Navigation */
.header-nav {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    flex-wrap: nowrap !important;
    gap: 2px;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: block;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--text-color);
    white-space: nowrap !important;
    transition: color 0.15s, background-color 0.15s;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ======================================================== */
/* DESKTOP MEGA MENU DROPDOWN (HOVER ON DANH MỤC SẢN PHẨM) */
/* ======================================================== */
.header-nav .container {
    position: relative;
}

.nav-item.nav-category {
    position: static;
    background: linear-gradient(135deg, #496619 0%, #688c2a 100%);
    display: flex;
    align-items: stretch;
    transition: background 0.22s ease;
    flex-shrink: 0;
}

.nav-item.nav-category:hover,
.nav-item.nav-category.has-mega-menu:hover {
    background: linear-gradient(135deg, #3d5714 0%, #577821 100%);
}

.nav-category-btn {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.3px;
    padding: 12px 14px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

.nav-category-btn .nav-cat-icon-main {
    font-size: 14px;
    color: #ffffff;
}

.nav-category-btn .nav-cat-icon-arrow {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.22s ease;
}

.has-mega-menu:hover .nav-category-btn {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.has-mega-menu:hover .nav-category-btn .nav-cat-icon-arrow {
    transform: rotate(180deg);
}

.desktop-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1050;
    pointer-events: none;
}

.has-mega-menu:hover .desktop-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px 28px 18px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 28px;
}

.mega-menu-group {
    display: flex;
    flex-direction: column;
}

.mega-group-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #496619;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid #eef3e6;
    transition: color 0.15s ease;
}

.mega-group-title i {
    font-size: 11px;
    color: #8da45c;
    transition: transform 0.15s ease;
}

.mega-group-title:hover {
    color: #314411;
    text-decoration: none;
}

.mega-group-title:hover i {
    transform: translateX(3px);
    color: #496619;
}

.mega-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mega-sub-item {
    margin: 0;
}

.mega-sub-link {
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    display: block;
    transition: all 0.15s ease;
    line-height: 1.35;
    font-weight: 500;
}

.mega-sub-link:hover {
    color: #496619;
    background: #f4f8ed;
    font-weight: 600;
    padding-left: 12px;
    text-decoration: none;
}

.mega-menu-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.mega-footer-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #496619;
    text-decoration: none;
    padding: 7px 22px;
    background: #f4f8ed;
    border-radius: 20px;
    border: 1px solid #d9e6c3;
    transition: all 0.2s ease;
}

.mega-footer-btn:hover {
    background: #e9f3db;
    color: #314411;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(73, 102, 25, 0.12);
    text-decoration: none;
}

@media (max-width: 991px) {
    .desktop-mega-menu {
        display: none !important;
    }
}

.nav-item-special {
    margin-left: 6px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-link-special {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFF5EA;
    color: #B33924;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
    white-space: nowrap !important;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    border: none;
}

.nav-link-special i {
    color: #688c2a;
    font-size: 1.05rem;
}

.nav-link-special:hover {
    transform: scale(1.03);
    color: #8c2617;
    background-color: #ffe6cc;
    text-decoration: none;
}

@media (min-width: 992px) and (max-width: 1200px) {
    .nav-link {
        padding: 12px 5px !important;
        font-size: 0.80rem !important;
    }
    .nav-category-btn {
        padding: 12px 10px !important;
        font-size: 0.82rem !important;
    }
    .nav-link-special {
        padding: 5px 8px !important;
        font-size: 0.80rem !important;
    }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.store-footer {
    background-color: var(--bg-white);
    padding: 50px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* =========================================
   COMPONENTS (Cards, Badges)
   ========================================= */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title a {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.section-title a:hover {
    color: var(--primary-color);
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8a00 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.3);
    white-space: nowrap;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    height: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.35;
    height: 2.7em;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    word-break: break-word;
    min-width: 0;
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-price-box {
    margin-top: auto;
    margin-bottom: 12px;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    width: 100%;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    display: inline-block;
}

.product-old-price {
    font-size: 0.82rem;
    color: var(--text-light);
    text-decoration: line-through;
    line-height: 1.2;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--primary-light, #f0f7e6);
    color: var(--primary-color, #496619);
    border: 1px solid transparent;
    padding: 9px 10px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary.btn-add-cart {
    background: linear-gradient(135deg, var(--color-leaf, #688c2a) 0%, var(--color-forest, #496619) 100%) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-forest, #496619) !important;
}

.btn-add-cart:hover,
.btn-primary.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--color-forest, #496619) 0%, var(--color-leaf, #688c2a) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(73, 102, 25, 0.35);
}

/* Utility layout grids */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bg-white);
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-col.contact-col {
        border-left: none;
        padding-left: 0;
    }
    
    .footer-col.contact-col::before {
        display: none;
    }
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .header-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item-special {
        margin-left: 0;
        padding: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .nav-category .nav-link {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-main {
        padding: 8px 0 10px;
    }

    .header-main .container {
        gap: 10px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex: 0 0 40px;
    }

    .header-logo {
        flex: 1;
        min-width: 0;
    }

    .header-logo a {
        justify-content: flex-start !important;
    }

    .header-logo img {
        height: 42px !important;
        transform: none !important;
        width: auto;
    }

    .header-actions {
        gap: 8px;
        flex: 0 0 auto;
    }

    .action-item {
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
        font-size: 0;
    }

    .action-item i {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .cart-badge {
        top: 0;
        right: 0;
    }

    .header-search {
        order: 3;
        margin-top: 2px;
    }

    .search-form {
        min-height: 44px;
    }

    .search-input {
        min-width: 0;
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .search-btn {
        padding: 0 16px;
    }

    .header-nav {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 10px;
        border-radius: 10px;
    }

    .product-img {
        height: 130px;
        margin-bottom: 10px;
    }

    .product-name {
        font-size: 0.85rem;
        height: 2.7em;
        min-height: 2.7em;
        line-height: 1.35;
    }

    .product-price-box {
        min-height: 42px;
    }

    .product-price {
        font-size: 1rem;
    }

    .btn-add-cart {
        min-height: 40px;
        padding: 8px 4px;
        font-size: 0.78rem;
    }

    .store-main {
        min-width: 0;
    }

    .home-section {
        padding: 14px 10px;
        margin-bottom: 24px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .section-title a {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .quick-categories {
        justify-content: flex-start;
        gap: 8px;
        margin: 22px 0;
        padding: 2px 2px 12px;
        scrollbar-width: thin;
    }

    .quick-category-item {
        flex: 0 0 92px;
        min-width: 92px;
        padding: 10px 6px;
        border-radius: 10px;
    }

    .quick-category-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 8px;
        font-size: 1.25rem;
    }

    .quick-category-item h4 {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .flash-sale-section {
        padding: 12px 10px;
        margin-bottom: 24px;
        border-radius: 10px;
    }

    .flash-sale-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .flash-sale-title a {
        font-size: 0.72rem;
        padding: 5px 8px;
    }

    .hero-slider {
        margin-bottom: 20px;
    }

    .slide img {
        aspect-ratio: 16 / 8;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }

    .event-banners-section {
        margin-top: -4px;
        margin-bottom: 24px;
    }

    .event-banners-grid {
        gap: 10px;
    }

    .event-static-box {
        border-radius: 10px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 24px;
    }
    
    .header-topbar {
        display: block;
        padding: 5px 0;
        font-size: 0.7rem;
        overflow: hidden;
    }

    .header-topbar .container {
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .header-topbar .container::-webkit-scrollbar {
        display: none;
    }

    .topbar-left,
    .topbar-right {
        gap: 12px;
        flex: 0 0 auto;
    }

    .topbar-left span:first-child {
        display: inline-flex;
    }

    .topbar-left span:nth-child(2) {
        display: none;
    }

    .topbar-link {
        display: inline-block;
        padding: 2px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .store-footer {
        padding: 32px 0 16px;
        margin-top: 24px;
    }

    .customer-dropdown-menu {
        position: fixed !important;
        top: 58px !important;
        right: 10px !important;
        left: 10px !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* =========================================
   AUTH MODAL STYLES (PREMIUM UI)
   ========================================= */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    width: 800px;
    max-width: 95%;
    min-height: 420px;
    max-height: 95vh;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    position: relative;
    overflow: hidden; /* Ensure children don't bleed out of rounded corners */
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    z-index: 100;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    transform: scale(1.1);
}

/* Left Side: Forms */
.auth-form-side {
    flex: 1;
    padding: 30px 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-welcome {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.auth-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #e3342f; /* Using red like mockup, or primary var if preferred. I'll stick to primary var for brand consistency */
    color: var(--primary-color);
}

.auth-logo-center i {
    font-size: 1.8rem;
}

.auth-logo-center h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

.auth-form-container {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.pill-input {
    position: relative;
    margin-bottom: 15px;
}

.pill-input i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
    transition: color 0.3s;
}

.pill-input .pwd-help {
    left: auto;
    right: 20px;
    cursor: pointer;
}

.pill-input input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Pill shape */
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #fff;
    color: #333;
}

.pill-input input::placeholder {
    color: #bbb;
}

.pill-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 99, 28, 0.1);
    outline: none;
}

.pill-input input:focus + i {
    color: var(--primary-color);
}

.pill-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(74, 99, 28, 0.4);
}

.pill-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 99, 28, 0.5);
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background: #eaeaea;
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 15px;
    color: #aaa;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.social-text {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.auth-socials-circle {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: #666;
}

.btn-social-circle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-social-circle .fa-facebook-f { color: #3b5998; }
.btn-social-circle .fa-twitter { color: #1da1f2; }
.btn-social-circle .fa-google-plus-g { color: #db4437; }
.btn-social-circle .fa-linkedin-in { color: #007bb5; }

/* Right Side: Branding */
.auth-brand-side {
    flex: 1.1;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-brand-overlay {
    position: absolute;
    inset: 0;
    /* Using Natural Palette: #cca633, #a9bf39, #688c2a, #496619 */
    background: linear-gradient(135deg, rgba(204, 166, 51, 0.85) 0%, rgba(169, 191, 57, 0.85) 30%, rgba(104, 140, 42, 0.9) 70%, rgba(73, 102, 25, 0.95) 100%);
    z-index: 1;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.auth-logo-large {
    margin-bottom: 20px;
}

.auth-logo-large i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.auth-logo-large h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.auth-lorem {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 80%;
    margin: 0 auto;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .auth-modal {
        flex-direction: column;
        width: 100%;
        max-width: 92vw;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
    }
    
    .auth-brand-side {
        display: none !important;
    }
    
    .auth-form-side {
        width: 100%;
        padding: 28px 18px 24px;
    }

    .auth-modal-close {
        color: #4a5568 !important;
        top: 10px;
        right: 10px;
    }
    
    .auth-form-header h2 {
        font-size: 1.35rem;
    }
    
    .pill-input {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
}

/* =========================================
   CUSTOMER HEADER DROPDOWN STYLES
   ========================================= */
.customer-dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    background: #ffffff !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: #2d3748;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
}

.member-dropdown-link:hover {
    background-color: #f7fafc;
    color: var(--primary-color);
    padding-left: 22px;
}

.member-dropdown-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    transition: transform 0.2s;
}

.member-dropdown-link:hover i {
    transform: scale(1.15);
}

.member-dropdown-link span {
    flex: 1;
    line-height: 1.25;
}

/* =========================================
   NATURAL 5-COLOR PALETTE STYLING SYSTEM
   ========================================= */
.natural-gradient-hero {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-leaf) 55%, var(--color-lime) 100%) !important;
    color: #ffffff;
}

.natural-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #e2be4a 100%) !important;
    color: #ffffff;
}

.natural-gradient-brown {
    background: linear-gradient(135deg, var(--color-brown) 0%, #8c6a47 100%) !important;
    color: #ffffff;
}

.natural-gradient-lime {
    background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-leaf) 100%) !important;
    color: #ffffff;
}

.natural-sidebar-card {
    border: 1px solid rgba(115, 86, 57, 0.15) !important;
    box-shadow: 0 4px 15px rgba(115, 86, 57, 0.06) !important;
}

.natural-profile-header {
    background: linear-gradient(180deg, #f3f6dc 0%, #faf8f2 100%);
    border-bottom: 2px solid var(--color-gold);
}

.natural-menu-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent !important;
    color: var(--color-brown) !important;
    font-weight: 500;
}

.natural-menu-item.active {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-leaf) 100%) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--color-gold) !important;
    box-shadow: 0 4px 12px rgba(73, 102, 25, 0.25);
}

.natural-menu-item:hover:not(.active) {
    background: #f4f6dc !important;
    color: var(--color-forest) !important;
    border-left: 4px solid var(--color-lime) !important;
    padding-left: 1.5rem !important;
}

.badge-gold {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid var(--color-gold);
}

.badge-lime {
    background-color: #ecfccb;
    color: #3f6212;
    border: 1px solid var(--color-lime);
}

.badge-leaf {
    background-color: #dcfce7;
    color: #14532d;
    border: 1px solid var(--color-leaf);
}

.badge-forest {
    background-color: #e2e8d8;
    color: var(--color-forest);
    border: 1px solid var(--color-forest);
}

.badge-brown {
    background-color: #f5eee6;
    color: var(--color-brown);
    border: 1px solid var(--color-brown);
}

.stat-box-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(204, 166, 51, 0.4);
}

.stat-box-brown {
    background: linear-gradient(135deg, #faf7f2 0%, #f3ece3 100%);
    border: 1px solid rgba(115, 86, 57, 0.3);
}

.stat-box-lime {
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
    border: 1px solid rgba(169, 191, 57, 0.4);
}

.stat-box-leaf {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(104, 140, 42, 0.35);
}

/* =========================================================
   LIVE SEARCH AUTOCOMPLETE DROPDOWN STYLES
   ========================================================= */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(104, 140, 42, 0.25);
    z-index: 1050;
    max-height: 440px;
    overflow-y: auto;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16) !important;
    animation: searchFadeIn 0.2s ease;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-forest) !important;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover, .search-suggestion-item.active {
    background: #f4f8ec;
    color: var(--color-forest) !important;
    padding-left: 15px;
}

.search-suggestion-item .item-title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-forest);
}

.search-highlight {
    color: #0f172a;
    font-weight: 700;
    background: #eef7d5;
    padding: 0 2px;
    border-radius: 3px;
}

/* Nav Pills & Filter Tabs - Natural Leaf Theme */
.nav-pills .nav-link {
    color: #556247 !important;
    background-color: #f6f8f2;
    transition: all 0.2s ease;
    border: 1px solid #e1e8db;
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    color: #385614 !important;
    background-color: #eaf3e0 !important;
    border-color: #bad9a4 !important;
    transform: translateY(-1px);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: linear-gradient(135deg, #688c2a 0%, #496619 100%) !important;
    color: #ffffff !important;
    border: 1px solid #496619 !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 8px rgba(73, 102, 25, 0.22) !important;
}

.nav-pills .nav-link.active i,
.nav-pills .nav-link.active .badge {
    color: #ffffff !important;
}

/* =========================================================
   MOBILE MENU DRAWER & ACCORDION (LONG CHÂU STYLE)
   ========================================================= */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

@media (max-width: 991px) {
    .header-main {
        padding: 8px 0 12px;
    }

    .header-main .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        font-size: 1.6rem;
        padding: 6px 8px;
    }

    .header-logo {
        order: 2;
        display: flex;
        align-items: center;
        margin-right: auto;
        padding-left: 2px;
    }

    .header-logo a.header-logo-link {
        display: flex;
        align-items: center;
    }

    .header-logo img.site-main-logo {
        height: 42px !important;
        max-height: 44px !important;
        width: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .header-actions {
        order: 3;
        gap: 14px;
    }

    .header-search {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
    }
    
    .header-nav {
        display: none !important;
    }

    .drawer-logo {
        height: 44px !important;
        max-height: 46px !important;
        max-width: 185px !important;
        width: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .header-logo img.site-main-logo {
        height: 40px !important;
        max-height: 42px !important;
        transform: none !important;
    }
}

/* Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Offcanvas Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: #ffffff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
    will-change: transform;
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .mobile-drawer,
    .mobile-drawer-backdrop {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 64px;
    box-sizing: border-box;
    overflow: hidden;
}

.drawer-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.drawer-logo {
    height: 44px !important;
    max-height: 46px !important;
    max-width: 185px !important;
    width: auto !important;
    object-fit: contain !important;
    transform: none !important;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Auth / Member Card */
.drawer-auth-banner {
    background: linear-gradient(135deg, #496619 0%, #688c2a 100%);
    padding: 18px 18px 16px;
    color: #ffffff;
}

.auth-banner-text {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.42;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.auth-banner-buttons {
    display: flex;
    gap: 10px;
}

.btn-drawer-login {
    flex: 1;
    background: #ffffff;
    color: #496619;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s;
}

.btn-drawer-login:hover {
    background: #f4f8ed;
    transform: translateY(-1px);
}

.btn-drawer-register {
    flex: 1;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-drawer-register:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Logged-in Member Card */
.drawer-member-card {
    background: linear-gradient(135deg, #496619 0%, #688c2a 100%);
    padding: 16px 18px;
    color: #ffffff;
}

.drawer-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.drawer-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #496619;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.drawer-member-name {
    font-weight: 700;
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.drawer-member-points {
    font-size: 0.78rem;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
}

.drawer-member-quick-links {
    display: flex;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.drawer-quick-link {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.drawer-quick-link:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* Scrollable Categories Body */
.drawer-scroll-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.drawer-scroll-body::-webkit-scrollbar {
    width: 4px;
}

.drawer-scroll-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.drawer-menu-accordion {
    padding: 8px 0;
}

/* Accordion Item */
.drawer-acc-item {
    border-bottom: 1px solid #f1f5f9;
}

.drawer-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    color: #496619;
    user-select: none;
    transition: background-color 0.15s, color 0.15s;
}

.drawer-acc-header:hover {
    background-color: #f8fafc;
    color: #354a12;
}

.drawer-acc-item.active .drawer-acc-header {
    color: #496619;
}

.drawer-acc-icon {
    font-size: 14px;
    color: #496619;
    transition: transform 0.28s ease;
}

.drawer-acc-item.active .drawer-acc-icon {
    transform: rotate(180deg);
    color: #496619;
}

/* Accordion Collapse & Sub-items (Pill card boxes) */
.drawer-acc-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.drawer-acc-content {
    padding: 4px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.drawer-sub-link {
    display: block;
    padding: 11px 16px;
    background: #f0f4f9;
    border-radius: 12px;
    font-size: 0.92rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.drawer-sub-text {
    display: block;
    line-height: 1.35;
}

.drawer-sub-link:hover {
    background: #e2eaf4;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.drawer-sub-link.view-all {
    background: #f4f8ed;
    color: #496619;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px dashed #a9bf39;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 10px 16px;
    margin-top: 2px;
}

.drawer-sub-link.view-all:hover {
    background: #e9f3db;
    color: #354a12;
    transform: translateY(-1px);
}

/* Direct Links */
.drawer-direct-links {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.drawer-direct-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.drawer-direct-item:hover {
    background: #f1f5f9;
    color: #496619;
    padding-left: 18px;
}

.drawer-direct-item.highlight {
    background: #f4f8ed;
    color: #496619;
    border: 1px solid rgba(104, 140, 42, 0.25);
}

/* Drawer Sticky Footer */
.drawer-footer {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-footer-note {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    font-weight: 500;
    margin-bottom: 2px;
}

.btn-drawer-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #688c2a 0%, #496619 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(73, 102, 25, 0.25);
    transition: all 0.2s;
}

.btn-drawer-action-primary:hover {
    background: linear-gradient(135deg, #587823 0%, #384f13 100%);
    transform: translateY(-1px);
}

.btn-drawer-action-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fdfaf0;
    color: #735639 !important;
    border: 1.5px solid #cca633;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 14px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-drawer-action-call:hover {
    background: #faefce;
    color: #5a422a !important;
    transform: translateY(-1px);
}

/* ======================================================== */
/* ALPHABET QUICK LOOKUP BAR (A - Z) */
/* ======================================================== */
.alphabet-bar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.alphabet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #496619;
    background: #f4f8ed;
    border: 1px solid rgba(104, 140, 42, 0.25);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.alphabet-btn:hover {
    background: #688c2a;
    color: #ffffff !important;
    border-color: #688c2a;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(104, 140, 42, 0.25);
}

.alphabet-btn.active {
    background: linear-gradient(135deg, #688c2a 0%, #496619 100%);
    color: #ffffff !important;
    border-color: #496619;
    box-shadow: 0 3px 10px rgba(73, 102, 25, 0.35);
}

/* ======================================================== */
/* 📱 COMPREHENSIVE MOBILE RESPONSIVE ENHANCEMENTS */
/* ======================================================== */
@media (max-width: 768px) {
    /* Prevent iOS viewport auto-zoom on input focus */
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Touch target comfort */
    button, 
    .btn, 
    .nav-link, 
    .list-group-item,
    .drawer-sub-link {
        touch-action: manipulation;
    }

    /* Breadcrumbs on Mobile */
    .breadcrumb {
        font-size: 11.5px;
        padding: 6px 10px !important;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    /* Alphabet bar on mobile */
    .alphabet-bar-list {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .alphabet-bar-list::-webkit-scrollbar {
        display: none;
    }
    .alphabet-btn {
        flex: 0 0 auto;
        min-width: 30px;
        height: 30px;
        font-size: 11.5px;
        padding: 0 8px;
    }

    /* Member pages on mobile */
    .natural-sidebar-card {
        border-radius: 14px !important;
    }

    /* Modals on mobile */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
    }
    .modal-content {
        border-radius: 16px !important;
        overflow: hidden;
    }

    /* Product Grid Mobile Gaps */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .product-card {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    .product-img {
        height: 120px !important;
        margin-bottom: 6px !important;
    }

    .product-name {
        font-size: 0.80rem !important;
        height: 2.4em;
        line-height: 1.2;
    }

    .product-price {
        font-size: 0.92rem !important;
    }

    .btn-add-cart {
        min-height: 36px !important;
        font-size: 0.75rem !important;
        padding: 6px 4px !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    h4, .fs-4 {
        font-size: 1.2rem !important;
    }
    h5, .fs-5 {
        font-size: 1.05rem !important;
    }
    h6, .fs-6 {
        font-size: 0.92rem !important;
    }
}