/* ============================================================
   Crazy Shop — Grocery e-commerce variant
   White canvas · fresh green + deal yellow · Plus Jakarta Sans
   Inspired by Fastkart / Bazaro / Hazy templates
   ============================================================ */

:root {
  /* canvas */
  --bg: #FFFFFF;
  --bg-soft: #F7F8F5;
  --bg-mute: #F1F4ED;
  --surface: #FFFFFF;

  /* ink */
  --ink: #1F2937;
  --ink-soft: #374151;
  --mute: #6B7280;
  --mute-light: #9CA3AF;
  --line: #E5E7EB;
  --line-soft: #F3F4F6;

  /* fresh green primary */
  --green: #4FB14C;
  --green-deep: #2A8A35;
  --green-soft: #DCEFD8;
  --green-tint: #EEF7EC;

  /* deal yellow */
  --yellow: #FFC72C;
  --yellow-deep: #E0A800;
  --yellow-soft: #FFF6D5;

  /* sale red */
  --red: #E94B3C;
  --red-soft: #FCE6E3;

  /* dark hero variants */
  --slate-900: #111827;

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* shadows */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  --sh-md: 0 4px 12px -4px rgba(15, 23, 42, 0.08), 0 12px 28px -10px rgba(15, 23, 42, 0.10);
  --sh-lg: 0 10px 24px -8px rgba(15, 23, 42, 0.10), 0 24px 60px -16px rgba(15, 23, 42, 0.14);

  /* typography */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1320px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Sticky footer : le footer reste toujours en bas, même si le contenu est court */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main#top { flex: 1 0 auto; } /* le contenu pousse le footer vers le bas */
.footer { flex-shrink: 0; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--surface); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 28px; } }
@media (min-width: 1100px) { .container { padding-inline: 40px; } }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } }
.section--narrow { padding: 24px 0; }
.section--tight { padding-top: 20px; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 800px) {
  .section__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
}
.section__title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.section__title--light { color: var(--surface); }
.section__nav { display: inline-flex; gap: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow--accent {
  background: var(--yellow-soft);
  color: var(--yellow-deep);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-soft);
  white-space: nowrap;
}
.btn--lg { padding: 13px 26px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -6px rgba(42, 138, 53, 0.45);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: var(--slate-900);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
  background: var(--green-tint);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-deep);
  transition: gap 0.3s var(--ease-spring);
}
.link-arrow:hover { gap: 10px; }

.round-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.25s var(--ease-spring);
}
.round-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  padding: 8px 0;
}
.topbar__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}
@media (min-width: 800px) {
  .topbar__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.topbar__promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.topbar__promo strong {
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.topbar__promo svg { color: var(--yellow); }
.topbar__meta { display: none; align-items: center; gap: 10px; }
@media (min-width: 800px) { .topbar__meta { display: inline-flex; } }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.topbar__link:hover { color: var(--yellow); }
.topbar__sep { color: rgba(255, 255, 255, 0.3); }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 14px; /* garde le padding-inline du .container (alignement avec le site) */
}
@media (min-width: 800px) { .header__inner { gap: 24px; padding-block: 18px; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand__tag {
  font-size: 0.7rem;
  color: var(--mute);
  margin-top: 2px;
}
.brand--light .brand__name { color: #fff; }
.brand--light .brand__icon { background: var(--green); }

/* search */
.search {
  position: relative;
  flex: 0 1 420px;
  margin-left: auto; /* pousse la recherche vers la droite (près des icônes) */
  display: none;
  align-items: center;
  background: var(--bg-mute);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 6px;
  max-width: 420px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
@media (min-width: 1024px) { .search { display: flex; } }
.search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 177, 76, 0.15);
}
.search__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.search input {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
}
.search input:focus { outline: none; }
.search__submit {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transition: background 0.25s;
}
.search__submit:hover { background: var(--green-deep); }

/* lang switch */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* mobile (recherche masquée) : pousse les icônes à droite */
}
@media (min-width: 800px) { .header__actions { gap: 10px; } }
/* Quand la recherche est visible, c'est elle qui prend l'espace : icônes collées à sa droite */
@media (min-width: 1024px) { .header__actions { margin-left: 0; } }

.lang-switch {
  display: none;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
  border: 1px solid var(--line);
}
@media (min-width: 800px) { .lang-switch { display: inline-flex; } }
.lang-switch__btn {
  padding: 5px 11px;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  border-radius: var(--r-pill);
  transition: all 0.25s;
}
.lang-switch__btn.is-active {
  color: #fff;
  background: var(--ink);
}

/* Sélecteur de langue (liste déroulante, topbar) */
.lang-dd { position: relative; }
.lang-dd__btn { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; transition: color 0.2s; }
.lang-dd__btn:hover { color: var(--yellow); }
.lang-dd__btn svg { transition: transform 0.2s; }
.lang-dd.is-open .lang-dd__btn svg { transform: rotate(180deg); }
.lang-dd__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 130; }
.lang-dd.is-open .lang-dd__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dd__item { display: block; padding: 9px 12px; border-radius: 7px; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); transition: background 0.15s, color 0.15s; }
.lang-dd__item:hover { background: var(--bg-soft); color: var(--ink); }
.lang-dd__item.is-active { color: var(--green-deep); font-weight: 700; }

