/* =========================================================
   Shop The Look v2.0 — Maison Montagut
   Hotspots breathing · side panel slide · total look
   ========================================================= */

/* ---------- Palette & tokens ---------- */
.stl-inline-trigger,
.stl-modal {
  --stl-ivory:    #f5efe5;
  --stl-cream:    #faf7f1;
  --stl-taupe:    #c4a676;
  --stl-camel:    #a37e4f;
  --stl-burgundy: #6b2d3a;
  --stl-charcoal: #1a1a1a;
  --stl-muted:    #7a6f63;
  --stl-line:     #e6ddd0;
  --stl-serif:    "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --stl-sans:     "Helvetica Neue", -apple-system, system-ui, Arial, sans-serif;
}

/* ---------- Trigger (bouton sur page produit) ---------- */
.stl-inline-trigger {
  margin: 30px 0;
  text-align: center;
  display: block;
  width: 100%;
}
.stl-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: var(--stl-charcoal);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--stl-sans);
  text-align: left;
  transition: background 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.stl-open-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stl-burgundy);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.stl-open-btn:hover::before {
  transform: translateX(0);
}
.stl-open-btn > * { position: relative; z-index: 1; }
.stl-open-icon { display: flex; align-items: center; color: var(--stl-taupe); }
.stl-open-lines { display: flex; flex-direction: column; }
.stl-open-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stl-taupe);
  margin-bottom: 2px;
}
.stl-open-title {
  font-family: var(--stl-serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2px;
}
.stl-open-arrow {
  font-size: 16px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}
.stl-open-btn:hover .stl-open-arrow { transform: translateX(6px); }

/* ---------- Modal ---------- */
.stl-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  font-family: var(--stl-sans);
  color: var(--stl-charcoal);
}
.stl-modal.is-open { opacity: 1; }
body.stl-modal-open { overflow: hidden; }

.stl-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.55) 70%),
    rgba(26,26,26,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stl-modal-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stl-modal-close {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 30;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
}
.stl-modal-close:hover {
  background: #fff;
  color: var(--stl-charcoal);
  border-color: #fff;
  transform: rotate(90deg);
}

/* ---------- Stage éditorial ---------- */
.stl-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, #2a2420 0%, #1a1a1a 80%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Titre éditorial */
.stl-editorial {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 5;
  color: #fff;
  max-width: 360px;
  opacity: 0;
  transform: translateY(-20px);
  animation: stl-fade-down 0.9s ease 0.3s forwards;
}
.stl-editorial-tag {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--stl-taupe);
  font-weight: 600;
  margin-bottom: 18px;
}
.stl-editorial-title {
  font-family: var(--stl-serif);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.stl-editorial-title em {
  font-style: italic;
  color: var(--stl-taupe);
}
.stl-editorial-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-width: 320px;
}
@keyframes stl-fade-down {
  to { opacity: 1; transform: translateY(0); }
}

/* Image héro — conteneur des hotspots */
.stl-hero {
  position: relative;
  height: 82vh;
  aspect-ratio: 3 / 4;
  max-height: 860px;
  box-shadow: 0 60px 120px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #3a2a22 0%, #2d1b16 100%);
  opacity: 0;
  animation: stl-fade-up 1s ease 0.2s forwards;
  /* overflow visible pour laisser les labels hotspots dépasser */
  overflow: visible;
}
@keyframes stl-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.stl-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* ---------- Hotspots breathing ---------- */
.stl-hotspot {
  position: absolute;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: stl-hs-in 0.5s ease forwards;
}
.stl-hotspot:nth-child(4)  { animation-delay: 0.9s; }
.stl-hotspot:nth-child(5)  { animation-delay: 1.1s; }
.stl-hotspot:nth-child(6)  { animation-delay: 1.3s; }
.stl-hotspot:nth-child(7)  { animation-delay: 1.5s; }
.stl-hotspot:nth-child(8)  { animation-delay: 1.7s; }
.stl-hotspot:nth-child(9)  { animation-delay: 1.9s; }
@keyframes stl-hs-in {
  to { opacity: 1; }
}

.stl-hs-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(26,26,26,0.3), 0 0 20px rgba(255,255,255,0.6);
  z-index: 3;
  transition: transform 0.3s ease;
}
.stl-hs-halo {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  animation: stl-breathe 2.4s ease-in-out infinite;
}
.stl-hs-halo-2 {
  animation-delay: 0.8s;
}
@keyframes stl-breathe {
  0%, 100% { transform: scale(0.85); opacity: 0.9; }
  50%      { transform: scale(1.8);  opacity: 0; }
}

.stl-hs-label {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  white-space: nowrap;
  background: rgba(26,26,26,0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(196,166,118,0.3);
}
.stl-hs-label::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(26,26,26,0.88);
  border-left: 1px solid rgba(196,166,118,0.3);
  border-top: 1px solid rgba(196,166,118,0.3);
}
.stl-hs-label-num {
  font-family: var(--stl-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--stl-taupe);
}
.stl-hs-label-name {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stl-hotspot:hover .stl-hs-label,
.stl-hotspot:focus .stl-hs-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.stl-hotspot:hover .stl-hs-core {
  transform: translate(-50%, -50%) scale(1.4);
}

/* ---------- Side Panel ---------- */
.stl-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: var(--stl-cream);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -40px 0 80px rgba(0,0,0,0.35);
}
.stl-panel.is-open {
  transform: translateX(0);
}

.stl-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(245,239,229,0.9);
  border: 1px solid var(--stl-line);
  color: var(--stl-charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
}
.stl-panel-close:hover {
  background: var(--stl-charcoal);
  color: #fff;
  border-color: var(--stl-charcoal);
  transform: rotate(90deg);
}

.stl-panel-handle {
  display: none;
}

.stl-panel-image {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--stl-ivory);
  flex-shrink: 0;
}
.stl-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.stl-panel.is-open .stl-panel-image img {
  transform: scale(1.05);
}
.stl-panel-index {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--stl-serif);
  font-style: italic;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.stl-panel-body {
  flex: 1;
  padding: 30px 32px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.stl-panel-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stl-taupe);
  font-weight: 600;
  margin-bottom: 8px;
}
.stl-panel-title {
  font-family: var(--stl-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--stl-charcoal);
}
.stl-panel-price {
  font-family: var(--stl-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--stl-burgundy);
  margin-bottom: 18px;
}
.stl-panel-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--stl-muted);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--stl-line);
}

