/* ============================================
   ShopTonU — Design System
   Workshop ISEG x Coopérative U — 2026
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  /* Identité Courses U (respect 100%) */
  --u-red: #E30613;
  --u-red-dark: #B8050F;
  --u-red-light: #FDECEE;
  --u-blue: #00A3D9;
  --u-blue-dark: #0082AE;

  /* Signature ShopTonU */
  --u-teal: #0E7C86;
  --u-teal-dark: #0A5A62;
  --u-teal-light: #E6F3F4;

  /* Accents éditoriaux */
  --autumn: #C2410C;
  --autumn-light: #FEF3E7;
  --cream: #FFF9F0;
  --forest: #2A5D3A;

  /* Neutres */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F4;
  --gray-200: #E8E8E8;
  --gray-300: #D4D4D4;
  --gray-500: #8A8A8A;
  --gray-700: #4A4A4A;
  --gray-900: #1A1A1A;

  /* Typographie */
  --font-body: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Espacements */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12);
  --shadow-teal: 0 8px 24px rgba(14,124,134,.25);

  /* Layout */
  --max-w: 480px;
  --header-h: 56px;
  --tabbar-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--gray-100);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; }

/* ---------- App shell (mobile-first) ---------- */
.app {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  padding-bottom: var(--tabbar-h);
  box-shadow: 0 0 40px rgba(0,0,0,.05);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--u-red);
  color: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  gap: var(--space-md);
}
.header__back {
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  padding: var(--space-sm);
  margin-left: calc(var(--space-sm) * -1);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.header__u {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--u-red);
  font-weight: 900;
  font-size: 26px;
  font-family: 'Fira Sans', sans-serif;
  line-height: 1;
  box-shadow:
    inset 0 0 0 3px var(--u-blue),
    0 2px 6px rgba(0,0,0,.15);
  letter-spacing: -0.02em;
}
.header__brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.header__title {
  font-weight: 600;
  font-size: 16px;
  flex: 1;
}
.header__actions {
  margin-left: auto;
  display: flex;
  gap: var(--space-sm);
}
.header__icon {
  color: var(--white);
  padding: var(--space-sm);
  font-size: 18px;
  position: relative;
}
.header__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--u-teal);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ---------- Search bar (sous-header identité U) ---------- */
.search {
  background: var(--u-red);
  padding: 0 var(--space-md) var(--space-md);
}
.search__input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 10px var(--space-md);
  font-size: 14px;
  color: var(--gray-500);
}

/* ---------- Nav catégories (identité U) ---------- */
.catnav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav__inner { display: inline-flex; padding: var(--space-sm) var(--space-md); gap: var(--space-xs); }
.catnav__item {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid transparent;
}
.catnav__item.is-active {
  background: var(--u-blue);
  color: var(--white);
}
.catnav__item.is-shoptonu {
  background: var(--u-teal-light);
  color: var(--u-teal-dark);
  border-color: var(--u-teal);
  font-weight: 700;
}
.catnav__item.is-shoptonu::before {
  content: "✨ ";
}

/* ---------- Bandeau offre ShopTonU ---------- */
.offer-strip {
  background: linear-gradient(90deg, var(--u-teal) 0%, var(--u-teal-dark) 100%);
  color: var(--white);
  padding: 10px var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}
.offer-strip__icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.offer-strip__text b { font-weight: 700; }
.offer-strip::after {
  content: "";
  position: absolute;
  right: -20px; top: 50%;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
  transform: translateY(-50%);
}

/* ---------- Section wrapper ---------- */
.section {
  padding: var(--space-xl) var(--space-md);
}
.section--tight { padding: var(--space-lg) var(--space-md); }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--u-teal-dark);
  margin-bottom: var(--space-sm);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}
