/* ═══════════════════════════════════════════════════════════════
   KOMERCE — critical-home.css
   Généré par deploy-css.js — éditer les sources CSS.
   ═══════════════════════════════════════════════════════════════ */
/* ── critical-home.css ───────────────────────────────────── */
/**
 * @komerce-arch-lite
 * @role          critical-home-css-snapshot
 * @domain        boutique
 * @layer         css
 * @owner         public/boutique/scripts/generate-critical-home-css.js
 * @purpose       Sous-ensemble de components.css réellement utilisé pour
 *                afficher l'accueil (mesuré par couverture CSS réelle du
 *                navigateur), chargé de façon bloquante avant components.css
 *                (qui reste intact mais chargé en preload non bloquant —
 *                GAP-F4 étape 2, docs/gaps/GAP_BOUTIQUE_FRONTEND_CORRECTIONS.md).
 * @provenance    Régénéré le 2026-09-24 via
 *                scripts/generate-critical-home-css.js (Playwright
 *                CSSCoverage, mobile 390×844 + desktop 1440×900, défilement
 *                complet, sans modale/panier/checkout).
 * @regenerate    node scripts/generate-critical-home-css.js
 *                À relancer si l'accueil change significativement.
 * @warning       Fichier généré, additif : ne JAMAIS retirer de règle de
 *                components.css sur la foi de ce fichier.
 * @version       2026-09
 */


.k-cats-shell { position: relative; }
.k-cats-wrap-fade-left,
.k-cats-wrap-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
}
.k-cats-wrap-fade-left  { left: 0;  background: linear-gradient(to right, var(--sand-warm) 35%, transparent); }
.k-cats-wrap-fade-right { right: 0; background: linear-gradient(to left,  var(--sand-warm) 35%, transparent); }
.k-cats {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  background: transparent;
}
.k-cats::before,
.k-cats::after { content: ""; }
.k-chip {
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}
.k-cats-shell {
  margin-top: 0;
  /* POLISH — fond lumineux cohérent avec hero, séparé visuellement */
}

.k-cats-wrap-fade-left,
.k-cats-wrap-fade-right {
  display: none;
}

.k-cats {
  overflow: visible;
}

.k-chip {
  align-items: center;
  /* POLISH — fond plus opaque, lecture des images améliorée */
  overflow: hidden;
}
.k-chip-photo {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sand-dark);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  align-items: center;
  justify-content: center;
}
.k-chip-photo img { width: 100%; height: 100%; object-fit: cover; }
.k-chip-photo > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 8px;
  font-weight: 800;
  color: var(--white);
}
.k-chip[data-cat="all"] .k-chip-photo > span { font-size: 9px; }

.k-chip-photo {
  border-width: 1px;
  /* POLISH — bord interne lumineux pour soulever l'image du fond */
}
.k-chip[data-cat="all"]         .k-chip-photo { background: linear-gradient(135deg, var(--ocean-dark) 30%, var(--ocean) 100%); }
.k-chip[data-cat="Soldes"]      .k-chip-photo { background: var(--cat-soldes-bg); }
.k-chip[data-cat="Tech"]        .k-chip-photo { background: var(--cat-tech-bg); }
.k-chip[data-cat="Maison"]      .k-chip-photo { background: var(--cat-maison-bg); }
.k-chip[data-cat="Bricolage"]                .k-chip-photo { background: var(--cat-brico-bg); }
.k-chip[data-cat="Auto"]                     .k-chip-photo { background: var(--cat-auto-bg); }
.k-chip[data-cat="Créations personnelles"]   .k-chip-photo { background: var(--cat-perso-bg); }
.k-chip-label {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-chip-label {
  min-width: 0;
  margin: 0;
  /* POLISH — texte quasi-plein pour contraste sur fond blanc */
}
.k-chip.active .k-chip-photo {
  border-color: var(--ocean-dark);
}
.k-chip.active[data-cat="all"] .k-chip-photo  { background: var(--ocean-dark); }
.k-chip.active[data-cat="all"] .k-chip-photo > span { color: var(--white); }
.k-chip.active .k-chip-label { color: var(--white); }

.k-chip.active {
  background: var(--ocean-dark);
  border-color: var(--ocean-dark);
  box-shadow: 0 2px 8px rgba(74, 144, 64, .30);
}

.k-chip.active .k-chip-photo {
  border-color: var(--ocean-dark);
  box-shadow: 0 0 0 1.25px rgba(74, 144, 64, .50);
  transform: none;
}

.k-chip.active .k-chip-label {
  color: var(--white);
}
#k-bar-sentinel { height: 0; margin: 0; padding: 0; }
#k-bar-spacer   { display: none; }
.k-cat-section { padding: 0 12px; }
.k-sec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  /* mobile → écrasé desktop par products.css (var(--sand-dark)) */
  position: relative;
  scroll-margin-top: 70px;
}
.k-sec-header-cutout {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.k-sec-header-cutout .k-shelf-object--section {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px var(--border-text-15)) contrast(1.10);
}
.k-sec-header-name  { font-weight: 700; color: var(--catalog-nav-strong); flex: 1; min-width: 0; }
.k-sec-header-count {
  font-weight: 500; color: var(--catalog-nav-muted);
  border-radius: 20px;
  flex-shrink: 0; white-space: nowrap;
}
.k-sec-see-all {
  flex-shrink: 0;
  background: none; border: none;
  color: var(--ocean); font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
#k-catalog-section {
  padding-top: 0;
}
@media (min-width: 900px) {
  .k-sec-header { scroll-margin-top: var(--nav-stack-h, calc(var(--header-h, 72px) + 64px)); } }
