:root {
  --border: #e2e2e2;
  --border-strong: #222222;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --bg-soft: #ece9f7;
  --text: #14141a;
  --text-muted: #63636c;
  --accent: #14141a;
  --dark: #10121a;
  --shadow: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 24px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", "Poppins-fallback", -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.announce .icon-svg { font-size: 16px; vertical-align: -0.2em; margin-right: 2px; }
.search__icon { font-size: 18px; color: #111; width: 20px; height: 20px; }
.subbanner .icon-svg { font-size: 16px; vertical-align: -0.2em; }
.subbanner__close .icon-svg, .drawer__head .icon-svg { font-size: 14px; }
.filters-sidebar__toggle .icon-svg { font-size: 16px; }
.link-inline .icon-svg { font-size: 12px; margin-left: 2px; }
.product-subbar__tabs .icon-svg { font-size: 14px; margin-right: 4px; vertical-align: -0.1em; }
.product__financing .icon-svg { font-size: 18px; margin-right: 4px; vertical-align: -0.25em; }
.product__delivery .icon-svg { font-size: 16px; margin-right: 6px; vertical-align: -0.2em; }
.product__warranty .icon-svg { font-size: 13px; }
.socials .icon-svg { font-size: 15px; }
.star-rating .icon-svg { font-size: 13px; color: #f5a623; }
.stars { display: inline-flex; gap: 1px; vertical-align: -0.15em; }
.stars .icon-svg { font-size: 13px; color: #f5a623; }
.stars .icon-star--empty { color: #ddd; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font-family: inherit; }
input { font-family: inherit; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.85; }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
}
.btn--dark {
  background: var(--dark);
  border-color: var(--dark);
  border-radius: 8px;
}
.btn--sm { padding: 9px 16px; font-size: 13px; width: 100%; text-align: center; }

.section__title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 28px;
  text-align: center;
}
.section__subtitle {
  max-width: 1280px;
  margin: 4px auto 24px;
  padding: 0 16px;
  text-align: center;
  color: var(--text-muted);
}

/* Announce bar */
.announce {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.announce a { text-decoration: underline; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}
/* Sur la fiche produit, la barre d'action produit assure déjà le rôle sticky */
.page--product .header { position: static; }
.header--scrolled { box-shadow: var(--shadow); }
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Secondary utility nav row */
.utilnav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  overflow-x: auto;
}
.utilnav a { white-space: nowrap; }
.utilnav a:hover { text-decoration: underline; }
.utilnav__divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}
.utilnav__highlight { font-weight: bold; color: #6a4fd1; }
.utilnav__spacer { flex: 1; min-width: 12px; }
.utilnav__right { color: var(--text-muted); }
.burger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.burger:hover { background: var(--bg-alt); }
.burger__icon { font-size: 20px; }
.logo {
  font-size: 24px;
  font-weight: bold;
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 6px;
  flex-shrink: 0;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d3d4f0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #ededfa;
  transition: border-color 0.15s ease;
}
.search:focus-within { border-color: var(--border-strong); }
.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}
.header__actions {
  display: flex;
  gap: 24px;
}
.header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  position: relative;
}
.header__action .icon { font-size: 20px; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--border-strong);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Drawer navigation */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.drawer-overlay--visible { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 50;
  box-shadow: var(--shadow-hover);
}
.drawer--open { transform: translateX(0); }
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer__head button { border: none; background: none; font-size: 16px; cursor: pointer; }
.drawer__list { padding: 8px 0; }
.drawer__list li a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.drawer__list li a:hover { background: var(--bg-alt); }

/* Sub banner */
.subbanner {
  background: var(--bg-soft);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
}
.subbanner__close {
  position: absolute;
  right: 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
}

/* Hero */
.hero {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 16px;
}
.hero__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
}
.hero__arrow--prev .icon-svg { transform: rotate(-90deg); }
.hero__arrow--next .icon-svg { transform: rotate(90deg); }
.hero__viewport { flex: 1; min-width: 0; }
@media (min-width: 901px) {
  .hero__arrow { display: flex; }
}
.hero__viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.hero__track {
  display: flex;
  transition: transform 0.5s ease;
}
.hero__slide {
  flex: 0 0 100%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
}
.hero__media {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-soft), #d8d4f0);
}
.hero__media--b { background: linear-gradient(135deg, #fde2cf, #f7b98a); }
.hero__media--c { background: linear-gradient(135deg, #cdeee0, #8fd8bb); }
.hero__content { flex: 1; }
.hero__eyebrow { color: var(--text-muted); margin: 0 0 8px; font-size: 13px; }
.hero__content h1 { font-size: 32px; margin-bottom: 12px; }
.hero__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hero__price-value { font-size: 28px; font-weight: bold; }
.hero__detail { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dot--active { background: var(--accent); transform: scale(1.3); }

/* Catgrid */
.catgrid { margin: 48px 0; }
.catgrid__items {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.catgrid__item { text-align: center; font-size: 13px; font-weight: bold; }
.thumb {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}
.catgrid__item:hover .thumb { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.thumb--1 { background: linear-gradient(135deg, #ffd9a0, #ff9f6b); }
.thumb--2 { background: linear-gradient(135deg, #cdd6ff, #9aa8f5); }
.thumb--3 { background: linear-gradient(135deg, #b9ecd9, #6fcfa8); }
.thumb--4 { background: linear-gradient(135deg, #ffe0ec, #f79cc0); }
.thumb--5 { background: linear-gradient(135deg, #d8c9ff, #a97ef2); }
.thumb--6 { background: linear-gradient(135deg, #fff3b0, #f6d349); }

/* Products / pills */
.products { margin: 48px 0; }
.pills {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.pill--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill { transition: background 0.15s ease, color 0.15s ease; }
.pill:hover:not(.pill--active) { background: var(--bg-alt); }
/* Carrousel de produits (défilement horizontal + flèches) */
.carousel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow);
}
.carousel__arrow--prev .icon-svg { transform: rotate(-90deg); }
.carousel__arrow--next .icon-svg { transform: rotate(90deg); }

.products__row {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
}
.products__row::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card__img { position: relative; aspect-ratio: 1; background: var(--bg-alt); border-radius: 6px; margin-bottom: 6px; }
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge--inline {
  position: static;
  display: inline-block;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 4px;
  background: #e08e0b;
}
.card__brand { font-size: 11px; color: var(--text-muted); margin: 0; text-transform: uppercase; }
.card__name { font-size: 14px; margin: 0; font-weight: normal; }
.card__name a:hover { text-decoration: underline; }
.card__rating { font-size: 12px; color: var(--text-muted); margin: 0; }
.card__rating span { color: var(--text-muted); }
.card__ref-price { font-size: 11px; color: var(--text-muted); margin: 6px 0 0; display: flex; align-items: center; gap: 4px; }
.card__ref-price .icon-svg { font-size: 11px; }
.card__old-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin: 0; }
.card__old-price:has(.old-strike) { text-decoration: none; }
.card__old-price .old-strike { text-decoration: line-through; }
.card__price { font-weight: bold; font-size: 18px; margin: 4px 0 4px; }

/* Promo cards */
.promos { margin: 48px 0; }
.promos__row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.promo-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.promo-card__img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-radius: 8px;
  margin-bottom: 16px;
}
.promo-card p { color: var(--text-muted); font-size: 13px; margin: 8px 0 16px; }

/* Brands */
.brands { margin: 48px 0; text-align: center; }
.brands__panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 16px;
  background: var(--bg-soft);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.brand-logo { font-weight: bold; font-size: 18px; color: var(--text-muted); }
.link-center { display: block; margin-top: 20px; text-decoration: underline; font-weight: bold; }

/* Nos avantages Boulanger : bannière qui défile */
.avantages { margin: 48px 0; text-align: center; }
.avantages-banner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.avantages-banner__track { position: relative; aspect-ratio: 1920 / 323; border-radius: 16px; overflow: hidden; }
.avantages-banner__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.avantages-banner__slide.is-on { opacity: 1; pointer-events: auto; }
.avantages-banner__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avantages-banner__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.avantages-banner__arrow--prev { left: 28px; } .avantages-banner__arrow--next { right: 28px; }
.avantages-banner__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.avantages-banner__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.avantages-banner__dots button.is-on { background: #fff; }
@media (max-width: 720px) { .avantages-banner__track { aspect-ratio: 1920 / 700; } .avantages-banner__arrow { display: none; } }

/* Advantages */
.advantages { margin: 48px 0; text-align: center; }
.advantages__banner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 220px;
  background: var(--dark);
  border-radius: 16px;
}

/* Contact block */
.contact-block { margin: 64px 0; padding: 0; background: #efeefc; }
.contact-block__inner { max-width: 940px; margin: 0 auto; padding: 52px 16px 0; display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.contact-block__img { display: block; width: 276px; max-width: 34%; height: auto; flex: none; }
.contact-block__text { padding: 0 0 52px; text-align: left; align-self: center; max-width: 420px; }
.contact-block h2 { font-size: 28px; line-height: 1.4; margin: 0; font-weight: 800; }
.contact-block p { color: #1b1c2b; margin: 14px 0 22px; font-size: 15px; line-height: 1.5; }
.contact-block__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-block .btn--dark { border-radius: 999px; padding: 14px 28px; }
@media (max-width: 640px) {
  .contact-block__inner { flex-direction: column; align-items: center; padding-top: 32px; gap: 0; }
  .contact-block__img { max-width: 60%; order: 2; }
  .contact-block__text { text-align: center; padding-bottom: 24px; }
  .contact-block__actions { justify-content: center; }
}

/* Inspiration tags */
.inspiration { margin: 48px 0; text-align: center; }
.tags {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tag {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}

/* SEO text */
.seo-text {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.seo-text a { text-decoration: underline; }
.seo-text__offers { margin-top: 16px; text-align: center; }

/* Perks */
.perks {
  background: var(--dark);
  color: #fff;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 100%;
}
.perk { text-align: center; }
.perk__icon { font-size: 28px; display: block; margin-bottom: 8px; }
.perk p { margin: 4px 0 0; font-size: 12px; color: #aaa; }

/* Newsletter block */
.newsletter-block {
  background: var(--bg-soft);
  padding: 48px 16px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.newsletter-block__form { max-width: 400px; }
.newsletter { display: flex; margin: 12px 0; }
.newsletter input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
}
.newsletter button { border-radius: 0 8px 8px 0; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.newsletter-block__app { display: flex; gap: 20px; align-items: center; max-width: 480px; }
.qr { width: 100px; height: 100px; background: var(--bg-alt); border: 1px solid var(--border); flex-shrink: 0; }
.newsletter-block__app p { color: var(--text-muted); font-size: 13px; }
.stores { display: flex; gap: 8px; margin-top: 8px; }
.store-badge {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
}

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 0; }
.footer__cols {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer__col h4 { margin: 0 0 16px; }
.footer__col ul li { margin-bottom: 10px; font-size: 13px; }
.footer__col ul li a:hover { text-decoration: underline; }
.footer__phone { margin-top: 20px; font-size: 13px; }
.footer__legal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Generic inner page wrapper */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { text-decoration: underline; }

/* Category banner */
.cat-banner { margin: 16px 0; }
.cat-banner__slide {
  background: linear-gradient(135deg, var(--dark), #2a2d3d);
  color: #fff;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cat-banner__slide h2 { font-size: 22px; margin-top: 4px; }
.cat-banner .hero__eyebrow { color: #bbb; }

/* Category intro */
.cat-intro { margin: 24px 0; }
.cat-intro h1 { font-size: 26px; }
.cat-intro__count { color: var(--text-muted); font-weight: normal; font-size: 16px; }
.cat-intro__text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  max-height: 42px;
  overflow: hidden;
  margin: 12px 0 4px;
  transition: max-height 0.25s ease;
}
.cat-intro__text--expanded { max-height: 300px; }
.link-inline {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

/* Subcategory pills carousel */
.subcats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.subcats__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.subcats__list::-webkit-scrollbar { display: none; }
.subcat-pill {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px;
  white-space: nowrap;
}
.subcat-pill:hover { background: #ddd7f5; }
.subcats__arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.switch input { display: none; }
.switch__track {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 0.2s ease;
}
.switch__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); }

/* Mise en page catégorie : sidebar de filtres + résultats */
.cat-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin: 16px 0 40px;
}
.filters-sidebar {
  flex: 0 0 260px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.filters-sidebar__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}
.filters-sidebar__chevron { margin-left: auto; }
.filters-sidebar__body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.filters-sidebar__body[hidden] { display: none; }

.filter-dropdown {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.help-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
}
.help-box__illustration {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cdd6ff, #9aa8f5);
  flex-shrink: 0;
}
.help-box a { font-weight: bold; text-decoration: underline; }

.filter-group { border-top: 1px solid var(--border); padding-top: 14px; }
.filter-group__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.filter-group__body { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.filter-group__body label { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.filter-group__body label span { color: var(--text-muted); }
.filter-group__note { font-size: 13px; }
.filter-group__note a { text-decoration: underline; font-weight: bold; }

.cat-results { flex: 1; min-width: 0; }
.cat-results__head { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* Listing rows */
.listing { display: flex; flex-direction: column; gap: 16px; }
.listing-row {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  padding-top: 44px;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 24px;
  transition: box-shadow 0.2s ease;
}
.listing-row:hover { box-shadow: var(--shadow-hover); }
.listing-row__img {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: 8px;
}
.listing-row__info h3 { font-size: 16px; margin: 4px 0 6px; font-weight: normal; }
.listing-row__info h3 a:hover { text-decoration: underline; }
.listing-row__bullets { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--text-muted); }
.listing-row__bullets li { margin-bottom: 4px; }
.listing-row__pick { font-size: 13px; margin: 8px 0; }
.compare { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.listing-row__price { text-align: right; }
.listing-row__price .energy-badge { display: inline-block; margin: 4px 0; }
.listing-row__financing { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.badge--flag {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  background: #c0392b;
}
.listing-row .badge--flag {
  position: absolute;
  top: 12px;
  left: 12px;
  margin-bottom: 0;
}
.badge--deal { background: #e08e0b; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 0; flex-wrap: wrap; }
.pagination__num, .pagination__arrow {
  min-width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid var(--border-strong); border-radius: 6px; background: #fff;
  font-weight: bold; font-size: 14px; cursor: pointer;
}
.pagination__num:hover, .pagination__arrow:hover:not(:disabled) { background: var(--bg-alt); }
.pagination__num.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination__arrow:disabled { opacity: 0.35; cursor: default; }
.pagination__gap { padding: 0 4px; color: var(--text-muted); }

/* Product detail page */
.product-subbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.product-subbar__tabs { display: flex; gap: 20px; font-size: 13px; }
.product-subbar__tabs a:hover { text-decoration: underline; }
.btn--sticky-buy { border-radius: 999px; white-space: nowrap; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 24px 0 48px;
}
.product__gallery { display: flex; flex-direction: column; gap: 12px; }
.product__thumbs { display: flex; gap: 10px; }
.product__thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 11px;
}
.product__thumb--active { border-color: var(--accent); }
.product__main-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-soft), #d8d4f0);
  border-radius: 12px;
}
.product__compare { align-self: flex-start; }

.product__info h1 { font-size: 20px; margin: 8px 0 10px; }
.product__info .ref { color: var(--text-muted); font-weight: normal; }
.product__price-block { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; }
.product__price { font-size: 30px; font-weight: bold; }
.energy-badge {
  background: #c0392b;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}
.energy-badge--b { background: #6aab45; }
.energy-badge--d { background: #e08e0b; }
.product__eco { font-size: 11px; color: var(--text-muted); }
.product__financing {
  display: flex;
  justify-content: space-between;
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin: 16px 0 6px;
}
.product__credit-note { font-size: 11px; color: var(--text-muted); }
.product__seller { font-size: 13px; margin: 16px 0; }

.product__variants { margin: 20px 0; }
.variant-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-pill {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.variant-pill--active { border-color: var(--accent); border-width: 2px; }

.product__delivery { margin: 20px 0; font-size: 13px; }
.product__delivery p { margin: 6px 0; }
.product__cta { width: 100%; text-align: center; margin-top: 12px; }
.product__warranty { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.product__highlights { margin: 48px 0; }
.highlight-box {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}
.highlight-list { padding-left: 18px; font-size: 14px; line-height: 1.8; }

.product__reviews { margin: 48px 0; }
.review {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 13px;
}

@media (max-width: 900px) {
  .catgrid__items { grid-template-columns: repeat(2, 1fr); }
  .card { flex-basis: 168px; }
  .carousel__arrow { display: none; }
  .promos__row { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .hero__slide { flex-direction: column; padding: 24px; }
  .header__inner { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .header__action .label { display: none; }
  .utilnav { font-size: 12px; }
  .drawer { width: min(280px, 85vw); }
  .listing-row { grid-template-columns: 1fr; }
  .listing-row__price { text-align: left; }
  .product { grid-template-columns: 1fr; }
  .product-subbar__tabs { display: none; }
  .cat-layout { flex-direction: column; }
  .filters-sidebar { flex-basis: auto; width: 100%; }
}

/* Images produits (dynamic.js) */
.pimg { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; background: #fff; }

/* Ajustements pages produits dynamiques */
/* Liste compacte façon Boulanger */
.listing { gap: 0; }
.listing-row { grid-template-columns: 130px 1fr 150px; align-items: start; gap: 20px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.listing-row:hover { box-shadow: none; }
.listing-row__img { max-width: 130px; border-radius: 4px; }
.listing-row__info .card__brand { font-size: 11px; font-weight: bold; color: var(--accent); }
.listing-row__info h3 { font-size: 13px; font-weight: bold; margin: 2px 0 6px; }
.listing-row__bullets { font-size: 12px; margin: 6px 0 0; padding-left: 16px; }
.listing-row__bullets li { margin-bottom: 2px; }
.listing-row__price .card__price { font-size: 20px; margin: 0; }
.listing-row__price .card__old-price { font-size: 11px; }
.filters-sidebar { flex-basis: 240px; }
select.filter-dropdown { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.product { align-items: start; }
.product__main-img { max-width: 480px; width: 100%; margin: 0 auto; border: 1px solid var(--border); }
.product__highlights .section__title { text-align: left; }
.product__highlights .highlight-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 0 32px; }
.product__highlights .highlight-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .listing-row { grid-template-columns: 84px 1fr; } .listing-row__price { grid-column: 1 / -1; text-align: left; } }

/* Taille réduite des articles */
.listing-row { grid-template-columns: 100px 1fr 140px; padding: 12px 0; gap: 16px; }
.listing-row__img { max-width: 100px; }
.listing-row__info h3 { font-size: 12.5px; }
.listing-row__bullets { font-size: 11.5px; }
.listing-row__price .card__price { font-size: 17px; }
.card { flex-basis: 180px; }
.card__img { aspect-ratio: 4/3; }
.card__name { font-size: 12.5px; }
.card__price { font-size: 16px; }
.product__main-img { max-width: 360px; }

/* Ligne produit façon Boulanger */
.listing-row { grid-template-columns: 200px 1fr 330px; gap: 20px; padding: 44px 0 20px; align-items: start; }
.listing-row .badge--flag { top: 12px; left: 0; font-size: 12px; }
.listing-row__media { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.listing-row__img { max-width: 200px; width: 100%; background: #fff; }
.compare { font-size: 13px; color: var(--text); cursor: pointer; }
.compare input { display: none; }
.compare__plus { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #1a1a2e; color: #fff; align-items: center; justify-content: center; font-weight: bold; }
.compare input:checked + .compare__plus { background: var(--accent); }
.listing-row__info .card__brand { font-size: 14px; font-weight: bold; color: #6b5bd6; text-transform: uppercase; margin-bottom: 2px; }
.listing-row__info h3 { font-size: 14px; font-weight: bold; margin: 0 0 10px; }
.resell { display: inline-block; background: #d3f0e1; color: #1a1a2e; font-weight: bold; font-size: 13px; text-decoration: underline; padding: 10px 24px; border-radius: 6px; margin-bottom: 12px; }
.listing-row__bullets { list-style: disc; font-size: 12.5px; color: var(--text); padding-left: 18px; margin: 0; }
.listing-row__bullets li { margin-bottom: 3px; }
.listing-row__price { display: flex; gap: 16px; align-items: flex-start; text-align: left; justify-content: flex-start; }
.lr-price .card__ref-price { font-size: 11px; margin: 0; }
.lr-price .card__old-price { font-size: 15px; display: flex; align-items: center; gap: 6px; margin: 0; }
.lr-price .badge--inline { background: #c25b00; font-size: 13px; padding: 3px 8px; }
.lr-price .card__price { font-size: 26px; margin: 2px 0 0; }
@media (max-width: 900px) { .listing-row { grid-template-columns: 120px 1fr; } .listing-row__price { grid-column: 1 / -1; } }

/* Variantes (couleur / capacité) */
.vp { border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.vp:hover { border-color: #999; }
.vp--active { border-color: var(--accent); border-width: 2px; padding: 7px 13px; }
.vp small { color: var(--text-muted); }
.product__variants h4 { margin: 14px 0 8px; font-size: 13px; }
.card__variants, .row-variants { font-size: 11px; color: var(--text-muted); margin: 2px 0; }
.from { font-size: 11px; font-weight: normal; color: var(--text-muted); }

/* Bannière d'accueil */
.hero-banner { display: block; max-width: 1440px; margin: 16px auto; border-radius: 12px; overflow: hidden; background: #fff; }
.hero-banner img { display: block; width: 100%; height: auto; }

/* Panier */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.cart-overlay--visible { opacity: 1; pointer-events: auto; }
.cart-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 91; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
.cart-panel--open { transform: none; }
.cart-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-panel__head h3 { margin: 0; font-size: 16px; }
.cart-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; }
.cart-list { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1; }
.cart-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-list img { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 6px; }
.cart-title { font-size: 13px; font-weight: bold; }
.cart-line { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 4px; }
.qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.qty button { background: none; border: 0; font-size: 18px; cursor: pointer; }
.cart-remove { background: none; border: 0; color: var(--text-muted); text-decoration: underline; font-size: 12px; cursor: pointer; padding: 0; }
.cart-foot { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-foot p:first-child { display: flex; justify-content: space-between; font-size: 18px; margin: 0 0 12px; }
.cart-order { width: 100%; text-align: center; }
.cart-note { font-size: 12px; color: #c0392b; margin: 8px 0 0; }
.cart-empty { padding: 32px 20px; color: var(--text-muted); }

/* Comparateur */
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: #1a1a2e; color: #fff; padding: 10px 16px; border-radius: 999px; display: flex; gap: 12px; align-items: center; z-index: 80; box-shadow: 0 6px 20px rgba(0,0,0,.3); font-size: 13px; }
.compare-bar[hidden] { display: none; }
.compare-bar .btn { padding: 8px 18px; background: #fff; color: #1a1a2e; }
.compare-bar .btn--outline { background: transparent; color: #fff; border-color: #fff; }
.compare-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
.compare-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; }
.compare-modal[hidden] { display: none; }
.compare-modal__box { position: relative; background: #fff; border-radius: 12px; max-width: 1000px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; padding: 20px; }
.compare-modal__box > .cart-close { position: absolute; top: 8px; right: 16px; }
.compare-scroll { overflow: auto; }
.compare-modal table { border-collapse: collapse; font-size: 12px; width: 100%; }
.compare-modal th, .compare-modal td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; min-width: 150px; }
.compare-modal thead th { text-align: center; }
.compare-modal thead img { width: 100px; height: 100px; display: block; margin: 0 auto 6px; }
.compare-price { font-weight: bold; font-size: 16px; margin-top: 4px; }
.catgrid .thumb { background: #fff; border: 1px solid var(--border); padding: 12px; }
.brand-logo:hover, .tag:hover { text-decoration: underline; }

/* Déclinaisons façon Boulanger */
.product__variants { background: #fff; margin: 16px 0; }
.decl__title { font-size: 16px; margin: 0 0 12px; }
.decl__axis { margin-bottom: 14px; }
.decl__label { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; }
.decl__opts { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.vp { flex: 1 1 0; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #c9c6e6; border-radius: 8px; padding: 12px 10px; background: #fff; cursor: pointer; font: inherit; text-align: center; }
.vp span { display: flex; flex-direction: column; line-height: 1.3; }
.vp b { font-size: 13px; }
.vp small { font-size: 13px; color: var(--text); }
.vp--active { background: #eeeefb; border-color: #3b3b73; padding: 12px 10px; }
.decl__thumb { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 4px; }
.decl__more { flex: 0 0 48px; height: 48px; align-self: center; border-radius: 50%; border: 0; background: #d3cff5; font-weight: bold; cursor: pointer; }
.resell-box { background: #d3f5e6; border-radius: 10px; padding: 16px; margin: 16px 0; font-size: 14px; }
.resell-box p { margin: 0 0 12px; }
/* Formulaires boutique, chat d'aide, pages d'information */
.sf-form { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.sf { display: flex; flex-direction: column; gap: 4px; font-size: 13px; position: relative; }
.addr-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-hover); max-height: 220px; overflow-y: auto; }
.addr-suggest[hidden] { display: none; }
.addr-suggest li { padding: 8px 12px; cursor: pointer; font-size: 13px; }
.addr-suggest li:hover, .addr-suggest li:focus { background: var(--bg-alt); }
.sf input, .sf textarea, .sf-form textarea { border: 1px solid var(--border); border-radius: 8px; padding: 10px; font: inherit; }
.sf-intro { margin: 0; color: var(--text-muted); font-size: 13px; }
.sf-msg { margin: 0; padding: 10px; border-radius: 8px; font-size: 13px; }
.sf-msg--ok { background: #d3f5e6; } .sf-msg--err { background: #fde2df; color: #8a1f14; }
.sf-link { background: none; border: 0; text-decoration: underline; color: var(--text-muted); cursor: pointer; font-size: 12px; align-self: flex-start; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 45vh; overflow-y: auto; padding: 4px 0; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.bubble p { margin: 0 0 4px; } .bubble small { color: var(--text-muted); font-size: 10px; }
.bubble--me { align-self: flex-end; background: #eeeefb; } .bubble--admin { align-self: flex-start; background: #d3f5e6; }
.track-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 13px; }
.info-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 96; display: flex; align-items: center; justify-content: center; padding: 16px; }
.info-modal[hidden] { display: none; }
.info-modal__box { position: relative; background: #fff; border-radius: 12px; max-width: 520px; width: 100%; padding: 24px; }
.info-modal__box > .cart-close { position: absolute; top: 8px; right: 14px; }
.info-text { white-space: pre-wrap; line-height: 1.6; }

/* Stock */
.card--out img, .listing-row .badge--flag ~ .listing-row__media img { }
.card--out { opacity: .75; }
.vp--out { opacity: .5; text-decoration: line-through; }
.stock-note { color: #c0392b; font-size: 13px; margin: 8px 0 0; }
.stock-note[hidden] { display: none; }
.product__cta:disabled, #stickyBuy:disabled { opacity: .5; cursor: not-allowed; }
.maintenance-bar { background: #1a1a2e; color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; }
.quote-box { border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 13px; display: grid; gap: 6px; }
.quote-box p { margin: 0; display: flex; justify-content: space-between; }
.quote-box .total { font-size: 16px; font-weight: bold; border-top: 1px solid var(--border); padding-top: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; text-transform: uppercase; }

/* Page de commande */
.checkout { padding-bottom: 60px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 12px 0 20px; flex-wrap: wrap; }
.steps__i { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; }
.steps__i span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-alt); font-weight: bold; font-size: 13px; }
.steps__i.on { color: var(--text); font-weight: bold; } .steps__i.on span { background: #1a1a2e; color: #fff; }
.steps__i.done span { background: #16a06a; color: #fff; }
.steps__i:not(:last-child)::after { content: ''; width: 36px; height: 1px; background: var(--border); margin-left: 8px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); grid-template-rows: auto auto; gap: 24px; align-items: start; }
#checkout > form.checkout__grid { grid-column: 1 / -1; }
.co-form-top { grid-column: 1; grid-row: 1; }
.co-form-bottom { grid-column: 1; grid-row: 2; }
.co-card { border: 1px solid var(--border); border-radius: 12px; padding: 22px; background: #fff; display: grid; gap: 14px; }
.co-card h2 { font-size: 17px; margin: 6px 0 0; }
.co-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-pay { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: #f6f6fb; } .co-pay p { margin: 4px 0 0; font-size: 13px; }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.co-submit { width: 100%; padding: 14px; font-size: 15px; }
.co-submit:disabled { opacity: .5; cursor: not-allowed; }
.co-summary { position: sticky; top: 90px; grid-column: 2; grid-row: 1 / 3; }
.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.co-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.co-item img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.co-item__t { font-size: 13px; font-weight: bold; }
.co-item__row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 2px; }
.co-totals { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.co-line { display: flex; justify-content: space-between; margin: 0; font-size: 14px; }
.co-total { font-size: 18px; font-weight: bold; border-top: 1px solid var(--border); padding-top: 10px; }
.co-disc { color: #16a06a; }
.co-free small { color: var(--text-muted); } .co-bar { height: 6px; background: var(--bg-alt); border-radius: 999px; margin-top: 4px; overflow: hidden; } .co-bar i { display: block; height: 100%; background: #16a06a; }
.co-note { font-size: 12px; margin: 0; }
.co-coupon { border-top: 1px solid var(--border); padding-top: 12px; }
.co-coupon__row { display: flex; gap: 8px; }
.co-coupon__row input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font: inherit; }
.co-coupon__btn { flex: none; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 700; background: #1a1a1a; color: #fff; cursor: pointer; }
.co-coupon__btn:disabled { opacity: .5; }
.co-coupon .sf-msg { margin-top: 8px; }
.co-coupon--applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; background: #d3f5e6; border-radius: 8px; padding: 10px 12px; }
.co-empty, .co-done, .co-title, .co-related { grid-column: 1 / -1; }
.co-empty, .co-done { text-align: center; justify-items: center; padding: 48px 22px; }
.co-title { font-size: 22px; margin: 0; }
.co-empty__ico { width: 48px; height: 48px; color: var(--text-muted); }
.co-empty__ico .icon-svg { width: 100%; height: 100%; }
.co-empty__link { font-size: 14px; text-decoration: underline; }
.co-related { margin-top: 8px; }
.co-related h3 { font-size: 18px; margin: 0 0 4px; }
.co-related .products__row { padding: 4px 0 10px; }
.co-done__ico { width: 64px; height: 64px; border-radius: 50%; background: #16a06a; color: #fff; display: grid; place-items: center; font-size: 34px; }
.co-done__id { font-size: 26px; font-weight: bold; letter-spacing: .04em; margin: 0; }
.co-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 900px) {
  .checkout__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .co-form-top, .co-form-bottom, .co-summary { grid-column: 1; grid-row: auto; }
  .co-summary { position: static; }
  .co-cols { grid-template-columns: 1fr; }
}

/* Menu burger : cartes avec vignettes */
.drawer:has(.drawer__menu) { background: #eeeefb; overflow-y: auto; width: min(340px, 90vw); }
.drawer:has(.drawer__menu) .drawer__head { border: 0; justify-content: flex-end; }
.drawer__menu { padding: 0 14px 24px; }
.drawer__title { font-weight: 800; font-size: 13px; margin: 14px 0 10px; }
.drawer__menu li { margin-bottom: 10px; }
.drawer__menu li a.drawer__item { display: flex; align-items: center; gap: 14px; background: #fff; border: 0; border-radius: 10px; padding: 8px 14px; min-height: 60px; font-size: 14px; }
.drawer__menu li a.drawer__item > span:not(.drawer__thumb) { flex: 1; }
.drawer__item--promo { color: #6c5ec4; padding-left: 40px; }
.drawer__thumb { width: 52px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; }
.drawer__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.drawer__item .icon-svg { font-size: 14px; flex: none; transform: rotate(-90deg); }

/* Mon compte */
.acct-tabs { display: flex; border-bottom: 1px solid var(--border); }
.acct-tab { flex: 1; padding: 14px; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; }
.acct-tab--on { border-bottom-color: #6c5ec4; color: #6c5ec4; }
.acct-block { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }
.sf-form > h4, .acct-block h4 { margin: 0; font-size: 15px; }
.acct-google { align-items: center; padding-top: 0; }
.acct-google .sf-intro { margin: 0; text-align: center; }

/* Page Mon compte */
.acct-page { max-width: 520px; margin: 0 auto; padding: 24px 16px 56px; }
.acct-page__box { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.acct-page__title { font-size: 22px; margin: 0; padding: 20px 20px 4px; }
.acct-page .sf-form { max-width: none; }
.acct-page .track-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }

/* Page Mon compte connecté : menu latéral façon tableau de bord */
body.acct-dashboard .acct-page { max-width: 1040px; }
body.acct-dashboard .acct-page__box { background: none; border: 0; overflow: visible; }
.acct-dash { display: flex; align-items: flex-start; gap: 32px; }
.acct-side { width: 240px; flex: 0 0 240px; }
.acct-side__hi { font-size: 24px; margin: 0 0 20px; }
.acct-nav__group-wrap:first-of-type .acct-nav__group { margin-top: 0; }
.acct-nav__group { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #777; margin: 20px 0 8px; }
.acct-nav__icon { width: 15px; height: 15px; flex: none; color: #1a1a2e; }
.acct-nav__btn { display: block; width: 100%; text-align: left; padding: 11px 14px; margin-bottom: 4px; border: 0; border-radius: 8px; background: #f4f4f7; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.acct-nav__btn:hover { background: #ebebf1; }
.acct-nav__btn--on { background: #1a1a2e; color: #fff; }
.acct-side__foot { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.acct-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.acct-main { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.acct-main .sf-form { padding: 0; }
.acct-banner { display: flex; align-items: center; gap: 18px; background: #1a1a2e; color: #fff; border-radius: 12px; padding: 20px 24px; }
.acct-banner__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.acct-banner__icon .icon-svg { width: 22px; height: 22px; color: #1a1a2e; }
.acct-banner__txt { flex: 1; min-width: 0; }
.acct-banner__txt h3 { margin: 0 0 4px; font-size: 15px; }
.acct-banner__txt p { margin: 0; font-size: 12.5px; opacity: .8; }
.acct-banner__link { flex: none; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
@media (max-width: 780px) { .acct-dash { flex-direction: column; } .acct-side { width: 100%; flex: none; } .acct-banner { flex-wrap: wrap; } }

/* Recherches associées (pastilles) */
.rel-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.rel-chips a { background: #dedcf7; color: #1a1a2e; font-size: 13px; padding: 9px 16px; border-radius: 999px; transition: background 0.15s ease; }
.rel-chips a:hover { background: #cbc8f2; }

/* Pastilles de catégories (page liste) : même style que les recherches associées */
.pill--cat { background: #dedcf7; color: #1a1a2e; border: 0; border-radius: 999px; font-size: 13px; padding: 9px 16px; }
.pill--cat:hover:not(.pill--active) { background: #cbc8f2; }
.pill--cat.pill--active { background: #1a1a2e; color: #fff; }

/* Rangées de pastilles sur une seule ligne, défilement horizontal */
.pills-row { display: flex; flex-wrap: nowrap; gap: 10px; margin: 12px 0; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pills-row > a { flex: none; white-space: nowrap; }
.cat-results, .cat-layout > * { min-width: 0; }
.pills-row { max-width: 100%; }

/* Lignes de liste : badges en haut à gauche, galerie, encarts, prix à droite */
.listing-row { position: relative; grid-template-columns: 230px 1fr 260px; padding: 52px 0 24px; }
.lr-badges { position: absolute; top: 14px; left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lr-badges .badge--flag { position: static; font-size: 12px; }
.lr-gal { display: flex; align-items: center; gap: 4px; width: 100%; }
.lr-gal > a { flex: 1; min-width: 0; }
.lr-arrow { flex: none; border: 0; background: none; font-size: 26px; line-height: 1; color: #555; cursor: pointer; padding: 4px; }
.lr-arrow:hover { color: #000; }
.compare { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.compare__plus { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #111; color: #fff; font-size: 14px; line-height: 1; }
.compare input { display: none; }
.compare:has(input:checked) .compare__plus { background: var(--accent); }
.lr-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(300px, 100%); box-sizing: border-box; border: 1px solid #5b4fc4; border-radius: 6px; padding: 8px 12px; margin: 0 0 8px; color: inherit; }
.lr-box span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.lr-box small { font-size: 12px; color: var(--text-muted); }
.lr-box i { font-style: normal; font-size: 18px; }
.listing-row__price { display: block; text-align: right; justify-content: flex-end; }
.lr-price .card__old-price { justify-content: flex-end; }
.lr-price .card__price { font-size: 28px; font-weight: bold; }
@media (max-width: 900px) { .listing-row { grid-template-columns: 120px 1fr; } .lr-price .card__old-price { justify-content: flex-start; } .listing-row__price { text-align: left; } }
.lr-arrow:disabled { opacity: .3; cursor: default; }
.product__thumbs { flex-wrap: wrap; }
.product__thumb { width: 64px; height: 64px; padding: 2px; background: #fff; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product__thumbs { order: 2; }

/* Bannière défilante de la page Promos */
.promo-banner { position: relative; max-width: 1400px; margin: 0 auto 18px; border-radius: 10px; overflow: hidden; background: #f4f4f6; }
.promo-banner__track { position: relative; aspect-ratio: 1920 / 545; }
.promo-banner__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.promo-banner__slide.is-on { opacity: 1; pointer-events: auto; }
.promo-banner__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-banner__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 24px; line-height: 1; cursor: pointer; }
.promo-banner__arrow--prev { left: 12px; } .promo-banner__arrow--next { right: 12px; }
.promo-banner__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.promo-banner__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.25); cursor: pointer; }
.promo-banner__dots button.is-on { background: #1a1a2e; }
@media (max-width: 720px) { .promo-banner__track { aspect-ratio: 1920 / 700; } .promo-banner__arrow { display: none; } }

.pill--cat .pill__x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 15px; line-height: 1; }
.pill--cat .pill__x:hover { background: rgba(255,255,255,.4); }

/* Nos marques : bandeau de logos */
.brands__panel--logos { position: relative; display: block; padding: 0; max-width: 900px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #c8c6f2; }
.brands__panel--logos img { display: block; width: 100%; height: auto; }
.brand-hit { position: absolute; border-radius: 6px; }
.brand-hit:hover { background: rgba(255,255,255,.35); }

/* Page de connexion : deux cartes + connexion sociale */
body.acct-login { background: #eeecfb; }
body.page--checkout { background: #eeeefc; }
.home-top-bg { background: #eeeefc; }
body.acct-login .acct-page { max-width: 960px; }
body.acct-login .acct-page__box { background: none; border: 0; overflow: visible; }
.lg-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lg-card { background: #fff; border-radius: 16px; padding: 40px 42px; min-height: 380px; display: flex; flex-direction: column; box-sizing: border-box; }
.lg-card--wide { grid-column: 1 / -1; min-height: 0; align-items: center; padding: 28px 40px 34px; }
.lg-card--wide[hidden] { display: none; }
.lg-card h2 { font-size: 15px; text-align: center; margin: 0 0 26px; }
.lg-card__form, .lg-card__body { display: flex; flex-direction: column; flex: 1; }
.lg-card__body { align-items: center; }
.lg-lead { align-self: flex-start; font-size: 14px; margin: 0 0 16px; }
.lg-list { list-style: none; padding: 0; margin: 0 0 auto; align-self: flex-start; display: flex; flex-direction: column; gap: 14px; font-size: 12.5px; }
.lg-list li::before { content: '✔'; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; background: #ee7a1f; color: #fff; font-size: 9px; }
.lg-btn { align-self: center; margin-top: auto; padding: 14px 20px; border: 0; border-radius: 999px; background: #1a1a2e; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.lg-btn:disabled { opacity: .6; cursor: default; }
.lg-link { align-self: flex-start; border: 0; background: none; padding: 0; margin: 8px 0 14px; font: inherit; font-weight: 700; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.lg-track { grid-column: 1 / -1; justify-self: center; font-weight: 400; }
.lg-hint { font-size: 11.5px; margin: 6px 0 0; }
.lg-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 4px; }
.fl { position: relative; margin-top: 12px; }
.fl input { width: 100%; box-sizing: border-box; border: 1px solid #5b4fc4; border-radius: 8px; padding: 22px 76px 8px 14px; font: inherit; font-size: 14px; background: #fff; }
.fl input:focus { outline: 2px solid #1a1a2e; outline-offset: 1px; }
.fl label { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #666; pointer-events: none; transition: all .12s ease; background: #fff; padding: 0 3px; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 0; font-size: 12px; color: #1a1a2e; }
.fl__show { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; color: #666; cursor: pointer; }
.lg-social { display: flex; gap: 16px; justify-content: center; }
@media (max-width: 760px) { .lg-wrap { grid-template-columns: 1fr; } .lg-card { padding: 28px 22px; min-height: 0; } }

/* Compte à rebours de fin de promotion */
.promo-timer-inline { font-variant-numeric: tabular-nums; }
.promo-countdown { position: absolute; bottom: 10px; left: 12px; z-index: 3; background: rgba(26,26,46,.92); color: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.promo-countdown__t { display: block; font-size: 11px; font-weight: 700; letter-spacing: .3px; margin-bottom: 4px; text-transform: uppercase; }
.promo-countdown__n { display: grid; grid-template-columns: repeat(4, auto); column-gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.promo-countdown__n b { font-size: 20px; line-height: 1; text-align: center; }
.promo-countdown__n i { font-style: normal; font-size: 9px; opacity: .8; text-align: center; grid-row: 2; }
.promo-countdown__n b:nth-of-type(1) { grid-column: 1; grid-row: 1; } .promo-countdown__n i:nth-of-type(1) { grid-column: 1; }
.promo-countdown__n b:nth-of-type(2) { grid-column: 2; grid-row: 1; } .promo-countdown__n i:nth-of-type(2) { grid-column: 2; }
.promo-countdown__n b:nth-of-type(3) { grid-column: 3; grid-row: 1; } .promo-countdown__n i:nth-of-type(3) { grid-column: 3; }
.promo-countdown__n b:nth-of-type(4) { grid-column: 4; grid-row: 1; } .promo-countdown__n i:nth-of-type(4) { grid-column: 4; }
@media (max-width: 720px) { .promo-countdown { bottom: 6px; left: 6px; padding: 5px 8px; } .promo-countdown__n b { font-size: 15px; } }

/* Panneau de recherche */
.search-back { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 60; }
.search-panel { position: fixed; left: 50%; transform: translateX(-50%); width: min(1080px, 96vw); z-index: 61; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.22); padding: 26px 30px 30px; box-sizing: border-box; max-height: 80vh; overflow: auto; }
.search-panel[hidden], .search-back[hidden] { display: none; }
.search-panel h4 { font-size: 15px; margin: 0 0 14px; }
.sp-cols { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.sp-left { padding-right: 30px; border-right: 1px solid var(--border); }
.sp-left h4:not(:first-child) { margin-top: 28px; }
.sp-right { padding-left: 34px; }
.sp-right--full { padding-left: 0; }
.sp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sp-list a { display: flex; gap: 12px; align-items: center; color: inherit; }
.sp-list a:hover { text-decoration: underline; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips a { border: 1px solid #6b5bd6; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: inherit; }
.sp-chips a:hover { background: #eeecfb; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sp-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid #b9b3ea; border-radius: 12px; padding: 14px; color: inherit; min-width: 0; }
.sp-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.sp-img { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 8px; }
.sp-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-brand { font-size: 10.5px; font-weight: 700; color: #6b5bd6; text-transform: uppercase; }
.sp-title { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.sp-old { font-size: 12px; color: #666; } .sp-old em { font-style: normal; background: #f26a00; color: #fff; border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 11px; margin-left: 4px; }
.sp-price { font-size: 18px; }
.sp-all { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: underline; color: inherit; }
@media (max-width: 800px) { .sp-cols { grid-template-columns: 1fr; } .sp-left { border: 0; padding: 0 0 20px; } .sp-right { padding-left: 0; } .sp-grid { grid-template-columns: repeat(2, 1fr); } }

/* Page de connexion « plein écran » : sans en-tête ni pied de page */
body.acct-login .announce, body.acct-login .header, body.acct-login .footer, body.acct-login .promo-bar, body.acct-login .subbanner, body.acct-login .breadcrumb, body.acct-login .drawer, body.acct-login .drawer-overlay, body.acct-login .maintenance-bar, body.acct-login .acct-reco { display: none !important; }
/* Sur compte.html, le carrousel de suggestions ne s'affiche qu'une fois connecté (tableau de bord) */
.acct-reco { display: none; }
body.acct-dashboard .acct-reco { display: block; }
body.acct-login .acct-page { padding-top: 36px; }
.lg-logo { display: inline-flex; align-items: center; width: fit-content; margin: 0 0 20px; }
.lg-logo img { display: block; height: 32px; width: auto; }
.lg-social { flex-direction: column; align-items: center; gap: 6px; }
.lg-cap { font-size: 12px; color: #555; }
.lg-cookies { grid-column: 1 / -1; justify-self: center; margin-top: 26px; font-size: 12px; color: inherit; text-decoration: underline; }

.search input { color: #111; }
.search input::placeholder { color: #333; opacity: 1; }
.search:focus-within { border-color: #9a9be0; }

/* Recherche ouverte : la page ne défile plus, la barre reste au-dessus du fond assombri */
body.search-open { overflow: hidden; }
body.search-open .header { z-index: 62; }
body.page--product.search-open .header { position: relative; }
body.search-open .header .search { background: #fff; }

/* Bannière à droite du titre des pages catégorie */
.cat-intro { display: flex; align-items: center; gap: 24px; }
.cat-intro h1 { flex: none; }
.cat-intro__banner { flex: 1; min-width: 0; max-width: 720px; margin-left: auto; height: auto; border-radius: 10px; display: block; }
@media (max-width: 900px) { .cat-intro { flex-direction: column; align-items: flex-start; } .cat-intro__banner { max-width: 100%; margin-left: 0; } }

/* ===== Adaptation mobile ===== */
img, video, svg { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 900px) {
  .cat-layout { align-items: stretch; gap: 16px; }
  .cat-results { width: 100%; }
}
.cart-panel:not(.cart-panel--open) { box-shadow: none; visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.drawer:not(.drawer--open):not(.open) { box-shadow: none; }
@media (max-width: 760px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); }
  .lg-btn { margin-top: 22px; }
  .lg-card { padding: 28px 20px; }
}
@media (max-width: 640px) {
  .announce { font-size: 11.5px; padding: 8px 12px; }
  .announce a { display: none; }
  .utilnav { scrollbar-width: none; gap: 16px; -webkit-overflow-scrolling: touch; }
  .utilnav::-webkit-scrollbar { display: none; }
  input, select, textarea { font-size: 16px; }
  .header__inner { gap: 12px; padding: 12px 16px; }
  .header__action { padding: 8px; min-width: 40px; min-height: 40px; }
  h1 { overflow-wrap: anywhere; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .co-card, .co-summary, .checkout__grid > * { min-width: 0; }
  .co-card input, .co-card select, .co-card textarea { width: 100%; min-width: 0; box-sizing: border-box; }
  .co-card { padding: 16px; }
}
.logo { border: 0; padding: 0; display: flex; align-items: center; }
.logo img { display: block; height: 26px; width: auto; }

/* ---- Étape « Panier » (checkout.js showCart) : fond lavande, carte blanche, barre Total + « Valider mon panier » ---- */
body.cx-on { background: #f0eefc; }
body.cx-on .checkout { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.cx-on .checkout__grid { display: block; max-width: 720px; margin: 0 auto; }
.cx-main { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 18px; min-width: 0; }
.cx-title { font-size: 20px; margin: 0 0 14px; font-weight: 800; }
.cx-title small { font-size: 12px; font-weight: 400; color: #555; }
.cx-items { list-style: none; margin: 0; padding: 0; }
.cx-item { display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e6e6ee; }
.cx-item__img img { width: 72px; height: 72px; object-fit: contain; display: block; }
.cx-item__brand { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.cx-item__t { display: block; font-size: 14px; line-height: 1.35; color: #14141a; text-decoration: underline; }
.cx-item__sub { margin: 6px 0 0; font-size: 12px; color: #555; }
.cx-item__stock { margin: 8px 0 0; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cx-item__stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #16a06a; }
.cx-item__stock.is-out::before { background: #d33; }
.cx-item__seller { margin: 8px 0 0; font-size: 12px; }
.cx-item__foot { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }
.cx-qty { position: relative; display: inline-flex; align-items: center; border: 1px solid #c9c6e6; border-radius: 999px; background: #fff; }
.cx-qty__sel { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 30px 8px 16px; min-height: 36px; border-radius: 999px; cursor: pointer; }
.cx-qty svg { position: absolute; right: 8px; width: 16px; height: 16px; pointer-events: none; color: #555; }
.cx-trash { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e4e0fa; color: #3d2f9b; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cx-trash svg { width: 18px; height: 18px; }
.cx-item__price { text-align: right; }
.cx-item__price strong { display: block; font-size: 16px; font-weight: 800; }
.cx-item__price small { font-size: 11px; color: #555; }
.cx-sugg { margin-top: 18px; }
.cx-sugg h3 { font-size: 14px; margin: 0 0 10px; font-weight: 700; }
.cx-sugg__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.cx-card { flex: 0 0 min(78%, 280px); display: grid; grid-template-columns: 64px 1fr; gap: 10px; border: 1px solid #e6e6ee; border-radius: 10px; padding: 10px; scroll-snap-align: start; background: #fff; }
.cx-card__img img { width: 64px; height: 64px; object-fit: contain; display: block; }
.cx-card__t { font-size: 12px; line-height: 1.3; color: #14141a; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cx-card__row strong { font-size: 15px; }
.cx-card__add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #14141a; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cx-card__add svg { width: 18px; height: 18px; }
.cx-recap { padding: 0 4px; }
.cx-recap h2 { font-size: 17px; margin: 0 0 10px; font-weight: 800; }
.cx-recap__line { display: flex; justify-content: space-between; margin: 0; font-size: 14px; }
.cx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; box-shadow: 0 -2px 12px rgba(20, 20, 40, .12); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.cx-bar__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 auto 10px; max-width: 720px; font-size: 16px; }
.cx-bar__total strong { font-size: 18px; font-weight: 800; }
.cx-bar__btn { display: block; width: 100%; max-width: 720px; margin: 0 auto; min-height: 52px; border: 0; border-radius: 999px; background: #14141a; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

/* ---- Étape « Livraison » + barre d'étapes à icônes ---- */
ol.steps.cx-steps { display: flex; gap: 0; list-style: none; margin: 10px auto 16px; padding: 0; max-width: 720px; }
.cx-steps .stp { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #9a98b5; }
.cx-steps .stp + .stp::before { content: ''; position: absolute; top: 20px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 1px; background: #14141a; }
.cx-steps .stp:not(.done):not(.on) + .stp::before, .cx-steps .stp.on + .stp::before { background: #c9c6e6; }
.cx-steps .stp__ico { width: 40px; height: 40px; display: grid; place-items: center; color: #14141a; background: transparent; }
.cx-steps .stp__ico svg { width: 30px; height: 30px; }
.cx-steps .stp.on { color: #14141a; font-weight: 700; }
.cx-steps .stp.done { color: #14141a; }
.cx-steps .stp:not(.done):not(.on) .stp__ico { color: #c4c1e3; }
.cx-steps .stp__link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
body.cx-on .cx-form { display: block; max-width: 720px; margin: 0 auto; }
.cx-form > * { min-width: 0; }
.cx-prodbar { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin: 4px 0 8px; }
.cx-pill { border: 0; border-radius: 999px; background: #5a5a86; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 9px 16px; cursor: pointer; }
.cx-prodlist { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.cx-prodlist[hidden] { display: none; }
.cx-h { font-size: 17px; font-weight: 800; margin: 6px 0 12px; }
.cx-box { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.cx-box__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; font-size: 14px; }
.cx-box__head svg { width: 28px; height: 28px; }
.cx-minus { margin-left: auto; font-weight: 700; }
.cx-opt { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #7d78c9; background: #f1effc; border-radius: 12px; padding: 14px; }
.cx-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #f26a1b; position: relative; margin-top: 2px; }
.cx-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #f26a1b; }
.cx-opt__txt { flex: 1; min-width: 0; }
.cx-opt__t { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cx-opt__t svg { width: 14px; height: 14px; color: #16a06a; }
.cx-opt__d { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #0f7a4f; }
.cx-tag { flex: none; background: #d3f5e6; color: #0f7a4f; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.cx-recap-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 16px; display: grid; gap: 12px; }
.cx-recap-card h2 { font-size: 17px; font-weight: 800; margin: 0; }
.cx-recap-card .co-total { font-size: 22px; font-weight: 800; }
body.cx-on .cx-details, body.cx-on .cx-pay { border: 0; border-radius: 14px; margin-bottom: 16px; background: #fff; }
.cx-details h2, .cx-pay h2 { font-size: 17px; font-weight: 800; margin: 0; }
.cx-sub { font-size: 14px; margin: 4px 0 0; font-weight: 700; }
