/* ============ Extreme Sports — styles ============ */
:root {
  --navy: #0E0E0E;
  --navy-2: #262626;
  --orange: #F28C28;
  --orange-dark: #D9700F;
  --lime: #FFC47A;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F4;
  --line: #E7E5E2;
  --text: #0E0E0E;
  --muted: #666A70;
  --success: #12A150;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 14, 14, .08);
  --container: 1240px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.display { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .5px; line-height: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 8px 20px rgba(242, 140, 40, .4); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border: 2px solid currentColor; }
.btn-light { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; }
.topbar .container { display: flex; justify-content: center; gap: 28px; padding-top: 8px; padding-bottom: 8px; overflow: hidden; white-space: nowrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar b { color: var(--lime); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { width: 54px; height: 54px; margin: -4px 0; }
.logo-text { display: flex; flex-direction: column; font-family: var(--font-display); font-style: italic; line-height: .9; }
.logo-text strong { font-size: 27px; font-weight: 800; letter-spacing: .5px; }
.logo-text small { font-size: 15px; font-weight: 800; color: var(--orange); letter-spacing: 8.6px; }

.search { flex: 1; position: relative; max-width: 560px; }
.search input { width: 100%; height: 46px; border: 2px solid var(--line); background: var(--bg-soft); border-radius: 999px; padding: 0 52px 0 20px; outline: none; transition: border-color .2s, background .2s; }
.search input:focus { border-color: var(--navy); background: #fff; }
.search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--navy); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 0; right: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* Category nav */
.catnav { border-top: 1px solid var(--line); }
.catnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: block; padding: 12px 14px; font-weight: 700; font-size: 14.5px; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.catnav a:hover, .catnav a.active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.catnav a.promo { color: var(--orange-dark); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 14, 14, .5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--navy); color: #fff; }
.drawer-head .display { font-size: 22px; }
.drawer a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer a img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.slide.active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 14, .88) 0%, rgba(14, 14, 14, .55) 45%, rgba(14, 14, 14, 0) 80%); }
.slide-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.slide-content .container { width: 100%; }
.slide-content .kicker { display: inline-block; background: var(--lime); color: var(--navy); font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; margin-bottom: 18px; }
.slide-content h1, .slide-content h2 { color: #fff; font-size: clamp(46px, 8vw, 96px); max-width: 700px; }
.slide-content h1 em, .slide-content h2 em { color: var(--orange); font-style: italic; }
.slide-content p { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 480px; margin: 18px 0 28px; }
.slide-content .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 32px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .4); transition: background .3s, width .3s; }
.hero-dots button.active { background: var(--orange); width: 52px; }

/* ---------- Perks ---------- */
.perks { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.perks .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.perk { display: flex; align-items: center; gap: 14px; }
.perk-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--orange-dark); display: grid; place-items: center; box-shadow: var(--shadow); }
.perk strong { display: block; font-size: 15px; }
.perk span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head h2 span { color: var(--orange); }
.section-head p { color: var(--muted); margin-top: 6px; }
.link-arrow { font-weight: 700; color: var(--orange-dark); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.link-arrow:hover { gap: 10px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--navy); isolation: isolate; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, 0) 40%, rgba(14, 14, 14, .9) 100%); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; }
.cat-card h3 { font-size: 26px; }
.cat-card p { font-size: 13px; opacity: .8; margin-top: 4px; }
.cat-card .arrow { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transform: scale(0); transition: transform .25s; }
.cat-card:hover .arrow { transform: scale(1); }