@media (min-width: 900px) {
  .k-cats-wrap-fade-left, .k-cats-wrap-fade-right { display: none; } }
.k-sec-header {
  padding: 10px 0 6px;
  border-bottom: 1.5px solid rgba(200, 92, 45, .72);
}

.k-sec-header-name {
  font-size: 15.5px;
  letter-spacing: -.02em;
}

.k-sec-header-count {
  font-size: 11.5px;
  padding: 1px 8px;
  background: rgba(31, 48, 36, .045);
}

.k-sec-grid {
  padding-top: 2px;
}
.k-cats-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 4px 0 0;
  padding: 0 0 2px;
  overflow: visible;
  border-bottom: 1px solid rgba(198, 168, 93, .14);
}
.k-cats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  gap: 14px;
  padding: 9px 16px 9px;
  align-items: center;
  grid-template-columns: none;
}

.k-cats::before,
.k-cats::after {
  display: block;
  content: "";
  flex: 0 0 2px;
}
.k-chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  min-width: auto;
  max-width: none;
  height: auto;
  min-height: auto;
  padding: 7px 8px 8px;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  scroll-snap-align: start;
  grid-template-columns: none;
  transition: transform .16s ease, opacity .16s ease;
}
.k-chip-photo {
  display: none;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  margin: 0;
  border: 2px solid transparent;
  box-shadow:
    0 1px 4px rgba(28, 26, 23, .10),
    inset 0 0 0 1px rgba(255, 255, 255, .50);
  flex-shrink: 0;
  flex: 0 0 auto;
}
.k-chip-photo img {
  border-radius: 50%;
  filter: saturate(1.18) contrast(1.04);
}
.k-chip-label {
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
  width: auto;
  text-align: center;
  margin: 0;
  padding: 0;
}
.k-chip.active {
  background: var(--ocean-dark);
  border-color: var(--ocean-dark);
  box-shadow: 0 2px 8px rgba(74, 144, 64, .30);
}
.k-chip.active .k-chip-label {
  color: var(--white);
  font-weight: 700;
}
.k-cats-wrap-fade-left,
.k-cats-wrap-fade-right {
  display: none;
}
.k-sec-header {
  padding-top: 8px;
  padding-bottom: 5px;
  margin-bottom: 2px;
}
.k-cat-section {
  margin-bottom: 2px;
}
@media (min-width: 900px) {
  .k-hero-cats-sticky {
    top: var(--header-h, 72px);
    /* Opaque (pas de rgba) : la barre doit masquer totalement les cartes
       qui défilent dessous au scroll, pas laisser transparaître leurs
       couleurs/images à travers un fond semi-transparent + blur. */
    border-radius: 0 0 20px 20px;
    /* PALETTE-FIX-01 : ocean au lieu de rgba(31,48,36,…) */
    padding-bottom: 8px;
    z-index: 110;
    margin-top: 8px;
    background: var(--page-bg);
    box-shadow: 0 1px 0 var(--border-text-07);
  }

  .k-cats-shell {
    position: relative;
    top: auto;
    z-index: 120;
    max-width: 1680px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .k-cats {
    display: flex;
    flex-flow: row nowrap;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
    scroll-snap-type: none;
  }

  .k-cats::before,
  .k-cats::after,
  .k-cats-wrap-fade-left,
  .k-cats-wrap-fade-right {
    display: none;
  }

  .k-chip {
    /* Géométrie carte */
    flex: 1 0 132px;
    max-width: none;
    width: 100%;
    position: relative;
    display: block;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
  }
  .k-chip-photo,
  .k-chip-photo.k-chip-photo--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    background: var(--sand-warm);
    box-shadow: none;
    overflow: hidden;
    display: block;
    transform: none;
  }

  .k-chip-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform .30s var(--ease), filter .30s var(--ease);
  }
  .k-chip-fallback {
    display: none;
  }
  .k-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 12, 6, .04) 12%, rgba(18, 12, 6, .52) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
  }
  .k-chip-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -.02em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0,0,0,.50);
    z-index: 2;
  }
  .k-chip.active {
    transform: none;
    background: var(--ocean-dark);
    border-color: var(--ocean-dark);
  }

  .k-chip.active .k-chip-photo img {
    filter: saturate(1.04) contrast(1) brightness(.96);
  }

  .k-chip.active .k-chip-label {
    color: var(--white);
    font-weight: 900;
    text-shadow:
      0 1px 6px rgba(200,92,45,.65),
      0 1px 3px rgba(0,0,0,.55);
  }
  .k-chip[data-cat="all"] .k-chip-photo img {
    filter: saturate(1.10) contrast(0.96) brightness(1.18);
  }
  .k-sec-see-all { display: none; } }