/* Résultats de recherche en direct (sous la barre) */
.search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); padding: 6px; z-index: 140; max-height: 70vh; overflow-y: auto; }
.search__results[hidden] { display: none; }
.search__item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; transition: background 0.15s; }
.search__item:hover { background: var(--bg-soft); }
.search__item-img { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.search__item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.search__item-name { font-size: 0.88rem; color: var(--ink); font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search__item-price { font-size: 0.9rem; font-weight: 800; color: var(--green-deep); white-space: nowrap; }
.search__empty { padding: 18px; text-align: center; color: var(--mute); font-size: 0.88rem; }
.search__all { display: block; text-align: center; padding: 11px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--green-deep); font-weight: 700; font-size: 0.85rem; }
.search__all:hover { background: var(--green-tint); border-radius: 0 0 10px 10px; }

.icon-pill {
  position: relative;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-mute);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.25s;
}
@media (min-width: 800px) { .icon-pill { display: inline-flex; } }
.icon-pill:hover { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.icon-pill__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.25s;
}
.cart-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.cart-btn:hover .cart-btn__icon { background: rgba(255, 255, 255, 0.15); }
.cart-btn__icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.25s;
}
.cart-btn__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.cart-btn__amount {
  font-size: 0.85rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 12px 9px;
  border-radius: 50%;
  background: var(--bg-mute);
  border: 1px solid var(--line);
  color: var(--ink);
}
.menu-toggle span {
  display: block;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.3s var(--ease-soft), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
@media (min-width: 980px) { .menu-toggle { display: none; } }

/* ---------- NAVBAR ---------- */
.navbar {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 980px) { .navbar { display: block; } }
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 6px; /* garde le padding-inline du .container */
}

.cats-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: background 0.25s;
}
.cats-btn:hover { background: var(--green-deep); }

.cats-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), visibility 0.25s;
  z-index: 50;
}
.cats-btn:hover .cats-pop,
.cats-btn[aria-expanded="true"] .cats-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cats-pop__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.cats-pop__item:hover { background: var(--green-tint); color: var(--green-deep); }
.cats-pop__item svg { color: var(--green); }

/* ======================= Page boutique / catégorie ======================= */
.shop { display: grid; grid-template-columns: 258px 1fr; gap: 30px; align-items: start; }
.shop__main { min-width: 0; }
#shop-results { transition: opacity 0.15s; }
#shop-results.is-loading { opacity: 0.5; pointer-events: none; }
.shop-widget { margin-bottom: 26px; }
.shop-widget__title { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }

/* Arbre catégories */
.cat-tree, .cat-tree__sub { list-style: none; margin: 0; padding: 0; }
.cat-tree__row { display: flex; align-items: center; justify-content: space-between; }
.cat-tree__link { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.cat-tree__link:hover, .cat-tree__link.is-active { color: var(--green-deep); }
.cat-tree__box { width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 4px; flex-shrink: 0; position: relative; transition: 0.15s; }
.cat-tree__link:hover .cat-tree__box { border-color: var(--green); }
.cat-tree__box.is-checked { background: var(--green); border-color: var(--green); }
.cat-tree__box.is-checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cat-tree__link.is-active .cat-tree__name { font-weight: 700; }
.cat-tree__toggle { width: 22px; height: 22px; border: none; background: none; cursor: pointer; position: relative; color: var(--mute); flex-shrink: 0; }
.cat-tree__toggle::before, .cat-tree__toggle::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cat-tree__toggle::before { width: 10px; height: 2px; }
.cat-tree__toggle::after { width: 2px; height: 10px; transition: 0.2s; }
.cat-tree__item.is-open > .cat-tree__row .cat-tree__toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.cat-tree__sub { padding-left: 26px; overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.cat-tree__item.is-open > .cat-tree__sub { max-height: 600px; }

/* Curseur de prix (double poignée) */
.price-slider { position: relative; height: 30px; margin: 4px 0 8px; }
.price-slider__track { position: absolute; top: 13px; left: 0; right: 0; height: 4px; background: var(--line); border-radius: 3px; }
.price-slider__range { position: absolute; height: 100%; background: var(--green); border-radius: 3px; }
.price-slider input[type="range"] { position: absolute; top: 5px; left: 0; width: 100%; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.price-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--green-deep); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer; }
.price-slider input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--green-deep); border: 2px solid #fff; cursor: pointer; }
.price-slider__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price-slider__label { font-size: 0.82rem; color: var(--ink-soft); }
.price-slider__btn { border: none; background: none; color: var(--ink); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.price-slider__btn:hover { color: var(--green-deep); }

/* Marques */
.brand-list { list-style: none; margin: 0; padding: 0; }
.brand-list__item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.brand-list__item input { width: 16px; height: 16px; accent-color: var(--green); }
.brand-list__name { flex: 1; }
.brand-list__item:hover { color: var(--green-deep); }
.brand-list__cnt { color: var(--mute); font-size: 0.82rem; }
.brand-list:not(.is-expanded) .brand-list__extra { display: none; }
.brand-list__more { margin-top: 8px; background: none; border: none; padding: 4px 0; color: var(--green-deep); font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.brand-list__more:hover { text-decoration: underline; }

/* Listes « tendances » / « récemment vus » (sidebar boutique) */
.mini-prod-list { display: flex; flex-direction: column; gap: 2px; }
.mini-prod { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; transition: background 0.15s; }
.mini-prod:hover { background: var(--bg-soft); }
.mini-prod__img { width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.mini-prod__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-prod__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mini-prod__name { font-size: 0.82rem; color: var(--ink); font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-prod:hover .mini-prod__name { color: var(--green-deep); }
.mini-prod__price { font-size: 0.85rem; }
.mini-prod__price strong { color: var(--green-deep); font-weight: 800; }
.mini-prod__price s { color: var(--mute); font-size: 0.78rem; margin-left: 4px; }

/* Barre d'outils */
.shop-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-mute); border-radius: var(--r-md); padding: 10px 16px; margin-bottom: 22px; }
.shop-toolbar__views { display: flex; gap: 4px; }
.shop-toolbar__count { font-size: 0.85rem; color: var(--mute); margin-left: 4px; }
.shop-toolbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.shop-toolbar__show { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--mute); white-space: nowrap; }
.shop-toolbar .select {
  width: auto; min-width: 64px; padding: 9px 30px 9px 12px;
  font-size: 0.86rem; color: var(--ink); background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.shop-toolbar__right .select[name="sort"] { min-width: 150px; }
.shop-view { display: inline-flex; gap: 2px; align-items: center; justify-content: center; padding: 7px 8px; min-width: 30px; border: none; background: none; cursor: pointer; border-radius: var(--r-sm); color: var(--mute); }
.shop-view i { width: 3px; height: 14px; background: currentColor; border-radius: 1px; }
.shop-view--list { flex-direction: column; gap: 3px; }
.shop-view--list b { width: 14px; height: 2.5px; background: currentColor; border-radius: 1px; }
.shop-view:hover, .shop-view.is-active { color: var(--ink); background: rgba(0,0,0,0.05); }

/* Grille boutique : largeur contenue, max 4 colonnes */
.product-grid--shop { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 18px; }
/* On respecte le choix de colonnes ; on ne plafonne que sur petits écrans */
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .product-grid--shop:not(.is-list) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 400px) { .product-grid--shop:not(.is-list) { grid-template-columns: 1fr !important; } }

/* Vue linéaire (liste) : carte horizontale */
.product-grid--shop.is-list { grid-template-columns: 1fr; gap: 0; }
.is-list .product { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; padding: 18px 8px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; overflow: visible; }
.is-list .product__media { width: 200px; }
.is-list .product__body { padding: 0; }
.is-list .product__foot { margin-top: 12px; align-items: flex-start; flex-direction: column; gap: 14px; }
/* Statut stock + boutons texte : visibles uniquement en vue liste */
.product__stock, .product__actions .product__wish-text, .product__add-label { display: none; }
.is-list .product__stock { display: inline-block; margin: 2px 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green); }
.is-list .product__stock.is-out { color: var(--red); }
.is-list .product__wishlist { display: none; } /* on retire le cœur sur l'image en vue liste */
.is-list .product__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.is-list .product__actions .product__wish-text { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 30px; background: #fff; color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: all 0.2s var(--ease-soft); }
.is-list .product__actions .product__wish-text:hover { border-color: var(--green); color: var(--green-deep); }
.is-list .product__actions .product__wish-text.is-active { border-color: var(--red); color: var(--red); }
.is-list .product__actions .product__wish-text.is-active svg { fill: var(--red); stroke: var(--red); }
.is-list .product__add { width: auto; height: auto; border-radius: 30px; padding: 11px 26px; background: var(--green); color: #fff; font-size: 0.85rem; font-weight: 700; }
.is-list .product__add:hover { background: var(--green-deep); }
.is-list .product__add-label { display: inline; }
@media (max-width: 560px) { .is-list .product { grid-template-columns: 110px 1fr; gap: 14px; } .is-list .product__media { width: 110px; } }

/* Zoom image produit (lightbox) */
.js-zoom { cursor: zoom-in; }
.img-zoom {
  position: fixed; inset: 0; z-index: 200; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.85); opacity: 0; transition: opacity 0.2s;
}
.img-zoom.show { opacity: 1; }
.img-zoom img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; background: #fff; }
.img-zoom__x {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.6rem; line-height: 1;
}
.img-zoom__x:hover { background: rgba(255, 255, 255, 0.3); }

/* ----- Méga-menu catégories (mères à gauche, sous-catégories à droite) ----- */
.cats-wrap { position: relative; flex-shrink: 0; }
.cats-total {
  display: block; margin-top: 4px; text-align: center;
  font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute);
}
.cats-mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 600px; max-width: 92vw;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); overflow: hidden; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-soft), visibility 0.22s;
}
.cats-wrap:hover .cats-mega,
.cats-btn.is-open + .cats-mega { opacity: 1; visibility: visible; transform: translateY(0); }
/* Catégorie mère sans sous-catégorie : pas de panneau de droite */
.cats-mega--nosub { width: 300px; }
.cats-mega--nosub .cats-mega__cols { grid-template-columns: 1fr; }
.cats-mega--nosub .cats-mega__right { display: none; }
.cats-mega--nosub .cats-mega__left { border-right: none; }
.cats-mega__cols { display: grid; grid-template-columns: 1fr 1fr; }
.cats-mega__left { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; }
.cats-mega__right { padding: 16px 20px; min-height: 300px; }