/* Product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.badge-promo { background: var(--orange); color: #fff; }
.badge-new { background: var(--lime); color: var(--navy); }
.quick-add { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transform: translateY(8px); opacity: 0; transition: all .25s; }
.product-card:hover .quick-add { transform: none; opacity: 1; }
.quick-add:hover { background: var(--orange); }
.product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.product-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.product-name:hover { color: var(--orange-dark); }
.rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.stars { color: #FFB400; letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.price-promo { color: var(--orange-dark); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 15px; }

/* Promo banner */
.promo-banner { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy); color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px; }
.promo-banner .promo-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 2; }
.promo-banner h2 { font-size: clamp(40px, 5vw, 68px); }
.promo-banner h2 span { color: var(--lime); }
.promo-banner p { opacity: .8; max-width: 420px; }
.promo-banner .promo-img { position: relative; }
.promo-banner .promo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-banner .promo-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 0%, rgba(14, 14, 14, 0) 45%); }
.countdown { display: flex; gap: 10px; }
.countdown div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 66px; }
.countdown b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.countdown small { font-size: 11px; opacity: .7; text-transform: uppercase; }

/* Newsletter */
.newsletter { background: linear-gradient(120deg, var(--orange-dark), var(--orange)); color: #fff; border-radius: 22px; padding: 44px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.newsletter h2 { font-size: clamp(30px, 4vw, 44px); }
.newsletter form { display: flex; gap: 8px; flex: 1; max-width: 480px; min-width: 260px; }
.newsletter input { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 0; padding: 0 20px; color: var(--text); outline: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .75); margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 20px 40px; }
.footer h4 { color: #fff; font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: 20px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.footer a:hover { color: var(--orange); }
.footer .logo-text strong { color: #fff; }
.footer .logo-text small { color: var(--orange); }
.footer-about { margin-top: 16px; font-size: 14.5px; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.pay-badges { display: flex; gap: 8px; }
.pay-badges span { background: rgba(255, 255, 255, .1); border-radius: 6px; padding: 4px 10px; font-weight: 700; font-size: 12px; color: #fff; }

/* ---------- Page header / breadcrumb ---------- */
.page-hero { position: relative; height: 220px; background: var(--navy); overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero .container { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.page-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 16px 0; }
.breadcrumb a:hover { color: var(--orange-dark); }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .75); padding: 0 0 8px; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 32px 0 20px; align-items: start; }
.filters { position: sticky; top: 140px; display: grid; gap: 26px; }
.filter-group h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.filter-list { list-style: none; display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; }
.filter-list a:hover { background: var(--bg-soft); }
.filter-list a.active { background: var(--navy); color: #fff; }
.filter-list a small { opacity: .6; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-weight: 600; }
.select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; font-weight: 600; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Product page ---------- */
.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 8px 0 40px; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery { min-width: 0; display: grid; gap: 12px; align-content: start; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, background .2s; }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
.gallery-main:hover .gal-nav { opacity: 1; }
.gal-nav:hover { background: var(--orange); color: #fff; }
.gal-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(14, 14, 14, .7); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button { flex: 0 0 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: opacity .2s, border-color .2s; background: var(--bg-soft); }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--orange); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .gal-nav { opacity: 1; width: 38px; height: 38px; } }
@media (max-width: 560px) { .gallery-thumbs button { flex-basis: 64px; height: 64px; } }
/* Carte produit : 2e photo au survol */
.product-media .img-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
@media (hover: hover) { .product-card:hover .product-media .img-alt { opacity: 1; } }
.product-info h1 { font-size: clamp(34px, 4vw, 50px); margin: 8px 0 10px; }
.product-info .price-row { padding: 16px 0; }
.product-info .price { font-size: 42px; }
.save { background: #FFE9E0; color: var(--orange-dark); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.product-desc { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.product-tags a { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 5px 12px; transition: color .2s, background .2s; }
.product-tags a:hover { color: var(--orange-dark); background: #fff4e8; }
.opt-label { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sizes button { min-width: 54px; height: 46px; padding: 0 14px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; transition: all .15s; }
.sizes button:hover { border-color: var(--navy); }
.sizes button.selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.sizes.error button { border-color: var(--orange); }
.buy-row { display: flex; gap: 12px; margin-bottom: 14px; }
.qty { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; height: 50px; }
.qty button { width: 44px; height: 100%; font-size: 20px; font-weight: 700; }
.qty input { width: 36px; text-align: center; border: 0; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; height: 50px; }
.product-perks { display: grid; gap: 10px; margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); }
.product-perks div { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.product-perks svg { color: var(--orange-dark); flex-shrink: 0; }
.stock { color: var(--success); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; padding: 8px 0 40px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.cart-item h3 { font-size: 16px; }
.cart-item .meta { color: var(--muted); font-size: 13.5px; margin: 2px 0 8px; }
.cart-item .qty { height: 38px; width: fit-content; }
.cart-item .qty button { width: 34px; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-right .price { font-size: 22px; }
.remove { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; }
.remove:hover { color: var(--orange-dark); }
.summary { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.summary h2 { font-size: 30px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-weight: 600; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; }
.summary-row.total b { font-family: var(--font-display); font-size: 30px; }
.ship-progress { background: var(--bg-soft); border-radius: 10px; padding: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.ship-bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--lime)); border-radius: 3px; transition: width .4s; }
.form { display: grid; gap: 12px; margin-top: 18px; }
.form h3 { font-size: 18px; margin-top: 6px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select, .field textarea { height: 46px; border: 2px solid var(--line); border-radius: 10px; padding: 0 14px; outline: none; background: #fff; transition: border-color .2s; }
.field textarea { height: 80px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field input:user-invalid, .field select:user-invalid { border-color: #E5484D; }
.cod-note { display: flex; gap: 10px; align-items: center; background: #EAF8EF; color: #0B6B35; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }

/* Order success */
.success-box { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 28px; border: 1px solid var(--line); border-radius: 22px; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #EAF8EF; color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.success-box h1 { font-size: 44px; margin-bottom: 10px; }
.success-box p { color: var(--muted); margin-bottom: 8px; }
.success-box .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 200; background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.toast a { color: var(--lime); font-weight: 700; white-space: nowrap; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .perks .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .header-main { height: 64px; gap: 12px; }
  .header .search { display: none; }
  .header .search.mobile { display: block; max-width: none; padding: 0 0 12px; }
  .catnav { display: none; }
  .icon-btn .lbl { display: none; }
  .logo svg { width: 46px; height: 46px; }
  .logo-text strong { font-size: 23px; }
  .logo-text small { font-size: 13px; letter-spacing: 7.2px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner .promo-img { height: 220px; order: -1; }
  .promo-banner .promo-img::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(14, 14, 14, 0) 60%); }
  .promo-banner .promo-text { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); background: #fff; z-index: 100; padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; top: 0; align-content: start; }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .filters-toggle { display: inline-flex; }
  .product-page, .cart-layout { grid-template-columns: 1fr; gap: 24px; }
  .summary { position: static; }
  .section { padding: 44px 0; }
  .quick-add { opacity: 1; transform: none; width: 38px; height: 38px; }
}
@media (min-width: 861px) { .search.mobile { display: none; } .filters .filters-close { display: none; } }
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar .container { justify-content: flex-start; }
  .topbar span:not(:first-child) { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card h3 { font-size: 21px; }
  .perks .container { grid-template-columns: 1fr 1fr; gap: 14px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-body { padding: 10px 12px 14px; }
  .product-name { font-size: 14.5px; }
  .price { font-size: 22px; }
  .newsletter { padding: 28px; }
  .newsletter form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .slide::after { background: linear-gradient(0deg, rgba(14, 14, 14, .9) 10%, rgba(14, 14, 14, .3) 100%); }
  .slide-content { align-items: flex-end; padding-bottom: 60px; }
}

/* Fixes */
.filters-close { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Laayoune Sport additions ---------- */
.tag { align-self: flex-start; background: var(--orange); color: #fff; padding: 5px 12px; border-radius: 6px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.lang-btn { font-family: "Cairo", var(--font); }
html[dir="rtl"] .lang-btn { font-family: var(--font); }
.promo-banner h2 span, .newsletter h2 span { color: var(--orange); }
.topbar b { color: var(--orange); }
.newsletter { background: linear-gradient(120deg, #0E0E0E 0%, #2a1a0a 55%, var(--orange-dark) 130%); }
.newsletter .btn-dark { background: var(--orange); }
.newsletter .btn-dark:hover { background: var(--orange-dark); }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- Arabic / RTL ---------- */
html[dir="rtl"] body { font-family: "Cairo", system-ui, sans-serif; }
html[dir="rtl"] .display, html[dir="rtl"] .footer h4, html[dir="rtl"] .price, html[dir="rtl"] .countdown b, html[dir="rtl"] .summary-row.total b {
  font-family: "Cairo", sans-serif; font-style: normal; font-weight: 900; letter-spacing: 0; text-transform: none; line-height: 1.25; }
html[dir="rtl"] .slide-content h1, html[dir="rtl"] .slide-content h2 { font-size: clamp(40px, 7vw, 80px); }
html[dir="rtl"] .product-cat, html[dir="rtl"] .filter-group h4, html[dir="rtl"] .slide-content .kicker, html[dir="rtl"] .tag, html[dir="rtl"] .badge { letter-spacing: 0; }
html[dir="rtl"] .logo-text { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
html[dir="rtl"] .search input { padding: 0 20px 0 52px; }
html[dir="rtl"] .search button { right: auto; left: 5px; }
html[dir="rtl"] .cart-count { right: auto; left: 6px; }
html[dir="rtl"] .badge { left: auto; right: 12px; }
html[dir="rtl"] .quick-add { right: auto; left: 12px; }
html[dir="rtl"] .cat-card .arrow { right: auto; left: 14px; }
html[dir="rtl"] .drawer { left: auto; right: 0; transform: translateX(100%); }
html[dir="rtl"] body.drawer-open .drawer { transform: none; }
html[dir="rtl"] .slide::after { background: linear-gradient(270deg, rgba(14, 14, 14, .88) 0%, rgba(14, 14, 14, .55) 45%, rgba(14, 14, 14, 0) 80%); }
html[dir="rtl"] .promo-banner .promo-img::before { background: linear-gradient(270deg, var(--navy) 0%, rgba(14, 14, 14, 0) 45%); }
html[dir="rtl"] .promo-banner .btn, html[dir="rtl"] .tag { align-self: flex-start; }
html[dir="rtl"] .cart-item-right { text-align: left; }
html[dir="rtl"] .wa-float { right: auto; left: 20px; }
@media (max-width: 860px) {
  html[dir="rtl"] .filters { inset: 0 auto 0 0; transform: translateX(-100%); }
  html[dir="rtl"] body.filters-open .filters { transform: none; }
  html[dir="rtl"] .promo-banner .promo-img::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(14, 14, 14, 0) 60%); }
}
@media (max-width: 560px) {
  html[dir="rtl"] .slide::after { background: linear-gradient(0deg, rgba(14, 14, 14, .9) 10%, rgba(14, 14, 14, .3) 100%); }
}
.footer .logo svg g:first-child ellipse:last-child { fill: #262626; }

/* Champ anti-robot du formulaire de commande (invisible) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pages légales */
.legal { max-width: 820px; padding-bottom: 60px; }
.legal section { padding-top: 26px; scroll-margin-top: 90px; }
.legal h2 { font-size: 28px; margin: 10px 0 12px; }
.legal h3 { font-size: 18px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal ul { padding-inline-start: 20px; }
.legal a { color: var(--orange-dark); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-toc a { background: var(--bg-soft); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-legal a { color: rgba(255, 255, 255, .7); }
.foot-legal a:hover { color: #fff; }
.form-accept { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.form-accept a { text-decoration: underline; }

/* Écran de chargement : apparaît après 0,3 s d'attente pour éviter un flash quand tout est rapide */
.page-loader { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; pointer-events: none; animation: loader-in .25s ease .3s forwards; }
.page-loader.done { display: none; }
.page-loader svg { width: 72px; height: 72px; }
.page-loader .spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg-soft); border-top-color: var(--orange); animation: loader-spin .8s linear infinite; }
.page-loader p { color: var(--muted); font-weight: 600; font-size: 15px; text-align: center; padding: 0 20px; }
@keyframes loader-in { to { opacity: 1; pointer-events: auto; } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-loader .spinner { animation-duration: 2s; } }