@media (max-width: 899px) {
  .k-chip {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(198, 168, 93, .22);
    box-shadow: 0 1px 5px rgba(28, 26, 23, .06);
  }
  .k-chip-photo {
    border-color: rgba(28, 26, 23, .10);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .70),
      0 1px 3px rgba(28, 26, 23, .12);
  }
  .k-chip-photo img {
    filter: saturate(1.3) contrast(1.08) brightness(1.02);
  }
  .k-chip-label {
    color: var(--text);
    font-weight: 800;
  }
  .k-chip.active {
    background: var(--ocean-dark);
    border-color: var(--ocean-dark);
    box-shadow: 0 2px 8px rgba(74, 144, 64, .30);
  }
  .k-chip.active .k-chip-photo {
    border-color: var(--ocean-dark);
    box-shadow:
      0 0 0 1.5px var(--ocean-dark),
      inset 0 0 0 1px rgba(255, 255, 255, .60);
    transform: none;
  }
  .k-chip.active .k-chip-label {
    color: var(--white);
    font-weight: 800;
  } }
@media (min-width: 900px) {
  html.k-home-premium-v1 .k-cats-shell {
    width: calc(100% - clamp(32px, 2.6vw, 48px));
  }
  .k-cats-shell { padding: 0; }
  .k-cats-shell { margin: 0 auto; }

  html.k-home-premium-v1 .k-cats::before {
    content: none;
  }

  html.k-home-premium-v1 .k-cats {
    position: relative;
  }

  .k-cats { gap: 10px; }

  html.k-home-premium-v1 .k-chip {
    flex-basis: 118px;
  }

  .k-chip { box-shadow: none; }

  .k-chip { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }

  .k-chip { background: var(--sand-warm); }

  .k-chip { border-radius: 16px; }

  .k-chip { border: 1px solid var(--border-text-06); }

  .k-chip { min-height: 64px; }

  .k-chip { height: 64px; }

  .k-chip { min-width: 118px; }

  .k-chip-photo img { filter: saturate(.78) contrast(.96) brightness(.90); }

  html.k-home-premium-v1 .k-chip.active {
    border-color: var(--ocean-dark);
  }

  .k-chip.active { box-shadow: inset 0 -3px 0 var(--ocean-dark), 0 4px 12px var(--border-text-06); }

  .k-chip-label { font-weight: 700; }

  .k-chip-label { font-size: 10.5px; }

  .k-chip-label { padding: 5px 7px 6px; } }

.k-grid-entering .k-card {
  animation: k-card-enter .28s cubic-bezier(.22, 1, .36, 1) both;
}