.section__subtitle {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: var(--space-lg);
}
.section__link {
  color: var(--u-teal-dark);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Hero swap animation ---------- */
.hero-panier.is-swap { animation: hero-swap .4s ease-out; }
@keyframes hero-swap {
  from { opacity: 0.6; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- HERO PANIER DU MOMENT (composant signature) ---------- */
.hero-panier {
  position: relative;
  margin: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.hero-panier__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-panier::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 100%);
  z-index: -1;
}
.hero-panier__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--white);
  color: var(--u-teal-dark);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-panier__content {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}
.hero-panier__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}
.hero-panier__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}
.hero-panier__title em {
  font-style: italic;
  font-weight: 300;
}
.hero-panier__desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  max-width: 90%;
}
.hero-panier__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 12px;
}
.hero-panier__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
}
.hero-panier__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--gray-900);
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  width: 100%;
  transition: transform .2s;
}
.hero-panier__cta:hover { transform: scale(1.02); }

/* ---------- Paniers grid ---------- */
.paniers-grid {
  display: grid;
  gap: var(--space-md);
  padding: 0 var(--space-md);
}
.panier-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 180px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.panier-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
}
.panier-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75));
  z-index: -1;
}
.panier-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 4px;
}
.panier-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 4px;
}
.panier-card__price {
  font-size: 13px;
  opacity: 0.85;
}
.panier-card__price b { color: var(--white); font-weight: 700; }

/* ---------- Produits (grid horizontal + vertical) ---------- */
.rail {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: 0 var(--space-md) var(--space-md);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { display: none; }
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card--large { width: 100%; }
.product-card__img {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #FFF9F0 0%, #F0ECE4 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.product-card__img[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 90px;
  line-height: 1;
  pointer-events: none;
}
.product-card__badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--u-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.product-card__body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 4px;
  min-height: 32px;
}
.product-card__brand {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.product-card__price {
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-900);
  margin-top: auto;
}
.product-card__price small {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 11px;
  margin-left: 4px;
  text-decoration: line-through;
}
.product-card__add {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  background: var(--u-red);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(227,6,19,.35);
}

/* Product grid vertical (fiche panier) */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
}