/* Quickshop */
.stl-qs {
  margin-bottom: 22px;
}
.stl-qs-row {
  margin-bottom: 18px;
}
.stl-qs-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stl-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stl-qs-selected {
  font-size: 12px;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--stl-charcoal);
  font-weight: 500;
  font-family: var(--stl-serif);
  font-style: italic;
}
.stl-qs-selected:not(:empty)::before {
  content: "· ";
  color: var(--stl-taupe);
  font-style: normal;
}
.stl-qs-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Swatches : pastille couleur (toujours, avec ou sans hex PrestaShop) */
.stl-swatch {
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: transform 0.2s ease;
  width: 30px;
  height: 30px;
}
.stl-swatch-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--stl-swatch-bg, #c4a676);
  box-shadow:
    inset 0 0 0 1px rgba(26,26,26,0.1),
    0 1px 2px rgba(26,26,26,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stl-swatch-fallback .stl-swatch-dot {
  background:
    linear-gradient(135deg, var(--stl-swatch-bg, #c4a676) 0%, rgba(255,255,255,0.15) 100%),
    var(--stl-swatch-bg, #c4a676);
}
.stl-swatch-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.25s ease;
  pointer-events: none;
}
.stl-swatch:hover .stl-swatch-ring {
  border-color: var(--stl-line);
}
.stl-swatch:hover .stl-swatch-dot {
  transform: scale(1.08);
}
.stl-swatch.active .stl-swatch-ring {
  border-color: var(--stl-charcoal);
}
.stl-swatch.active .stl-swatch-dot {
  transform: scale(1.08);
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 1px var(--stl-charcoal);
}
.stl-swatch.is-sold-out .stl-swatch-dot {
  opacity: 0.35;
}
.stl-swatch.is-sold-out::after {
  content: "";
  position: absolute;
  top: 50%; left: -4px; right: -4px;
  height: 1px;
  background: var(--stl-charcoal);
  transform: rotate(-35deg);
  opacity: 0.55;
  pointer-events: none;
}

/* Sizes : toujours cliquables par défaut (sauf is-sold-out explicite) */
.stl-size {
  min-width: 44px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  border: 1px solid var(--stl-line);
  background: #fff;
  color: var(--stl-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--stl-sans);
  text-transform: uppercase;
}
.stl-size:hover {
  border-color: var(--stl-charcoal);
  background: var(--stl-cream);
}
.stl-size.active {
  background: var(--stl-charcoal);
  color: #fff;
  border-color: var(--stl-charcoal);
}
.stl-size.is-sold-out {
  color: #bfb6a6;
  background: var(--stl-ivory);
  position: relative;
  cursor: not-allowed;
}
.stl-size.is-sold-out::after {
  content: "";
  position: absolute;
  inset: 50% 8% auto 8%;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ====== DIAGNOSTIC OVERLAY (affiche le resultat du add-all sans console) ====== */
.stl-diag-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 420px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 4px;
  padding: 16px 18px;
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: var(--stl-sans);
  font-size: 12px;
  color: var(--stl-charcoal);
  line-height: 1.5;
}
.stl-diag-overlay .stl-diag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.stl-diag-overlay .stl-diag-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--stl-muted);
  padding: 0 4px;
}
.stl-diag-overlay .stl-diag-close:hover { color: var(--stl-burgundy); }
.stl-diag-overlay .stl-diag-section { margin-bottom: 12px; }
.stl-diag-overlay .stl-diag-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stl-camel);
  margin-bottom: 6px;
}
.stl-diag-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stl-diag-overlay li {
  padding: 6px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
  background: rgba(0,0,0,0.03);
  word-break: break-word;
}
.stl-diag-overlay li.diag-ok    { background: rgba(45,106,79,0.12); }
.stl-diag-overlay li.diag-warn  { background: rgba(107,45,58,0.12); }
.stl-diag-overlay code {
  background: rgba(0,0,0,0.08);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 11px;
}
.stl-diag-overlay .diag-src {
  font-size: 10px;
  opacity: 0.7;
}
.stl-diag-overlay pre {
  background: rgba(0,0,0,0.05);
  padding: 8px;
  border-radius: 3px;
  font-size: 11px;
  max-height: 200px;
  overflow: auto;
  margin: 0;
}
.stl-diag-overlay .stl-diag-legend {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(26,26,26,0.1);
  font-size: 10px;
  letter-spacing: 0.5px;
}
.stl-diag-overlay .diag-ok-pill,
.stl-diag-overlay .diag-warn-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 4px;
}
.stl-diag-overlay .diag-ok-pill   { background: rgba(45,106,79,0.2); color: #1b4332; }
.stl-diag-overlay .diag-warn-pill { background: rgba(107,45,58,0.2); color: var(--stl-burgundy); }
.stl-diag-overlay details.diag-raw {
  margin-top: 4px;
  font-size: 10px;
  background: rgba(0,0,0,0.04);
  padding: 4px 6px;
  border-radius: 3px;
}
.stl-diag-overlay details.diag-raw summary {
  cursor: pointer;
  font-weight: 600;
  color: #6b2d3a;
}
.stl-diag-overlay details.diag-raw code {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: #444;
  background: transparent;
  padding: 0;
}

/* ====== CONFIRM BUTTON (Valider mon choix pour le look) ====== */
.stl-panel-confirm {
  position: relative;
  width: 100%;
  padding: 13px 20px;
  margin-top: 14px;
  background: transparent;
  color: var(--stl-charcoal);
  border: 1px solid var(--stl-charcoal);
  font-family: var(--stl-sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.stl-panel-confirm:hover {
  background: var(--stl-charcoal);
  color: #fff;
}
.stl-panel-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stl-panel-confirm:hover .stl-panel-confirm-icon { opacity: 1; }

/* Etat : confirmé */
.stl-panel-confirm.is-confirmed {
  background: #2d6a4f;
  color: #fff;
  border-color: #2d6a4f;
  cursor: pointer;
}
.stl-panel-confirm.is-confirmed:hover {
  background: #1b4332;
  border-color: #1b4332;
}
.stl-panel-confirm.is-confirmed .stl-panel-confirm-icon {
  opacity: 1;
  transform: scale(1.1);
}

.stl-panel-confirm-feedback {
  margin-top: 8px;
  font-size: 12px;
  min-height: 14px;
  color: var(--stl-burgundy);
  font-family: var(--stl-serif);
  font-style: italic;
}

/* Hotspot confirmé : petit badge vert */
.stl-hotspot.is-confirmed .stl-hs-core {
  background: #2d6a4f !important;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.25);
}
.stl-hotspot.is-confirmed::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2d6a4f;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5L10 17.5L19 7.5'/></svg>");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
  border: 1.5px solid #fff;
  z-index: 3;
  pointer-events: none;
}

/* Panneau confirmé : liseré latéral */
.stl-panel.is-confirmed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2d6a4f;
  z-index: 5;
}

/* Compteur dans la barre totale */
.stl-total-progress {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  font-family: var(--stl-sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stl-camel);
  border: 1px solid var(--stl-camel);
  border-radius: 999px;
}
.stl-total-progress.is-complete {
  color: #2d6a4f;
  border-color: #2d6a4f;
}

/* ATC */
.stl-atc-btn {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  background: var(--stl-charcoal);
  color: #fff;
  border: none;
  font-family: var(--stl-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.25s ease;
  margin-top: 6px;
}
.stl-atc-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stl-burgundy);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.stl-atc-btn:hover::before { transform: translateY(0); }
.stl-atc-btn > * { position: relative; z-index: 1; }
.stl-atc-btn.is-loading { pointer-events: none; opacity: 0.75; }
.stl-atc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.stl-atc-feedback {
  margin-top: 12px;
  font-size: 12px;
  min-height: 16px;
  color: var(--stl-muted);
  font-family: var(--stl-serif);
  font-style: italic;
}
.stl-atc-feedback.is-success { color: var(--stl-camel); font-style: normal; letter-spacing: 0.5px; }
.stl-atc-feedback.is-error   { color: var(--stl-burgundy); }

.stl-panel-link {
  margin-top: auto;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stl-camel);
  text-decoration: none;
  border-top: 1px solid var(--stl-line);
  padding-top: 18px;
  margin-top: 22px;
  transition: color 0.2s;
}
.stl-panel-link:hover { color: var(--stl-burgundy); }

