/* =========================================================
   LADEKO — Main Stylesheet
   ========================================================= */

/* ── Poppins — auto-hébergé (latin-ext + latin) ── */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── CSS Variables ── */
:root {
  --primary:        #2d6a4f;
  --primary-dark:   #1b4332;
  --primary-light:  #74c69d;
  --bg-dark:        #0f2016;
  --bg-light:       #f8fafc;
  --bg-card:        #FFFFFF;
  --text-dark:      #0a0a0a;
  --text-light:     #F5F5F0;
  --text-muted:     #64748b;
  --accent:         #e8f5ee;
  --success:        #16a34a;
  --error:          #dc2626;
  --warning:        #d97706;
  --border:         #e2e8f0;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.06);
  --shadow-md:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.15);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --transition:     .25s ease;
  --navbar-h:       72px;
  --promo-h:        44px;
  --page-px:        clamp(20px, 5vw, 80px);
  --page-max:       1400px;
}

/* ── Thème sombre ────────────────────────────────────────── */
.product-card__name { color: #0a0a0a; }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  transition: background .25s, color .25s;
  word-break: break-word;
  width: 100%;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6, p, span, li, td, th { overflow-wrap: break-word; word-break: break-word; }
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ── Touch improvements — navigation instantanée sur mobile ── */
a, button, [role="button"],
.btn, .product-card--clickable, .hamburger,
.navbar__nav a, .cat-card, .pay-method-btn,
.product-card__wishlist, .tab-btn, .filter-toggle-btn,
[onclick], .product-card, .upsell-card,
.flash-mini-card, .deal-card, .mini-prod {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Curseur pointeur sur tous les éléments cliquables */
[onclick]:not(html):not(body):not(script),
.product-card--clickable,
.upsell-card,
.flash-mini-card,
.deal-card { cursor: pointer; }

/* ── Critical / Above-fold CSS (also inline in <head> <style>) ── */
.promo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--primary);
  color: #fff;
  height: var(--promo-h);
  display: flex;
  align-items: center;
  font-size: .875rem;
  font-weight: 500;
  overflow: hidden;
}
.promo-banner.hidden { display: none; }
.promo-banner {
  overflow: hidden;
}
.promo-banner__track {
  display: flex;
  width: max-content;
  animation: promo-scroll 25s linear infinite;
}
.promo-banner__text {
  display: inline-block;
  padding-right: 100vw;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes promo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: var(--promo-h);
  left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: #ffffff;
  border-top: 3px solid #b7e4c7;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--page-px);
  gap: 24px;
  transition: top var(--transition), box-shadow var(--transition);
}
.navbar.promo-hidden { top: 0; }
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.logo-icon {
  height: 180px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-icon { height: 120px; }
}
.logo-ici  { color: var(--text-dark); font-weight: 800; }
.logo-on   { color: rgba(30,41,59,.45); font-weight: 300; }
.logo-deal { color: var(--primary); font-weight: 800; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.navbar__nav a {
  color: var(--text-dark);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar__nav a:hover,
.navbar__nav a.active { color: var(--primary); background: rgba(45,106,79,.07); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1010;
}
.lang-toggle {
  color: var(--text-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: transparent;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ── Bouton devise cyclique (même style que lang-toggle) ── */
.devise-cycle-btn {
  color: var(--text-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: transparent;
  cursor: pointer;
  letter-spacing: .03em;
}
.devise-cycle-btn:hover { border-color: var(--primary); color: var(--primary); }
.devise-cycle-icon { display: none; }

.cart-btn {
  position: relative;
  color: var(--text-dark);
  font-size: 1.3rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.cart-btn:hover { color: var(--primary); background: rgba(45,106,79,.07); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.cart-badge.hidden { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}
/* Bouton statique : les 3 lignes restent identiques menu ouvert ou fermé */

/* Page offset for fixed nav */
.page-offset { padding-top: calc(var(--promo-h) + var(--navbar-h)); }

/* ── Hero Section (Bannière centrée) ── */
.hero {
  position: relative;
  padding-top: calc(var(--promo-h) + var(--navbar-h) + 24px);
  padding-left: var(--page-px);
  padding-right: var(--page-px);
  padding-bottom: 28px;
  background: #f1f5f9;
}
.hero-wrap { max-width: 1200px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 32px rgba(0,0,0,.12); }
.hero .swiper { width: 100%; height: 420px; }
.hero-slide { position: relative; overflow: hidden; height: 420px; }
.hero-slide__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,30,.72) 0%, rgba(10,10,30,.18) 100%);
}

/* ── Banner CSS ── */
.hb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 420px;
  padding: 40px 56px;
  overflow: hidden;
  border-radius: 18px;
}
.hb--blue  { background: linear-gradient(135deg, #0f2016 0%, #1b4332 55%, #2d6a4f 100%); }
.hb--promo { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #f97316 100%); }
.hb--photo { background: transparent; position: absolute; inset: 0; height: 100%; border-radius: 0; z-index: 2; }

/* Décorations géométriques */
.hb__deco {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  background: #fff;
  pointer-events: none;
}
.hb__deco--1 { width: 320px; height: 320px; top: -80px; right: -60px; }
.hb__deco--2 { width: 180px; height: 180px; bottom: -60px; right: 200px; }
.hb__deco--3 { width: 100px; height: 100px; top: 30px;   right: 340px; opacity: .07; }

/* Contenu texte */
.hb__body { position: relative; z-index: 2; max-width: 520px; }
.hb__tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hb__tag--light { background: rgba(255,255,255,.25); }
.hb__title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
}
.hb__title em { font-style: normal; color: #fbbf24; }
.hb--photo .hb__title em { color: #fde68a; }
.hb__title--light { color: #fff; }
.hb__sub {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  margin: 0 0 28px;
}
.hb__sub--light { color: rgba(255,255,255,.88); }
.hb__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1b4332;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.hb__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.hb__btn--dark  { background: #1a1a1a; color: #fff; }
.hb__btn--white { background: #fff; color: #1a1a1a; }

/* Visuel décoratif droite */
.hb__visual {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  z-index: 1;
}
.hb__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 2px solid rgba(255,255,255,.18);
}
.hb__circle--lg { width: 180px; height: 180px; top: 20px; left: 20px; }
.hb__circle--sm { width: 100px; height: 100px; top: 70px; left: 90px; background: rgba(255,255,255,.07); }
.hb__icons {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 2.2rem;
  line-height: 1;
}
.hb__visual--promo .hb__circle--lg { border-color: rgba(255,255,255,.25); }
.hb__badge-big {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  white-space: nowrap;
}

/* Mobile banner */
.hero-mobile-banner { display: none; border-radius: 0; height: auto; padding: 32px 24px; }

/* Desktop: cacher mobile banner */
@media(min-width: 769px) {
  .hero-mobile-banner { display: none !important; }
}

/* ── Sections ── */
.section { padding: 80px var(--page-px); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--accent { background: var(--accent); }
.section__header { text-align: center; margin-bottom: 56px; }
.section__header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section--dark .section__header h2 { color: var(--text-light); }
.section__header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}
.section--dark .section__header p { color: rgba(255,255,255,.6); }
.section__header .underline {
  width: 60px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .925rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,.4);
}
.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--outline-white {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--outline-white:hover {
  background: #fff;
  color: var(--text-dark);
}
.btn--dark {
  background: var(--bg-dark);
  color: #fff;
}
.btn--dark:hover {
  background: #333;
  transform: translateY(-2px);
}
.btn--sm { padding: 8px 18px; font-size: .825rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  gap: 10px;
}
.btn--whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Categories Section ── */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  cursor: pointer;
  group: true;
}
.category-card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  transition: transform .6s ease;
}
.category-card:hover .category-card__bg { transform: scale(1.06); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,26,26,.85) 0%, rgba(26,26,26,.2) 60%);
}
.category-card__content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.category-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.category-card__content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.category-card__content p {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-bottom: 20px;
  max-width: 300px;
}

/* ── Category Cards (horizontal side-by-side) ── */
.cat-cards-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.cat-card {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--text-dark);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.cat-card__icon-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card__icon-wrap--digital {
  background: #e8f5ee;
  border-radius: var(--radius-md);
  color: var(--primary);
}
.cat-card__icon-wrap--physical {
  background: #E6F4EA;
  border-radius: 50%;
  color: #2E7D32;
}
.cat-card__body {
  flex: 1;
  min-width: 0;
}
.cat-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.cat-card__body p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.cat-card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid #D8D8D0;
  border-radius: 20px;
  padding: 3px 12px;
  background: #fff;
}
.cat-card__arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}
.cat-card:hover .cat-card__arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* ── Product Grid & Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .products-grid { gap: 8px; } }
.product-card--clickable { cursor: pointer; }
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  z-index: 3;
}
.product-card__img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #F8F8F8;
}
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
  z-index: 1;
}
.product-card:hover .product-card__img:not(.product-card__img--hover) { transform: scale(1.04); }
.product-card__img--hover {
  opacity: 0;
  transform: none;
}
.product-card:hover .product-card__img--hover { opacity: 1; transform: none; }
/* NOUVEAU diagonal corner ribbon */
/* Rupture de stock badge — carte produit */
.pc-rupture-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e53935;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 4;
  pointer-events: none;
}
.pc-ribbon-new {
  position: absolute;
  top: 16px;
  left: -26px;
  width: 90px;
  background: var(--primary);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 0;
  transform: rotate(-45deg);
  z-index: 4;
  pointer-events: none;
}
/* Discount badge floating on image (top-right, before wishlist) */
.pc-disc-badge {
  position: absolute;
  top: 8px;
  right: 44px;
  background: #e53935;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 3;
}
/* Legacy badge container (related swiper in produit.php) */
.product-card__badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge--new     { background: var(--primary); color: #fff; }
.badge--promo   { background: var(--error); color: #fff; }
.badge--digital { background: #6c63ff; color: #fff; }
.badge--physical{ background: var(--success); color: #fff; }
.badge--discount{ background: var(--error); color: #fff; }
.product-card__wishlist {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.product-card__wishlist:hover { transform: scale(1.12); background: #fff; }
.product-card__wishlist.active { color: var(--error); }
.product-card__body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.product-card__cat {
  font-size: .67rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-card__name {
  font-size: .8rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
/* Rating row */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
}
.pc-stars   { color: #f59e0b; font-weight: 600; }
.pc-sep     { color: #bbb; }
.pc-reviews { color: var(--text-muted); }
.product-card__price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.price-main {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
}
.price-old {
  font-size: .75rem;
  color: #aaa;
  text-decoration: line-through;
}
.pc-disc-pct {
  font-size: .67rem;
  font-weight: 700;
  color: #e53935;
  background: #fde8e8;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Note badge sur image (bas-gauche) ── */
.pc-note-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: #fff;
  border-radius: 20px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 700;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  pointer-events: none;
  z-index: 5;
  transform: translateZ(0);
}
.pc-note-star { color: #16a34a; }

/* ── Infos promo (badge + ancien prix) au-dessus de la ligne prix ── */
.product-card__promo-info {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Ligne prix + icône panier ── */
.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
}
.product-card__price-row .product-card__price-wrap {
  flex: 1;
  min-width: 0;
}

/* ── Icône panier (inline dans la ligne prix) ── */
.pc-cart-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: #F5F5F5;
  border: 1.5px solid #E8E8E8;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #555;
  transition: background .2s, border-color .2s, color .2s;
}
.pc-cart-icon:hover {
  background: #4B5320;
  border-color: #4B5320;
  color: #fff;
}
.pc-cart-icon svg { display: block; pointer-events: none; }

/* ── % réduction vert (listing) ── */
.pc-disc-green {
  font-size: .68rem;
  font-weight: 700;
  color: #16a34a !important;
}

/* ── "par unité" ── */
.pc-per-unit {
  font-size: .64rem;
  color: #9ca3af;
  font-weight: 400;
  flex-basis: 100%;
}

/* ── Zone mention / carrousel ── */
.pc-mention-wrap {
  height: 26px;
  overflow: hidden;
  position: relative;
  margin-top: 7px;
  /* Force un layer GPU sur le conteneur pour que overflow:hidden
     clippe correctement les enfants animés (transform) sur mobile */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}
.pc-mention {
  position: absolute;
  top: 0; left: 0;
  /* pas de right:0 → le fond ne s'étire que sur le texte */
  width: fit-content;
  max-width: 100%;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .67rem;
  font-weight: 500;
  padding: 0 8px;
  border-radius: 4px;
  white-space: nowrap;
  will-change: transform;
}
.pc-mention--static {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .67rem;
  font-weight: 500;
  padding: 0 8px;
  height: 26px;
  margin-top: 7px;
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
}
.mc-green  { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.mc-gray   { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.mc-purple { color: #7c3aed; background: #faf5ff; border: 1px solid #e9d5ff; }

@media (max-width: 480px) {
  .pc-mention, .pc-mention--static { font-size: .64rem; height: 24px; padding: 0 6px; }
  .pc-mention-wrap { height: 24px; }
  .pc-note-badge {
    font-size: .62rem;
    padding: 2px 6px;
    bottom: 6px;
    left: 6px;
    z-index: 5;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

.price-converted {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
#form-total-val .price-converted {
  color: #e53935;
}
.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.product-card__actions .btn {
  flex: 1;
  padding: 7px 10px;
  font-size: .78rem;
  justify-content: center;
}

/* ── Skeleton Loading ── */
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skeleton-card__img { height: 220px; }
.skeleton-card__body { padding: 16px; }
.skeleton-card__line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 7px;
}
.skeleton-card__line--sm { width: 60%; height: 11px; }
.skeleton-card__line--title { width: 85%; height: 16px; }
.skeleton-card__line--price { width: 50%; height: 18px; }
.skeleton-card__btn { height: 38px; margin-top: 14px; border-radius: var(--radius-sm); }

/* ── Advantages ── */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.advantage-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.advantage-card__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}
.advantage-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.advantage-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 22px;
  font-size: 5rem;
  color: var(--primary);
  opacity: .15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card__stars {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-card__text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: .95rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-dark);
}

/* ── Stats Section ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stat-item__number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ── Why Choose Us / Payment ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-card__icon { font-size: 2.6rem; margin-bottom: 14px; display: block; }
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.why-card p { font-size: .85rem; color: var(--text-muted); }

/* ── Newsletter ── */
.newsletter { background: var(--bg-dark); padding: 72px var(--page-px); }
.newsletter__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.newsletter p {
  color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  font-size: .95rem;
}
.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter__form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter__form input:focus { border-color: var(--primary); }
.newsletter__message {
  margin-top: 16px;
  font-size: .9rem;
  min-height: 24px;
}
.newsletter__message.success { color: var(--success); }
.newsletter__message.error   { color: var(--error); }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 90px; right: 24px;
  z-index: 9999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.65); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.footer__location { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 8px; }

/* ── Footer ── */
.footer {
  background: #111;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px var(--page-px);
  gap: 16px;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  transition: background var(--transition), transform var(--transition);
}
.footer__social-link svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: rgba(255,255,255,.7);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer__social-link--tt svg { fill: rgba(255,255,255,.7); stroke: none; }
.footer__social-link:hover { transform: translateY(-2px); }
.footer__social-link--fb:hover { background: #1877f2; }
.footer__social-link--ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.footer__social-link--tt:hover { background: #fe2c55; }
.footer__social-link:hover svg { stroke: #fff; }
.footer__social-link--tt:hover svg { fill: #fff; stroke: none; }
@media (max-width: 600px) {
  .footer__social { display: none; }
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 0;
}
.footer__legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  padding: 0 10px;
  transition: color var(--transition);
  white-space: nowrap;
}
.footer__legal a:hover { color: #fff; }
.footer__sep {
  color: rgba(255,255,255,.15);
  font-size: .85rem;
  user-select: none;
}
.footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}
.footer__copy strong { color: rgba(255,255,255,.6); font-weight: 600; }
@media (max-width: 640px) {
  .footer__bar { flex-direction: column; gap: 14px; padding: 20px var(--page-px); }
  .footer__legal a { padding: 0 8px; font-size: .75rem; }
}

/* ── Email Floating Button ── */
.email-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(45,106,79,.5);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.email-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(45,106,79,.7);
}
.email-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 768px) {
  .email-float {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .email-float svg { width: 20px; height: 20px; }
  .wa-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .wa-float svg { width: 20px; height: 20px; }
}

/* ── Boutique / Shop Page ── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px var(--page-px);
  max-width: var(--page-max);
  margin: 0 auto;
}
.shop-filters {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--promo-h) + var(--navbar-h) + 20px);
}
.filter-group { margin-bottom: 28px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.filter-radio, .filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-dark);
}
.filter-radio input[type="radio"],
.filter-check input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px; height: 15px;
  cursor: pointer;
}

/* Price range slider */
.price-range-wrap { padding: 8px 4px; }
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.price-range-track {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 20px;
}
.price-range-fill {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}
.price-range-wrap input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  top: 0; left: 0;
}
.price-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
  cursor: pointer;
  pointer-events: all;
  transition: transform var(--transition);
}
.price-range-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.filter-actions { display: flex; gap: 10px; margin-top: 8px; }
.filter-actions .btn { flex: 1; padding: 10px 16px; font-size: .85rem; }

/* Shop main area */
.shop-main {}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-bar {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.search-bar input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  outline: none;
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}
.autocomplete-dropdown.hidden { display: none; }
.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.autocomplete-item:hover { background: var(--bg-light); }
.autocomplete-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.autocomplete-item__name { font-weight: 500; }
.autocomplete-item__price { font-size: .8rem; color: var(--text-muted); }
.sort-select {
  padding: 10px 36px 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  background: var(--bg-card);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--primary); }
.product-count { font-size: .875rem; color: var(--text-muted); white-space: nowrap; }

/* ── Product Detail Page ── */
.product-detail {
  /* padding-top is handled by .page-offset — do NOT use shorthand here */
  padding-left: var(--page-px);
  padding-right: var(--page-px);
  padding-bottom: 60px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}

/* ── Product info short desc ── */
.product-info__short-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0 16px;
}

/* ── pd-section (option / couleur) ── */
.pd-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.pd-section--half {
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.pd-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Option cards ── */
.option-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.option-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.option-card:hover { border-color: var(--primary-light); }
.option-card.selected {
  border-color: var(--primary);
  background: #e8f5ee;
}
.option-card__qty {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.option-card__label {
  font-size: .68rem;
  color: var(--text-muted);
  margin: 2px 0 4px;
}
.option-card__price {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
}
.option-total {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.option-total strong {
  font-size: .95rem;
  color: var(--primary);
  font-weight: 700;
}

/* ── Options row (quantité + couleur côte à côte) ── */
.pd-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.pd-section--half { min-width: 0; }
.pd-section--half {
  flex: 1;
  margin-bottom: 0;
}
.pd-options-row + .pd-total-bar { margin-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* ── Total bar ── */
.pd-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8f5ee;
  border: 1px solid var(--primary-light);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: .9rem;
  color: var(--text-muted);
}
.pd-total-bar strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Quantity ctrl ── */
.pd-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.pd-qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: none;
  font-size: 1.2rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-dark);
  transition: background .15s;
  flex-shrink: 0;
}
.pd-qty-btn:hover { background: var(--border); }
.pd-qty-input {
  width: 52px;
  height: 40px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
}
.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-qty-total {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pd-qty-total strong {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
}

/* ── Color select ── */
.pd-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}
.pd-select:focus { border-color: var(--primary); }

/* ── Checkout grid (form + payment) ── */
.pd-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.pd-client-section,
.pd-payment-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* ── pd-input ── */
.pd-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-dark);
  outline: none;
  transition: border-color .18s;
  box-sizing: border-box;
  resize: vertical;
}
.pd-input:focus { border-color: var(--primary); }
.pd-input option { background: #fff; color: #0a0a0a; }
.pd-client-section .form-group { margin-bottom: 10px; }
.pd-phone-row { display: flex; gap: 6px; align-items: center; width: 100%; min-width: 0; }
.pd-phone-row .pd-input { flex: 1; min-width: 0; }
.pd-client-section .form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

/* ── Payment method buttons ── */
.pay-methods-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.pay-method-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.pay-method-btn:hover {
  border-color: #bbb;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.pay-method-btn__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pay-method-btn__body { flex: 1; }
.pay-method-btn__title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}
.pay-method-btn__sub {
  display: block;
  font-size: .78rem;
  color: #888;
  margin-top: 2px;
}
/* Selected — livraison : vert */
.pay-method-btn[data-method="livraison"].selected {
  background: #3a8f45;
  border-color: #3a8f45;
  box-shadow: 0 4px 16px rgba(58,143,69,.35);
}
.pay-method-btn[data-method="livraison"].selected .pay-method-btn__title,
.pay-method-btn[data-method="livraison"].selected .pay-method-btn__sub { color: #fff; }
/* Selected — fedapay : bleu */
.pay-method-btn[data-method="fedapay"].selected {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.pay-method-btn[data-method="fedapay"].selected .pay-method-btn__title,
.pay-method-btn[data-method="fedapay"].selected .pay-method-btn__sub { color: #fff; }

/* ── Btn add to order ── */
.btn-add-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-bottom: 12px;
}
.btn-add-order:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.product-gallery {}
.product-gallery__main {
  width: 100%;
  padding-top: 80%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 12px;
}
.product-gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}
.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 76px; height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  background: #f0f0f0;
  flex-shrink: 0;
}
.product-gallery__thumb.active { border-color: var(--primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info {}
.product-info__breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-info__breadcrumb a { color: var(--primary); }
.product-info__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.product-info__name {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.product-info__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars { color: var(--primary); letter-spacing: 2px; }
.stars-count { font-size: .85rem; color: var(--text-muted); }
.product-info__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.price-main--lg { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }
.price-old--lg { font-size: 1.1rem; }
.stock-bar-wrap {
  margin-bottom: 20px;
}
.stock-bar-wrap__label {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stock-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stock-bar__fill {
  height: 100%;
  border-radius: 4px;
  background: var(--success);
  transition: width .5s ease;
}
.stock-bar__fill.low { background: var(--warning); }
.stock-bar__fill.critical { background: var(--error); }
.product-info__delivery {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .88rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-info__delivery span:first-child { color: var(--primary); font-size: 1.2rem; }
.product-info__instant {
  background: rgba(76,175,80,.1);
  border: 1px solid rgba(76,175,80,.3);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-selector label {
  padding: 0 14px;
  font-size: .875rem;
  color: var(--text-muted);
  border-right: 2px solid var(--border);
  display: flex;
  align-items: center;
  height: 42px;
}
.qty-btn {
  width: 40px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.qty-btn:hover { background: var(--bg-light); color: var(--primary); }
.qty-input {
  width: 48px;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  height: 42px;
  outline: none;
  padding: 0 8px;
}
.product-info__btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.product-info__btns .btn { justify-content: center; }

/* ── Récapitulatif commande live ── */
.order-summary {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.order-summary__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: .9rem;
  color: var(--text-muted);
}
.order-summary__qty {
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 10px;
  min-width: 28px;
  text-align: center;
}
.order-summary__divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 8px;
}
.order-summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}
.order-summary__total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* Bouton Commander maintenant */
.btn--order-now {
  background: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  letter-spacing: .02em;
}
.btn--order-now:hover { background: var(--primary-dark); }

/* ── Bloc de paiement/checkout ── */
.checkout-block {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.checkout-block__title {
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Grille des méthodes de paiement ── */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.payment-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.payment-card input[type="radio"] { display: none; }
.payment-card__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-card__icon { font-size: 1.4rem; flex-shrink: 0; }
.payment-card__inner div { display: flex; flex-direction: column; gap: 2px; }
.payment-card__inner strong { font-size: .85rem; font-weight: 700; color: var(--text); }
.payment-card__inner span  { font-size: .75rem; color: var(--text-muted); }
.payment-card.selected,
.payment-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(45,106,79,.06);
}
.payment-card.selected .payment-card__inner strong,
.payment-card:has(input:checked) .payment-card__inner strong { color: var(--primary); }

/* ── Instructions paiement ── */
.pay-instructions {
  background: #e8f5ee;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}
.pay-instructions strong { color: var(--primary); }

/* ── Champs formulaire checkout ── */
.checkout-form__fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.checkout-form__fields .form-group { display: flex; flex-direction: column; gap: 6px; }
.checkout-form__fields label { font-size: .85rem; font-weight: 600; color: var(--text); }
.checkout-form__fields input,
.checkout-form__fields textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.checkout-form__fields input:focus,
.checkout-form__fields textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Écran succès ── */
.checkout-success {
  text-align: center;
  padding: 8px 0;
  animation: fadeIn .4s ease;
}
.checkout-success__icon { font-size: 2.8rem; margin-bottom: 8px; }
.checkout-success h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; color: var(--success); }
.checkout-success__ref { font-size: .9rem; margin: 0 0 16px; color: var(--text-muted); }
.checkout-success__ref strong { color: var(--primary); font-size: 1rem; }
.checkout-success__instructions {
  background: #f5f5f5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .875rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 4px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Responsive paiement */
@media (max-width: 480px) {
  .payment-methods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .payment-card { padding: 10px 8px; }
  .payment-card__icon { font-size: 1.2rem; }
  .payment-card__inner strong { font-size: .78rem; }
  .payment-card__inner span { font-size: .7rem; }
}
.security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.security-badge span:first-child { font-size: 1rem; }
.security-badge strong { color: var(--success); }

/* Tabs */
.product-tabs { margin-bottom: 56px; }
.tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}
.tab-btn {
  padding: 14px 24px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Reviews */
.reviews-list { margin-bottom: 40px; }
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-item__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.review-item__avatar {
  width: 40px; height: 40px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.review-item__name { font-weight: 600; font-size: .9rem; }
.review-item__date { font-size: .78rem; color: var(--text-muted); }
.review-item__text { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.review-form { background: var(--bg-light); border-radius: var(--radius-md); padding: 28px; }
.review-form h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.star-rating-input { display: flex; gap: 6px; margin-bottom: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating-input input { display: none; }
.star-rating-input label {
  font-size: 1.6rem;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition);
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--primary); }
.related-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--border);
}
.related-scroll .product-card { min-width: 220px; flex-shrink: 0; }

/* ── Section produits similaires ── */
.related-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--border);
  margin-bottom: 60px;
}
.related-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.related-section__header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 4px;
}
.related-section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
}
/* ── Related products carousel ── */
.related-swiper-wrap {
  position: relative;
  padding: 0 40px;
  overflow: hidden;
}
.related-swiper { overflow: hidden !important; }
.related-swiper .product-card__actions .btn {
  padding: 7px 10px;
  font-size: .8rem;
}

/* Arrows */
.related-prev,
.related-next {
  color: var(--primary) !important;
  width: 36px !important;
  height: 36px !important;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.related-prev::after,
.related-next::after {
  font-size: 14px !important;
  font-weight: 700;
}
.related-prev { left: 0 !important; }
.related-next { right: 0 !important; }

/* Pagination dots */
.related-pagination {
  margin-top: 20px !important;
  position: static !important;
}
.related-pagination .swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

@media (max-width: 768px) {
  .related-swiper-wrap { padding: 0; overflow: visible; }
  .related-prev, .related-next { display: none; }
  .related-section { margin-top: 40px; padding-top: 32px; }
}

/* ── Cart Page ── */
.cart-page { padding: 40px var(--page-px); max-width: 1100px; margin: 0 auto; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.cart-table td { padding: 18px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item__img-wrap { display: flex; align-items: center; gap: 14px; }
.cart-item__img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: #f0f0f0; }
.cart-item__name { font-weight: 600; font-size: .9rem; }
.cart-item__cat { font-size: .78rem; color: var(--text-muted); }
.cart-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.cart-qty-ctrl button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-light);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-qty-ctrl button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-qty-ctrl input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px;
  font-size: .9rem;
}
.cart-remove-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.cart-remove-btn:hover { color: var(--error); background: rgba(229,57,53,.08); }
.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--promo-h) + var(--navbar-h) + 20px);
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row--total {
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 2px solid var(--border) !important;
  border-bottom: none !important;
}
.summary-row__label { color: var(--text-muted); }
.summary-row__value { font-weight: 600; color: var(--text-dark); }
.summary-row--total .summary-row__value { color: var(--primary); font-size: 1.3rem; }
.cart-summary__btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ── Wishlist Page ── */
.wishlist-page { padding: 40px var(--page-px); max-width: var(--page-max); margin: 0 auto; }

/* ── Contact Page ── */
.contact-page { padding: 60px var(--page-px); max-width: 1100px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.contact-info h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: .9rem;
}
.contact-info__item-icon {
  width: 42px; height: 42px;
  background: rgba(45,106,79,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info__item-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-info__item-text span { color: var(--text-muted); }
.contact-form { background: var(--bg-card); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  background: var(--bg-light);
  outline: none;
  transition: border-color var(--transition);
  color: var(--text-dark);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-message { margin-top: 12px; font-size: .875rem; min-height: 20px; }
.form-message.success { color: var(--success); }
.form-message.error   { color: var(--error); }

/* ── FAQ Page ── */
.faq-page { padding: 60px var(--page-px); max-width: 820px; margin: 0 auto; }
.faq-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; text-align: center; margin-bottom: 8px; }
.faq-page .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question__icon {
  width: 28px; height: 28px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question__icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ── Static Pages (Privacy, Terms, Returns) ── */
.static-page { padding: 60px var(--page-px); max-width: 860px; margin: 0 auto; }
.static-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 8px; }
.static-page .updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 40px; }
.static-page h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; color: var(--text-dark); }
.static-page p { font-size: .92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.static-page ul { margin: 12px 0 14px 20px; }
.static-page ul li { font-size: .92rem; color: var(--text-muted); margin-bottom: 6px; list-style: disc; }

/* ── Admin Panel ── */
.admin-body { background: #f0f2f5; min-height: 100vh; font-family: 'Poppins', sans-serif; }
.admin-topbar {
  background: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  justify-content: space-between;
}
.admin-topbar__logo { display: flex; align-items: center; gap: 8px; }
.admin-logo-img { height: 180px; width: auto; object-fit: contain; }
.admin-logo-label { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 768px) { .admin-logo-img { height: 120px; } }
.admin-topbar__user { display: flex; align-items: center; gap: 14px; font-size: .875rem; }
.admin-topbar__user a { color: var(--error); font-weight: 600; transition: opacity var(--transition); }
.admin-topbar__user a:hover { opacity: .75; }
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar {
  width: 240px;
  background: var(--bg-dark);
  flex-shrink: 0;
  padding: 24px 0;
}
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.admin-sidebar__nav a:hover,
.admin-sidebar__nav a.active { background: rgba(37,99,235,.18); color: var(--primary); }
.admin-sidebar__nav a span { font-size: 1.1rem; }
.admin-main { flex: 1; padding: 32px; overflow-x: auto; }
/* Admin mobile menu button & overlay */
.admin-menu-btn {
  display: none;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.admin-menu-btn:hover { background: var(--border); }
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
}
.admin-sidebar-overlay.visible { display: block; }
@media (max-width: 768px) { .admin-menu-btn { display: inline-flex; align-items: center; } }
.admin-page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.admin-stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-stat-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.admin-stat-card__icon--gold   { background: rgba(201,168,76,.1); }
.admin-stat-card__icon--blue   { background: rgba(33,150,243,.1); }
.admin-stat-card__icon--green  { background: rgba(76,175,80,.1); }
.admin-stat-card__icon--red    { background: rgba(229,57,53,.1); }
.admin-stat-card__number { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.admin-stat-card__label  { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.admin-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-card__header h2 { font-size: 1rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--bg-light);
  border-bottom: 2px solid var(--border);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(37,99,235,.03); }
.admin-table img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-form { max-width: 780px; }
.admin-form .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.admin-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.status-badge--pending  { background: rgba(255,152,0,.15); color: #e65100; }
.status-badge--shipped  { background: rgba(33,150,243,.15); color: #0d47a1; }
.status-badge--delivered{ background: rgba(76,175,80,.15); color: #1b5e20; }
.status-badge--cancelled{ background: rgba(229,57,53,.15); color: var(--error); }
.admin-login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
  padding: 20px;
}
.admin-login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.admin-login-card p { color: var(--text-muted); font-size: .875rem; margin-bottom: 32px; }
.admin-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 16px;
  font-weight: 500;
}
.admin-alert--error   { background: rgba(229,57,53,.1); color: var(--error); border-left: 3px solid var(--error); }
.admin-alert--success { background: rgba(76,175,80,.1); color: var(--success); border-left: 3px solid var(--success); }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0;
}
.page-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 96px; right: 24px;
  z-index: 9998;
  background: var(--text-dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(110%);
  transition: transform .35s ease;
  max-width: 300px;
  border-left: 4px solid var(--primary);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }

/* ── Page Hero Banner ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
  padding: 60px var(--page-px) 56px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}
.empty-state__icon { font-size: 4rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--page-px); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Mobile Overlay ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 950;
}
.mobile-nav-overlay.open { display: block; }

/* ── Mobile Drawer — caché par défaut, visible uniquement en mobile ── */
.mobile-drawer { display: none; }

/* ────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────── */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .products-grid      { grid-template-columns: repeat(3,1fr); }
  .advantages-grid    { grid-template-columns: repeat(2,1fr); }
  .why-grid           { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid  { grid-template-columns: repeat(2,1fr); }
  .stats-grid         { grid-template-columns: repeat(2,1fr); gap: 32px; }
  /* .footer__grid obsolete */
  .product-detail__grid { gap: 32px; }
  .admin-stats        { grid-template-columns: repeat(2,1fr); }
  .shop-layout        { grid-template-columns: 240px 1fr; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root {
    --navbar-h: 64px;
    --promo-h: 40px;
  }

  /* Promo banner */
  .promo-banner { padding: 0 20px; font-size: .8rem; gap: 8px; }

  /* Navbar mobile — desktop nav stays, drawer handles mobile */
  .navbar__nav { display: none; }
  .lang-toggle, .devise-cycle-btn { display: none; }
  .hamburger { display: flex; }
  .navbar__actions { gap: 6px; margin-left: auto; }

  /* ── Mobile Drawer ── */
  .mobile-drawer {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 50vw !important;
    height: 100vh !important;
    background: var(--bg-dark) !important;
    z-index: 960 !important;
    transform: translateX(100%) !important;
    transition: transform .3s ease !important;
    overflow: hidden !important;
  }
  .mobile-drawer.mobile-open { transform: translateX(0) !important; }

  .mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: calc(var(--promo-h) + var(--navbar-h));
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
  }
  .mobile-drawer__title {
    color: rgba(255,255,255,.75);
    font-size: .78rem;
    line-height: 1.4;
  }
  .mobile-drawer__title strong { color: #fff; font-weight: 700; }
  .mobile-drawer__close {
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .18s;
  }
  .mobile-drawer__close:hover { background: rgba(255,255,255,.2); }

  .mobile-drawer__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    gap: 4px;
    overflow-y: auto;
  }
  .mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s, color .18s;
  }
  .mobile-drawer__link:hover { background: rgba(255,255,255,.08); color: #fff; }
  .mobile-drawer__link.active { background: rgba(45,106,79,.5); color: #6fcf97; font-weight: 700; }

  .mobile-drawer__footer {
    padding: 14px 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
  }
  .drawer-lang-row { display: flex; }
  .drawer-lang-row .lang-toggle {
    display: inline-flex;
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.25);
    font-size: .82rem;
    padding: 7px 16px;
    background: rgba(255,255,255,.08);
  }
  .drawer-lang-row .lang-toggle:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.14); }
  .drawer-devise-row { display: flex; gap: 6px; }
  .drawer-devise-btn {
    flex: 1;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.65);
    border-radius: 6px;
    padding: 8px 2px;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
  }
  .drawer-devise-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
  .drawer-devise-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

  /* Hero mobile */
  .hero { padding-left: var(--page-px); padding-right: var(--page-px); padding-bottom: 20px; }
  .hero-wrap .swiper { display: none !important; }
  .hero-mobile-banner { display: flex !important; border-radius: 14px; }
  .hb__visual { display: none; }
  .hb__title { font-size: 1.5rem; }
  .hb__sub { font-size: .85rem; }

  /* Grids */
  .products-grid    { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .categories-grid  { grid-template-columns: 1fr; }
  .cat-cards-grid   { flex-direction: column; }
  .advantages-grid  { grid-template-columns: 1fr 1fr; }
  .why-grid         { grid-template-columns: 1fr 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .category-card    { height: 260px; padding: 24px; }
  .section          { padding: 48px var(--page-px); }

  /* Shop toolbar */
  .shop-toolbar     { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-bar       { min-width: 0; max-width: none; flex: 1 1 100%; }
  .shop-toolbar > div:last-child { display: flex; gap: 10px; align-items: center; }

  /* Shop filters */
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters {
    position: fixed;
    bottom: -100%;
    left: 0; right: 0;
    z-index: 500;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transition: bottom .3s ease;
  }
  .shop-filters.mobile-open { bottom: 0; }
  .filter-toggle-btn { display: flex; }

  /* Product detail */
  .product-detail__grid  { grid-template-columns: 1fr; gap: 28px; }
  .pd-checkout-grid      { grid-template-columns: 1fr; }
  .option-cards          { grid-template-columns: repeat(3,1fr); }
  .product-detail        { padding-left: var(--page-px); padding-right: var(--page-px); padding-bottom: 40px; }
  .product-info__breadcrumb { flex-wrap: wrap; font-size: .78rem; gap: 4px; }
  /* Tabs */
  .product-tabs          { margin-bottom: 32px; }
  .tab-btn               { padding: 10px 14px; font-size: .82rem; }
  .tabs__nav             { overflow-x: auto; scrollbar-width: none; }
  .tabs__nav::-webkit-scrollbar { display: none; }
  /* Payment buttons */
  .pay-method-btn        { padding: 12px 14px; gap: 10px; }
  .pay-method-btn__title { font-size: .88rem; }
  .pay-method-btn__sub   { font-size: .74rem; }
  /* Related section */
  .related-section       { margin-top: 28px; padding-top: 24px; }

  /* Cart */
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Admin */
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    width: 240px;
    z-index: 999;
    transition: left .28s ease;
    overflow-y: auto;
    padding-top: 16px;
  }
  .admin-sidebar.mobile-open { left: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-form .form-row-3 { grid-template-columns: 1fr; }
  .admin-form .form-row-2 { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px; }

  /* Footer */
  .footer__bottom { flex-direction: column; gap: 8px; }

  /* Newsletter */
  .newsletter__form { flex-direction: column; max-width: 100%; }
  .newsletter__form input,
  .newsletter__form .btn { width: 100%; box-sizing: border-box; }

  /* Page hero */
  .page-hero { padding: 40px var(--page-px) 36px; }

  /* Cart summary — no sticky on mobile */
  .cart-summary { position: static; padding: 20px 16px; }

  /* Hamburger bigger touch target */
  .hamburger { padding: 10px; }

  /* Option cards 2 cols */
  .option-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ≤600px — tablette portrait étroite */
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .admin-stats       { grid-template-columns: 1fr 1fr; }
  /* Admin dashboard inner grid */
  .admin-main > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Section spacing */
  .section { padding: 44px var(--page-px); }
  .section__header { margin-bottom: 36px; }

  /* Cat cards collapse sooner */
  .cat-cards-grid { flex-direction: column; }

  /* Product grid 2 cols sooner */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Wishlist layout single column */
  .wishlist-page .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  /* Promo banner très petit écran */
  .promo-banner { padding: 0 12px; font-size: .75rem; }

  /* Sections */
  .section { padding: 36px var(--page-px); }
  .section__header { margin-bottom: 28px; }

  /* Product detail */
  .product-detail { padding-left: var(--page-px); padding-right: var(--page-px); padding-bottom: 32px; }
  .tab-btn { padding: 8px 10px; font-size: .78rem; }
  .pay-method-btn { padding: 10px 12px; gap: 8px; }
  .pay-method-btn__icon { font-size: 1.1rem; }
  .btn-add-order { padding: 13px 16px; font-size: .92rem; }

  /* Option cards 2 cols */
  .option-cards { grid-template-columns: repeat(2, 1fr); }

  /* Navbar actions */
  .navbar__actions { gap: 4px; }
  .lang-toggle     { font-size: .7rem; padding: 3px 6px; }
  .devise-cycle-btn{ font-size: .7rem; padding: 3px 6px; }

  /* Hero */
  .hero .swiper { height: 360px; }
  .hero-slide { height: 360px; }
  .hb { padding: 32px 28px; height: 360px; }
  .hb__title { font-size: 1.4rem; }

  /* Produits */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card__body { padding: 10px; }
  .product-card__name { font-size: .82rem; }
  .price-main { font-size: .9rem; }
  .product-card__actions { flex-direction: column; gap: 6px; }
  .product-card__actions .btn { width: 100%; text-align: center; padding: 8px; font-size: .8rem; }

  /* Touch targets: minimum 44px height */
  .btn, .nav-link, .navbar__nav a { min-height: 44px; }
  .btn--sm { min-height: 36px; }

  /* Avantages */
  .advantages-grid { grid-template-columns: 1fr; }

  /* Admin */
  .admin-stats { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 12px; }
  .admin-topbar__user a:first-child { display: none; } /* masque "Voir le site" sur mobile */
}

/* ≤360px — très petits téléphones (Galaxy A, iPhone SE 1st gen) */
@media (max-width: 360px) {
  :root { --page-px: 12px; }
  .lang-toggle,
  .devise-cycle-btn { display: none; } /* trop à l'étroit, accès via menu */
  .navbar__actions { gap: 4px; }
  .navbar { padding: 0 12px; }
  .page-hero { padding: 32px 12px 28px; }
  .empty-state { padding: 40px 12px; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .product-card__body { padding: 8px; }
  .product-card__name { font-size: .75rem; }
  .price-main { font-size: .82rem; }
  .product-card__actions { flex-direction: column; gap: 4px; }
  .product-card__actions .btn { padding: 6px 4px; font-size: .72rem; }
  .section { padding: 36px var(--page-px); }
  /* Footer */
  .footer__legal { gap: 6px; font-size: .8rem; flex-wrap: wrap; justify-content: center; }
  /* Cart */
  .cart-page { padding: 28px 12px; }
  .cart-table td { padding: 12px 8px; }
  .cart-item__img { width: 56px; height: 56px; }
  /* Contact */
  .contact-page { padding: 32px 12px; }
  .contact-form { padding: 20px 14px; }
  /* FAQ */
  .faq-page { padding: 32px 12px; }
  /* Section header */
  .section__header { margin-bottom: 32px; }
  .section__header h2 { font-size: 1.3rem; }
  /* Mini produits (home 2cols) */
  .mini-prod img { width: 58px; height: 58px; }
  .mini-prod__name { font-size: .78rem; }
  .mini-prod__price { font-size: .74rem; }
}

/* ≤320px — iPhones SE 1ère gen & très anciens Android */
@media (max-width: 320px) {
  :root { --page-px: 10px; }
  .logo-icon { height: 32px; }
  .products-grid { gap: 6px; }
  .product-card__name { font-size: .7rem; }
  .section__header h2 { font-size: 1.2rem; }
}

/* ════════════════════════════════════════════════════
   CORRECTIFS MOBILE GLOBAUX
   ════════════════════════════════════════════════════ */

/* Word-break sur toutes les cellules de tableaux (longues chaînes) */
table td, table th {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Hero mobile : hauteur fluide via aspect-ratio */
@media (max-width: 768px) {
  .hb {
    height: auto;
    min-height: 220px;
    padding: 28px 20px;
    aspect-ratio: unset;
  }
  .hb__deco--1 { width: 160px; height: 160px; }
  .hb__deco--2 { width: 100px; height: 100px; }
  .hb__deco--3 { display: none; }
}

/* Touch targets admin : boutons au moins 44px */
@media (max-width: 768px) {
  .btn-add { min-height: 40px; }
  .ni { min-height: 44px; }
  .sub { min-height: 40px; }
}

/* Admin — overflow sur les conteneurs de tables */
.admin-card { overflow: hidden; }
.admin-card [style*="overflow-x:auto"],
.admin-card > div { max-width: 100%; }

/* Topbar admin : titre tronqué sur mobile */
@media (max-width: 500px) {
  .topbar__title {
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 120px);
  }
  .btn-add span { display: none; }
  .btn-add { padding: 8px 10px; }
}

/* Filtre boutique : limiter la hauteur sur très petit écran */
@media (max-width: 480px) {
  .shop-filters { max-height: 75dvh; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE TABLES — Card layout mobile
   ════════════════════════════════════════════════════ */

/* ── Panier : carte image-gauche (≤600px) ── */
@media (max-width: 600px) {
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody { display: block; }

  /* Annule le masquage de la colonne Qté du breakpoint 768px */
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: flex !important; }

  .cart-table tr {
    display: block;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
  }
  .cart-table tr:last-child { margin-bottom: 0; }

  /* Cellule produit : pleine largeur + place pour le × */
  .cart-table td:nth-child(1) {
    display: block;
    padding: 0 48px 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .cart-item__img { width: 80px; height: 80px; }

  /* Lignes libellées : Prix / Total */
  .cart-table td:nth-child(2),
  .cart-table td:nth-child(4) {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: none;
    font-size: .9rem;
  }
  .cart-table td:nth-child(2)::before,
  .cart-table td:nth-child(4)::before {
    content: attr(data-label) " :";
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    min-width: 52px;
    flex-shrink: 0;
  }

  /* Ligne Qté */
  .cart-table td:nth-child(3) {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: none;
    font-size: .9rem;
  }
  .cart-table td:nth-child(3)::before {
    content: attr(data-label) " :";
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    min-width: 52px;
    flex-shrink: 0;
  }
  .cart-qty-ctrl button { width: 36px; height: 36px; }

  /* Bouton supprimer : coin haut-droit */
  .cart-table td:nth-child(5) {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    border-bottom: none;
  }
  .cart-remove-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }
}

/* ── Admin tables : carte générique data-label (≤640px) ── */
@media (max-width: 640px) {
  .admin-table thead { display: none; }
  .admin-table,
  .admin-table tbody { display: block; }
  .admin-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    position: relative;
  }
  .admin-table tr:last-child { margin-bottom: 0; }
  .admin-table td {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: none;
    font-size: .875rem;
    min-height: 32px;
  }
  .admin-table td[data-label=""]        { padding: 0; min-height: 0; }
  .admin-table td[data-label=""]::before { display: none; }
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    min-width: 76px;
    flex-shrink: 0;
  }
}

/* ── Table produits admin : layout carte complexe (≤640px) ── */
@media (max-width: 640px) {
  .admin-table--products tr {
    display: grid;
    grid-template-columns: 60px 1fr 56px;
    grid-template-rows: repeat(8, auto);
    column-gap: 10px;
    row-gap: 0;
    padding: 12px;
  }

  /* 1 : ID — fusionné visuellement avec le Nom, masqué */
  .admin-table--products td:nth-child(1) { display: none; }

  /* 2 : Image — colonne gauche, couvre les 3 premières lignes */
  .admin-table--products td:nth-child(2) {
    grid-column: 1;
    grid-row: 1 / 4;
    padding: 0;
    align-self: start;
    min-height: 0;
  }
  .admin-table--products td:nth-child(2)::before { display: none; }
  .admin-table--products td:nth-child(2) img { width: 56px; height: 56px; border-radius: 8px; }

  /* 3 : Nom — centre ligne 1 */
  .admin-table--products td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    font-weight: 700;
    font-size: .9rem;
    align-self: center;
    min-height: 0;
  }
  .admin-table--products td:nth-child(3)::before { display: none; }

  /* 4 : Catégorie — centre ligne 2 */
  .admin-table--products td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    padding: 2px 0;
    font-size: .78rem;
    color: var(--text-muted);
    min-height: 0;
  }
  .admin-table--products td:nth-child(4)::before { display: none; }

  /* 5 : Type badge — centre ligne 3 */
  .admin-table--products td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    padding: 2px 0 6px;
    min-height: 0;
  }
  .admin-table--products td:nth-child(5)::before { display: none; }

  /* 9 : Toggle statut — colonne droite ligne 1 */
  .admin-table--products td:nth-child(9) {
    grid-column: 3;
    grid-row: 1;
    padding: 0;
    justify-content: center;
    align-self: center;
    min-height: 0;
  }
  .admin-table--products td:nth-child(9)::before { display: none; }
  .admin-table--products .statut-label { display: none; }

  /* 6,7,8 : Prix / Promo / Stock — pleine largeur avec séparateur top */
  .admin-table--products td:nth-child(6) {
    grid-column: 1 / 4;
    grid-row: 4;
    border-top: 1px solid var(--border);
    padding: 8px 0 3px;
    min-height: 0;
  }
  .admin-table--products td:nth-child(7) {
    grid-column: 1 / 4;
    grid-row: 5;
    padding: 3px 0;
    min-height: 0;
  }
  .admin-table--products td:nth-child(8) {
    grid-column: 1 / 4;
    grid-row: 6;
    padding: 3px 0;
    min-height: 0;
  }
  .admin-table--products td:nth-child(6)::before { content: "Prix";  min-width: 60px; }
  .admin-table--products td:nth-child(7)::before { content: "Promo"; min-width: 60px; }
  .admin-table--products td:nth-child(8)::before { content: "Stock"; min-width: 60px; }

  /* 10 : Actions — pleine largeur avec séparateur top */
  .admin-table--products td:nth-child(10) {
    grid-column: 1 / 4;
    grid-row: 7;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    min-height: 0;
  }
  .admin-table--products td:nth-child(10)::before { display: none; }
  .admin-table--products td:nth-child(10) .btn {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .admin-table--products td:nth-child(10) form { flex: 1; display: flex; }
  .admin-table--products td:nth-child(10) form .btn { width: 100%; }
}

/* ── Admin tables : scroll horizontal tablette portrait (641px–900px) ── */
@media (min-width: 641px) and (max-width: 900px) {
  .admin-card { overflow-x: auto; }
  .admin-table { min-width: max-content; }
  .admin-table th, .admin-table td {
    white-space: nowrap;
    font-size: .78rem;
    padding: 8px 10px;
  }
  .badge { white-space: nowrap; font-size: .68rem; padding: 2px 6px; }
  .admin-page-title { flex-wrap: wrap; gap: 8px; }
}

/* ── Rendu différé : sections hors-écran (content-visibility) ── */
.trust-banner,
.home-2cols,
.loved-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ── Touch : désactiver les hovers collants sur mobile ── */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .btn--primary:hover,
  .btn--outline:hover { transform: none; box-shadow: none; }
  .product-card:hover { transform: none; box-shadow: none; }
  .footer__social-link:hover { transform: none; }
  .mini-prod:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FEEDBACK VISUEL IMMÉDIAT AU TAP / CLIC
   Règle fondamentale : transition:none sur :active → réaction
   instantanée même sur mobile (pas d'attente 300ms).
   ═══════════════════════════════════════════════════════════════ */

/* Supprime le highlight natif partout (renforce la règle existante) */
* { -webkit-tap-highlight-color: transparent; }

/* Pas de sélection de texte au tap sur les éléments interactifs */
button, .btn, [role="button"],
.product-card--clickable, .cat-card,
.pd2-palier-card, .pd2-swatch, .pd2-pill,
.pp-accordion__header, .pf-acc__toggle,
.pay-method-btn, .tab-btn, .filter-toggle-btn,
.pp-sticky-bar__qty-btn, .pp-quantity__btn, .pd-qty-btn,
.pp-description__toggle, .pp-tabs-nav__item,
.rv-dot, .pd-dot, .swiper-button-prev, .swiper-button-next {
  user-select: none;
  -webkit-user-select: none;
}

/* ── Boutons CTA principaux ──────────────────────────────────── */
.btn--primary:active,
.btn--outline:active,
.btn--outline-white:active {
  transform: scale(0.95) !important;
  opacity: .82 !important;
  transition: none !important;
  box-shadow: none !important;
}

/* ── Boutons de la page produit ─────────────────────────────── */
.pp-sticky-bar__buy:active,
.btn-add-order:active,
.pp-desktop-actions .pp-sticky-bar__buy:active,
.pp-desktop-actions .pp-sticky-bar__cart:active,
.mv-btn-order:active {
  transform: scale(0.96) !important;
  opacity: .84 !important;
  transition: none !important;
  box-shadow: none !important;
}

/* ── Stepper quantité (±) ───────────────────────────────────── */
.pp-sticky-bar__qty-btn:active,
.pp-quantity__btn:active,
.pd-qty-btn:active,
.vc-qty-ctrl button:active,
.mv-qty-ctrl button:active {
  background: #c8e6d4 !important;
  transform: scale(0.88) !important;
  transition: none !important;
}

/* ── Boutons mode paiement ──────────────────────────────────── */
.pay-method-btn:active {
  background: #e2f4eb !important;
  border-color: var(--primary, #2d6a4f) !important;
  transform: scale(0.98) !important;
  transition: none !important;
}

/* ── Cartes produit ─────────────────────────────────────────── */
.product-card--clickable:active,
.upsell-card:active,
.flash-mini-card:active,
.deal-card:active,
.mini-prod:active {
  transform: scale(0.97) !important;
  opacity: .9 !important;
  transition: none !important;
  box-shadow: none !important;
}

/* ── Cartes catégories ──────────────────────────────────────── */
.cat-card:active {
  transform: scale(0.97) !important;
  opacity: .88 !important;
  transition: none !important;
}

/* ── Paliers de remise ──────────────────────────────────────── */
.pd2-palier-card:active {
  transform: scale(0.96) !important;
  background: #d0ead8 !important;
  transition: none !important;
}

/* ── Variantes : pills & swatches ───────────────────────────── */
.pd2-pill:active {
  transform: scale(0.92) !important;
  transition: none !important;
}
.pd2-swatch:active {
  transform: scale(0.88) !important;
  transition: none !important;
}

/* ── Accordéons & toggles ───────────────────────────────────── */
.pp-accordion__header:active,
.pf-acc__toggle:active {
  background: #edf7f0 !important;
  transition: none !important;
}
.pp-description__toggle:active {
  background: #e5e5e5 !important;
  transition: none !important;
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar__nav a:active,
.pd-breadcrumb a:active,
.footer a:active {
  opacity: .6 !important;
  transition: none !important;
}
.cart-btn:active,
.lang-toggle:active,
.devise-cycle-btn:active {
  background: rgba(45,106,79,.15) !important;
  transform: scale(0.94) !important;
  transition: none !important;
}

/* ── Onglets / dots navigation ──────────────────────────────── */
.pp-tabs-nav__item:active,
.tab-btn:active,
.filter-toggle-btn:active {
  background: #edf7f0 !important;
  color: var(--primary, #2d6a4f) !important;
  transition: none !important;
}
.pd-dot:active,
.rv-dot:active {
  transform: scale(0.8) !important;
  transition: none !important;
}

/* ── Wishlist & icônes ──────────────────────────────────────── */
.product-card__wishlist:active,
.pp-gallery__wishlist:active {
  transform: scale(0.82) !important;
  transition: none !important;
}

/* ── Bouton hamburger ───────────────────────────────────────── */
.hamburger:active {
  opacity: .7 !important;
  transition: none !important;
}