.k-grid-entering .k-card:nth-child(1)  { animation-delay:   0ms; }
.k-grid-entering .k-card:nth-child(2)  { animation-delay:  45ms; }
.k-grid-entering .k-card:nth-child(3)  { animation-delay:  90ms; }
.k-grid-entering .k-card:nth-child(4)  { animation-delay: 135ms; }
.k-grid-entering .k-card:nth-child(5)  { animation-delay: 175ms; }
.k-grid-entering .k-card:nth-child(6)  { animation-delay: 210ms; }
.k-grid-entering .k-card:nth-child(n+7) { animation-delay: 240ms; }

.k-chip.chip-pop { animation: k-chip-pop .22s ease; }
.k-shelf-rail {
  gap: 6px;
  padding: 7px 10px 9px;
  background: var(--white);
}
.k-cat-cutout {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 70px;
  height: auto;
  gap: 3px;
  padding: 2px 4px 5px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--catalog-nav-muted);
}

.k-shelf-rail .k-cat-cutout:hover,
.k-shelf-rail .k-cat-cutout:active,
.k-shelf-rail .k-cat-cutout.active {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.k-cat-cutout .k-chip-photo,
.k-cat-cutout.active .k-chip-photo,
.k-cat-cutout[data-cat] .k-chip-photo,
.k-cat-cutout.active[data-cat] .k-chip-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 51px;
  flex: 0 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.k-cat-cutout .k-chip-photo img:not(.k-shelf-atlas-image),
.k-cat-cutout.active .k-chip-photo img:not(.k-shelf-atlas-image) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.k-cat-cutout .k-shelf-legacy-image {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.k-shelf-object-slot .k-chip-fallback {
  display: none;
}

.k-shelf-object {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 6px var(--border-text-08));
  transform-origin: 50% 88%;
  transition: transform .16s var(--ease), filter .16s var(--ease);
}

.k-shelf-rail .k-cat-cutout:hover .k-shelf-object,
.k-shelf-rail .k-cat-cutout.active .k-shelf-object {
  transform: translateY(-2px);
}

.k-cat-cutout .k-chip-photo > span,
.k-cat-cutout.active .k-chip-photo > span {
  color: var(--catalog-nav-muted);
  background: transparent;
}

.k-cat-cutout .k-chip-label,
.k-cat-cutout.active .k-chip-label {
  position: relative;
  min-width: 0;
  max-width: 82px;
  margin: 0;
  padding: 0 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--catalog-nav-muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.k-shelf-rail .k-cat-cutout.active .k-chip-label {
  color: var(--catalog-nav-strong);
  font-weight: 800;
}

.k-cat-cutout.active .k-chip-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--ocean-dark);
  transform: translateX(-50%);
}

