/*! EasyKustom — EasyVerse © 2026. Tous droits réservés.
 * Code propriétaire. Reproduction, extraction automatisée, réutilisation et
 * entraînement de modèles interdits sans autorisation écrite. Voir LICENSE.
 */
@font-face {
  font-family: "Ka Blam";
  src: url("font/ka_blam/Ka Blam.ttf") format("truetype");
  font-display: swap;
}

:root {
  --accent: #4967ef;
  --navy: #07162f;
  --paper: #f6f7f7;
  --ink: #101827;
  --muted: #66717f;
  --selected-color: #f5f5f2;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.products-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
}

.products-backdrop {
  position: absolute;
  z-index: -3;
  inset: -8%;
  background: center 56% / cover no-repeat;
  filter: saturate(.88);
}

.products-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,14,34,.95) 0%, rgba(4,14,34,.76) 44%, rgba(4,14,34,.2) 100%),
    linear-gradient(180deg, rgba(4,14,34,.18), rgba(4,14,34,.78));
}

.products-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 110px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 50%;
  opacity: .22;
  pointer-events: none;
}

.falling-balls {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.falling-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ball-size);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 9px rgba(0, 0, 0, .38));
  opacity: var(--ball-opacity, 1);
  transform: translate3d(var(--ball-x), var(--ball-y), 0) rotate(var(--ball-turn)) scaleX(var(--ball-flip, 1)) scale(var(--ball-scale, 1));
  will-change: transform, opacity;
  user-select: none;
}