/* ---------- Réassort (composant ShopTonU) ---------- */
.reassort {
  margin: var(--space-md);
  background: linear-gradient(135deg, var(--u-teal-light) 0%, #F5FAFA 100%);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(14,124,134,.15);
}
.reassort__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.reassort__icon {
  width: 40px; height: 40px;
  background: var(--u-teal);
  color: var(--white);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.reassort__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--u-teal-dark);
  margin-bottom: 2px;
}
.reassort__sub {
  font-size: 12px;
  color: var(--gray-500);
}
.reassort__list {
  display: grid;
  gap: var(--space-sm);
}
.reassort__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color .15s;
}
.reassort__item.is-checked {
  border-color: var(--u-teal);
  background: var(--u-teal-light);
}
.reassort__check {
  width: 22px; height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .15s;
}
.reassort__item.is-checked .reassort__check {
  background: var(--u-teal);
  border-color: var(--u-teal);
  color: var(--white);
}
.reassort__thumb {
  width: 36px; height: 36px;
  background: linear-gradient(160deg, #FFF9F0 0%, #F0ECE4 100%);
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.reassort__thumb[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.reassort__info {
  flex: 1;
  min-width: 0;
}
.reassort__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reassort__last {
  font-size: 11px;
  color: var(--gray-500);
}
.reassort__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}
.reassort__foot {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--u-red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(227,6,19,.3);
}
.btn--teal {
  background: var(--u-teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn--outline {
  background: var(--white);
  color: var(--u-teal-dark);
  border: 1.5px solid var(--u-teal);
}
.btn--ghost {
  background: var(--gray-100);
  color: var(--gray-900);
}
.btn--full { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Agent IA (bouton flottant + modal) ---------- */
.ia-fab {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 82px);
  right: var(--space-md);
  z-index: 95;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--u-teal) 0%, var(--u-teal-dark) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: 0 10px 28px rgba(14,124,134,.5), inset 0 0 0 3px rgba(255,255,255,.15);
  animation: float 3s ease-in-out infinite;
  border: none;
  cursor: pointer;
}
.ia-fab__label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: label-appear 8s infinite;
}
@keyframes label-appear {
  0%, 40% { opacity: 0; transform: translateY(-50%) translateX(6px); }
  45%, 65% { opacity: 1; transform: translateY(-50%) translateX(0); }
  70%, 100% { opacity: 0; transform: translateY(-50%) translateX(6px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.ia-fab::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--u-teal);
  opacity: 0.4;
  animation: ripple 2s infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ia-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.5);
}
.ia-modal.is-open { display: flex; }
.ia-modal__sheet {
  background: var(--white);
  width: 100%;
  max-width: var(--max-w);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-lg);
  max-height: 85vh;
  overflow-y: auto;
  animation: slide-up .3s;
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ia-modal__handle {
  width: 40px; height: 4px;
  background: var(--gray-300);
  border-radius: 4px;
  margin: -8px auto var(--space-md);
}
.ia-modal__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.ia-modal__avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--u-teal), var(--u-teal-dark));
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
}
.ia-modal__name {
  font-weight: 700;
  font-size: 16px;
}
.ia-modal__status {
  font-size: 12px;
  color: var(--u-teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ia-modal__close {
  margin-left: auto;
  color: var(--gray-500);
  padding: var(--space-sm);
  font-size: 18px;
}
.ia-modal__cards {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.ia-modal__card {
  background: var(--u-teal-light);
  border: 1px solid rgba(14,124,134,.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.ia-modal__card-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.ia-modal__card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--u-teal-dark);
  margin-bottom: 2px;
}
.ia-modal__card-desc {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.4;
}

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: var(--tabbar-h);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 90;
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 500;
  padding-top: 6px;
}
.tabbar__item.is-active { color: var(--u-red); }
.tabbar__item.is-shoptonu { color: var(--u-teal); }
.tabbar__icon { font-size: 22px; line-height: 1; }

/* ---------- Fiche produit ---------- */
.pd-hero {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #FFF9F0 0%, #F0ECE4 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.pd-hero[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 220px;
  line-height: 1;
  pointer-events: none;
}
.pd-hero__badges {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pd-hero__badge {
  background: var(--u-red);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.pd-hero__badge--teal { background: var(--u-teal); }
.pd-thumbs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
  width: 60px; height: 60px;
  background: linear-gradient(160deg, #FFF9F0 0%, #F0ECE4 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pd-thumb[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}
.pd-thumb.is-active { border-color: var(--u-red); }
.pd-body { padding: 0 var(--space-md) var(--space-md); }
.pd-brand {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.pd-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.pd-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-md);
  font-size: 13px;
  color: var(--gray-700);
}
.pd-rating__stars { color: #FDB520; }
.pd-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}
.pd-price__now {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--u-red);
}
.pd-price__old {
  font-size: 15px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.pd-price__unit {
  font-size: 11px;
  color: var(--gray-500);
  margin-left: auto;
}
.pd-desc {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}
.pd-ia {
  background: linear-gradient(135deg, var(--u-teal-light), #F5FAFA);
  border-left: 3px solid var(--u-teal);
  padding: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}
.pd-ia__icon {
  color: var(--u-teal);
  font-size: 18px;
  flex-shrink: 0;
}
.pd-ia__text {
  font-size: 13px;
  color: var(--gray-700);
}
.pd-ia__text b { color: var(--u-teal-dark); }

.pd-actions {
  position: sticky;
  bottom: var(--tabbar-h);
  background: var(--white);
  padding: var(--space-md);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-sm);
  z-index: 40;
}
.pd-actions .btn--full { flex: 1; }
.pd-actions__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 0 12px;
}
.pd-actions__qty button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--gray-700);
}
.pd-actions__qty span {
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

/* ---------- Cross-sell horizontal ---------- */
.crosssell {
  padding: var(--space-lg) 0;
  background: var(--gray-50);
}
.crosssell__title {
  padding: 0 var(--space-md) var(--space-md);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.crosssell__title small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--u-teal);
  margin-top: 2px;
}

/* ---------- Panier ---------- */
.cart-line {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.cart-line__img {
  width: 72px; height: 72px;
  background: linear-gradient(160deg, #FFF9F0 0%, #F0ECE4 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cart-line__img[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
}
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cart-line__meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}
.cart-line__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-line__price {
  font-weight: 700;
  font-size: 15px;
}
.cart-line__remove {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--gray-500);
  font-size: 14px;
  padding: 4px 6px;
  line-height: 1;
  background: transparent;
}
.cart-line__info { position: relative; }
.cart-line__remove:hover { color: var(--u-red); }
.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
}
.cart-line__qty button {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--gray-700);
}