/* ---------- Barre Total Look ---------- */
.stl-total {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,26,0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(196,166,118,0.2);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
  transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(100%);
  animation: stl-fade-up 0.9s ease 0.6s forwards;
}
.stl-modal.stl-panel-active .stl-total {
  right: 440px;
}

.stl-total-left {
  display: flex;
  align-items: center;
  gap: 22px;
}
.stl-total-thumbs {
  display: flex;
}
.stl-total-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  margin-right: -10px;
  object-fit: cover;
  background: #2a2420;
  transition: transform 0.25s ease;
}
.stl-total-thumb:hover {
  transform: translateY(-4px);
  z-index: 1;
}
.stl-total-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}
.stl-total-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.stl-total-price {
  font-family: var(--stl-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--stl-taupe);
  letter-spacing: -0.3px;
}

.stl-total-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--stl-taupe);
  color: var(--stl-charcoal);
  border: none;
  font-family: var(--stl-sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stl-total-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 0;
}
.stl-total-cta:hover::before { transform: scaleX(1); }
.stl-total-cta > * { position: relative; z-index: 1; }
.stl-total-cta-arrow { transition: transform 0.3s ease; }
.stl-total-cta:hover .stl-total-cta-arrow { transform: translateX(5px); }

.stl-total-cta.is-loading { pointer-events: none; opacity: 0.75; }

/* Succès : Total Look ajouté — devient un lien vers le panier */
.stl-total-cta.is-success {
  background: #2d6a4f;
  color: #fff;
  animation: stlSuccessPulse 0.5s ease;
}
.stl-total-cta.is-success::before {
  background: #1b4332;
}
.stl-total-cta.is-success:hover { color: #fff; }
.stl-total-cta.is-success .stl-total-cta-label::before {
  content: "✓";
  margin-right: 10px;
  display: inline-block;
  font-weight: 700;
}
@keyframes stlSuccessPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------- Hotspot produit principal (plus visible) ---------- */
.stl-hotspot-main .stl-hs-core {
  background: var(--stl-burgundy);
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,0.35);
}
.stl-hotspot-main .stl-hs-halo {
  background: rgba(107, 45, 58, 0.35);
}
.stl-hotspot-main .stl-hs-label-num {
  background: var(--stl-burgundy);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stl-modal-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .stl-editorial {
    top: 20px;
    left: 20px;
    right: 80px;
    max-width: none;
  }
  .stl-editorial-title { font-size: 28px; }
  .stl-editorial-sub { display: none; }

  .stl-hero {
    height: 58vh;
    max-height: none;
  }

  /* Hotspots plus petits sur mobile */
  .stl-hotspot { width: 28px; height: 28px; }
  .stl-hs-core { width: 8px; height: 8px; }
  .stl-hs-label { top: 38px; font-size: 10px; padding: 6px 10px; }
  .stl-hs-label-name { max-width: 140px; }

  /* Panel devient un bottom drawer */
  .stl-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 82vh;
    transform: translateY(100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.4);
  }
  .stl-panel.is-open { transform: translateY(0); }
  .stl-panel-handle {
    display: block;
    width: 48px;
    height: 4px;
    background: var(--stl-line);
    border-radius: 2px;
    margin: 12px auto 6px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .stl-panel-close {
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
  }
  .stl-panel-image { height: 240px; }

  /* Total look band stays at bottom but ignores panel width */
  .stl-modal.stl-panel-active .stl-total { right: 0; }
  .stl-total {
    padding: 14px 16px;
    gap: 12px;
  }
  .stl-total-thumbs { display: none; }
  .stl-total-price { font-size: 20px; }
  .stl-total-eyebrow { font-size: 9px; }
  .stl-total-cta {
    padding: 12px 18px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .stl-total-cta-label { max-width: 120px; }
}

@media (max-width: 480px) {
  .stl-editorial-title { font-size: 22px; }
  .stl-editorial-tag { letter-spacing: 2px; }
  .stl-panel-body { padding: 22px 20px; }
  .stl-panel-title { font-size: 22px; }
  .stl-panel-price { font-size: 18px; }
}

/* ---------- Tooltip persistent ---------- */
.stl-hotspot.is-hovered .stl-hs-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Animation vol vers panier (future) ---------- */
.stl-fly {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: all 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

/* =====================================================================
   RECAP LOOK - Colonne fixe à gauche du visuel (informative)
   Remplace l'ancien bandeau total en bas + bouton "Valider mon choix"
   ===================================================================== */

/* Masque les anciens éléments supprimés (au cas où du markup résiduel) */
.stl-total, .stl-panel-confirm, .stl-panel-confirm-feedback { display: none !important; }

.stl-recap {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  max-height: 78vh;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: #fff;
  opacity: 0;
  animation: stl-fade-right 0.9s ease 0.5s forwards;
  pointer-events: auto;
}
@keyframes stl-fade-right {
  from { opacity: 0; transform: translate(-20px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* Header du recap */
.stl-recap-head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.stl-recap-eyebrow {
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--stl-taupe);
  font-weight: 600;
  margin-bottom: 8px;
}
.stl-recap-progress {
  font-family: var(--stl-serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.stl-recap-progress [data-stl-recap-done] {
  font-size: 28px;
  color: #fff;
  transition: color 0.3s ease;
}
.stl-recap-progress.is-complete [data-stl-recap-done] { color: #a5d6a7; }
.stl-recap-sep { color: rgba(255,255,255,0.5); margin: 0 2px; }
.stl-recap-progress-label {
  font-family: var(--stl-sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-left: 10px;
  align-self: center;
  font-weight: 500;
}

/* Liste des items */
.stl-recap-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.stl-recap-list::-webkit-scrollbar { width: 3px; }
.stl-recap-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }
.stl-recap-list::-webkit-scrollbar-track { background: transparent; }

.stl-recap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease;
}
.stl-recap-item:last-child { border-bottom: none; }

/* Vignette (grisée par défaut) */
.stl-recap-thumb {
  position: relative;
  width: 48px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 1px;
}
.stl-recap-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) brightness(0.55);
  opacity: 0.55;
  transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

/* Badge de validation (masqué par défaut) */
.stl-recap-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2d6a4f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(26,26,26,1);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

/* Métadonnées : numéro + nom + variante */
.stl-recap-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.stl-recap-num {
  font-family: var(--stl-serif);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--stl-taupe);
  font-style: italic;
  opacity: 0.6;
  transition: opacity 0.35s ease, color 0.35s ease;
}
.stl-recap-name {
  font-family: var(--stl-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.35s ease;
}
.stl-recap-variant {
  font-family: var(--stl-sans);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stl-taupe);
  margin-top: 2px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

/* ETAT : item ajouté au panier */
.stl-recap-item[data-is-added="1"] {
  background: rgba(45, 106, 79, 0.08);
}
.stl-recap-item[data-is-added="1"] .stl-recap-thumb img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}
.stl-recap-item[data-is-added="1"] .stl-recap-badge {
  opacity: 1;
  transform: scale(1);
}
.stl-recap-item[data-is-added="1"] .stl-recap-num {
  opacity: 1;
  color: #c9a66b;
}
.stl-recap-item[data-is-added="1"] .stl-recap-name {
  color: #fff;
}
.stl-recap-item[data-is-added="1"] .stl-recap-variant {
  opacity: 0.85;
  max-height: 20px;
  margin-top: 3px;
}

/* Bouton "Voir mon panier" */
.stl-recap-cart {
  margin-top: 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--stl-sans);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stl-recap-cart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 0;
}
.stl-recap-cart:hover::before { transform: scaleX(1); }
.stl-recap-cart:hover { color: var(--stl-charcoal); border-color: #fff; }
.stl-recap-cart > * { position: relative; z-index: 1; }
.stl-recap-cart-arrow { transition: transform 0.3s ease; }
.stl-recap-cart:hover .stl-recap-cart-arrow { transform: translateX(4px); }

/* Highlight quand tous ajoutés */
.stl-recap-cart.is-complete {
  background: #2d6a4f;
  border-color: #2d6a4f;
  animation: stl-recap-pulse 1.2s ease;
}
.stl-recap-cart.is-complete:hover {
  background: #1b4332;
  border-color: #1b4332;
  color: #fff;
}
.stl-recap-cart.is-complete:hover::before { transform: scaleX(0); }
@keyframes stl-recap-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(45, 106, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0); }
}

/* Responsive : tablette — colonne plus étroite */
@media (max-width: 1200px) {
  .stl-recap { width: 230px; left: 24px; }
  .stl-editorial { left: 280px; }
}
@media (max-width: 1024px) {
  .stl-recap { width: 210px; padding: 18px 14px 16px; }
  .stl-recap-thumb { width: 42px; height: 54px; }
  .stl-editorial { left: 260px; }
}

/* Mobile : on masque le recap (l'espace manque, les hotspots suffisent) */
@media (max-width: 900px) {
  .stl-recap { display: none; }
}


/* =========================================================
   ATELIER — animation permanente côté droit
   Se pose en filigrane derrière les volets (z-index < panel)
   ========================================================= */
.stl-atelier {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  max-width: 480px;
  min-width: 280px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: stl-atelier-land 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 1.2s forwards;
}
@keyframes stl-atelier-land {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stl-atelier-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 40px;
}

.stl-atelier-eyebrow {
  position: absolute;
  top: 48px;
  right: 48px;
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--stl-taupe);
  font-weight: 600;
  opacity: 0.55;
}

.stl-atelier-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

/* Fils de chaîne (warp) — verticales très discrètes */
.stl-atelier-warp line {
  stroke: var(--stl-taupe);
  stroke-width: 0.5;
  opacity: 0.18;
  stroke-dasharray: 2 4;
  stroke-linecap: round;
}

/* Rangées de mailles jersey qui se tricotent */
.stl-atelier-stitches {
  fill: none;
}
.stl-atelier-row {
  stroke: var(--stl-taupe);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  opacity: 0;
  animation: stl-knit-draw 14s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.9s + 1.8s);
}
@keyframes stl-knit-draw {
  0%   { stroke-dashoffset: 520; opacity: 0; }
  6%   { opacity: 0.42; }
  38%  { stroke-dashoffset: 0; opacity: 0.42; }
  72%  { stroke-dashoffset: 0; opacity: 0.42; }
  86%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 520; opacity: 0; }
}