/* PD-035 : retour + identite du compte, alignes a droite de l'en-tete (fond sombre). */
.products-header-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.products-header-right .store-account { --store-account-surface-override: rgba(255,255,255,.14); --store-account-border-override: rgba(255,255,255,.5); --store-account-ink-override: #fff; --store-account-muted-override: #d5e0ef; }
.products-header-right .store-account-menu { color: #0f1c33; }

.products-header {
  position: relative;
  z-index: 5;
  width: min(1540px, calc(100% - 68px));
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}

@media (prefers-reduced-motion: reduce) {
  .falling-balls { display: none; }
}

.products-logo { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.products-logo span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff6481;
  font-size: 12px;
  font-weight: 800;
}

.products-back { display: flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.products-back span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  font-size: 16px;
  transition: .2s ease;
}
.products-back:hover span { border-color: var(--accent); background: var(--accent); color: var(--navy); }

.products-hero-copy { width: min(1400px, calc(100% - 120px)); margin: 55px auto 70px; }
.products-kicker, .storefront-kicker { margin: 0 0 14px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.products-title-line { display: flex; align-items: end; gap: 22px; }
.products-title-line h1 {
  margin: 0;
  font-family: "Ka Blam", Impact, sans-serif;
  font-size: clamp(76px, 10vw, 145px);
  font-weight: 400;
  line-height: .76;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 16px 34px rgba(0,0,0,.3);
}
.gender-badge {
  margin-bottom: 2px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, white);
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 20%, rgba(6,20,48,.72));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.products-hero-copy > p:last-child { max-width: 620px; margin: 26px 0 0; color: #d6deea; font-size: 14px; line-height: 1.7; }

.storefront { width: min(1480px, calc(100% - 68px)); margin: auto; padding: 58px 0 90px; }
.storefront-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.storefront-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; }
.product-count { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }

.catalog-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin: 38px 0 30px;
}
.catalog-controls {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  padding: 16px 14px;
  overflow-y: auto;
  border: 1px solid #dfe3e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,31,48,.05);
}
.catalog-products { min-width: 0; }
.color-control { display: grid; gap: 14px; }
.control-label { display: flex; flex-direction: column; gap: 3px; }
.control-label b { font-size: 9px; letter-spacing: .14em; }
.control-label span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.color-pots { display: grid; gap: 7px; }
.color-palette-status { display: block; padding: 11px; border: 1px dashed #cad2da; border-radius: 10px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.color-slot { min-width: 0; overflow: hidden; border: 1px solid #d9e0e5; border-radius: 11px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.color-slot.open { border-color: #9eb0bd; box-shadow: 0 8px 24px rgba(7,22,47,.06); }
.color-slot-toggle { display: grid; grid-template-columns: minmax(0, 1fr) 24px 18px; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.color-slot-label { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.color-slot-label b { font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.color-slot-label small { overflow: hidden; color: var(--muted); font-size: 7px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.color-slot-selected { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: var(--selected-color); box-shadow: 0 0 0 1px #b8c1c9; }
.color-slot-burger { display: grid; gap: 3px; }
.color-slot-burger i { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.color-slot.open .color-slot-burger i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.color-slot.open .color-slot-burger i:nth-child(2) { opacity: 0; }
.color-slot.open .color-slot-burger i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.color-slot-menu { padding: 9px 10px 11px; border-top: 1px solid #e6eaee; background: #f8f9fa; }
.color-slot-menu[hidden] { display: none; }
.color-slot-pots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.color-slot .color-pot { width: 24px; height: 24px; border-width: 2px; }
.color-pot {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pot);
  box-shadow: 0 0 0 1px #cad0d6;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.color-pot:hover { transform: translateY(-2px); }
.color-pot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.color-pot.active { box-shadow: 0 0 0 2px var(--ink), 0 7px 15px rgba(16,24,39,.18); transform: translateY(-2px); }

.category-filters { display: flex; min-height: 35px; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-bottom: 16px; }
.category-filter {
  padding: 10px 14px;
  border: 0;
  border-radius: 99px;
  background: #eef1f3;
  color: #5e6875;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}
.category-filter.active { background: var(--navy); color: #fff; }

.textile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.textile-card { min-width: 0; overflow: hidden; border-radius: 15px; background: #fff; box-shadow: 0 14px 34px rgba(22,35,51,.07); transition: transform .25s ease, box-shadow .25s ease; }
.textile-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(22,35,51,.12); }
.textile-card.is-requested-product { outline: 3px solid var(--accent); outline-offset: 4px; box-shadow: 0 20px 48px color-mix(in srgb, var(--accent) 25%, transparent); }
.model-stage { position: relative; height: 330px; overflow: hidden; background: linear-gradient(145deg, #f4f5f7, #e8ebee); }
.model-stage::before {
  content: "";
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 25%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--selected-color) 23%, transparent);
  filter: blur(26px);
}
easy-three-viewer { display: block; width: 100%; height: 100%; background: transparent; }
.rotate-hint {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.78);
  color: #4f5a67;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.viewer-poster { width: 100%; height: 100%; display: grid; place-items: center; background: transparent; }
.viewer-poster span { width: 46%; height: 58%; background: var(--selected-color); filter: drop-shadow(0 20px 17px rgba(22,35,51,.16)); }
.viewer-poster.jersey span { clip-path: polygon(27% 0,40% 7%,60% 7%,73% 0,100% 17%,87% 39%,76% 33%,76% 100%,24% 100%,24% 33%,13% 39%,0 17%); }
.viewer-poster.shorts span { height: 42%; clip-path: polygon(8% 0,92% 0,100% 100%,56% 100%,50% 44%,44% 100%,0 100%); }
.viewer-poster.tank span { clip-path: polygon(27% 0,40% 8%,60% 8%,73% 0,87% 12%,76% 35%,76% 100%,24% 100%,24% 35%,13% 12%); }
.viewer-poster.jacket span { clip-path: polygon(26% 0,40% 7%,60% 7%,74% 0,100% 18%,89% 100%,75% 96%,76% 33%,76% 100%,24% 100%,24% 33%,25% 96%,11% 100%,0 18%); }
.viewer-poster small { position: absolute; bottom: 18px; color: #7a8490; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.model-error { position: absolute; inset: 0; display: none; place-items: center; padding: 25px; text-align: center; color: #77818c; font-size: 11px; line-height: 1.6; }
.textile-card.is-model-error .model-error { display: grid; }
.textile-card.is-model-error easy-three-viewer { opacity: .14; }

.textile-copy { padding: 19px 20px 22px; }
.textile-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
/* PD-127 : un article unisexe figure dans les deux collections — la carte le dit, discretement, la ou
   elle annonce deja ce qu'elle est. Rien n'est ajoute sur un article homme ou femme. */
.textile-unisex { margin-left: 7px; padding: 1px 6px 2px; border: 1px solid currentColor; border-radius: 999px; font-weight: 800; letter-spacing: .1em; opacity: .85; cursor: help; }
/* PD-145 : un modele que l'usine ne reference plus reste dans la vitrine et le dit — une icone, une
   mention, la phrase du serveur sous le sous-titre. La carte reste entiere et cliquable : on peut
   toujours en parler avec son magasin, on ne peut simplement plus le commander (garde-fou PD-140). */
.textile-unavailable { display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; padding: 1px 7px 2px; border-radius: 999px; background: #fdecec; color: #a3231f; font-weight: 800; letter-spacing: .1em; cursor: help; }
.textile-unavailable i { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border-radius: 50%; background: #a3231f; color: #fff; font-size: 8px; font-style: normal; line-height: 1; }
.textile-unavailable-notice { margin: -8px 0 14px; color: #a3231f; font-size: 10px; line-height: 1.45; }
.textile-card.is-factory-unavailable { border-color: #f0cdcb; }
.textile-copy h3 { min-height: 2.3em; margin: 0; font-size: 16px; line-height: 1.15; text-transform: uppercase; }
.product-personalize-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.product-personalize-row h3{flex:1;min-width:0}.personalize-button{flex:0 0 auto;border:1.5px solid var(--ink);border-radius:11px;padding:11px 13px;background:#fff;color:var(--ink);font-size:10px;font-weight:800;letter-spacing:.04em}.personalize-button:hover,.personalize-button:focus-visible{background:var(--ink);color:#fff;transform:translateY(-1px)}
.textile-material { min-height: 2.6em; margin: 9px 0 16px; color: var(--muted); font-size: 10px; font-style: italic; line-height: 1.45; }
.textile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #e7eaed; }
.textile-bottom strong { font-size: 13px; }
.customizable-badge { display: inline-flex; align-items: center; gap: 6px; color: #4b5663; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.customizable-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.catalog-empty { padding: 80px 20px; border: 1px dashed #c9d0d7; border-radius: 15px; text-align: center; background: #fff; }
.catalog-empty span { display: inline-grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 800; }
.catalog-empty h3 { margin: 22px 0 8px; font-size: 24px; }
.catalog-empty p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .catalog-layout { grid-template-columns: 248px minmax(0, 1fr); }
  .catalog-controls { padding-inline: 12px; }
  .color-slot-pots { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .color-slot .color-pot { width: 23px; height: 23px; }
  .textile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-filters { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .products-hero { min-height: 335px; }
  .products-header { width: calc(100% - 30px); }
  .products-logo b { display: none; }
  .products-back { position: absolute; top: 21px; right: 15px; width: 39px; gap: 0; font-size: 0; }
  .products-back span { flex: 0 0 39px; }
  .products-hero-copy { width: calc(100% - 40px); margin: 45px auto 55px; }
  .products-title-line { align-items: flex-start; flex-direction: column; gap: 17px; }
  .products-title-line h1 { font-size: clamp(62px, 18vw, 105px); }
  .gender-badge { order: -1; margin: 0; }
  .storefront { width: calc(100% - 30px); padding-top: 42px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 18px; }
  .catalog-controls { position: static; width: min(100%, 300px); max-height: none; }
  .textile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .storefront-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .catalog-controls { width: 100%; }
  .textile-grid { grid-template-columns: 1fr; }
  .model-stage { height: 365px; }
}