.cart-group__head {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cart-group__head--teal {
  background: var(--u-teal-light);
  color: var(--u-teal-dark);
  border-top-color: rgba(14,124,134,.2);
}
.cart-group__head__badge {
  margin-left: auto;
  background: var(--u-teal);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
}

.cart-summary {
  background: var(--white);
  padding: var(--space-md);
  margin-top: var(--space-md);
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.cart-summary__row--total {
  border-top: 1px solid var(--gray-200);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-weight: 700;
  font-size: 18px;
}
.cart-summary__row--teal {
  color: var(--u-teal-dark);
  font-weight: 600;
}

/* ---------- Créneau ---------- */
.slots-day {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}
.slots-day__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-sm);
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.slot {
  padding: 12px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 12px;
  background: var(--white);
}
.slot__time { font-weight: 700; font-size: 13px; }
.slot__price { color: var(--u-teal); font-size: 11px; margin-top: 2px; }
.slot.is-selected { border-color: var(--u-red); background: var(--u-red-light); }
.slot.is-full { opacity: 0.4; }

/* ---------- Confirmation ---------- */
.confirm {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}
.confirm__check {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--u-teal);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 40px;
  animation: pop .5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.confirm__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.confirm__subtitle {
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: var(--space-xl);
}
.confirm__quote {
  background: var(--u-teal-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--u-teal-dark);
  line-height: 1.4;
  margin-bottom: var(--space-xl);
}
.confirm__details {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.confirm__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.confirm__row b { font-weight: 700; }

/* ---------- IA Photo → Panier ---------- */
.ia-photo {
  padding: var(--space-lg) var(--space-md);
}
.ia-photo__intro {
  background: linear-gradient(135deg, var(--u-teal), var(--u-teal-dark));
  color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}
.ia-photo__intro h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
.ia-photo__intro p { font-size: 13px; opacity: 0.9; }
.ia-photo__upload {
  border: 2px dashed var(--u-teal);
  border-radius: var(--radius-md);
  background: var(--u-teal-light);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.ia-photo__upload-icon {
  font-size: 44px;
  color: var(--u-teal);
  margin-bottom: var(--space-sm);
}
.ia-photo__upload h3 {
  font-size: 15px;
  color: var(--u-teal-dark);
  margin-bottom: 4px;
}
.ia-photo__upload p {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}
.ia-photo__demo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.ia-photo__demo h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}
.ia-detected {
  display: grid;
  gap: var(--space-sm);
}
.ia-detected__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  animation: slide-in .4s backwards;
}
.ia-detected__item:nth-child(1) { animation-delay: .1s; }
.ia-detected__item:nth-child(2) { animation-delay: .2s; }
.ia-detected__item:nth-child(3) { animation-delay: .3s; }
.ia-detected__item:nth-child(4) { animation-delay: .4s; }
.ia-detected__item:nth-child(5) { animation-delay: .5s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } }
.ia-detected__thumb {
  width: 40px; height: 40px;
  background: linear-gradient(160deg, #FFF9F0 0%, #F0ECE4 100%);
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ia-detected__thumb[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}

/* ---------- Bandeau signature ShopTonU (avec logo) ---------- */
.shoptonu-brand {
  background: linear-gradient(135deg, #F5FAFA 0%, #E6F3F4 100%);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--u-teal-dark);
  border-top: 3px solid var(--u-teal);
  border-bottom: 3px solid var(--u-teal);
  position: relative;
  overflow: hidden;
}
.shoptonu-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(14,124,134,.06), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(14,124,134,.04), transparent 55%);
  pointer-events: none;
}
.shoptonu-brand__logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-sm);
  position: relative;
  z-index: 1;
}
.shoptonu-brand__baseline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.shoptonu-brand__baseline b {
  font-style: normal;
  font-weight: 600;
}
.shoptonu-brand--compact {
  padding: var(--space-md);
}
.shoptonu-brand--compact .shoptonu-brand__logo { max-width: 160px; margin-bottom: 4px; }
.shoptonu-brand--compact .shoptonu-brand__baseline { font-size: 13px; }