@media (max-width: 899px) {
  .k-shelf-rail {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 2px 6px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    background: var(--white);
    /* Surface/ombre finale possédée par mobile-catalog-convergence.css. */
  }

  html.k-mobile-premium-v1 .k-shelf-rail .k-cat-cutout,
  .k-shelf-rail .k-cat-cutout {
    --k-optical-x: 0px;
    --k-optical-y: -1px;
    --k-optical-scale: .94;
    --k-optical-active-y: -2px;
    --k-optical-active-scale: 1.01;
    --k-optical-saturation: 1;
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    min-height: 56px;
    height: 56px;
    gap: 1px;
    padding: 0 1px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="all"] {
    --k-optical-y: -1px;
    --k-optical-scale: .96;
    --k-optical-active-y: -3px;
    --k-optical-active-scale: 1.03;
    --k-optical-saturation: 1;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Soldes"] {
    --k-optical-y: -1px;
    --k-optical-scale: .95;
    --k-optical-active-y: -2px;
    --k-optical-active-scale: 1.02;
    --k-optical-saturation: 1;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Mode & Beauté"] {
    --k-optical-y: -1px;
    --k-optical-scale: .94;
    --k-optical-active-scale: 1.01;
    --k-optical-saturation: 1;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Maison"] {
    --k-optical-y: -1px;
    --k-optical-scale: .94;
    --k-optical-active-y: -2px;
    --k-optical-active-scale: 1.01;
    --k-optical-saturation: .98;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Tech"] {
    --k-optical-y: -1px;
    --k-optical-scale: .94;
    --k-optical-active-scale: 1.01;
    --k-optical-saturation: 1;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Bricolage"] {
    --k-optical-y: -1px;
    --k-optical-scale: .94;
    --k-optical-active-scale: 1.01;
    --k-optical-saturation: .98;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Créations personnelles"] {
    --k-optical-y: -1px;
    --k-optical-scale: .96;
    --k-optical-active-scale: 1.03;
    --k-optical-saturation: 1;
  }

  .k-shelf-rail .k-cat-cutout[data-cat="Auto"] {
    --k-optical-y: -1px;
    --k-optical-scale: .94;
    --k-optical-active-y: -2px;
    --k-optical-active-scale: 1.01;
    --k-optical-saturation: .96;
  }

  .k-cat-cutout .k-chip-photo,
  .k-cat-cutout.active .k-chip-photo,
  .k-cat-cutout[data-cat] .k-chip-photo,
  .k-cat-cutout.active[data-cat] .k-chip-photo {
    width: 46px;
    height: 30px;
    isolation: isolate;
  }
  .k-shelf-rail .k-cat-cutout .k-chip-photo::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 34px;
    height: 9px;
    border-radius: 50%;
    background: var(--sand-warm);
    opacity: .20;
    filter: blur(5px);
    transform: translateX(-50%);
    pointer-events: none;
  }
  .k-shelf-rail .k-cat-cutout .k-chip-photo::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--white);
    border-radius: 50%;
    background: radial-gradient(
      circle at 35% 30%,
      var(--white) 0 18%,
      var(--ocean) 42% 100%
    );
    box-shadow:
      0 0 0 1px var(--white),
      0 0 5px var(--ocean),
      0 0 10px var(--ocean-dark);
    opacity: 0;
    transform: scale(.72);
    transition: opacity .16s var(--ease), transform .16s var(--ease);
    pointer-events: none;
    z-index: 3;
  }

  .k-shelf-rail .k-cat-cutout .k-shelf-object {
    transform:
      translate(var(--k-optical-x), var(--k-optical-y))
      scale(var(--k-optical-scale));
    filter:
      drop-shadow(0 3px 6px var(--border-text-15))
      saturate(var(--k-optical-saturation))
      contrast(1.10);
  }

  .k-shelf-rail .k-cat-cutout:hover .k-shelf-object,
  .k-shelf-rail .k-cat-cutout.active .k-shelf-object {
    transform:
      translate(var(--k-optical-x), var(--k-optical-active-y))
      scale(var(--k-optical-active-scale));
    filter:
      drop-shadow(0 4px 7px var(--border-text-15))
      saturate(calc(var(--k-optical-saturation) + .08))
      contrast(1.13);
  }

  .k-shelf-rail .k-cat-cutout.active .k-chip-photo::before {
    opacity: .28;
  }

  .k-shelf-rail .k-cat-cutout.active .k-chip-photo::after {
    opacity: 1;
    transform: scale(1);
  }

  .k-cat-cutout .k-chip-label,
  .k-cat-cutout.active .k-chip-label {
    max-width: 54px;
    z-index: 2;
    margin-top: 1px;
    padding: 0 2px 2px;
    background: var(--white);
    color: var(--catalog-nav-muted);
    font-size: 9.5px;
    font-weight: 620;
    line-height: 1.15;
    letter-spacing: -.01em;
  }

  .k-shelf-rail .k-cat-cutout.active .k-chip-label {
    color: var(--catalog-nav-strong);
    font-weight: 780;
  }

  .k-cat-cutout.active .k-chip-label::after {
    width: 16px;
    height: 2px;
  } }
.k-grid,
.k-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px 12px 12px;
}
.k-card {
  background: var(--sand);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--elev-1);
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  position: relative;
}
.k-card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--sand) 0%, var(--sand-warm) 100%);
}
.k-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background: var(--surface-sand-94);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ocean-dark);
  box-shadow: var(--elev-1);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s var(--ease);
  cursor: pointer;
  z-index: 3;
}
.k-card-add {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 32px;
  height: 32px;
  background: var(--action-commerce);
  border-radius: 50%;
  box-shadow: var(--action-commerce-shadow);
  border: 1px solid var(--action-commerce-border);
  padding: 0;
  z-index: 5;
  cursor: pointer;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.k-card-add-trigger {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.k-card-add-plus {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  pointer-events: none;
}
.k-card-info {
  padding: 10px 12px 12px;
}

.k-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.28em;
  font-variation-settings: 'opsz' 14;
}

.k-card-bottom {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 6px;
  gap: 6px;
  /* Réserve l'espace du bouton .k-card-add (32px + 7px right + 4px breathing)
     pour que prix/ancien-prix ne passent jamais sous le bouton panier en
     bas-droite. Écrasé en desktop par le bloc @600px ci-dessous. */
  padding-right: 43px;
}

.k-card-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -.01em;
  font-variation-settings: 'opsz' 24;
  white-space: nowrap;
}