/* Monogramme M — filigrane au-dessus des mailles */
.stl-atelier-mono {
  fill: none;
  stroke: var(--stl-taupe);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  opacity: 0;
  animation: stl-mono-draw 14s ease-in-out infinite;
  animation-delay: 7.2s;
}
@keyframes stl-mono-draw {
  0%   { stroke-dashoffset: 380; opacity: 0; }
  8%   { opacity: 0.55; }
  45%  { stroke-dashoffset: 0; opacity: 0.55; }
  78%  { stroke-dashoffset: 0; opacity: 0.55; }
  92%  { opacity: 0; }
  100% { stroke-dashoffset: 380; opacity: 0; }
}

/* Signature bas */
.stl-atelier-signature {
  font-family: var(--stl-sans);
  font-size: 8px;
  letter-spacing: 3px;
  fill: var(--stl-taupe);
  opacity: 0;
  animation: stl-signature-fade 14s ease-in-out infinite;
  animation-delay: 8.5s;
}
@keyframes stl-signature-fade {
  0%, 15%   { opacity: 0; }
  25%, 80%  { opacity: 0.5; }
  95%, 100% { opacity: 0; }
}

/* Quand un volet est ouvert, l'atelier est couvert par le panel
   mais on atténue aussi pour éviter tout conflit visuel en transition */