.shoptonu-inline-logo {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-md);
}

/* ---------- Sélecteur de magasin ---------- */
.store-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--u-teal-light);
  border: 1.5px solid var(--u-teal);
  color: var(--u-teal-dark);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  transition: background .15s;
}
.store-picker:hover { background: #D5EAEC; }
.store-picker__caret {
  font-size: 10px;
  opacity: 0.7;
}
.store-modal__list {
  display: grid;
  gap: 8px;
  margin-top: var(--space-md);
}
.store-modal__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: left;
  transition: border-color .15s, background .15s;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}
.store-modal__item:hover { border-color: var(--u-teal); }
.store-modal__item.is-current {
  border-color: var(--u-teal);
  background: var(--u-teal-light);
}
.store-modal__pin {
  width: 36px; height: 36px;
  background: var(--u-red);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.store-modal__item.is-current .store-modal__pin { background: var(--u-teal); }
.store-modal__info { flex: 1; min-width: 0; }
.store-modal__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
}
.store-modal__meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.store-modal__check {
  color: var(--u-teal);
  font-weight: 700;
  font-size: 18px;
  align-self: center;
}
.store-modal__item:not(.is-current) .store-modal__check { display: none; }

.ia-detected__body { flex: 1; min-width: 0; }
.ia-detected__name { font-size: 13px; font-weight: 500; }
.ia-detected__match { font-size: 11px; color: var(--u-teal); }
.ia-detected__price { font-weight: 700; font-size: 13px; }

/* ---------- Catnav cliquable feedback ---------- */
.catnav__item { cursor: pointer; transition: background .15s, color .15s; }

/* ---------- Search inline avec autocomplétion ---------- */
.search { position: relative; }
.search__input {
  cursor: text;
  padding: 0;
  background: transparent;
}
.search__input label,
label.search__input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 10px var(--space-md);
  font-size: 14px;
  color: var(--gray-500);
  cursor: text;
}
.search__field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  min-width: 0;
}
.search__field::placeholder { color: var(--gray-500); }
.search__suggests {
  position: absolute;
  top: calc(100% - 8px);
  left: var(--space-md);
  right: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  overflow: hidden;
  z-index: 80;
  display: none;
  animation: sug-fade .15s;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.search__suggests.is-open { display: block; }
@keyframes sug-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.search__suggest-head {
  padding: 12px var(--space-md) 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.search__suggest-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 10px var(--space-md);
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--gray-900);
  font-size: 14px;
  border-top: 1px solid var(--gray-100);
  text-decoration: none;
}
.search__suggest-item:first-of-type { border-top: none; }
.search__suggest-item:hover { background: var(--gray-50); }
.search__suggest-icon {
  width: 32px; height: 32px;
  background: var(--u-teal-light);
  color: var(--u-teal-dark);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.search__suggest-icon--red {
  background: var(--u-red-light);
  color: var(--u-red-dark);
}
.search__suggest-body { flex: 1; min-width: 0; }
.search__suggest-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search__suggest-meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 1px;
}
.search__suggest-arrow {
  color: var(--gray-300);
  font-size: 16px;
}