.cats-mega__item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 500; color: var(--ink);
  transition: background 0.18s, color 0.18s;
}
.cats-mega__item:hover, .cats-mega__item.is-active { background: var(--green-tint); color: var(--green-deep); }
.cats-mega__ic { width: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--mute); }
.cats-mega__ic img { border-radius: 5px; object-fit: cover; }
.cats-mega__item.is-active .cats-mega__ic { color: var(--green-deep); }
.cats-mega__name { flex: 1; }
.cats-mega__chev { color: var(--mute); flex-shrink: 0; }

.cats-mega__extra { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; display: flex; flex-direction: column; gap: 1px; }
.cats-mega__extra a { padding: 7px 12px; font-size: 0.85rem; color: var(--ink-soft); border-radius: var(--r-sm); transition: background 0.18s, color 0.18s; }
.cats-mega__extra a:hover { background: var(--green-tint); color: var(--green-deep); }
.cats-mega__shop {
  margin: 10px 4px 4px; padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--green); color: #fff; font-weight: 600; font-size: 0.85rem; text-align: center;
  transition: background 0.22s;
}
.cats-mega__shop:hover { background: var(--green-deep); }

.cats-mega__panel { display: none; flex-direction: column; gap: 1px; }
.cats-mega__panel.is-active { display: flex; }
.cats-mega__sub {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--r-sm); font-size: 0.9rem; color: var(--ink); transition: background 0.18s, color 0.18s;
}
.cats-mega__sub:hover { background: var(--green-tint); color: var(--green-deep); }
.cats-mega__subic { width: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--mute); }
.cats-mega__subic img { border-radius: 4px; object-fit: cover; }
.cats-mega__sub--all { font-weight: 600; color: var(--green-deep); }