.stl-modal.stl-panel-active .stl-atelier {
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

/* Responsive — plus étroit sur tablette, masqué sur mobile */
@media (max-width: 1200px) {
  .stl-atelier { width: 34%; }
  .stl-atelier-eyebrow { top: 36px; right: 32px; }
}
@media (max-width: 1024px) {
  .stl-atelier { width: 30%; min-width: 240px; }
}
@media (max-width: 900px) {
  .stl-atelier { display: none; }
}

/* =========================================================
   v2.3.1 — Refonte atmosphère "Maison Montagut"
   · Fond cream (fini le gris sombre)
   · Recap carte luxe, aligné hauteur hero
   · Atelier : strokes camel bien visibles
   · ATC volet : cadrage texte corrigé
   ========================================================= */

/* ----- Fond cream chaleureux, palette Montagut ----- */
.stl-modal .stl-stage {
  background:
    radial-gradient(ellipse at 62% 45%, #f2e9d7 0%, #e8dcc4 55%, #dbccb0 100%);
}

/* Subtile texture papier/lin pour le grain Maison */
.stl-modal .stl-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(124, 95, 63, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(124, 95, 63, 0.03) 1px, transparent 1px);
  background-size: 18px 18px, 27px 27px;
  background-position: 0 0, 9px 9px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.stl-modal .stl-stage > * { position: relative; z-index: 1; }

/* ----- Textes éditoriaux : dark sur cream ----- */
.stl-modal .stl-editorial-tag { color: var(--stl-camel); }
.stl-modal .stl-editorial-title { color: var(--stl-charcoal); }
.stl-modal .stl-editorial-title em { color: var(--stl-camel); font-style: italic; }
.stl-modal .stl-editorial-sub { color: var(--stl-muted); }

/* ----- Hero : ombre portée chaude ----- */
.stl-modal .stl-hero {
  box-shadow: 0 50px 100px rgba(58, 42, 34, 0.22);
}

/* ================= RECAP — CARTE CREAM LUXE ================= */
.stl-modal .stl-recap {
  left: 60px;
  top: 9vh;
  bottom: 9vh;
  max-height: 860px;
  width: 300px;
  transform: none;
  background: var(--stl-cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--stl-line);
  color: var(--stl-charcoal);
  padding: 34px 28px 28px;
  box-shadow: 0 40px 80px rgba(58, 42, 34, 0.18);
  animation: stl-fade-right-v31 0.9s ease 0.5s forwards;
}
@keyframes stl-fade-right-v31 {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.stl-modal .stl-recap-head {
  border-bottom: 1px solid var(--stl-line);
  padding-bottom: 20px;
  margin-bottom: 18px;
}
.stl-modal .stl-recap-eyebrow { color: var(--stl-camel); }
.stl-modal .stl-recap-progress { color: var(--stl-charcoal); }
.stl-modal .stl-recap-progress [data-stl-recap-done] { color: var(--stl-burgundy); }
.stl-modal .stl-recap-progress.is-complete [data-stl-recap-done] { color: #2d6a4f; }
.stl-modal .stl-recap-sep { color: var(--stl-muted); }
.stl-modal .stl-recap-progress-label { color: var(--stl-muted); }

.stl-modal .stl-recap-list::-webkit-scrollbar-thumb { background: var(--stl-line); }
.stl-modal .stl-recap-list { scrollbar-color: var(--stl-line) transparent; }

/* Items : séparation ligne claire, serif elegant */
.stl-modal .stl-recap-item {
  border-bottom: 1px solid var(--stl-line);
  padding: 13px 2px;
  transition: background 0.3s ease;
}
.stl-modal .stl-recap-item:last-child { border-bottom: none; }
.stl-modal .stl-recap-item:hover {
  background: rgba(196, 166, 118, 0.08);
}

/* Vignettes : couleur douce au repos, s'illuminent quand ajouté */
.stl-modal .stl-recap-thumb {
  background: var(--stl-ivory);
  width: 54px;
  height: 68px;
}
.stl-modal .stl-recap-thumb img {
  filter: saturate(0.85) brightness(0.98);
  opacity: 0.78;
}
.stl-modal .stl-recap-item[data-is-added="1"] {
  background: rgba(45, 106, 79, 0.05);
}
.stl-modal .stl-recap-item[data-is-added="1"] .stl-recap-thumb img {
  filter: none;
  opacity: 1;
}

/* Typo recap : serif chic pour les noms produits */
.stl-modal .stl-recap-num { color: var(--stl-camel); opacity: 0.85; }
.stl-modal .stl-recap-name {
  color: var(--stl-charcoal);
  font-family: var(--stl-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.25;
  opacity: 0.9;
}
.stl-modal .stl-recap-item[data-is-added="1"] .stl-recap-name {
  color: var(--stl-charcoal);
  opacity: 1;
  font-weight: 500;
}
.stl-modal .stl-recap-variant { color: var(--stl-camel); }

/* Badge check : camel Maison, plus discret et luxe */
.stl-modal .stl-recap-badge {
  background: var(--stl-camel);
  border-color: var(--stl-cream);
}

/* Bouton Voir mon panier : ghost charcoal → fill au hover */
.stl-modal .stl-recap-cart {
  color: var(--stl-charcoal);
  border: 1px solid var(--stl-charcoal);
  background: transparent;
  padding: 15px 18px;
}
.stl-modal .stl-recap-cart::before { background: var(--stl-charcoal); }
.stl-modal .stl-recap-cart:hover { color: var(--stl-cream); border-color: var(--stl-charcoal); }
.stl-modal .stl-recap-cart.is-complete {
  background: var(--stl-burgundy);
  border-color: var(--stl-burgundy);
  color: #fff;
}
.stl-modal .stl-recap-cart.is-complete::before { background: var(--stl-charcoal); }
.stl-modal .stl-recap-cart.is-complete:hover {
  background: var(--stl-charcoal);
  border-color: var(--stl-charcoal);
  color: #fff;
}

/* ================= ATELIER — strokes camel visibles ================= */
.stl-modal .stl-atelier-eyebrow { color: var(--stl-camel); opacity: 0.78; }
.stl-modal .stl-atelier-warp line {
  stroke: var(--stl-camel);
  stroke-width: 0.7;
  opacity: 0.28;
}
.stl-modal .stl-atelier-row {
  stroke: var(--stl-camel);
  stroke-width: 1.4;
}
.stl-modal .stl-atelier-mono {
  stroke: var(--stl-camel);
  stroke-width: 1.6;
}
.stl-modal .stl-atelier-signature { fill: var(--stl-camel); font-size: 9px; }

/* Redéfinit les keyframes pour accentuer l'opacité pic */
@keyframes stl-knit-draw {
  0%   { stroke-dashoffset: 520; opacity: 0; }
  6%   { opacity: 0.72; }
  38%  { stroke-dashoffset: 0; opacity: 0.72; }
  72%  { stroke-dashoffset: 0; opacity: 0.72; }
  88%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 520; opacity: 0; }
}
@keyframes stl-mono-draw {
  0%   { stroke-dashoffset: 380; opacity: 0; }
  8%   { opacity: 0.82; }
  45%  { stroke-dashoffset: 0; opacity: 0.82; }
  78%  { stroke-dashoffset: 0; opacity: 0.82; }
  92%  { opacity: 0; }
  100% { stroke-dashoffset: 380; opacity: 0; }
}
@keyframes stl-signature-fade {
  0%, 15%   { opacity: 0; }
  25%, 80%  { opacity: 0.72; }
  95%, 100% { opacity: 0; }
}

/* Décalage horizontal pour caler l'atelier entre hero et bord droit */
.stl-modal .stl-atelier { width: 34%; }

/* ================= ATC BUTTON — cadrage corrigé ================= */
.stl-modal .stl-atc-btn {
  padding: 17px 18px;
  letter-spacing: 2.3px;
  font-size: 11px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  line-height: 1;
}
.stl-modal .stl-atc-label {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .stl-modal .stl-recap { left: 40px; width: 280px; padding: 28px 22px 24px; }
  .stl-modal .stl-atelier { width: 30%; }
}
@media (max-width: 1024px) {
  .stl-modal .stl-recap { left: 24px; width: 250px; padding: 24px 18px 20px; }
  .stl-modal .stl-recap-thumb { width: 48px; height: 60px; }
  .stl-modal .stl-recap-name { font-size: 13px; }
}

/* =========================================================
   v2.3.2 — Pop-up centrée, cadre pointillé maille, 3 colonnes
   Le hero n'est JAMAIS couvert par le volet
   ========================================================= */

/* ----- Atelier : retiré ----- */
.stl-modal .stl-atelier,
.stl-modal .stl-editorial { display: none !important; }

/* ----- Backdrop : assombri et net ----- */
.stl-modal .stl-modal-backdrop {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(26,20,14,0.50) 0%, rgba(26,20,14,0.72) 75%),
    rgba(26,20,14,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ----- Modal-inner : flex centré, padding viewport ----- */
.stl-modal .stl-modal-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

/* ----- Stage : le POP-UP, centré, cadre pointillé maille ----- */
.stl-modal .stl-stage {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  height: auto;
  max-height: min(88vh, 880px);
  padding: 28px 28px 28px 28px;
  background:
    radial-gradient(ellipse at 62% 45%, #f2e9d7 0%, #e8dcc4 55%, #dbccb0 100%);
  box-shadow:
    0 50px 120px rgba(26,18,10,0.55),
    0 0 0 1px rgba(163, 126, 79, 0.35);
  overflow: hidden;
  animation: stl-popup-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes stl-popup-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Cadre pointillé façon maille — ligne intérieure */
.stl-modal .stl-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px dotted var(--stl-camel);
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}
/* deuxième ligne plus fine (effet double couture) */
.stl-modal .stl-stage::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-top: 1px dotted rgba(163, 126, 79, 0.22);
  border-bottom: 1px dotted rgba(163, 126, 79, 0.22);
  pointer-events: none;
  z-index: 2;
}

/* Texture papier (grain Maison) — gardé, re-positionné */
.stl-modal .stl-stage > * {
  position: relative;
  z-index: 3;
}

/* ----- Bouton fermeture : coin du popup ----- */
.stl-modal .stl-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--stl-line);
  color: var(--stl-charcoal);
  z-index: 40;
  backdrop-filter: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s;
}
.stl-modal .stl-modal-close:hover {
  background: var(--stl-charcoal);
  color: var(--stl-cream);
  border-color: var(--stl-charcoal);
  transform: rotate(90deg);
}

/* ==================== COLONNE 1 — RECAP ==================== */
.stl-modal .stl-recap {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  animation: none;
  flex: 0 0 280px;
  width: 280px;
  height: auto;
  max-height: none;
  align-self: stretch;
  background: var(--stl-cream);
  border: 1px solid var(--stl-line);
  padding: 32px 26px 26px;
  box-shadow: 0 20px 40px rgba(58, 42, 34, 0.10);
  opacity: 0;
  transform: translateX(-12px);
  animation: stl-col-in 0.6s ease 0.25s forwards;
}
@keyframes stl-col-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ==================== COLONNE 2 — HERO ==================== */
.stl-modal .stl-hero {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  max-height: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #3a2a22 0%, #2d1b16 100%);
  box-shadow: 0 30px 70px rgba(58, 42, 34, 0.28);
  align-self: center;
  max-width: calc(88vh * 3 / 4);
  opacity: 0;
  transform: translateY(12px);
  animation: stl-col-in-up 0.7s ease 0.1s forwards;
}
@keyframes stl-col-in-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== COLONNE 3 — ZONE VOLET ==================== */
.stl-modal .stl-panel-slot {
  position: relative;
  flex: 0 0 400px;
  width: 400px;
  align-self: stretch;
  overflow: hidden;
  opacity: 0;
  transform: translateX(12px);
  animation: stl-col-in-right 0.6s ease 0.35s forwards;
}
@keyframes stl-col-in-right {
  to { opacity: 1; transform: translateX(0); }
}

/* Volets : occupent toute la zone, empilés, seul le .is-open est visible */
.stl-modal .stl-panel {
  position: absolute;
  inset: 0;
  width: auto;
  max-width: none;
  background: var(--stl-cream);
  border: 1px solid var(--stl-line);
  transform: translateX(8%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease,
    visibility 0s linear 0.5s;
  box-shadow: 0 20px 50px rgba(58, 42, 34, 0.14);
  z-index: 5;
}
.stl-modal .stl-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease,
    visibility 0s linear 0s;
  z-index: 10;
}

/* ----- Placeholder "Composez votre look" ----- */
.stl-modal .stl-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 32px;
  background: transparent;
  color: var(--stl-charcoal);
  text-align: left;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.stl-modal.stl-panel-active .stl-hint {
  opacity: 0;
  pointer-events: none;
}
.stl-hint-mark {
  color: var(--stl-camel);
  margin-bottom: 22px;
  animation: stl-hint-pulse 3.2s ease-in-out infinite;
}
@keyframes stl-hint-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.75; }
}
.stl-hint-eyebrow {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--stl-camel);
  font-weight: 600;
  margin-bottom: 16px;
}
.stl-hint-title {
  font-family: var(--stl-serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: var(--stl-charcoal);
}
.stl-hint-title em {
  font-style: italic;
  color: var(--stl-camel);
}
.stl-hint-text {
  font-family: var(--stl-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--stl-muted);
  margin: 0 0 auto;
  max-width: 280px;
}
.stl-hint-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.stl-hint-line {
  width: 40px;
  height: 1px;
  border-top: 1px dotted var(--stl-camel);
  opacity: 0.6;
}
.stl-hint-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stl-muted);
  font-weight: 500;
}

