/* ============================================
   AEEP BOUTIQUE - Styles CSS
   Association des Élèves et Étudiants du Pongala
   Couleurs basées sur le logo : Jaune/Or, Vert, Orange, Bleu
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --primary-yellow: #F5B800;
    --primary-yellow-light: #FFD54F;
    --primary-yellow-dark: #C49000;
    --primary-yellow-pale: #FFF8E1;
    --primary-green: #2E8B57;
    --primary-green-light: #4CAF50;
    --primary-green-dark: #1B5E20;
    --primary-green-pale: #E8F5E9;
    --primary-orange: #FF6B00;
    --primary-orange-light: #FF9800;
    --primary-orange-dark: #E65100;
    --primary-orange-pale: #FFF3E0;
    --primary-blue: #1E88E5;
    --primary-blue-light: #42A5F5;
    --primary-blue-dark: #1565C0;
    --primary-blue-pale: #E3F2FD;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    --text-dark: #1A1A1A;
    --text-light: #757575;
    --black: #0D0D0D;
    --success: #2E8B57;
    --warning: #F5B800;
    --danger: #D32F2F;
    --info: #1E88E5;
    --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-yellow: 0 4px 20px rgba(245, 184, 0, 0.35);
    --shadow-green: 0 4px 20px rgba(46, 139, 87, 0.3);
    --shadow-orange: 0 4px 20px rgba(255, 107, 0, 0.3);
    --shadow-blue: 0 4px 20px rgba(30, 136, 229, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-full: 50%;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: var(--font-primary); color: var(--text-dark); background-color: var(--off-white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-sm); }
.section { padding: var(--spacing-xl) 0; }
.section-title { font-family: var(--font-primary); font-size: 1.8rem; font-weight: 800; color: var(--text-dark); text-align: center; margin-bottom: var(--spacing-md); position: relative; text-transform: uppercase; letter-spacing: 1px; }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-orange)); margin: var(--spacing-xs) auto 0; border-radius: 3px; }
.text-center { text-align: center !important; }
.pt-30 { padding-top: 30px !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 18px; font-size: 0.8rem; font-weight: 600; border-radius: 6px; transition: all var(--transition-normal); cursor: pointer; text-transform: capitalize; letter-spacing: 0.5px; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left var(--transition-slow); }
.btn:hover::before { left: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange)); color: var(--black); box-shadow: var(--shadow-yellow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(245, 184, 0, 0.4); }
.btn-green { background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)); color: var(--white); box-shadow: var(--shadow-green); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4); }
.btn-gold { background: linear-gradient(135deg, var(--primary-yellow), var(--primary-yellow-dark)); color: var(--black); box-shadow: var(--shadow-yellow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(245, 184, 0, 0.4); }
.btn-blue { background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark)); color: var(--white); box-shadow: var(--shadow-blue); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4); }
.btn-outline { background: transparent; border: 1px solid var(--primary-green); color: var(--primary-green); padding: 7px 17px; }
.btn-outline:hover { background: var(--primary-green); color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: 0.7rem; }
.btn-lg { padding: 10px 22px; font-size: 0.85rem; }

/* === Header === */
.header { background: var(--white); box-shadow: var(--shadow-md); position: sticky; top: 0; z-index: 1000; }
.header-top { background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, var(--primary-yellow-dark) 100%); color: var(--white); padding: 6px 0; font-size: 0.75rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--spacing-xs); }
.header-top-left { display: flex; align-items: center; gap: var(--spacing-sm); }
.header-top-left span { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.header-top-right { font-weight: 600; font-size: 0.75rem; }
.header-main { padding: 8px 0; background: var(--white); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-sm); }
.logo { display: flex; align-items: center; gap: var(--spacing-xs); }
.logo img { height: 55px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.logo-text { font-family: var(--font-primary); font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-transform: uppercase; letter-spacing: 1px; }
.search-bar { flex: 1; max-width: 400px; position: relative; }
.search-bar input { width: 100%; padding: 10px 45px 10px 16px; border: 1px solid var(--medium-gray); border-radius: 20px; font-size: 0.85rem; transition: all var(--transition-fast); background: var(--light-gray); }
.search-bar input:focus { border-color: var(--primary-yellow); background: var(--white); box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15); }
.search-bar button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange)); color: var(--black); width: 36px; height: 36px; border-radius: var(--border-radius-full); display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); font-size: 0.95rem; }
.search-bar button:hover { transform: translateY(-50%) scale(1.05); box-shadow: var(--shadow-yellow); }
.header-actions { display: flex; align-items: center; gap: var(--spacing-sm); }
.header-action { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-dark); font-size: 0.7rem; font-weight: 600; transition: all var(--transition-fast); position: relative; padding: 6px 10px; border-radius: 6px; }
.header-action:hover { color: var(--primary-green); background: var(--primary-green-pale); }
.header-action .icon { font-size: 1.4rem; }
.cart-count { position: absolute; top: -2px; right: -2px; background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark)); color: var(--white); font-size: 0.65rem; font-weight: 800; width: 18px; height: 18px; border-radius: var(--border-radius-full); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4); }

