/* ========================================
   MT-MOTO · Professional Dark Theme
   ======================================== */

:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-glow: rgba(220, 38, 38, 0.25);
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #1a1a1a;
    --bg4: #222222;
    --border: #2a2a2a;
    --text: #f0f0f0;
    --text2: #aaaaaa;
    --text3: #666666;
    --white: #ffffff;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --gold: #f59e0b;
    --nav-h: 70px;
    --top-h: 36px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
    --transition: 0.25s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input { font-family: inherit; outline: none; border: none; }

/* ---- UTILS ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--red); }
.section { padding: 80px 0; }
.section-hd { text-align: center; margin-bottom: 50px; }
.section-hd h2 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-hd p { color: var(--text2); font-size: 1.05rem; }

/* ---- TOPBAR ---- */
.topbar { background: var(--red); color: var(--white); height: var(--top-h); font-size: 0.82rem; z-index: 1000; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-left span, .topbar-right a { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-right a { color: var(--white); transition: opacity var(--transition); }
.topbar-right a:hover { opacity: 0.8; }
.wa-link { background: var(--wa); padding: 4px 12px; border-radius: 20px; font-weight: 600; }

/* ---- NAVBAR ---- */
.navbar { position: sticky; top: 0; z-index: 999; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--nav-h); transition: box-shadow var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; object-fit: contain; }
.logo-text { font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--white); letter-spacing: 2px; }
.logo-text span { color: var(--red); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text2); font-size: 0.9rem; font-weight: 500; transition: all var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--white); background: var(--bg3); }
.nav-link i { font-size: 0.7rem; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition); z-index: 100; box-shadow: var(--shadow-lg); }
.dropdown li a { display: block; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text2); font-size: 0.88rem; transition: all var(--transition); }
.dropdown li a:hover { background: var(--bg3); color: var(--white); padding-left: 20px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-wa-nav { display: flex; align-items: center; gap: 7px; padding: 9px 18px; background: var(--wa); color: var(--white); border-radius: 25px; font-size: 0.88rem; font-weight: 600; transition: all var(--transition); white-space: nowrap; }
.btn-wa-nav:hover { background: var(--wa-dark); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 900; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.nav-menu-hd { display: none; }
.nav-menu-brand { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: 2px; }
.nav-menu-brand span { color: var(--red); }
.nav-menu-close { width: 40px; height: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 1rem; transition: all var(--transition); }
.nav-menu-close:hover, .nav-menu-close:active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---- HERO ---- */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,10,0.97) 0%, rgba(20,10,10,0.88) 50%, rgba(80,10,10,0.5) 100%); z-index: 1; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat; z-index: 0; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 60px 20px 40px; margin-left: calc((100vw - 1280px) / 2 + 20px); }
.hero-eyebrow { display: inline-block; background: var(--red); color: var(--white); font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 5px 16px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.05; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--text2); max-width: 520px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; transition: all var(--transition); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 4px 20px var(--red-glow); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 30px var(--red-glow); }
.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--white); background: rgba(220,38,38,0.08); }
.btn-wa { background: var(--wa); color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,0.25); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }
.hero-stats { position: relative; z-index: 2; width: 100%; background: rgba(255,255,255,0.04); border-top: 1px solid var(--border); backdrop-filter: blur(4px); padding: 28px 0; margin-top: auto; }
.hero-stats { display: flex; justify-content: center; gap: 0; }
.stat-item { flex: 1; max-width: 200px; text-align: center; padding: 0 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Oswald', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--red); }
.stat-lbl { display: block; font-size: 0.8rem; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }

/* ---- BRANDS STRIP ---- */
.brands-strip { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text2); letter-spacing: 2px; white-space: nowrap; transition: color var(--transition); }
.marquee-track span:hover { color: var(--red); }
.marquee-track .sep { color: var(--red); font-size: 0.7rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.brands-strip:hover .marquee-track { animation-play-state: paused; }

/* ---- CATEGORIES ---- */
.categories-section { background: var(--bg2); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform var(--transition); }
.cat-card:hover { background: var(--bg4); border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(220,38,38,0.15); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card.electrique:hover { border-color: #3b82f6; box-shadow: 0 8px 30px rgba(59,130,246,0.15); }
.cat-card.electrique::before { background: #3b82f6; }
.cat-card.prestige:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(245,158,11,0.15); }
.cat-card.prestige::before { background: var(--gold); }
.cat-icon { width: 60px; height: 60px; background: rgba(220,38,38,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; transition: all var(--transition); }
.cat-icon i { font-size: 1.5rem; color: var(--red); }
.cat-card:hover .cat-icon { background: var(--red); }
.cat-card:hover .cat-icon i { color: var(--white); }
.cat-card.electrique .cat-icon { background: rgba(59,130,246,0.1); }
.cat-card.electrique .cat-icon i { color: #3b82f6; }
.cat-card.electrique:hover .cat-icon { background: #3b82f6; }
.cat-card.electrique:hover .cat-icon i { color: var(--white); }
.cat-card.prestige .cat-icon { background: rgba(245,158,11,0.1); }
.cat-card.prestige .cat-icon i { color: var(--gold); }
.cat-card.prestige:hover .cat-icon { background: var(--gold); }
.cat-card.prestige:hover .cat-icon i { color: var(--white); }
.cat-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 6px; text-transform: uppercase; }
.cat-card p { font-size: 0.82rem; color: var(--text2); margin-bottom: 12px; }
.cat-count { display: inline-block; background: rgba(220,38,38,0.15); color: var(--red); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; }

/* ---- PRODUCTS ---- */
.products-section { background: var(--bg); }
.products-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.search-wrap { position: relative; max-width: 460px; }
.search-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 0.9rem; }
.search-wrap input { width: 100%; padding: 12px 48px 12px 44px; background: var(--bg3); border: 1px solid var(--border); border-radius: 30px; color: var(--text); font-size: 0.95rem; transition: all var(--transition); }
.search-wrap input:focus { border-color: var(--red); background: var(--bg4); }
.search-wrap input::placeholder { color: var(--text3); }
.search-clear { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 0.9rem; transition: color var(--transition); }
.search-clear:hover { color: var(--text); }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ftab { padding: 8px 18px; background: var(--bg3); border: 1px solid var(--border); border-radius: 25px; color: var(--text2); font-size: 0.85rem; font-weight: 500; transition: all var(--transition); white-space: nowrap; }
.ftab:hover { border-color: var(--red); color: var(--white); }
.ftab.active { background: var(--red); border-color: var(--red); color: var(--white); }
.products-meta { margin-bottom: 20px; }
.products-meta span { font-size: 0.88rem; color: var(--text3); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.prod-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.prod-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(220,38,38,0.12); }
.prod-img { position: relative; height: 180px; background: var(--bg4); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-img-placeholder { font-size: 3rem; color: var(--text3); transition: transform var(--transition); }
.prod-card:hover .prod-img-placeholder { transform: scale(1.1); color: var(--red); }
.prod-badge { position: absolute; top: 10px; left: 10px; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-sale { background: var(--red); color: var(--white); }
.badge-new { background: var(--gold); color: #000; }
.badge-hot { background: #f97316; color: var(--white); }
.badge-out { background: var(--bg4); color: var(--text2); border: 1px solid var(--border); }
.badge-promo { background: #8b5cf6; color: var(--white); }
.prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.prod-name { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 12px; line-height: 1.3; flex: 1; }
.prod-price-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.prod-price { font-family: 'Oswald', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--red); }
.prod-price-old { font-size: 0.85rem; color: var(--text3); text-decoration: line-through; }
.prod-price-contact { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--text2); }
.prod-actions { display: flex; gap: 6px; align-items: stretch; }
.prod-btn-detail { width: 34px; flex-shrink: 0; background: var(--bg4); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); font-size: 0.88rem; transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.prod-btn-detail:hover { background: var(--bg3); color: var(--white); border-color: var(--text2); }
.prod-btn-cart { flex: 1; padding: 8px 10px; background: var(--red); border-radius: var(--radius-sm); color: var(--white); font-size: 0.78rem; font-weight: 600; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.prod-btn-cart:hover { background: var(--red-dark); transform: translateY(-1px); }
.prod-btn-wa-sm { width: 34px; flex-shrink: 0; background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.25); border-radius: var(--radius-sm); color: var(--wa); font-size: 0.95rem; transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.prod-btn-wa-sm:hover { background: var(--wa); color: var(--white); }
.no-results { text-align: center; padding: 80px 20px; color: var(--text2); }
.no-results i { font-size: 3rem; color: var(--text3); margin-bottom: 16px; }
.no-results p { font-size: 1.1rem; margin-bottom: 20px; }
.no-results button { padding: 10px 24px; background: var(--red); color: var(--white); border-radius: 25px; font-size: 0.9rem; font-weight: 600; transition: all var(--transition); }
.no-results button:hover { background: var(--red-dark); }

/* ---- SERVICES ---- */
.services-section { background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; position: relative; transition: all var(--transition); }
.svc-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card.highlight { border-color: var(--red); background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, var(--bg3) 100%); }
.svc-badge { position: absolute; top: 16px; right: 16px; background: var(--red); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.svc-icon { width: 56px; height: 56px; background: rgba(220,38,38,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: all var(--transition); }
.svc-icon i { font-size: 1.4rem; color: var(--red); }
.svc-card:hover .svc-icon { background: var(--red); }
.svc-card:hover .svc-icon i { color: var(--white); }
.svc-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.svc-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 0.88rem; font-weight: 500; transition: gap var(--transition); }
.svc-link:hover { gap: 10px; }

/* ---- CONTACT ---- */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.cinfo-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cinfo-item:last-of-type { border-bottom: none; }
.cinfo-icon { width: 44px; height: 44px; background: rgba(220,38,38,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cinfo-icon i { color: var(--red); font-size: 1rem; }
.cinfo-item h4 { font-family: 'Oswald', sans-serif; font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.cinfo-item p { font-size: 0.9rem; color: var(--text2); }
.cinfo-item p a { color: var(--text2); transition: color var(--transition); }
.cinfo-item p a:hover { color: var(--white); }
.wa-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--wa); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.wa-btns { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.wa-cta-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: var(--wa); color: var(--white); border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; transition: all var(--transition); }
.wa-cta-btn:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-cta-btn.secondary { background: var(--bg3); border: 1px solid var(--wa); color: var(--wa); }
.wa-cta-btn.secondary:hover { background: var(--wa); color: var(--white); }
.wa-cta-btn i { font-size: 1.2rem; }
.social-row { display: flex; gap: 10px; }
.soc-btn { width: 40px; height: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 0.9rem; transition: all var(--transition); }
.soc-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 500px; }
.contact-map iframe { width: 100%; height: 100%; }

/* ---- FOOTER ---- */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--text2); margin-bottom: 12px; line-height: 1.7; }
.ft-addr { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text3); }
.ft-addr i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text2); transition: all var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }
.footer-col p { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text2); margin-bottom: 8px; }
.footer-col p i { color: var(--red); width: 16px; }
.footer-col p a { color: var(--text2); transition: color var(--transition); }
.footer-col p a:hover { color: var(--white); }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; background: var(--bg3); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 0.85rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text3); }

/* ---- WHATSAPP FLOAT ---- */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wa-tooltip { background: var(--bg2); color: var(--white); font-size: 0.82rem; font-weight: 500; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); white-space: nowrap; opacity: 0; visibility: hidden; transform: translateX(10px); transition: all var(--transition); pointer-events: none; }
.wa-float:hover .wa-tooltip { opacity: 1; visibility: visible; transform: translateX(0); }
.wa-fab { width: 58px; height: 58px; background: var(--wa); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); animation: pulse-wa 2.5s infinite; transition: all var(--transition); }
.wa-fab:hover { transform: scale(1.1); animation: none; box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.wa-fab i { font-size: 1.7rem; color: var(--white); }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 40px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ---- BACK TO TOP ---- */
.back-top { position: fixed; bottom: 170px; right: 28px; z-index: 9000; width: 46px; height: 46px; background: var(--bg2); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 1rem; opacity: 0; visibility: hidden; transition: all var(--transition); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(220,38,38,0.35); }

/* ---- MODAL ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all var(--transition); }
.modal-bg.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 560px; position: relative; transform: scale(0.95); transition: transform var(--transition); max-height: 90vh; overflow-y: auto; }
.modal-bg.open .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: var(--bg3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 0.9rem; z-index: 1; transition: all var(--transition); }
.modal-close:hover { background: var(--red); color: var(--white); }
.modal-prod-img { height: 220px; background: var(--bg3); display: flex; align-items: center; justify-content: center; border-radius: 16px 16px 0 0; }
.modal-prod-img i { font-size: 4rem; color: var(--text3); }
.modal-prod-body { padding: 28px; }
.modal-prod-cat { font-size: 0.8rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.modal-prod-name { font-family: 'Oswald', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.modal-prod-price-wrap { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.modal-prod-price { font-family: 'Oswald', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--red); }
.modal-prod-old { font-size: 1rem; color: var(--text3); text-decoration: line-through; }
.modal-prod-info { background: var(--bg3); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 24px; }
.modal-prod-info p { font-size: 0.9rem; color: var(--text2); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.modal-prod-info p:last-child { margin-bottom: 0; }
.modal-prod-info i { color: var(--red); width: 16px; }
.modal-prod-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-wa-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: var(--wa); color: var(--white); border-radius: var(--radius); font-size: 1rem; font-weight: 700; transition: all var(--transition); }
.modal-wa-btn:hover { background: var(--wa-dark); }
.modal-wa-btn i { font-size: 1.3rem; }
.modal-call-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; transition: all var(--transition); }
.modal-call-btn:hover { background: var(--bg4); border-color: var(--text2); }

/* ---- PRODUCT IMAGES ---- */
.prod-img { position: relative; height: 190px; background: var(--bg4); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; z-index: 1; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-img:not(.has-photo) img { display: none; }
.prod-icon-fb { font-size: 2.8rem; color: var(--text3); transition: transform 0.3s, color 0.3s; z-index: 0; }
.prod-img.has-photo .prod-icon-fb { display: none; }
.prod-card:hover .prod-icon-fb { transform: scale(1.1); color: var(--red); }
.prod-badge { position: absolute; top: 10px; left: 10px; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 2; }
.epuise-tag { top: auto; bottom: 10px; left: 10px; }

/* Modal image */
.modal-prod-img { height: 240px; background: var(--bg3); display: flex; align-items: center; justify-content: center; border-radius: 16px 16px 0 0; position: relative; overflow: hidden; }
.modal-prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-prod-img:not(.has-photo) img { display: none; }

/* ---- PARTNERS CARDS ---- */
.partners-section { background: var(--bg2); }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px 20px; text-align: center; transition: all var(--transition); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.partner-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(220,38,38,0.12); }
.partner-logo-wrap { height: 80px; display: flex; align-items: center; justify-content: center; width: 100%; }
.partner-logo-wrap img { max-height: 70px; max-width: 150px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(220,38,38,0.18)); transition: transform 0.3s, filter 0.3s; }
.partner-card:hover .partner-logo-wrap img { transform: scale(1.08); filter: drop-shadow(0 4px 16px rgba(220,38,38,0.35)); }
.partner-name-fb { font-family: 'Oswald', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--text2); letter-spacing: 3px; transition: color var(--transition); }
.partner-card:hover .partner-name-fb { color: var(--red); }
.partner-card p { font-size: 0.83rem; color: var(--text3); margin: 0; line-height: 1.5; }
.partner-btn { padding: 8px 20px; background: transparent; border: 1px solid var(--border); border-radius: 20px; color: var(--text2); font-size: 0.8rem; font-weight: 500; transition: all var(--transition); margin-top: 4px; white-space: nowrap; }
.partner-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- STRIP 10 PARTENAIRES ---- */
.strip10-section { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; overflow: hidden; }
.strip10-title { text-align: center; font-family: 'Oswald', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text3); margin-bottom: 28px; }
.strip10-overflow { overflow: hidden; width: 100%; }
.strip10-track { display: flex; align-items: center; gap: 0; width: max-content; animation: scroll10 28s linear infinite; }
.strip10-section:hover .strip10-track { animation-play-state: paused; }
@keyframes scroll10 { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.strip10-logo { flex: 0 0 160px; height: 80px; display: flex; align-items: center; justify-content: center; padding: 0 24px; border-right: 1px solid var(--border); }
.strip10-logo:last-child { border-right: none; }
.strip10-logo img { max-height: 55px; max-width: 120px; width: auto; object-fit: contain; transition: transform 0.3s; }
.strip10-logo img:hover { transform: scale(1.08); }

/* ============================================================
   AI CHAT WIDGET
   ============================================================ */
.chat-widget { position: fixed; bottom: 96px; right: 28px; z-index: 8999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* FAB button */
.chat-fab { position: relative; width: 58px; height: 58px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(220,38,38,0.45); transition: all var(--transition); animation: pulse-chat 2.8s infinite; }
.chat-fab:hover { transform: scale(1.1); animation: none; box-shadow: 0 6px 28px rgba(220,38,38,0.6); }
.chat-fab i { font-size: 1.5rem; color: var(--white); transition: transform 0.2s; }
.chat-fab.open { animation: none; background: var(--bg3); }
.chat-fab.open i { transform: rotate(90deg); }
@keyframes pulse-chat {
  0%,100% { box-shadow: 0 4px 20px rgba(220,38,38,0.45); }
  50%      { box-shadow: 0 4px 36px rgba(220,38,38,0.7), 0 0 0 10px rgba(220,38,38,0.1); }
}

/* Notification dot */
.chat-notif { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; background: var(--wa); border-radius: 50%; border: 2px solid var(--bg); color: var(--white); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Chat window */
.chat-window { width: 340px; max-height: 520px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.97); transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); transform-origin: bottom right; }
.chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Header */
.chat-header { background: var(--red); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.chat-hd-info { display: flex; align-items: center; gap: 10px; }
.chat-hd-av { position: relative; width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-hd-av i { color: var(--white); font-size: 1rem; }
.chat-online-dot { position: absolute; bottom: 1px; right: 1px; width: 9px; height: 9px; background: #4ade80; border-radius: 50%; border: 2px solid var(--red); }
.chat-hd-info h4 { color: var(--white); font-size: 0.92rem; font-weight: 600; margin-bottom: 1px; }
.chat-hd-info span { color: rgba(255,255,255,0.75); font-size: 0.75rem; }
.chat-hd-close { width: 28px; height: 28px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.85rem; transition: background var(--transition); }
.chat-hd-close:hover { background: rgba(255,255,255,0.3); }

/* Messages area */
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message rows */
.chat-msg { display: flex; align-items: flex-end; gap: 8px; animation: msgIn 0.25s ease; }
.chat-msg.user { flex-direction: row-reverse; }
@keyframes msgIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* Avatar */
.chat-av { width: 28px; height: 28px; background: rgba(220,38,38,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-av i { color: var(--red); font-size: 0.75rem; }

/* Bubbles */
.chat-bubble { max-width: 220px; padding: 10px 13px; border-radius: 16px; font-size: 0.86rem; line-height: 1.55; word-break: break-word; }
.bot-b  { background: var(--bg3); color: var(--text); border-bottom-left-radius: 4px; }
.user-b { background: var(--red); color: var(--white); border-bottom-right-radius: 4px; max-width: 200px; }

/* Typing dots */
.chat-typing-b { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.chat-typing-b span { width: 6px; height: 6px; background: var(--text3); border-radius: 50%; animation: blink 1.2s infinite; }
.chat-typing-b span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-b span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity:0.2; transform:scale(1); } 40% { opacity:1; transform:scale(1.3); } }

/* Product cards in chat */
.chat-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 12px; max-width: 230px; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; }
.chat-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(220,38,38,0.15); }
.cc-badge { position: absolute; top: 8px; right: 8px; background: var(--red); color: var(--white); font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.cc-name { font-family: 'Oswald', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 7px; line-height: 1.3; }
.cc-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.cc-price { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--red); }
.cc-old { font-size: 0.75rem; color: var(--text3); text-decoration: line-through; }
.cc-price-na { font-size: 0.85rem; color: var(--text2); }
.cc-stk { font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.cc-stk.in  { background: rgba(74,222,128,0.15); color: #4ade80; }
.cc-stk.out { background: rgba(220,38,38,0.12); color: var(--red); }
.cc-note { font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.cc-tap { font-size: 0.72rem; color: var(--text3); margin-top: 4px; }

/* Footer / input */
.chat-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--bg2); }
.chat-qr-wrap { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 6px; }
.chat-qr-btn { padding: 6px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; color: var(--text2); font-size: 0.78rem; font-weight: 500; white-space: nowrap; transition: all var(--transition); cursor: pointer; }
.chat-qr-btn:hover { background: var(--bg4); border-color: var(--text2); color: var(--white); }
.chat-qr-btn.wa-qr { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.3); color: var(--wa); }
.chat-qr-btn.wa-qr:hover { background: var(--wa); color: var(--white); }
.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.chat-input-row input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px; color: var(--text); font-size: 0.86rem; transition: border var(--transition); }
.chat-input-row input:focus { border-color: var(--red); outline: none; }
.chat-input-row input::placeholder { color: var(--text3); }
.chat-send-btn { width: 36px; height: 36px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.8rem; transition: all var(--transition); flex-shrink: 0; }
.chat-send-btn:hover { background: var(--red-dark); transform: scale(1.1); }

@media (max-width: 400px) {
  .chat-window { width: calc(100vw - 32px); }
  .chat-widget { right: 16px; bottom: 88px; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Tablet */
@media (max-width: 1200px) {
  .hero-content { margin-left: 20px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 350px; }
}

/* Mobile nav + layout */
@media (max-width: 900px) {
  .topbar { display: none; }
  .hamburger { display: flex; }
  .btn-wa-nav span { display: none; }

  .nav-menu {
    position: fixed;
    top: 0; right: -290px;
    width: 290px; height: 100vh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--nav-h) + 16px) 16px 30px;
    gap: 2px;
    transition: right 0.3s ease;
    z-index: 950;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-overlay.show { display: block; }
  .nav-menu-hd { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-link { padding: 12px 16px; width: 100%; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--bg3); margin: 2px 0 2px 12px; display: none; border-radius: var(--radius-sm); }
  .has-dropdown.open .dropdown { display: block; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small tablet / large phone */
@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .section-hd { margin-bottom: 36px; }
  .section-hd h2 { font-size: 1.9rem; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 90px 20px 30px; margin-left: 0; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero p { font-size: 0.97rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; min-width: 120px; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 20px 14px; }
  .cat-icon { width: 48px; height: 48px; }
  .cat-icon i { font-size: 1.25rem; }

  /* Products */
  .products-controls { gap: 12px; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .filter-tabs::-webkit-scrollbar { height: 2px; }
  .ftab { flex-shrink: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-img { height: 160px; }
  .prod-name { font-size: 0.9rem; }
  .prod-price { font-size: 1.15rem; }
  .prod-btn-cart { font-size: 0.75rem; }
  .prod-btn-detail, .prod-btn-wa-sm { width: 32px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 24px 20px; }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-card { padding: 20px 14px 16px; }

  /* Contact */
  .contact-map { height: 280px; }
  .wa-btns { flex-direction: column; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 40px 0 0; }

  /* Floating buttons */
  .wa-float { bottom: 18px; right: 18px; }
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab i { font-size: 1.5rem; }
  .chat-widget { bottom: 80px; right: 18px; }
  .chat-fab { width: 52px; height: 52px; }
  .chat-fab i { font-size: 1.3rem; }
  .back-top { bottom: 158px; right: 18px; width: 42px; height: 42px; }
  .chat-window { width: min(340px, calc(100vw - 32px)); max-height: 70svh; }
}

/* Small phone */
@media (max-width: 420px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 14px; }

  .hero-content { padding: 80px 14px 28px; }
  .hero h1 { font-size: 2.2rem; }
  .stat-num { font-size: 1.8rem; }
  .stat-lbl { font-size: 0.72rem; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-img { height: 140px; }
  .prod-body { padding: 12px; }
  .prod-btn-cart span { display: none; }
  .prod-btn-detail, .prod-btn-wa-sm { width: 30px; }

  .cat-grid { gap: 8px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { width: 42px; height: 42px; margin-bottom: 10px; }
  .cat-card h3 { font-size: 0.88rem; }

  .modal-box { border-radius: 12px 12px 0 0; max-height: 92svh; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; transform: translateY(20px); }
  .modal-bg.open .modal-box { transform: translateY(0); }
  .modal-prod-img { height: 180px; border-radius: 12px 12px 0 0; }

  .strip10-logo { flex: 0 0 130px; }
  .brands-strip .marquee-track span { font-size: 0.85rem; }

  .chat-window { width: calc(100vw - 24px); max-height: 75svh; }
  .chat-widget { right: 12px; bottom: 76px; }
  .wa-float { right: 12px; bottom: 14px; }
  .back-top { right: 12px; bottom: 152px; }

  .section-hd h2 { font-size: 1.7rem; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}

/* ============================================================
   CART NAVBAR BUTTON
   ============================================================ */
.btn-cart-nav {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-cart-nav:hover { background: var(--bg4); border-color: var(--red); color: var(--red); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: var(--white);
  border-radius: 9px; font-size: 0.64rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1099; display: none; }
.cart-overlay.show { display: block; }

.cart-drawer {
  position: fixed; top: 0; right: -440px;
  width: 420px; max-width: 100vw; height: 100vh;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 1100; display: flex; flex-direction: column;
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.cart-drawer.open { right: 0; }

.cart-drawer-hd {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.cart-drawer-hd h3 {
  font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 600;
  color: var(--white); display: flex; align-items: center; gap: 9px;
}
.cart-drawer-hd h3 i { color: var(--red); }
.cart-hd-count { font-size: 0.82rem; color: var(--text3); font-weight: 400; font-family: 'Inter', sans-serif; }
.cart-close-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg3);
  color: var(--text2); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all var(--transition);
}
.cart-close-btn:hover { background: var(--red); color: var(--white); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cart-items::-webkit-scrollbar { width: 3px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 14px; text-align: center; }
.cart-empty i { font-size: 3rem; color: var(--text3); opacity: 0.5; }
.cart-empty p { color: var(--text3); font-size: 0.95rem; }

.cart-item {
  display: flex; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: ciSlide 0.18s ease;
}
.cart-item:last-child { border-bottom: none; }
@keyframes ciSlide { from { opacity:0; transform: translateX(8px); } to { opacity:1; transform: none; } }

.cart-item-img {
  width: 68px; height: 68px; border-radius: var(--radius-sm);
  background: var(--bg3); flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img i { font-size: 1.5rem; color: var(--text3); }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.83rem; font-weight: 600; color: var(--white); line-height: 1.3; margin-bottom: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-item-brand { font-size: 0.73rem; color: var(--text3); margin-bottom: 6px; }
.cart-item-price { font-size: 0.88rem; font-weight: 700; color: var(--red); }

.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.cart-qty-wrap { display: flex; align-items: center; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-qty-btn { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 0.72rem; transition: all var(--transition); }
.cart-qty-btn:hover { background: var(--red); color: var(--white); }
.cart-qty-num { min-width: 28px; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--white); }
.cart-remove-btn { font-size: 0.72rem; color: var(--text3); display: flex; align-items: center; gap: 4px; transition: color var(--transition); }
.cart-remove-btn:hover { color: var(--red); }

.cart-drawer-ft { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg); flex-shrink: 0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total-lbl { color: var(--text2); font-size: 0.88rem; }
.cart-total-price { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.cart-checkout-btn {
  width: 100%; padding: 13px; background: var(--red); color: var(--white);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background var(--transition); margin-bottom: 8px;
}
.cart-checkout-btn:hover, .cart-checkout-btn:active { background: var(--red-dark); }
.cart-continue-btn {
  width: 100%; padding: 10px; background: var(--bg3); color: var(--text2);
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all var(--transition);
}
.cart-continue-btn:hover { background: var(--bg4); color: var(--white); }

/* ============================================================
   MODAL CART BUTTON
   ============================================================ */
.modal-cart-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; background: var(--red); color: var(--white);
  border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  transition: all var(--transition);
}
.modal-cart-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.cart-toast {
  position: fixed; bottom: 110px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg2); border: 1px solid rgba(220,38,38,0.35);
  border-radius: 30px; padding: 10px 22px;
  color: var(--white); font-size: 0.86rem; font-weight: 500;
  display: flex; align-items: center; gap: 9px;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap; max-width: calc(100vw - 32px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast i { color: var(--red); }

@media (max-width: 480px) {
  .cart-drawer { width: 100vw; right: -100vw; }
}

/* ============================================================
   MOBILE POLISH
   ============================================================ */
button, a, [onclick] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (max-width: 900px) {
  /* Safe area (iPhone notch / home indicator) */
  .wa-float { bottom: max(18px, env(safe-area-inset-bottom, 0px) + 18px); }
  .chat-widget { bottom: max(80px, env(safe-area-inset-bottom, 0px) + 80px); }
  .cart-drawer-ft { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px) + 16px); }
}

@media (max-width: 700px) {
  /* Bigger touch targets */
  .ftab { padding: 9px 18px; min-height: 40px; }
  .prod-btn-detail, .prod-btn-wa-sm { width: 36px; min-height: 36px; }
  .prod-btn-cart { min-height: 36px; }
  /* Hero: hide decorative text on tiny screens to save space */
  .hero p { font-size: 0.93rem; }
  /* Filter bar: hide scrollbar completely on mobile */
  .filter-tabs { scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  /* Products section top spacing */
  .products-section { padding-top: 48px; }
  /* Categories: tighter on mobile */
  .toutes-categories-section { padding: 48px 0; }
}

@media (max-width: 420px) {
  /* Nav menu padding reduced since we have nav-menu-hd */
  .nav-menu { padding-top: calc(var(--nav-h) + 8px); }
  /* Cart drawer footer buttons */
  .cart-checkout-btn { padding: 14px; font-size: 0.92rem; }
  .cart-continue-btn { padding: 11px; font-size: 0.82rem; }
}