.k-card-price-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  /* Réserve l'espace de 3 lignes (prix KMF + ≈ EUR + ancien prix barré)
     pour que les cartes avec/sans promo aient la même hauteur visuelle.
     ≈ 18px (prix) + 13px (eur) + 13px (old) + 2px gap = ~46px */
  min-height: 46px;
}

.k-card-price-eur {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1;
  font-weight: 500;
}

.k-card-prices-row {
  align-items: flex-end;
}

.k-grid .k-card {
  animation: k-card-fade-in .35s var(--ease) both;
}

@media ((min-width: 900px)) {

  .k-card-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 4px;
    /* Reset du padding-right mobile : à partir de 600px, .k-card-add
       est repositionné par cart.css @900px (46×46px) et la zone prix
       n'a plus besoin de réserver l'espace bas-droite. */
    padding-right: 0;
  }

  .k-card-info {
    padding: 8px 10px 10px;
  }

  .k-card-name {
    font-size: 13px;
    /* min-height:2.4em réserve 2 lignes — surcharger le clamp pour en
       utiliser réellement 2 : affiche plus de titre, homogénéise la
       hauteur des cartes et élimine l'espace mort de la ligne vide
       (auparavant -webkit-line-clamp:1 non surchargé ici). */
    -webkit-line-clamp: 2;
    min-height: 2.4em;
  }

  .k-card-price {
    font-size: 14px;
  } }

@media (min-width: 900px) {
  .k-grid,
  .k-sec-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 8px 0 20px;
  }
  .k-grid.k-grid-has-sections .k-sec-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .k-card-img-wrap {
    aspect-ratio: 1 / 1;
  } }

@media (min-width: 1200px) {
  .k-grid,
  .k-sec-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  } }
#k-grid.k-grid-cat-pager:not(.k-grid-flat-subcat) {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none; /* FIX ghost-gauche : contain bloquait le delta touch sur iOS */
  gap: 0;
  padding: 0;
  margin: 0;
  grid-template-columns: none;
  scrollbar-width: none;
}
#k-grid.k-grid-cat-pager:not(.k-grid-flat-subcat) > .k-cat-section {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
  /* PATCH iOS : "none" coupe le rubber-band qui simulait du scroll dans le
     vide quand la liste de produits était courte. "contain" laissait passer
     l'overscroll élastique de Safari. */
  overscroll-behavior-y: none;
  box-sizing: border-box;
  padding: 0 12px 80px;
}
#k-grid.k-grid-cat-pager:not(.k-grid-flat-subcat) > .k-cat-section > .k-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 12px;
}
@media (min-width: 900px) {
  .k-sec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 12px;
    border-bottom: 2px solid var(--sand-dark);
    margin-bottom: 4px;
  }

  .k-sec-header-name {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -.02em;
  }

  .k-sec-header-count {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--sand-dark);
    padding: 2px 10px;
    border-radius: 999px;
  } }
@media (min-width: 900px) {

  .k-card { position: relative; }
  .k-card-fav { opacity: 0; } }
@media (min-width: 900px) {

  .k-card {
    animation: k-card-in .22s var(--ease) both;
  }

  .k-card:nth-child(1)  { animation-delay: .02s; }
  .k-card:nth-child(2)  { animation-delay: .04s; } }
@media (min-width: 900px) {
  .k-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--sand);
    box-shadow: 0 1px 0 var(--border-text-06);
  } }
.k-grid.k-grid-has-sections { display:block; grid-template-columns:none; gap:0; padding:0; }
#k-grid.k-grid-has-sections.k-grid-cat-pager:not(.k-grid-flat-subcat) {
  display: flex;
  flex-wrap: nowrap;
}

.k-card-img-wrap,
.k-sug-card-img {
  position: relative;
}
.k-card-img-wrap:has(img[data-k-product-image="1"])::before,
.k-sug-card-img:has(img[data-k-product-image="1"])::before {
  content: '📦';
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(145deg, var(--sand) 0%, var(--sand-warm) 100%);
  color: var(--text-muted);
  font-size: 1.6rem;
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease, visibility 0s linear 0s;
}