/* Navigation */
.nav-main { background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-light) 100%); border-top: 2px solid var(--primary-green); padding: 0; }
.nav-main .container { display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 0; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 12px 18px; font-weight: 600; font-size: 0.8rem; text-transform: capitalize; letter-spacing: 0.5px; color: var(--black); position: relative; transition: all var(--transition-fast); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary-green); transform: scaleX(0); transition: transform var(--transition-normal); }
.nav-link:hover, .nav-link.active { background: rgba(46, 139, 87, 0.15); color: var(--primary-green-dark); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* === Hero Section === */
.hero { background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-light) 50%, var(--primary-orange-pale) 100%); padding: var(--spacing-xl) 0; position: relative; overflow: hidden; min-height: 420px; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%; background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%); border-radius: 50%; opacity: 0.12; animation: float 8s ease-in-out infinite; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 50%; height: 150%; background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%); border-radius: 50%; opacity: 0.1; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; position: relative; z-index: 1; }
.hero-content { animation: slideInLeft 0.8s ease-out; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
.hero-content h1 { font-family: var(--font-primary); font-size: 2.4rem; font-weight: 900; line-height: 1.2; margin-bottom: var(--spacing-sm); color: var(--black); text-transform: uppercase; letter-spacing: 2px; }
.hero-content h1 span { display: block; background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 2.8rem; }
.hero-content p { font-size: 1rem; color: var(--text-dark); margin-bottom: var(--spacing-md); font-weight: 500; line-height: 1.6; }
.hero-buttons { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; }
.hero-image { position: relative; animation: slideInRight 0.8s ease-out; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.hero-image img { border-radius: var(--border-radius-md); box-shadow: var(--shadow-lg); transform: perspective(1000px) rotateY(-3deg); transition: transform var(--transition-slow); }
.hero-image:hover img { transform: perspective(1000px) rotateY(0deg); }
.hero-image::before { content: ''; position: absolute; top: -10px; left: -10px; right: 10px; bottom: 10px; border: 3px solid var(--primary-green); border-radius: var(--border-radius-md); z-index: -1; }

/* === Trust Badges === */
.trust-badges { background: var(--white); padding: var(--spacing-md) 0; border-bottom: 2px solid var(--primary-yellow); }
.trust-badges .container { display: flex; justify-content: center; gap: var(--spacing-lg); flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-sm) var(--spacing-md); background: linear-gradient(135deg, var(--primary-yellow-pale), var(--white)); border-radius: 8px; border-left: 3px solid var(--primary-green); transition: all var(--transition-normal); }
.trust-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.trust-badge .icon { font-size: 2rem; }
.trust-badge-content h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.trust-badge-content p { font-size: 0.7rem; color: var(--text-light); }

/* === Products Section === */
.products { background: var(--off-white); padding: var(--spacing-lg) 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.product-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; position: relative; border: 1px solid #eee; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); border-color: var(--primary-green); }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f8f8f8; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 6px; left: 6px; padding: 4px 10px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: capitalize; z-index: 2; }
.badge-nouveau { background: var(--primary-green); color: #fff; }
.badge-promo { background: #e74c3c; color: #fff; }
.badge-populaire { background: var(--primary-yellow); color: #333; }
.product-info { padding: 12px; }
.product-category { font-size: 0.7rem; color: var(--primary-green); font-weight: 600; margin-bottom: 4px; text-transform: capitalize; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; height: 2.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #333; text-transform: capitalize; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary-green); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price-current { font-size: 0.9rem; font-weight: 700; color: var(--primary-green); }
.price-old { font-size: 0.7rem; color: #999; text-decoration: line-through; }
.product-footer { display: flex; gap: 6px; }
.product-footer .btn { flex: 1; padding: 7px 10px; font-size: 0.7rem; border-radius: 4px; text-transform: capitalize; }
.product-footer .btn-primary { background: var(--primary-green); color: #fff; border: none; }
.product-footer .btn-primary:hover { background: var(--primary-green-dark); }
.product-footer .btn-outline { background: transparent; color: var(--primary-green); border: 1px solid var(--primary-green); }
.product-footer .btn-outline:hover { background: var(--primary-green); color: #fff; }
.section-cta { text-align: center; margin-top: var(--spacing-lg); padding-top: var(--spacing-md); }
.section-cta .btn { padding: 10px 26px; font-size: 0.8rem; text-transform: capitalize; display: inline-block; }

/* === Footer === */
.footer { background: linear-gradient(180deg, var(--black) 0%, #1a1a1a 100%); color: var(--white); padding-top: var(--spacing-lg); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--spacing-lg); padding-bottom: var(--spacing-lg); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: var(--spacing-xs); margin-bottom: var(--spacing-sm); }
.footer-logo img { height: 50px; }
.footer-logo span { font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; line-height: 1.6; margin-bottom: var(--spacing-sm); }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: var(--border-radius-full); background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all var(--transition-fast); }
.social-link:hover { background: var(--primary-yellow); transform: translateY(-2px); }
.footer-column h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: var(--spacing-sm); color: var(--primary-yellow); text-transform: capitalize; letter-spacing: 0.5px; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; transition: all var(--transition-fast); display: flex; align-items: center; gap: 6px; }
.footer-column ul li a:hover { color: var(--primary-yellow); transform: translateX(3px); }
.footer-bottom { padding: var(--spacing-sm) 0; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; }
.footer-bottom span { color: var(--primary-yellow); font-weight: 600; }

/* === Mobile Menu === */
.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; background: transparent; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 22px; height: 2px; background: var(--primary-green); border-radius: 2px; transition: all var(--transition-fast); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 999; opacity: 0; visibility: hidden; transition: all var(--transition-normal); backdrop-filter: blur(4px); }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu-drawer { position: fixed; top: 0; left: 0; width: 280px; max-width: 85%; height: 100%; background: var(--white); z-index: 1000; transform: translateX(-100%); transition: transform var(--transition-normal); display: flex; flex-direction: column; overflow: hidden; }
.mobile-menu-drawer.open { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-sm); background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green)); }
.mobile-menu-logo { height: 35px; width: auto; }
.mobile-menu-close { width: 32px; height: 32px; border-radius: var(--border-radius-full); background: rgba(255, 255, 255, 0.2); color: var(--white); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition-fast); border: none; }
.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.3); }
.mobile-menu-search { padding: var(--spacing-xs) var(--spacing-sm); background: var(--light-gray); display: flex; gap: 6px; }
.mobile-menu-search input { flex: 1; padding: 8px 12px; border: 1px solid var(--medium-gray); border-radius: 6px; font-size: 0.75rem; }
.mobile-menu-search input:focus { border-color: var(--primary-yellow); outline: none; }
.mobile-menu-search button { padding: 8px 12px; background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange)); color: var(--black); border-radius: 6px; font-size: 0.85rem; border: none; cursor: pointer; }
.mobile-menu-nav { flex: 1; overflow-y: auto; padding: var(--spacing-sm) 0; }
.mobile-nav-link { display: flex; align-items: center; gap: 14px; padding: 16px var(--spacing-md); color: var(--text-dark); font-weight: 600; transition: all var(--transition-fast); }
.mobile-nav-link:hover { background: var(--primary-yellow-pale); color: var(--primary-green-dark); }
.mobile-nav-link.mobile-nav-highlight { background: linear-gradient(135deg, var(--primary-green-pale), var(--primary-yellow-pale)); margin: var(--spacing-sm) var(--spacing-md); border-radius: var(--border-radius-sm); }
.mobile-nav-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.mobile-menu-divider { height: 1px; background: var(--medium-gray); margin: var(--spacing-sm) var(--spacing-md); }
.mobile-menu-title { padding: var(--spacing-xs) var(--spacing-md); font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.mobile-category-accordion { border-bottom: 1px solid var(--light-gray); position: relative; }
.mobile-category-header { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px var(--spacing-md); background: none; border: none; cursor: pointer; transition: background var(--transition-fast); text-align: left; }
.mobile-category-header:hover { background: var(--light-gray); }
.mobile-cat-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.mobile-cat-name { flex: 1; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.mobile-cat-arrow { font-size: 0.65rem; color: var(--text-light); transition: transform var(--transition-fast); }
.mobile-category-accordion.open .mobile-cat-arrow { transform: rotate(180deg); }
.mobile-category-content { display: none; background: var(--light-gray); padding: var(--spacing-xs) 0; }
.mobile-category-accordion.open .mobile-category-content { display: block; }
.mobile-subcategory-link { display: flex; align-items: center; gap: 10px; padding: 12px var(--spacing-md) 12px calc(var(--spacing-md) + 42px); color: var(--text-dark); font-size: 0.9rem; transition: all var(--transition-fast); }
.mobile-subcategory-link:hover { background: var(--primary-yellow-pale); color: var(--primary-green-dark); }
.mobile-subcategory-link.mobile-subcategory-main { font-weight: 700; color: var(--primary-green); background: var(--white); margin: 0 var(--spacing-sm) var(--spacing-xs); padding-left: var(--spacing-md); border-radius: var(--border-radius-sm); }
.mobile-sub-icon { font-size: 0.95rem; }
.mobile-category-direct-link { position: absolute; inset: 0; z-index: -1; }
.mobile-menu-footer { padding: var(--spacing-md); background: var(--light-gray); border-top: 1px solid var(--medium-gray); }
.mobile-menu-footer p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 6px; font-weight: 500; }
.search-mobile { display: none; padding: var(--spacing-sm); background: var(--white); border-top: 1px solid var(--light-gray); }

/* === Loader === */
.loader { position: fixed; inset: 0; background: var(--white); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity var(--transition-slow), visibility var(--transition-slow); }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner { width: 60px; height: 60px; border: 4px solid var(--light-gray); border-top-color: var(--primary-yellow); border-right-color: var(--primary-green); border-radius: var(--border-radius-full); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Filter Tabs === */
.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin-bottom: var(--spacing-lg); justify-content: center; }
.filter-tab { padding: 10px 20px; border-radius: var(--border-radius-sm); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all var(--transition-fast); border: none; background: var(--white); color: var(--text-dark); box-shadow: var(--shadow-sm); }
.filter-tab:hover { background: var(--primary-yellow-pale); color: var(--primary-green); }
.filter-tab.active { background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)); color: var(--white); box-shadow: var(--shadow-green); }
.filter-tab-parent { background: var(--primary-green-pale); color: var(--primary-green-dark); font-weight: 700; }
.filter-tab-parent:hover { background: var(--primary-green); color: var(--white); }
.filter-tab-parent.active { background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)); color: var(--white); }
.filter-tab-sub { background: var(--white); border: 2px solid var(--medium-gray); }
.filter-tab-sub:hover { border-color: var(--primary-yellow); background: var(--primary-yellow-pale); }
.filter-tab-sub.active { background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange)); color: var(--black); border-color: transparent; }