/* ----- ATC button : cadrage texte propre (surcharge finale) ----- */
.stl-modal .stl-atc-btn {
  padding: 16px 18px;
  letter-spacing: 2.3px;
  font-size: 11px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  line-height: 1;
}
.stl-modal .stl-atc-label {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1240px) {
  .stl-modal .stl-stage { max-width: 100%; gap: 20px; padding: 22px; }
  .stl-modal .stl-recap { flex: 0 0 260px; width: 260px; padding: 26px 22px 22px; }
  .stl-modal .stl-panel-slot { flex: 0 0 360px; width: 360px; }
  .stl-modal .stl-hint-title { font-size: 32px; }
}
@media (max-width: 1024px) {
  .stl-modal .stl-modal-inner { padding: 20px; }
  .stl-modal .stl-stage { padding: 18px; gap: 16px; max-height: 92vh; }
  .stl-modal .stl-stage::before { inset: 10px; }
  .stl-modal .stl-stage::after { inset: 16px; }
  .stl-modal .stl-recap { flex: 0 0 230px; width: 230px; padding: 22px 18px 18px; }
  .stl-modal .stl-panel-slot { flex: 0 0 320px; width: 320px; }
  .stl-modal .stl-recap-thumb { width: 46px; height: 58px; }
  .stl-modal .stl-recap-name { font-size: 12px; }
  .stl-modal .stl-hint { padding: 32px 24px; }
  .stl-modal .stl-hint-title { font-size: 28px; }
}
@media (max-width: 860px) {
  /* Mobile : on passe en vertical — recap en haut, hero, volet collé bas en overlay */
  .stl-modal .stl-modal-inner { padding: 12px; }
  .stl-modal .stl-stage {
    flex-direction: column;
    max-height: 96vh;
    padding: 14px;
  }
  .stl-modal .stl-recap {
    flex: 0 0 auto;
    width: 100%;
    padding: 16px 18px;
    max-height: 24vh;
    overflow-y: auto;
  }
  .stl-modal .stl-hero {
    aspect-ratio: auto;
    max-width: 100%;
    max-height: 45vh;
    width: 100%;
    flex: 0 0 auto;
  }
  .stl-modal .stl-panel-slot {
    flex: 1 1 auto;
    width: 100%;
    min-height: 200px;
  }
  .stl-modal .stl-stage::before { inset: 8px; }
  .stl-modal .stl-stage::after { display: none; }
  .stl-modal .stl-hint { padding: 20px; }
  .stl-modal .stl-hint-title { font-size: 22px; }
}