/* ---------- Bannière 1 : U'pense à tout (cross-sell jaune) ---------- */
.upense-cross {
  background: #FFEDB2;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-md);
  position: relative;
  overflow: hidden;
}
.upense-cross::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 42%;
  height: 60%;
  background: var(--white);
  border-radius: 50% 50% 0 0;
  z-index: 0;
}
.upense-cross__intro {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-sm);
}
.upense-cross__u {
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--u-red);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--u-blue);
  flex-shrink: 0;
}
.upense-cross__intro-text {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 15px;
}
.upense-cross__q {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}
.upense-cross__product {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-md);
}
.upense-cross__img {
  width: 100px; height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: var(--gray-100);
}
.upense-cross__info {
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.5;
  flex: 1;
}
.upense-cross__info b {
  font-weight: 800;
  font-size: 17px;
  color: var(--gray-900);
}
.upense-cross__actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.upense-cross__btn {
  flex: 1;
  padding: 13px 10px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.upense-cross__btn--outline {
  background: var(--white);
  color: var(--u-teal-dark);
  border: 2px solid var(--u-teal);
}
.upense-cross__btn--solid {
  background: var(--u-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(227,6,19,.3);
}

/* ---------- Bannière 2 : U'pense à tout (web pub rentrée) ---------- */
.upense-web {
  position: relative;
  margin: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #F5F1EA 0%, #EDE6DA 100%);
}
.upense-web__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.95;
}
.upense-web::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.85) 100%);
  z-index: -1;
}
.upense-web__inner {
  padding: 200px var(--space-lg) var(--space-lg);
  position: relative;
  z-index: 1;
}
.upense-web__card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.upense-web__logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-md);
  display: block;
}
.upense-web__title {
  font-weight: 800;
  font-size: 24px;
  color: #1D3A5F;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.upense-web__sub {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}
.upense-web__btn {
  display: inline-block;
  background: var(--u-teal);
  color: var(--white);
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform .15s;
}
.upense-web__btn:hover { transform: translateY(-1px); }

/* ---------- Pastille U (marque officielle) réutilisable ---------- */
.u-mark {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--u-red);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--u-blue);
  flex-shrink: 0;
}
.u-mark--xs { width: 22px; height: 22px; font-size: 14px; box-shadow: inset 0 0 0 2px var(--u-blue); }
.u-mark--sm { width: 28px; height: 28px; font-size: 17px; box-shadow: inset 0 0 0 2.5px var(--u-blue); }
.u-mark--lg { width: 44px; height: 44px; font-size: 26px; box-shadow: inset 0 0 0 3.5px var(--u-blue); }

.ia-fab .u-mark {
  box-shadow: inset 0 0 0 3px var(--u-blue), 0 2px 6px rgba(0,0,0,.1);
}