/* === Categories Grid === */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--spacing-md); }
.category-card { background: var(--white); padding: var(--spacing-lg); border-radius: var(--border-radius-md); text-align: center; box-shadow: var(--shadow-sm); transition: all var(--transition-normal); position: relative; overflow: hidden; }
.category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-orange)); transform: scaleX(0); transition: transform var(--transition-normal); }
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.category-card:hover::before { transform: scaleX(1); }
.category-icon { font-size: 3.5rem; margin-bottom: var(--spacing-sm); }
.category-name { font-family: var(--font-primary); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--spacing-xs); }
.category-count { font-size: 0.85rem; color: var(--text-light); }

/* === Page Header === */
.page-header { background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green)); padding: var(--spacing-xl) 0; text-align: center; color: var(--white); }
.page-header h1 { font-size: 2.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: var(--spacing-xs); }
.page-header p { font-size: 1.1rem; opacity: 0.9; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: var(--spacing-sm); font-size: 0.9rem; }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--primary-yellow); }
.breadcrumb span { color: var(--primary-yellow); }

/* === Cart & Forms === */
.cart-table { width: 100%; background: var(--white); border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.cart-table th { background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green)); color: var(--white); padding: var(--spacing-md); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.cart-table td { padding: var(--spacing-md); border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.cart-table tr:hover td { background: var(--primary-yellow-pale); }
.cart-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: var(--border-radius-sm); }
.cart-item-name { font-weight: 600; color: var(--text-dark); }
.cart-item-price { font-weight: 700; color: var(--primary-green); }
.quantity-control { display: flex; align-items: center; gap: 8px; }
.quantity-btn { width: 36px; height: 36px; border-radius: var(--border-radius-sm); background: var(--light-gray); color: var(--text-dark); font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); border: none; }
.quantity-btn:hover { background: var(--primary-yellow); }
.quantity-input { width: 50px; text-align: center; padding: 8px; border: 2px solid var(--medium-gray); border-radius: var(--border-radius-sm); font-weight: 600; }
.cart-summary { background: var(--white); border-radius: var(--border-radius-md); padding: var(--spacing-lg); box-shadow: var(--shadow-md); }
.cart-summary h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--spacing-md); padding-bottom: var(--spacing-sm); border-bottom: 2px solid var(--primary-yellow); }
.cart-summary-row { display: flex; justify-content: space-between; padding: var(--spacing-sm) 0; border-bottom: 1px solid var(--light-gray); }
.cart-summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--primary-green); border-bottom: none; padding-top: var(--spacing-md); }
.form-group { margin-bottom: var(--spacing-md); }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-control { width: 100%; padding: 14px 18px; border: 2px solid var(--medium-gray); border-radius: var(--border-radius-sm); font-size: 1rem; transition: all var(--transition-fast); }
.form-control:focus { border-color: var(--primary-yellow); box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.15); }
.form-control.is-invalid { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 6px; }

