/* =============================================
   BabyStore — Site Stylesheet v2.0
   Slim · Sleek · Animated
   ============================================= */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --pink: #ec4899;
    --pink-light: #f9a8d4;
    --purple-light: #f3e8ff;
    --bg-light: #faf5ff;
    --shadow-sm: 0 2px 8px rgba(124,58,237,0.07);
    --shadow-md: 0 8px 24px rgba(124,58,237,0.12);
    --shadow-lg: 0 20px 50px rgba(124,58,237,0.18);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; background: #fff; overflow-x: hidden; }
a { text-decoration: none; transition: color var(--transition); }

/* ─── Color Utilities ───────────────────────── */
.bg-primary, .btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; color: white !important; }
.text-primary { color: var(--primary) !important; }
.text-pink { color: var(--pink) !important; }
.text-purple-light { color: var(--primary-light) !important; }
.bg-pink { background-color: var(--pink) !important; }
.bg-purple-light { background-color: var(--purple-light) !important; }

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Glass card */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius);
}

/* ─── Top Bar ───────────────────────────────── */
.top-bar {
    font-size: 0.84rem; letter-spacing: 0.2px;
    background: linear-gradient(90deg, var(--primary), var(--pink)) !important;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: #fff; }

/* ─── Navbar ────────────────────────────────── */
.navbar { transition: padding var(--transition), box-shadow var(--transition); padding-top: 0.6rem; padding-bottom: 0.6rem; }
.navbar.scrolled { padding-top: 0.3rem; padding-bottom: 0.3rem; box-shadow: 0 4px 20px rgba(124,58,237,0.1) !important; }
.navbar-brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.navbar-brand svg { transition: transform 0.3s; }
.navbar-brand:hover svg { transform: rotate(-10deg) scale(1.1); }
.nav-link {
    font-weight: 500; font-size: 0.9rem; color: #374151 !important;
    padding: 0.45rem 0.75rem !important; border-radius: 8px; transition: all 0.2s;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 2px; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--pink));
    border-radius: 2px; transition: all 0.3s; transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active-link::after { width: 60%; }
.nav-link:hover { color: var(--primary) !important; }
.nav-icon {
    color: #374151; font-size: 1.1rem;
    padding: 8px; border-radius: 10px;
    transition: all 0.2s;
    position: relative; display: inline-flex; align-items: center; justify-content: center;
}
.nav-icon:hover { color: var(--primary); background: var(--purple-light); }