.k-card-img-wrap:has(img[data-k-product-image="1"])::after,
.k-sug-card-img:has(img[data-k-product-image="1"])::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .k-card-img-wrap:has(img[data-k-product-image="1"]):not(.is-image-ready)::after,
  .k-sug-card-img:has(img[data-k-product-image="1"]):not(.is-image-ready)::after {
    animation: k-product-image-sheen 1.15s ease-in-out infinite;
  } }

.k-card-img-wrap:has(img[data-k-product-image="1"]).is-image-ready::before,
.k-card-img-wrap:has(img[data-k-product-image="1"]).is-image-ready::after,
.k-sug-card-img:has(img[data-k-product-image="1"]).is-image-ready::before,
.k-sug-card-img:has(img[data-k-product-image="1"]).is-image-ready::after {
  opacity: 0;
  visibility: hidden;
  animation: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.k-discovery-shell[hidden] {
  display: none;
}

.k-discovery-shell {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 12px;
}

@media (min-width: 900px) {
  .k-discovery-shell {
    padding: 8px 20px 4px;
  } }
.k-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: var(--overlay-dark-sm);
  justify-content: center; align-items: stretch;
}
.k-modal-close {
  width: 34px; height: 34px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50%; font-size: 16px; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
#k-modal-overlay, #k-modal { max-width: 100vw; overflow-x: hidden; }
@media (max-width: 899px) {

  #k-modal-overlay {
    position: fixed;
    /* Ancrage 4 côtés sans width:100vw : on évite le mismatch
       entre layout viewport (100vw) et visual viewport (réel). */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    overflow: hidden;
    /* Annule justify-content:center hérité — sur mobile la modal prend toute
       la largeur, pas besoin de centrage qui peut créer un décalage. */
    justify-content: flex-start;
    align-items: stretch;
    /* contain: force un stacking context strict, indépendant des
       transforms ancestraux résiduels (Chrome Android Edge Panels). */
    contain: layout paint;
  } }
.k-cart-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: var(--overlay-dark);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.k-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; z-index: 1150;
  background: var(--white);
  box-shadow: -1px 0 0 var(--border);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  border: 0;
}
.k-cart-header {
  background: var(--white); color: var(--text);
  padding: 10px 15px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
}
.k-cart-header span   { color: var(--text-muted); font-size: 11px; }
#k-cart-close {
  width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.k-cart-body { overflow-y: auto; min-height: 0; padding: 10px 10px 14px; background: var(--white); scrollbar-width: thin; }
.k-cart-footer {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--footer-separator);
  background: var(--white);
  box-shadow: none;
}
.k-order-overlay { display: none; position: fixed; inset: 0; z-index: 1200; background: var(--overlay-dark-md); justify-content: flex-start; align-items: stretch; /* center uniquement sur desktop via @media 900px */ }
@media (min-width: 900px) {
  .k-order-overlay { align-items: center; justify-content: center; } }
.k-toast {
  position: fixed; top: -80px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--white);
  padding: 0; border-radius: 16px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: top .45s var(--ease-spring);
  z-index: 2000; min-width: 220px; max-width: 340px; width: calc(100% - 32px); overflow: hidden;
}
.k-wa-fab {
  position: fixed;
  right: 10px;
  bottom: calc(var(--bnav-h) + 6px + env(safe-area-inset-bottom, 0px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 88;
  box-shadow: 0 4px 14px rgba(37,211,102,.28);
  transition: transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease);
  animation: waPulse 3.5s ease-in-out infinite;
  text-decoration: none;
}

.k-wa-fab svg {
  width: 26px;
  height: 26px;
}

@media (min-width: 900px) {
  .k-wa-fab {
    bottom: 18px;
    right: 18px;
    z-index: 100;
  } }
.k-bnav-item[data-tab="cart"] { position: relative; overflow: visible; }
.k-bnav-badge {
  position: absolute; top: -2px; left: 50%; margin-left: 4px;
  min-width: 18px; height: 18px;
  background: var(--coral); color: var(--white);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50px; padding: 0 5px; border: 2px solid var(--white);
  line-height: 1; box-shadow: 0 2px 6px var(--overlay-black-md);
  transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none; z-index: 5;
}
#k-scroll-sentinel { height: 1px; margin-top: 8px; }
.k-load-more-spinner { text-align: center; padding: 20px; display: none; color: var(--text-muted); font-size: 13px; }
.k-load-more-spinner.show { display: block; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }
#k-page-scroll.k-pager-active .k-card-carousel {
  overflow-x: hidden;
  scroll-snap-type: none;
}