/* ---------- Cross-sell ligne panier ---------- */
.cart-crosssell {
  padding: 8px var(--space-md) 12px 100px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-700);
}
.cart-crosssell__label {
  color: var(--u-teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  flex-shrink: 0;
}
.cart-crosssell__thumb {
  width: 32px; height: 32px;
  background-size: cover; background-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.cart-crosssell__info { flex: 1; min-width: 0; overflow: hidden; }
.cart-crosssell__name {
  font-weight: 500;
  color: var(--gray-900);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-crosssell__meta {
  font-size: 11px;
  color: var(--gray-500);
}
.cart-crosssell__add {
  background: var(--u-teal);
  color: var(--white);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-weight: 300;
}

/* ---------- Widget "Tout est là ?" ---------- */
.wallet {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 8px);
  left: 50%;
  width: calc(100% - 16px);
  max-width: calc(var(--max-w) - 16px);
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px var(--space-md);
  display: none;
  align-items: center;
  gap: var(--space-md);
  z-index: 70;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  text-decoration: none;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}
.wallet.is-visible {
  display: flex;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.wallet__icon {
  width: 32px; height: 32px;
  background: var(--u-teal);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.wallet__text {
  flex: 1;
  min-width: 0;
}
.wallet__q {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
}
.wallet__meta {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}
.wallet__cta {
  background: var(--u-red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Onglet Promos ---------- */
.catnav__item.is-promo {
  background: var(--u-red-light);
  color: var(--u-red-dark);
  border-color: var(--u-red);
  font-weight: 700;
}
.catnav__item.is-promo::before { content: "🔥 "; }

/* ---------- Rayons modal grid ---------- */
.rayons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: var(--space-md);
}
.rayons-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
  font-size: 11px;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  transition: transform .12s, background .12s;
}
.rayons-grid__item:hover { transform: translateY(-2px); background: var(--white); }
.rayons-grid__item.is-teal { background: var(--u-teal-light); border-color: rgba(14,124,134,.25); color: var(--u-teal-dark); }
.rayons-grid__item.is-red { background: var(--u-red-light); border-color: rgba(227,6,19,.2); color: var(--u-red-dark); }
.rayons-grid__icon { font-size: 24px; line-height: 1; }
.rayons-grid__label { font-size: 11px; line-height: 1.15; }

/* ---------- Page Promos ---------- */
.promo-hero {
  background: linear-gradient(135deg, var(--u-red) 0%, var(--u-red-dark) 100%);
  color: var(--white);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-hero::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
}
.promo-hero__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 8px;
}
.promo-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.promo-hero__title em { font-style: italic; font-weight: 300; }
.promo-hero__desc {
  font-size: 14px;
  opacity: 0.95;
  max-width: 320px;
  margin: 0 auto;
}
.promo-card {
  margin: var(--space-md);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.promo-card--hot {
  border-color: var(--u-red);
  border-width: 2px;
  background: linear-gradient(180deg, #FFF9F0 0%, var(--white) 40%);
}
.promo-card__ribbon {
  position: absolute;
  top: 12px; right: -30px;
  background: var(--u-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(30deg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.promo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--u-red-light);
  color: var(--u-red-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.promo-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.promo-card__desc {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}
.promo-card__foot {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
}
.promo-card__gain {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--u-red);
  line-height: 1;
}
.promo-card__gain small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.promo-card__cta {
  background: var(--u-red);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-left: auto;
}
.promo-progress {
  background: var(--gray-100);
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 6px 0;
}
.promo-progress__fill {
  background: linear-gradient(90deg, var(--u-red), var(--u-red-dark));
  height: 100%;
}

/* ---------- Page IA Aide-moi à choisir ---------- */
.ia-aide {
  padding: var(--space-lg) var(--space-md);
}
.ia-aide__msg {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-md);
  align-items: flex-start;
}
.ia-aide__msg--user { flex-direction: row-reverse; }
.ia-aide__avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--u-teal), var(--u-teal-dark));
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ia-aide__msg--user .ia-aide__avatar {
  background: var(--u-red);
}
.ia-aide__bubble {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-900);
  max-width: 82%;
  line-height: 1.4;
  animation: bubble-in .3s;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
.ia-aide__msg--user .ia-aide__bubble {
  background: var(--u-red);
  color: var(--white);
  border-color: var(--u-red);
}
.ia-aide__choices {
  display: grid;
  gap: 8px;
  margin: 6px 0 var(--space-md);
  padding-left: 44px;
}
.ia-aide__choice {
  background: var(--u-teal-light);
  color: var(--u-teal-dark);
  border: 1.5px solid rgba(14,124,134,.25);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.ia-aide__choice:hover { background: #D5EAEC; }
.ia-aide__reco {
  margin: var(--space-md) 0;
  padding-left: 44px;
}
.ia-aide__reco-card {
  background: var(--white);
  border: 1px solid var(--u-teal);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  box-shadow: 0 4px 14px rgba(14,124,134,.15);
}
.ia-aide__reco-img {
  width: 70px; height: 70px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: var(--gray-100);
}
.ia-aide__reco-body { flex: 1; }
.ia-aide__reco-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ia-aide__reco-why { font-size: 12px; color: var(--u-teal); margin-bottom: 4px; }
.ia-aide__reco-price { font-weight: 700; font-size: 15px; color: var(--u-red); }

/* ---------- Flash toast ---------- */
.flash-toast {
  position: fixed;
  bottom: calc(var(--tabbar-h) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--gray-900);
  color: var(--white);
  padding: 10px var(--space-md);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  z-index: 250;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}
.flash-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Ma Carte U (fidélité) ---------- */
.loyalty-card {
  background: linear-gradient(135deg, var(--u-red) 0%, var(--u-red-dark) 100%);
  color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(227,6,19,.25);
}
.loyalty-card::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
}
.loyalty-card::after {
  content: "";
  position: absolute;
  left: -30px; bottom: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,163,217,.25), transparent 70%);
}
.loyalty-card__expand {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .15s, transform .15s;
}
.loyalty-card__expand:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.05);
}

/* ---------- Carte U plein écran ---------- */
.card-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(180deg, #1A1A1A 0%, #2A2A2A 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fs-fade .25s;
}
.card-fullscreen.is-open { display: flex; }
@keyframes fs-fade { from { opacity: 0; } to { opacity: 1; } }
.card-fullscreen__close {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.card-fullscreen__hint {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  text-align: center;
}
.card-fullscreen__wrap {
  width: 100%;
  max-width: 340px;
  transform: rotate(0);
  animation: fs-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes fs-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.card-fullscreen .loyalty-card {
  margin: 0;
  padding: var(--space-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.card-fullscreen__scanbar {
  margin-top: var(--space-xl);
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.card-fullscreen__bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  justify-content: center;
  height: 70px;
  margin-bottom: 10px;
}
.card-fullscreen__bar {
  background: var(--gray-900);
  height: 100%;
}
.card-fullscreen__num {
  font-family: 'Fira Sans', monospace;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gray-900);
  font-weight: 500;
}
.card-fullscreen__foot {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  margin-top: var(--space-xl);
  text-align: center;
}
.loyalty-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.loyalty-card__u {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--u-red);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--u-blue);
}
.loyalty-card__title {
  font-weight: 700;
  font-size: 16px;
}
.loyalty-card__member {
  font-size: 12px;
  opacity: 0.8;
}
.loyalty-card__number {
  font-family: 'Fira Sans', monospace;
  font-size: 20px;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.loyalty-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.loyalty-card__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 2px;
}
.loyalty-card__value { font-weight: 700; font-size: 14px; }
.loyalty-card__barcode {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 40px;
}
.loyalty-card__bar {
  width: 3px;
  background: var(--white);
  height: 100%;
}

.loyalty-gauge {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: 0 var(--space-md) var(--space-md);
  border: 1px solid var(--gray-200);
}
.loyalty-gauge__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}
.loyalty-gauge__title {
  font-weight: 700;
  font-size: 15px;
}
.loyalty-gauge__points {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--u-red);
}
.loyalty-gauge__points small {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
}
.loyalty-gauge__bar {
  height: 10px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-sm) 0 var(--space-sm);
}
.loyalty-gauge__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--u-red) 0%, var(--u-red-dark) 100%);
  border-radius: var(--radius-full);
  transition: width .8s ease-out;
}
.loyalty-gauge__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
}
.loyalty-gauge__next {
  font-size: 13px;
  color: var(--u-teal-dark);
  margin-top: var(--space-sm);
  font-weight: 600;
}