/* === Alerts === */
.alert { padding: var(--spacing-md); border-radius: var(--border-radius-sm); margin-bottom: var(--spacing-md); font-weight: 500; }
.alert-success { background: var(--primary-green-pale); color: var(--primary-green-dark); border-left: 4px solid var(--primary-green); }
.alert-warning { background: var(--primary-yellow-pale); color: var(--primary-yellow-dark); border-left: 4px solid var(--primary-yellow); }
.alert-danger { background: #FFEBEE; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-info { background: var(--primary-blue-pale); color: var(--primary-blue-dark); border-left: 4px solid var(--primary-blue); }

/* === Empty State === */
.empty-state { text-align: center; padding: var(--spacing-2xl); }
.empty-state-icon { font-size: 5rem; margin-bottom: var(--spacing-md); opacity: 0.3; }
.empty-state h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--spacing-sm); color: var(--text-dark); }
.empty-state p { color: var(--text-light); margin-bottom: var(--spacing-lg); }

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h1 span { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 500px; margin: 0 auto; }
    .hero-image::before { display: none; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top-left { display: none; }
    .search-bar { display: none; }
    .search-mobile { display: block; }
    .menu-toggle { display: flex; }
    .nav-main { display: none; }
    .hero { padding: var(--spacing-xl) 0; min-height: auto; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content h1 span { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero-image img { transform: none; }
    .trust-badges .container { flex-direction: column; gap: var(--spacing-md); }
    .trust-badge { width: 100%; justify-content: center; }
    .section-title { font-size: 1.5rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-info { padding: 8px; }
    .product-category { font-size: 0.6rem; }
    .product-name { font-size: 0.75rem; height: 1.9em; }
    .price-current { font-size: 0.85rem; }
    .price-old { font-size: 0.6rem; }
    .product-footer .btn { padding: 5px 6px; font-size: 0.6rem; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { max-width: 100%; }
    .footer-social { justify-content: center; }
    .footer-column ul li a { justify-content: center; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-sm); }
    .category-card { padding: var(--spacing-md); }
    .category-icon { font-size: 2.5rem; }
    .category-name { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content h1 span { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .product-card { border-radius: 6px; }
    .product-badge { padding: 2px 6px; font-size: 0.55rem; top: 4px; left: 4px; }
    .product-info { padding: 6px; }
    .product-category { font-size: 0.55rem; margin-bottom: 2px; }
    .product-name { font-size: 0.7rem; margin-bottom: 4px; }
    .price-current { font-size: 0.8rem; }
    .product-footer { gap: 3px; }
    .product-footer .btn { padding: 4px 5px; font-size: 0.55rem; }
    .btn { padding: 10px 16px; font-size: 0.8rem; }
    .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
}

@media (min-width: 769px) {
    .mobile-menu-drawer, .mobile-menu-overlay { display: none !important; }
}

/* === Print === */
@media print {
    .header, .footer, .mobile-menu-drawer, .mobile-menu-overlay, .btn { display: none !important; }
    body { background: white; color: black; }
}

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUp 0.5s ease forwards; }

/* === Mobile Bottom Navigation === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: var(--border-radius-sm);
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-green);
    background: var(--primary-green-pale);
}

.mobile-bottom-nav .nav-item .nav-icon {
    font-size: 1.4rem;
}

.mobile-bottom-nav .nav-item-main {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    color: var(--black);
    border-radius: var(--border-radius-md);
    margin-top: -20px;
    padding: 12px 16px;
    box-shadow: var(--shadow-yellow);
}

.mobile-bottom-nav .nav-item-main:hover {
    background: linear-gradient(135deg, var(--primary-yellow-light), var(--primary-yellow));
    color: var(--black);
}

.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: var(--border-radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* === Scroll to Top Button === */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 997;
    box-shadow: var(--shadow-green);
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.5);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    .scroll-to-top {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* === Auth Styles - Shared === */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-yellow-pale) 0%, var(--off-white) 100%);
}

.auth-container { width: 100%; max-width: 420px; }
.auth-container-lg { max-width: 520px; }

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.auth-header { text-align: center; margin-bottom: var(--spacing-md); }
.auth-logo img { height: 60px; margin: 0 auto var(--spacing-sm); }
.auth-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.auth-header p { font-size: 0.85rem; color: var(--text-light); }

/* Auth Form Styles */
.auth-form .form-group { margin-bottom: var(--spacing-sm); }
.auth-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: var(--off-white);
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
    outline: none;
}