@media (max-width: 760px) {
  .cats-mega { width: 92vw; }
  .cats-mega__cols { grid-template-columns: 1fr; }
  .cats-mega__left { border-right: none; border-bottom: 1px solid var(--line); }
  .cats-mega__right { min-height: auto; }
}

.nav__main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__link {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--green-deep); background: var(--green-tint); }
.nav__link.is-active { color: var(--green-deep); background: var(--green-tint); font-weight: 700; }
.nav__link--accent { color: var(--red); position: relative; }
.nav__link--accent.is-active { color: var(--red); background: rgba(229, 57, 53, 0.10); }
.nav__link--accent::after {
  content: 'HOT';
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.nav__phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}
@media (min-width: 1100px) { .nav__phone { display: inline-flex; } }
.nav__phone svg { color: var(--green); }
.nav__phone-label { color: var(--mute); }
.nav__phone a { font-weight: 700; color: var(--ink); }

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 12px 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.mobile-drawer.is-open { display: flex; }
@media (min-width: 980px) { .mobile-drawer, .mobile-drawer.is-open { display: none; } }
.mobile-drawer__link {
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer__link:last-child { border-bottom: 0; }

/* ---------- HERO ---------- */
.hero { padding: 24px 0 40px; }
@media (min-width: 768px) { .hero { padding: 32px 0 56px; } }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 320px; gap: 20px; }
}
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: 1fr 360px; gap: 24px; }
}

/* slider */
.slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-mute);
  min-height: 360px;
}
@media (min-width: 768px) { .slider { min-height: 420px; } }

.slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-soft);
}

.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 32px 24px 0;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
@media (min-width: 768px) {
  .slide { grid-template-columns: 1.1fr 1fr; padding: 48px 48px 48px 56px; min-height: 420px; }
}
.slide--green {
  background: linear-gradient(135deg, #EEF7EC 0%, #DCEFD8 100%);
}
.slide--cream {
  background: linear-gradient(135deg, #FFF6D5 0%, #FAEAD0 100%);
}
.slide--peach {
  background: linear-gradient(135deg, #FFE6DC 0%, #FFCFB8 100%);
}

.slide__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  z-index: 2;
}
.slide__eyebrow {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.slide__title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.slide__title-em { color: var(--green-deep); }
.slide--cream .slide__title-em { color: var(--yellow-deep); }
.slide--peach .slide__title-em { color: var(--red); }
.slide__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}
.slide__cta { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slide__price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.slide__media {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
}
@media (min-width: 768px) { .slide__media { display: flex; } }
.slide__media img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(15, 23, 42, 0.15));
  animation: floaty 4s ease-in-out infinite alternate;
}
@keyframes floaty {
  to { transform: translateY(-10px); }
}

.slider__nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
@media (min-width: 768px) {
  .slider__nav { left: auto; right: 24px; transform: none; bottom: 24px; }
}
.slider__arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--sh-sm);
}
.slider__arrow:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}
.slider__dots { display: inline-flex; gap: 6px; }
.slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  transition: all 0.3s var(--ease-soft);
}
.slider__dots button.is-active {
  width: 24px;
  border-radius: var(--r-pill);
  background: var(--green-deep);
}