/* =========================================================
   v2.3.3 — Volet droit compact, cadrage impeccable
   Tout est visible sans scroll sur écrans standards
   ========================================================= */

/* Image : moins haute pour laisser place au contenu */
.stl-modal .stl-panel-image {
  height: 44%;
  min-height: 200px;
  max-height: 280px;
}

/* Index chiffré sur l'image : plus discret */
.stl-modal .stl-panel-index {
  top: 14px;
  left: 18px;
  font-size: 24px;
}

/* Bouton close du volet : coin haut-GAUCHE (évite le conflit avec le close popup à droite) */
.stl-modal .stl-panel-close {
  top: 12px;
  right: auto;
  left: 12px;
  width: 32px;
  height: 32px;
  background: rgba(245,239,229,0.92);
  border: 1px solid var(--stl-line);
}

/* Corps du volet : padding resserré, scroll seulement si vraiment nécessaire */
.stl-modal .stl-panel-body {
  padding: 22px 24px 22px;
  overflow-y: auto;
}

/* Typos : un cran plus compact */
.stl-modal .stl-panel-eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  margin-bottom: 7px;
  color: var(--stl-camel);
}
.stl-modal .stl-panel-title {
  font-size: 22px;
  line-height: 1.12;
  margin: 0 0 6px;
}
.stl-modal .stl-panel-price {
  font-size: 17px;
  margin-bottom: 12px;
}
.stl-modal .stl-panel-desc {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding-bottom: 12px;
}

/* Quickshop resserré */
.stl-modal .stl-qs { margin-bottom: 14px; }
.stl-modal .stl-qs-row { margin-bottom: 12px; }
.stl-modal .stl-qs-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-bottom: 7px;
}
.stl-modal .stl-qs-selected {
  font-size: 10px;
  margin-left: 6px;
}

/* Swatches : diamètre un peu réduit */
.stl-modal .stl-swatch {
  width: 28px;
  height: 28px;
}
.stl-modal .stl-size {
  min-width: 38px;
  padding: 6px 10px;
  font-size: 11px;
}

/* ATC : un peu moins haut, même cadrage */
.stl-modal .stl-atc-btn {
  padding: 14px 16px;
  min-height: 46px;
  letter-spacing: 2.2px;
  font-size: 10.5px;
  margin-top: 4px;
}

/* Feedback + fiche produit : plus ramassé */
.stl-modal .stl-atc-feedback {
  margin-top: 8px;
  font-size: 11px;
  min-height: 14px;
}
.stl-modal .stl-panel-link {
  padding-top: 14px;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: 14px;
}

/* ==================== RESPONSIVE — AJUSTEMENTS ==================== */
@media (max-width: 1240px) {
  .stl-modal .stl-panel-image { max-height: 240px; }
  .stl-modal .stl-panel-title { font-size: 20px; }
  .stl-modal .stl-panel-body { padding: 20px 22px; }
}
@media (max-width: 1024px) {
  .stl-modal .stl-panel-image { height: 38%; min-height: 170px; max-height: 210px; }
  .stl-modal .stl-panel-title { font-size: 18px; }
  .stl-modal .stl-panel-price { font-size: 15px; margin-bottom: 10px; }
  .stl-modal .stl-panel-desc { font-size: 11.5px; margin-bottom: 12px; padding-bottom: 10px; }
  .stl-modal .stl-panel-body { padding: 18px 20px 18px; }
  .stl-modal .stl-swatch { width: 26px; height: 26px; }
  .stl-modal .stl-atc-btn { padding: 12px 14px; min-height: 42px; font-size: 10px; letter-spacing: 2px; }
}
@media (max-width: 860px) {
  /* En mobile, le panel-slot occupe la largeur, l'image peut être plus haute */
  .stl-modal .stl-panel-image { height: 200px; max-height: 220px; min-height: 180px; }
  .stl-modal .stl-panel { max-height: 100%; }
  .stl-modal .stl-panel-body { padding: 16px 18px 18px; }
  .stl-modal .stl-panel-title { font-size: 17px; }
  .stl-modal .stl-panel-close { top: 10px; left: 10px; width: 30px; height: 30px; }
  .stl-modal .stl-modal-close { width: 34px; height: 34px; top: 14px; right: 14px; }
  .stl-modal .stl-hint-title { font-size: 20px; }
  .stl-modal .stl-hint-text { font-size: 12px; }
  /* Réduit le cadre pointillé serré sur mobile */
  .stl-modal .stl-stage::before { inset: 6px; }
}
@media (max-width: 600px) {
  .stl-modal .stl-modal-inner { padding: 8px; }
  .stl-modal .stl-stage { padding: 12px; gap: 12px; }
  .stl-modal .stl-recap { padding: 14px 16px; max-height: 22vh; }
  .stl-modal .stl-recap-name { font-size: 11.5px; }
  .stl-modal .stl-hero { max-height: 38vh; }
  .stl-modal .stl-panel-image { height: 170px; min-height: 150px; }
}

/* =========================================================
   v2.3.4 — Visuel plus petit, cadrage portrait (pas de tête coupée),
            bouton ATC toujours visible (sticky bas de volet)
   ========================================================= */

/* Image du volet : beaucoup plus compacte + cadrage haut (visage visible) */
.stl-modal .stl-panel-image {
  height: auto;
  min-height: 0;
  max-height: 220px;
  aspect-ratio: 4 / 5;
  background: var(--stl-ivory);
  flex: 0 0 auto;
}
.stl-modal .stl-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;  /* cadre sur le haut du corps, pas au milieu du torse */
  display: block;
}

/* Corps du volet : colonne flex pour coller l'ATC en bas */
.stl-modal .stl-panel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 18px;
  overflow-y: auto;
  min-height: 0;
}

/* Resserrement vertical */
.stl-modal .stl-panel-eyebrow { margin-bottom: 6px; }
.stl-modal .stl-panel-title { font-size: 20px; margin: 0 0 5px; }
.stl-modal .stl-panel-price { font-size: 16px; margin-bottom: 10px; }
.stl-modal .stl-panel-desc {
  font-size: 11.5px;
  line-height: 1.45;
  margin: 0 0 10px;
  padding-bottom: 10px;
}

/* Quickshop plus ramassé */
.stl-modal .stl-qs { margin-bottom: 10px; }
.stl-modal .stl-qs-row { margin-bottom: 9px; }
.stl-modal .stl-qs-label { margin-bottom: 6px; }