#k-page-scroll { padding-bottom: 0; }
.k-cart-drawer { width: 100%; max-width: 100%; border-radius: 0; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .k-card-add        { width: 34px; height: 34px; bottom: 10px; right: 10px; }
  .k-card-fav        { width: 32px; height: 32px; top: 10px; right: 10px; font-size: 15px; } }
.k-spinner--sm   { width:22px; height:22px; }
.k-card-carousel {
  position: absolute; inset: 0;
  display: flex; overflow-x: scroll; overflow-y: hidden; /* FIX: overflow:hidden bloquait le scroll touch */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.k-card-carousel img {
  flex: 0 0 100%; width: 100%; height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  object-fit: contain; padding: 8px;
}
.k-cats,
.k-subcats-rail,
.k-promo-rail { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.k-bnav-item { position:relative; }
.k-card-slide        { flex:0 0 100%; width:100%; height:100%; scroll-snap-align:start; scroll-snap-stop:always; position:relative; display:flex; align-items:center; justify-content:center; }
.k-card-slide-img    { width:100%; height:100%; object-fit:contain; padding:8px; display:block; }
.k-hero-bubble           { display:none; }
.k-hero-proverb-inline   { display:none; }
.k-proverb-sep           { display:none; }
.k-hero-bubble,
.k-hero-bubble.k-hero-cart-proxy {
  display: none;
}
@media (min-width: 900px) {
  .k-hero-bubble,
  .k-hero-bubble.k-hero-cart-proxy {
    display: none;
  } }
#k-side-cart {
  container-name: shared-list;
  container-type: inline-size;
}
@media (max-width: 899px) {
  #k-hero-fixed-wrap > .k-hero {
    background:
      radial-gradient(circle at 78% 48%, var(--ocean-bg-08) 0%, transparent 34%),
      radial-gradient(circle at 18% 62%, var(--coral-focus-08) 0%, transparent 30%),
      var(--white);
  }

  .k-hero .k-hero-inner .k-hero-media {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .k-shelf-rail {
    background: var(--white);
    box-shadow: none;
  }

  .k-cat-cutout.active .k-chip-label::after {
    background: var(--cta-green);
  }
  .k-card-img-wrap {
    aspect-ratio: 4 / 3;
  }

  .k-card-info {
    padding: 6px 8px 7px;
  }

  .k-card-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.18;
    min-height: 1.18em;
  }

  .k-card-bottom {
    margin-top: 2px;
    gap: 3px;
    padding-right: 38px;
  }

  .k-card-price {
    font-size: 17px;
    line-height: 1.02;
    letter-spacing: -.025em;
  }

  .k-card-price-col {
    min-height: 30px;
  }

  .k-card-price-eur {
    font-size: 11px;
  } }
@media (max-width: 899px) {
  .k-cart-drawer {
    background: var(--white);
    border: 0;
    box-shadow: none;
  }

  .k-cart-header {
    min-height: 56px;
    padding: 10px 14px;
    border-bottom: 0;
    background: var(--white);
  }

  #k-cart-header-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
  }

  #k-cart-close {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
  }

  #k-cart-drawer:not([data-mode="shared-list"]) .k-cart-body {
    padding: 10px 10px 16px;
    background: var(--white);
  }

  #k-cart-drawer:not([data-mode="shared-list"]) .k-cart-footer {
    border-top: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 24px var(--border-text-06);
  } }

/* ── EMPTY CATALOGUE — always critical ───────────────────────────────
   Le catalogue vide peut être rendu avant l'activation asynchrone de
   components.css. Ces règles évitent tout flash de DOM brut au reload. */
.k-grid > .k-catalog-empty {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 28px 20px 36px;
}

.k-catalog-empty .k-track-retry-btn {
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

#k-catalog-section:has(.k-catalog-empty) #k-scroll-sentinel,
#k-catalog-section:has(.k-catalog-empty) .k-load-more-spinner {
  display: none;
}

.k-track-error {
  text-align: center;
  padding: 48px 24px 60px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.k-track-error-icon {
  font-size: 56px;
  line-height: 1;
  opacity: .5;
}

.k-track-error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.k-track-error-sub {
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.k-track-retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--cta-green) 0%, var(--status-confirmed-text) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(42,122,62,.3);
  transition: all .15s;
}

.k-track-retry-btn:hover  { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(42,122,62,.4); }
.k-track-retry-btn:active { transform: scale(.97); }
.k-track-retry-btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
  box-shadow: none;
}