/* side mini banners */
.hero__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 1024px) {
  .hero__side { grid-template-columns: 1fr; gap: 16px; }
}
.mini {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 168px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-soft);
}
@media (min-width: 1024px) { .mini { min-height: 200px; } }
.mini:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.mini--yellow { background: linear-gradient(135deg, #FFF6D5 0%, #FFE08A 100%); }
.mini--green { background: linear-gradient(135deg, #DCEFD8 0%, #A8DBA0 100%); }
.mini__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}
.mini__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mini__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.mini__cta {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-deep);
}
.mini--yellow .mini__cta { color: var(--yellow-deep); }
.mini img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  align-self: center;
  flex-shrink: 0;
  box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.3);
}
@media (min-width: 1024px) {
  .mini img { width: 110px; height: 110px; }
}

/* ---------- TRUST BADGES ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 20px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
@media (min-width: 700px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  flex-shrink: 0;
}
.trust__title { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.trust__desc { font-size: 0.8rem; color: var(--mute); }

/* ---------- CATEGORIES GRID ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(8, 1fr); gap: 18px; } }

/* Slider catégories (défilement auto 1 par 1) */
.cat-slider { overflow: hidden; padding: 8px 2px 18px; } /* marge verticale : cartes entières visibles + survol non rogné */
.cat-slider__track { display: flex; gap: 14px; will-change: transform; align-items: stretch; }
.cat-slider__track > .cat-card { flex: 0 0 calc((100% - 14px) / 2); min-height: 188px; justify-content: flex-start; } /* mobile : 2 visibles */
@media (min-width: 600px) {
  .cat-slider__track > .cat-card { flex-basis: calc((100% - 3 * 14px) / 4); } /* 4 visibles */
}
@media (min-width: 1024px) {
  .cat-slider__track { gap: 18px; }
  .cat-slider__track > .cat-card { flex-basis: calc((100% - 7 * 18px) / 8); } /* 8 visibles */
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-spring);
  text-align: center;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 12px 20px -8px rgba(79, 177, 76, 0.25);
}
.cat-card__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-mute);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-soft); }
.cat-card:hover .cat-card__img img { transform: scale(1.1); }
.cat-card__name { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.cat-card__count { font-size: 0.72rem; color: var(--mute); }

/* ---------- DEAL OF THE DAY ---------- */
.deal {
  background:
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(79, 177, 76, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255, 199, 44, 0.12), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .deal { padding: 72px 0; } }
.deal__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .deal__inner { grid-template-columns: 380px 1fr; gap: 40px; }
}

.deal__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.deal__desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 8px;
}
.countdown__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 60px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.countdown__box strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
  font-feature-settings: "tnum";
  line-height: 1;
}
.countdown__box span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.countdown__sep {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 14px;
}

.deal__products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) { .deal__products { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .deal__products { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
  border: 1px solid var(--line);
  align-self: flex-start;
}
.tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease-soft);
  white-space: nowrap;
}
.tab:hover { color: var(--green-deep); }
.tab.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: var(--sh-sm);
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-soft);
  animation: prod-in 0.5s var(--ease-soft) backwards;
}
@keyframes prod-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--sh-md);
}
.product--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}
.product--dark:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--yellow); }

.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.product--dark .product__media { background: rgba(255, 255, 255, 0.06); }
/* L'image doit tenir ENTIÈRE dans la case, sans découpe ni agrandissement si elle est petite */
.product__media > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; }
.product__media picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.7s var(--ease-soft);
}
.product:hover .product__media img { transform: scale(1.05); }
.is-list .product__media > a { padding: 6px; }
/* Favoris : disparition en fondu au retrait */
.product.is-removing { opacity: 0; transform: scale(0.92); transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft); pointer-events: none; }