.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 45px; }
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
}
.toggle-password:hover { opacity: 1; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.75rem;
}
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary-green); }
.checkbox-label a { color: var(--primary-green); font-weight: 600; }
.checkbox-label a:hover { text-decoration: underline; }

.forgot-link { color: var(--primary-green); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

.btn-block { width: 100%; justify-content: center; }

.auth-divider {
    text-align: center;
    margin: var(--spacing-md) 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--medium-gray);
}
.auth-divider span {
    background: var(--white);
    padding: 0 12px;
    position: relative;
    color: var(--text-light);
    font-size: 0.75rem;
}

.auth-footer { text-align: center; }
.auth-footer p { font-size: 0.8rem; color: var(--text-light); margin-bottom: var(--spacing-xs); }

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-error { background: #fee; color: #c00; border: 1px solid #fcc; }
.alert-success { background: #efe; color: #060; border: 1px solid #cfc; }

/* === Account Sidebar Styles === */
.account-section { padding: var(--spacing-md) 0; background: var(--off-white); min-height: calc(100vh - 200px); }

.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--spacing-md); align-items: start; }

.account-sidebar {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    padding: var(--spacing-md);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--black);
    flex-shrink: 0;
}

.user-info { overflow: hidden; }
.user-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info p { font-size: 0.7rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { padding: var(--spacing-sm); }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover { background: var(--primary-green-pale); color: var(--primary-green); }
.nav-item.active { background: var(--primary-green); color: white; }
.nav-icon { font-size: 1.1rem; }
.nav-divider { height: 1px; background: var(--light-gray); margin: var(--spacing-xs) 0; }
.nav-logout { color: var(--danger); }
.nav-logout:hover { background: #fee; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

/* Header user icon */
.header-user .icon { background: var(--primary-green-pale); border-radius: 50%; padding: 2px; }

/* Mobile Nav Styles */
.mobile-nav-cart { background: var(--primary-yellow-pale); margin-top: 8px; }

@media (max-width: 768px) {
    .sidebar-toggle { display: flex; }
    .account-layout { grid-template-columns: 1fr; }
    
    .account-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85%;
        height: 100%;
        z-index: 999;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .account-sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .sidebar-close { display: flex; }
    
    .auth-section { padding: var(--spacing-sm); align-items: flex-start; padding-top: var(--spacing-md); }
    .auth-card { padding: var(--spacing-md); border-radius: 12px; }
    .auth-logo img { height: 50px; }
    .auth-header h1 { font-size: 1.3rem; }
    .auth-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .auth-container-lg { max-width: 100%; }
    .form-options { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.toast.success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.toast.success .toast-icon {
    background: #22c55e;
    color: white;
}

.toast.error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: #ef4444;
    color: white;
}

.toast.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    background: #f59e0b;
    color: white;
}

.toast.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    background: #3b82f6;
    color: white;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--primary-green);
    color: white;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #374151;
}

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

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 12px 14px;
    }
}