/* ATC collé au bas du volet, toujours visible sans scroll */
.stl-modal .stl-atc-btn {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding: 13px 16px;
  min-height: 44px;
  font-size: 10.5px;
  letter-spacing: 2.2px;
  box-shadow: 0 -10px 14px -10px rgba(74,58,44,0.18);
}

.stl-modal .stl-atc-feedback {
  margin-top: 6px;
  font-size: 10.5px;
}

/* Lien fiche produit : visible au-dessus du bouton collant */
.stl-modal .stl-panel-link {
  padding-top: 10px;
  margin-top: 10px;
  font-size: 9.5px;
  letter-spacing: 1.4px;
}

/* ==================== RESPONSIVE v2.3.4 ==================== */
@media (max-width: 1240px) {
  .stl-modal .stl-panel-image { max-height: 200px; }
  .stl-modal .stl-panel-title { font-size: 19px; }
  .stl-modal .stl-panel-body { padding: 16px 20px 16px; }
}
@media (max-width: 1024px) {
  .stl-modal .stl-panel-image { max-height: 180px; aspect-ratio: 5 / 6; }
  .stl-modal .stl-panel-title { font-size: 17.5px; }
  .stl-modal .stl-panel-price { font-size: 14.5px; margin-bottom: 8px; }
  .stl-modal .stl-panel-desc { font-size: 11px; margin-bottom: 9px; padding-bottom: 8px; }
  .stl-modal .stl-panel-body { padding: 14px 18px 14px; }
  .stl-modal .stl-atc-btn { padding: 11px 14px; min-height: 40px; font-size: 10px; }
}
@media (max-width: 860px) {
  .stl-modal .stl-panel-image { max-height: 170px; aspect-ratio: auto; height: 170px; }
  .stl-modal .stl-panel-body { padding: 14px 16px 14px; }
}
@media (max-width: 600px) {
  .stl-modal .stl-panel-image { max-height: 150px; height: 150px; }
  .stl-modal .stl-atc-btn { padding: 11px 12px; min-height: 40px; }
}

/* =========================================================
   v2.3.5 — Fond crème #e9e0cf, encoche recap non coupée,
            volet droit 100 % visible sans scroll
   ========================================================= */

/* 1) Fond crème exact demandé par le client */
.stl-modal .stl-stage {
  background: #e9e0cf !important;
}

/* 2) Encoche de validation du recap : ne doit PAS être coupée.
      On sort l'overflow du thumb mais on conserve le clip de l'image. */
.stl-modal .stl-recap-thumb {
  overflow: visible;
}
.stl-modal .stl-recap-thumb img {
  border-radius: 1px;
  clip-path: inset(0 round 1px);
}
.stl-modal .stl-recap-badge {
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.stl-modal .stl-recap-badge svg {
  width: 10px;
  height: 10px;
}

/* 3) Volet droit : TOUT visible sans scroll (image + contenu + bouton + phrase du dessous) */
.stl-modal .stl-panel-image {
  max-height: 180px;
  aspect-ratio: 5 / 6;
}
.stl-modal .stl-panel-image img {
  object-position: center 15%;  /* visage cadré, pas tête coupée */
}

.stl-modal .stl-panel-body {
  padding: 14px 20px 16px;
  overflow: hidden;           /* pas de scroll */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stl-modal .stl-panel-eyebrow { font-size: 8.5px; margin-bottom: 4px; }
.stl-modal .stl-panel-title   { font-size: 18px; line-height: 1.1; margin: 0 0 4px; }
.stl-modal .stl-panel-price   { font-size: 15px; margin-bottom: 8px; }
.stl-modal .stl-panel-desc {
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 8px;
  padding-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stl-modal .stl-qs { margin-bottom: 8px; }
.stl-modal .stl-qs-row { margin-bottom: 7px; }
.stl-modal .stl-qs-label {
  font-size: 9.5px;
  letter-spacing: 1.6px;
  margin-bottom: 5px;
}
.stl-modal .stl-swatch { width: 24px; height: 24px; }
.stl-modal .stl-size {
  min-width: 34px;
  padding: 5px 9px;
  font-size: 10.5px;
}

.stl-modal .stl-atc-btn {
  position: static;
  margin-top: auto;
  padding: 11px 14px;
  min-height: 40px;
  font-size: 10px;
  letter-spacing: 2px;
  box-shadow: none;
}
.stl-modal .stl-atc-feedback {
  margin-top: 6px;
  font-size: 10px;
  min-height: 12px;
}
.stl-modal .stl-panel-link {
  padding-top: 8px;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 1.3px;
}

/* Responsive v2.3.5 — on garde l'intégralité visible */
@media (max-width: 1240px) {
  .stl-modal .stl-panel-image { max-height: 165px; }
  .stl-modal .stl-panel-title { font-size: 17px; }
}
@media (max-width: 1024px) {
  .stl-modal .stl-panel-image { max-height: 150px; }
  .stl-modal .stl-panel-title { font-size: 16px; }
  .stl-modal .stl-panel-price { font-size: 14px; margin-bottom: 7px; }
  .stl-modal .stl-panel-desc { font-size: 10.5px; -webkit-line-clamp: 2; }
  .stl-modal .stl-panel-body { padding: 12px 16px 14px; }
}
@media (max-width: 860px) {
  .stl-modal .stl-panel-image { max-height: 140px; height: 140px; aspect-ratio: auto; }
}
@media (max-width: 600px) {
  .stl-modal .stl-panel-image { max-height: 130px; height: 130px; }
}

/* =========================================================
   v2.3.6 — Photo entière (pas de crop) + fix effet burgundy
   ========================================================= */

/* FIX 1 : Photo entière dans le cadre, jamais coupée
   On passe de cover à contain + fond ivoire pour absorber le cadre */
.stl-modal .stl-panel-image {
  max-height: 260px;
  aspect-ratio: auto;
  height: 260px;
  background: #f5efe5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stl-modal .stl-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* visible en entier, pas de crop */
  object-position: center center;
}

/* FIX 2 : Bug visuel burgundy au hover/clic du bouton ATC
   Le souci : position:static du v2.3.5 a cassé le containing block
   du ::before (burgundy overlay) qui débordait sur tout le volet.
   On remet position:relative + overflow:hidden strict. */
.stl-modal .stl-atc-btn {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  margin-top: auto;
  z-index: 1;
}
.stl-modal .stl-atc-btn::before {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stl-modal .stl-atc-btn > * {
  position: relative;
  z-index: 1;
}

/* Responsive v2.3.6 */
@media (max-width: 1240px) {
  .stl-modal .stl-panel-image { max-height: 230px; height: 230px; }
}
@media (max-width: 1024px) {
  .stl-modal .stl-panel-image { max-height: 200px; height: 200px; }
}
@media (max-width: 860px) {
  .stl-modal .stl-panel-image { max-height: 190px; height: 190px; }
}
@media (max-width: 600px) {
  .stl-modal .stl-panel-image { max-height: 170px; height: 170px; }
}