/* ─── Search ────────────────────────────────── */
.search-box { width: 280px; position: relative; }
.search-box input {
    padding-right: 44px; border: 1.5px solid #e5e7eb; border-radius: 50px;
    font-size: 0.875rem; height: 38px; transition: all 0.3s; background: #fafafa;
}
.search-box input:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
    background: white; outline: none;
}
.search-box button {
    position: absolute; right: 0; top: 0; height: 38px; width: 42px;
    border: none; background: transparent; cursor: pointer;
}
.search-results-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: white; border-radius: 14px;
    box-shadow: var(--shadow-lg); display: none; z-index: 1050;
    max-height: 380px; overflow-y: auto;
    border: 1px solid rgba(124,58,237,0.08);
}
.search-results-dropdown.show { display: block; animation: dropDown 0.2s ease; }
@keyframes dropDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.search-result-item { display: flex; align-items: center; padding: 10px 14px; color: #1a1a2e; transition: background 0.15s; gap: 12px; }
.search-result-item:hover { background: var(--purple-light); }
.search-result-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* ─── Mega Menu ─────────────────────────────── */
.mega-dropdown { position: static !important; }
.mega-menu {
    left: 0 !important; right: 0 !important; width: 100% !important; border: none !important;
    border-radius: 0 0 16px 16px !important; box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
    padding: 1.5rem !important; margin-top: 0 !important;
}
.mega-menu .dropdown-item { font-size: 0.875rem; color: #6b7280; padding: 4px 8px; border-radius: 6px; }
.mega-menu .dropdown-item:hover { background: var(--purple-light); color: var(--primary); }

/* ─── Cart Sidebar ──────────────────────────── */
.cart-sidebar {
    position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; background: white;
    z-index: 1100; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
    box-shadow: -8px 0 48px rgba(0,0,0,0.13);
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid #f3f4f6; }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 0 1.1rem; }
.cart-sidebar-footer { padding: 1rem 1.1rem; border-top: 1px solid #f3f4f6; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1090; display: none; backdrop-filter: blur(4px); }
.cart-overlay.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Cart items */
.cart-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f3f4f6; align-items: flex-start; }
.cart-img-link { flex-shrink: 0; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; border: 1.5px solid #f3f4f6; display: block; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.84rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #1a1a2e; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.cart-qty-ctrl { display: flex; align-items: center; background: #f8f9fa; border-radius: 20px; border: 1px solid #e5e7eb; overflow: hidden; }
.cart-qty-btn { width: 28px; height: 28px; border: none; background: none; font-size: 1rem; font-weight: 700; color: #7c3aed; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; line-height: 1; }
.cart-qty-btn:hover:not(:disabled) { background: #f3e8ff; }
.cart-qty-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cart-qty-val { min-width: 26px; text-align: center; font-size: 0.86rem; font-weight: 700; color: #1a1a2e; }
.cart-item-line-total { font-size: 0.9rem; font-weight: 700; color: #7c3aed; }
.cart-item-unit-price { font-size: 0.7rem; color: #9ca3af; }
.cart-remove-btn { background: none; border: none; color: #d1d5db; font-size: 0.78rem; padding: 5px 6px; cursor: pointer; flex-shrink: 0; border-radius: 7px; margin-left: 2px; transition: color 0.15s, background 0.15s; }
.cart-remove-btn:hover { color: #ef4444; background: #fef2f2; }
.cart-empty-state { text-align: center; padding: 52px 24px 32px; }
.cart-empty-icon { font-size: 3.6rem; margin-bottom: 14px; line-height: 1; }
/* backward compat */
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-top: 4px; }

/* ─── Hero Slide ────────────────────────────── */
.hero-slide {
    height: 520px; background-size: cover; background-position: center;
    border-radius: 24px; overflow: hidden; position: relative;
}
.hero-slide .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(124,58,237,0.85) 0%, rgba(236,72,153,0.4) 60%, transparent 100%);
}
.hero-slide .content {
    position: relative; z-index: 1; color: white;
    padding: 70px 60px; max-width: 520px; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-slide .content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.swiper-button-prev, .swiper-button-next {
    color: white !important; background: rgba(255,255,255,0.18); backdrop-filter: blur(10px);
    width: 44px !important; height: 44px !important; border-radius: 50%; transition: background 0.3s;
}
.swiper-button-prev:hover, .swiper-button-next:hover { background: rgba(255,255,255,0.32); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; font-weight: 900; }
.swiper-pagination-bullet { background: white; opacity: 0.6; }
.swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 4px; transition: width 0.3s; }

/* Floating blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: blobFloat 8s ease-in-out infinite; }
@keyframes blobFloat { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(20px,-15px) scale(1.05);} 66%{transform:translate(-15px,10px) scale(0.95);} }

/* ─── Stats Bar ─────────────────────────────── */
.stats-bar {
    background: linear-gradient(100deg, var(--primary) 0%, #9333ea 50%, var(--pink) 100%);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(124,58,237,0.28);
}
.stat-item { padding: 1.4rem 1rem; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 1.9rem; font-weight: 800; color: white; line-height: 1; }
.stat-desc { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-top: 4px; font-weight: 500; }

/* ─── Section Titles ────────────────────────── */
.section-title { font-size: 1.65rem; font-weight: 800; color: #1a1a2e; letter-spacing: -0.5px; position: relative; display: inline-block; margin-bottom: 2rem; }
.section-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 48px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--pink)); border-radius: 4px; }
.section-subtitle { font-size: 0.92rem; color: #6b7280; margin-top: 0.75rem; }

/* ─── Category Circles ──────────────────────── */
.category-circle { text-align: center; color: #374151; transition: transform var(--transition), color var(--transition); display: block; padding: 0.4rem; }
.category-circle:hover { transform: translateY(-6px); color: var(--primary); }
.circle-icon {
    width: 88px; height: 88px; border-radius: 50%; background: var(--purple-light);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
    font-size: 1.9rem; color: var(--primary); transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(124,58,237,0.1);
}
.category-circle:hover .circle-icon { background: linear-gradient(135deg, var(--primary), var(--pink)); color: white; box-shadow: 0 8px 25px rgba(124,58,237,0.3); transform: scale(1.08); }
.category-circle span { font-size: 0.8rem; font-weight: 600; display: block; }

/* ─── Product Card ──────────────────────────── */
.product-card {
    border: none; border-radius: var(--radius); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm); background: white;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card .card-img-top { height: 210px; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .card-img-top { transform: scale(1.04); }
.product-card .card-body { padding: 0.9rem 1rem 1rem; }
.product-card .product-title { font-size: 0.9rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.2rem; line-height: 1.35; }
.product-card .product-category { font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.product-card .product-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.product-card .product-price .compare-price { font-size: 0.82rem; color: #9ca3af; text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.product-card .product-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(124,58,237,0.92), transparent);
    padding: 20px 15px 15px; transform: translateY(100%); transition: transform 0.35s var(--transition);
    display: flex; gap: 8px; justify-content: center; align-items: center;
}
.product-card:hover .product-overlay { transform: translateY(0); }
.product-card .overlay-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8);
    background: transparent; color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 0.85rem;
}
.product-card .overlay-btn:hover { background: white; color: var(--primary); border-color: white; transform: scale(1.1); }
.product-card .badge-sale { position: absolute; top: 10px; left: 10px; background: var(--pink); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.product-card .badge-new { position: absolute; top: 10px; right: 10px; background: #10b981; color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }

/* ─── Stars ─────────────────────────────────── */
.stars { color: #fbbf24; font-size: 0.8rem; }
.stars .empty { color: #e5e7eb; }

/* ─── Newsletter ────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    border-radius: 24px; padding: 60px 40px; position: relative; overflow: hidden;
}
.newsletter-section::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%;
}
.newsletter-section::after {
    content: ''; position: absolute; bottom: -30%; left: -5%;
    width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%;
}
.newsletter-section .form-control { border: none; height: 48px; border-radius: 50px; padding: 0 24px; font-size: 0.9rem; }
.newsletter-section .btn { height: 48px; padding: 0 28px; font-weight: 700; border-radius: 50px; flex-shrink: 0; }

/* ─── Trust Badges ──────────────────────────── */
.trust-badge {
    text-align: center; padding: 1.5rem; border-radius: var(--radius);
    transition: all var(--transition); background: white; box-shadow: var(--shadow-sm); border: 1px solid #f3e8ff;
}
.trust-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.trust-badge .badge-icon {
    width: 56px; height: 56px; border-radius: 16px; background: var(--purple-light);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
    font-size: 1.4rem; color: var(--primary); transition: all 0.3s;
}
.trust-badge:hover .badge-icon { background: linear-gradient(135deg, var(--primary), var(--pink)); color: white; }
.trust-badge h6 { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; color: #1a1a2e; }
.trust-badge small { color: #6b7280; font-size: 0.78rem; }

/* ─── Testimonials ──────────────────────────── */
.testimonial-card {
    background: white; border-radius: 20px; padding: 1.8rem;
    box-shadow: var(--shadow-sm); border: 1px solid #f3e8ff;
    transition: all var(--transition); height: 100%;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-card .quote-icon { font-size: 2.5rem; color: var(--primary-light); line-height: 1; margin-bottom: 0.75rem; font-family: Georgia, serif; }
.testimonial-card .review-text { font-size: 0.9rem; color: #4b5563; line-height: 1.7; margin-bottom: 1rem; }
.reviewer-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: 0.88rem; color: #1a1a2e; }
.reviewer-info { font-size: 0.76rem; color: #9ca3af; }

/* ─── Age Band Shortcuts ────────────────────── */
.age-band {
    background: white; border-radius: 18px; padding: 1.4rem; text-align: center;
    border: 2px solid #f3e8ff; transition: all var(--transition); color: #1a1a2e; display: block;
}
.age-band:hover { border-color: var(--primary); background: var(--purple-light); transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--primary); }
.age-band .age-emoji { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.age-band h6 { font-weight: 700; margin-bottom: 2px; font-size: 0.9rem; }
.age-band small { color: #9ca3af; font-size: 0.74rem; }

/* ─── Countdown Timer ───────────────────────── */
.countdown-section { background: linear-gradient(135deg, #1e1b4b, #4c1d95, #312e81); border-radius: 24px; overflow: hidden; }
.countdown-item { text-align: center; padding: 0 1rem; }
.countdown-number { font-size: 2.8rem; font-weight: 800; color: white; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.countdown-separator { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.35); }

/* ─── Back to Top ───────────────────────────── */
#backToTop {
    position: fixed; bottom: 100px; right: 28px;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: white; border-radius: 12px;
    display: none; align-items: center; justify-content: center;
    z-index: 999; font-size: 1rem; cursor: pointer;
    box-shadow: var(--shadow-md); transition: all 0.3s; border: none;
}
#backToTop:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
#backToTop.visible { display: flex; animation: slideUpBtn 0.4s ease; }
@keyframes slideUpBtn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── WhatsApp Float ────────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 28px;
    width: 54px; height: 54px; background: #25D366;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6rem;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 998; transition: all 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); color: white; box-shadow: 0 10px 30px rgba(37,211,102,0.5); }

/* ─── Footer ────────────────────────────────── */
footer { background: #0f0f1a !important; }
footer h5, footer h6 { color: white; font-weight: 700; }
footer .text-muted { color: rgba(255,255,255,0.45) !important; }
footer a.text-muted { transition: color 0.2s; font-size: 0.87rem; line-height: 2.2; }
footer a.text-muted:hover { color: var(--primary-light) !important; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55); transition: all 0.3s; font-size: 0.95rem;
}
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* ─── Checkout ──────────────────────────────── */
.checkout-step { padding: 1.5rem; background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1rem; border: 1px solid #f3e8ff; }
.payment-option { border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.25s; }
.payment-option:hover, .payment-option.selected { border-color: var(--primary); background: var(--purple-light); }

/* ─── Timeline ──────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #e5e7eb; border: 3px solid white; transition: background 0.3s; }
.timeline-item.active::before { background: linear-gradient(135deg, var(--primary), var(--pink)); }

/* ─── Rating Input ──────────────────────────── */
.rating-input { direction: rtl; display: inline-flex; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.5rem; color: #e5e7eb; cursor: pointer; padding: 0 3px; transition: color 0.15s; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #fbbf24; }

/* ─── Filter Sidebar ────────────────────────── */
.filter-sidebar { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid #f3e8ff; }
.filter-sidebar .form-check-label { cursor: pointer; font-size: 0.88rem; color: #374151; }
.price-range { accent-color: var(--primary); }

/* ─── Animations ────────────────────────────── */
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
.float-anim { animation: floatAnim 3s ease-in-out infinite; }
@keyframes floatAnim { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.shimmer { background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; }
@keyframes skeleton-shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }

/* ─── Admin Styles ──────────────────────────── */
.admin-sidebar {
    width: 260px; min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
    position: fixed; left: 0; top: 0; z-index: 200;
    transition: all 0.3s; overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
    scrollbar-width: thin; scrollbar-color: #d1d5db transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.admin-sidebar.collapsed { width: 70px; }
.admin-sidebar.collapsed .sidebar-label { display: none; }
.admin-sidebar.collapsed .sidebar-brand-text { display: none; }
.admin-sidebar.collapsed .nav-link { justify-content: center; padding: 12px !important; }
.admin-sidebar.collapsed .nav-link i { margin: 0 !important; }
.admin-sidebar .sidebar-brand { padding: 1.2rem; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f3f4f6; background: linear-gradient(135deg, #faf5ff, #fdf2f8); }
.admin-sidebar .sidebar-brand-text { font-size: 1rem; font-weight: 800; color: #1a1a2e; white-space: nowrap; }
.admin-sidebar nav { padding: 10px 0; flex: 1; }
.admin-sidebar .nav-section-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1.5px; color: #9ca3af; padding: 12px 18px 6px; font-weight: 700; }
.admin-sidebar .nav-link {
    color: #4b5563; padding: 10px 16px; border-radius: 10px;
    margin: 2px 8px; transition: all 0.2s; display: flex; align-items: center;
    font-size: 0.86rem; font-weight: 500; gap: 10px; text-decoration: none;
}
.admin-sidebar .nav-link i { width: 20px; font-size: 0.9rem; flex-shrink: 0; text-align: center; color: #9ca3af; transition: color 0.2s; }
.admin-sidebar .nav-link:hover { background: #f5f3ff; color: var(--primary); }
.admin-sidebar .nav-link:hover i { color: var(--primary); }
.admin-sidebar .nav-link.active { background: #f3e8ff; color: var(--primary); font-weight: 600; }
.admin-sidebar .nav-link.active i { color: var(--primary); }
.sidebar-badge { margin-left: auto; background: var(--pink); color: white; font-size: 0.62rem; padding: 2px 7px; border-radius: 10px; font-weight: 700; flex-shrink: 0; }
.sidebar-footer { padding: 12px; border-top: 1px solid #f3f4f6; background: #fafafa; }

.admin-content { margin-left: 260px; padding: 20px; background: #f1f3f9; min-height: 100vh; transition: margin-left 0.3s; }
.admin-content.expanded { margin-left: 70px; }

.admin-topbar {
    background: white; border-radius: 14px; padding: 14px 20px; margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm);
}
.admin-breadcrumb { font-size: 0.85rem; color: #6b7280; }
.admin-breadcrumb span { color: var(--primary); font-weight: 600; }

.stat-card {
    border: none; border-radius: 18px; padding: 1.4rem; color: white;
    position: relative; overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.stat-card::after { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.stat-card::before { content: ''; position: absolute; bottom: -40px; left: -20px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.stat-card .stat-value { font-size: 2.1rem; font-weight: 800; line-height: 1; position: relative; z-index: 1; }
.stat-card .stat-label { font-size: 0.8rem; opacity: 0.85; margin-top: 6px; font-weight: 500; position: relative; z-index: 1; }
.stat-card .stat-icon { font-size: 2.8rem; opacity: 0.2; position: absolute; right: 18px; top: 18px; }
.stat-card .stat-change { font-size: 0.72rem; margin-top: 8px; display: flex; align-items: center; gap: 4px; font-weight: 600; position: relative; z-index: 1; color: rgba(255,255,255,0.85); }

.admin-table { background: white; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: #f8fafc; font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.7px; color: #6b7280; padding: 12px 16px; border: none; }
.admin-table td { padding: 12px 16px; vertical-align: middle; border-color: #f3f4f6; font-size: 0.87rem; }
.admin-table tbody tr:hover { background: #fafbfd; }

/* Admin mobile toggle */
.admin-sidebar-toggle { display: none; position: fixed; top: 14px; left: 14px; z-index: 300; background: var(--primary); color: white; border: none; border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); }
.admin-mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; backdrop-filter: blur(4px); }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 991px) {
    .admin-sidebar { left: -280px; }
    .admin-sidebar.mobile-open { left: 0; }
    .admin-mobile-overlay.show { display: block; }
    .admin-content { margin-left: 0 !important; padding: 60px 16px 16px; }
    .admin-sidebar-toggle { display: flex; }
}
@media (max-width: 768px) {
    .hero-slide { height: 340px; }
    .hero-slide .content { padding: 30px; }
    .hero-slide .content h1 { font-size: 1.85rem; }
    .cart-sidebar { width: 100%; right: -100%; }
    .mega-menu { position: static !important; }
    .search-box { width: 100%; }
    .newsletter-section { padding: 36px 24px; }
    .section-title { font-size: 1.4rem; }
    #backToTop { bottom: 90px; right: 16px; }
    .whatsapp-float { bottom: 24px; right: 16px; }
}
@media (max-width: 576px) {
    .circle-icon { width: 70px; height: 70px; font-size: 1.6rem; }
    .newsletter-section .d-flex { flex-direction: column; gap: 10px !important; }
    .stat-number { font-size: 1.6rem; }
}