.voucher {
  background: var(--white);
  border: 1.5px dashed var(--u-red);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
}
.voucher__amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--u-red);
  line-height: 1;
}
.voucher__info { flex: 1; min-width: 0; }
.voucher__name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.voucher__meta {
  font-size: 11px;
  color: var(--gray-500);
}
.voucher__cta {
  background: var(--u-red);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Login page ---------- */
.login {
  padding: var(--space-2xl) var(--space-md) var(--space-md);
  text-align: center;
}
.login__u {
  width: 68px; height: 68px;
  background: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--u-red);
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  box-shadow: inset 0 0 0 5px var(--u-blue), 0 8px 20px rgba(227,6,19,.15);
  margin: 0 auto var(--space-md);
}
.login__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}
.login__subtitle {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: var(--space-xl);
}
.login__form {
  display: grid;
  gap: 10px;
  margin-bottom: var(--space-md);
  text-align: left;
}
.login__field {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.login__input {
  width: 100%;
  padding: 14px var(--space-md);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-900);
  outline: none;
  transition: border-color .15s;
}
.login__input:focus { border-color: var(--u-red); }
.login__separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 12px;
  margin: var(--space-md) 0;
}
.login__separator::before,
.login__separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.login__social {
  display: grid;
  gap: 8px;
}
.login__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
}
.login__hint {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: var(--space-md);
}
.login__hint a { color: var(--u-red); font-weight: 600; }

/* ---------- Utils ---------- */
.spacer-sm { height: var(--space-md); }
.spacer-md { height: var(--space-xl); }
.spacer-lg { height: var(--space-2xl); }
.text-teal { color: var(--u-teal-dark); }
.text-red { color: var(--u-red); }
.center { text-align: center; }