.product__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
/* Groupe d'icônes au survol (aperçu rapide + favoris) */
.product__hover {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}
.product:hover .product__hover { opacity: 1; transform: translateX(0); }
.product__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.product__icon:hover { background: var(--green); color: #fff; transform: scale(1.06); }
.product__icon.js-wish.is-active { color: var(--red); }
.product__icon.js-wish.is-active:hover { background: var(--red); color: #fff; }
.product__icon.js-wish.is-active svg { fill: currentColor; }
/* Sur mobile/tactile : les 2 icônes toujours visibles */
@media (hover: none), (max-width: 768px) {
  .product__hover { opacity: 1; transform: none; }
}
.is-list .product__hover { display: none; } /* en vue liste, on a déjà le bouton favoris texte */

.product__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.product--dark .product__cat { color: var(--yellow); }
.product__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product--dark .product__name { color: #fff; }

.product__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--mute);
}
.product__rating .stars { color: var(--yellow); letter-spacing: 1px; }
.product--dark .product__rating { color: rgba(255, 255, 255, 0.6); }

.product__foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product__price {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}
.product__price-now {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.product--dark .product__price-now { color: #fff; }
.product__price-old {
  font-size: 0.78rem;
  color: var(--mute);
  text-decoration: line-through;
  font-feature-settings: "tnum";
}

.product__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  transition: all 0.3s var(--ease-spring);
  flex-shrink: 0;
}
.product__add:hover {
  background: var(--green);
  color: #fff;
  transform: scale(1.05);
}
.product__add.is-added {
  background: var(--green);
  color: #fff;
}
.product--dark .product__add { background: rgba(255, 199, 44, 0.18); color: var(--yellow); }
.product--dark .product__add:hover { background: var(--yellow); color: var(--ink); }
.product--dark .product__add.is-added { background: var(--yellow); color: var(--ink); }

/* ---------- BIG PROMO BANNER ---------- */
.big-banner {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #FFF6D5 0%, #FFD460 100%);
  min-height: 280px;
}
@media (min-width: 800px) {
  .big-banner { grid-template-columns: 1.1fr 1fr; }
}
.big-banner__copy {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 800px) { .big-banner__copy { padding: 48px 56px; } }
.big-banner__off {
  display: inline-block;
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  letter-spacing: -0.01em;
}
.big-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.big-banner__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 4px;
}
.big-banner__media { aspect-ratio: 4 / 3; overflow: hidden; }
.big-banner__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- BEST SELLERS ---------- */
.best-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  margin-inline: -16px;
  padding-inline: 16px;
}
@media (min-width: 768px) { .best-scroll { margin-inline: -28px; padding-inline: 28px; } }
.best-scroll::-webkit-scrollbar { display: none; }
.best-track {
  display: inline-flex;
  gap: 16px;
}
.best-track .product {
  width: 240px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
@media (min-width: 600px) { .best-track .product { width: 260px; } }

/* ---------- NEWSLETTER ---------- */
.news {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 28px;
  border-radius: var(--r-xl);
  background: var(--green-tint);
  border: 1px solid var(--green-soft);
}
@media (min-width: 800px) {
  .news { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px 56px; gap: 40px; }
}
.news__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.news__desc {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.news__form {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
@media (min-width: 480px) { .news__form { flex-direction: row; } }
.news__form input {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  transition: all 0.25s;
}
.news__form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 177, 76, 0.2);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 700px) { .footer__top { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }

.footer__tagline {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 36ch;
}
.footer__contact {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.footer__contact svg { color: var(--green); flex-shrink: 0; }
.footer__contact a:hover { color: var(--green); }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  width: fit-content;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--green); }

.footer__app-desc { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.footer__apps { display: flex; gap: 8px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.25s;
}
.app-badge:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--green); }
.app-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.app-badge small { font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); }
.app-badge strong { font-size: 0.85rem; }

.footer__socials {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
}
.footer__socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s;
}
.footer__socials a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 800px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.payment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.payment__chip {
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

/* ---------- DRAWER (CART) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease-soft);
  box-shadow: -32px 0 60px -20px rgba(15, 23, 42, 0.25);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 1.1rem; font-weight: 700; }
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mute);
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--bg-mute); color: var(--ink); }

.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--mute);
  font-style: italic;
}

.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  align-items: center;
}
.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-mute);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item__name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__meta { font-size: 0.74rem; color: var(--mute); }
.cart-item__qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.cart-item__qty button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-item__qty button:hover { background: var(--green); color: #fff; border-color: var(--green); }
.cart-item__qty span {
  font-weight: 600;
  font-size: 0.82rem;
  font-feature-settings: "tnum";
  min-width: 14px;
  text-align: center;
}
.cart-item__price {
  font-size: 0.92rem;
  font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--ink);
}

.drawer__foot {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-total span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.cart-total strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-deep);
  font-feature-settings: "tnum";
}

/* ---------- TOASTS ---------- */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
  pointer-events: auto;
  max-width: 360px;
  box-shadow: var(--sh-md);
}
.toast.is-visible { transform: translateY(0) scale(1); opacity: 1; }
.toast__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
