/* ===== LeanShirt - page produit ===== */

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 4px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 7px; opacity: .5; }
.breadcrumb em { color: var(--ink); font-style: normal; font-weight: 600; }

/* Layout */
.pdp { padding: 18px 0 40px; }
.pdp__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }

/* Gallery */
.gallery { position: sticky; top: 86px; }
.gallery__main {
  position: relative; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; aspect-ratio: 1/1;
}
.gallery__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ink); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .8px; padding: 6px 12px; border-radius: 999px;
}
.gview { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s; pointer-events: none; }
.gview--active { opacity: 1; pointer-events: auto; }

.gallery__thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.thumb {
  background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 8px;
  font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--ink-soft); cursor: pointer; transition: .15s;
}
.thumb:hover { border-color: var(--accent-2); }
.thumb--active { border-color: var(--ink); background: #fff; color: var(--ink); }

/* Buy box */
.buybox { padding-top: 4px; }
.buybox .rating { margin-bottom: 14px; }
.buybox__title { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.8px; line-height: 1.12; font-weight: 900; margin-bottom: 12px; }
.buybox__sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }

.buybox__price { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.price-now { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.price-old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.price-tag { background: #e8f1ff; color: var(--accent); font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }

/* Options */
.opt { padding: 16px 0; border-top: 1px solid var(--line); }
.opt__label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; }
.opt__label small { color: var(--muted); font-weight: 500; }
.opt__label em { font-style: normal; color: var(--accent); }
.opt__guide { float: right; font-size: 13px; color: var(--accent); font-weight: 600; }

.packs--pdp { grid-template-columns: repeat(3,1fr); max-width: none; margin: 0; gap: 10px; }
.packs--pdp .pack { padding: 16px 10px; }
.packs--pdp .pack__price { font-size: 20px; margin: 4px 0 2px; }
.packs--pdp .pack__qty { font-size: 13px; }

.buybox__add { margin-top: 22px; }
.buybox__note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* 3 avantages produit (style FinCut : icône ligne nue, gris fin + une phrase) */
.usp3 { list-style: none; display: flex; flex-direction: column; gap: 22px; margin: 22px 0 28px; padding: 0; background: none; }
.usp3 li { display: flex; align-items: center; gap: 18px; padding: 0; border: 0; }
.usp3__ic { flex-shrink: 0; width: 30px; height: 30px; color: #9aa0ab; display: flex; align-items: center; justify-content: center; }
.usp3__ic svg { width: 28px; height: 28px; stroke-width: 1.5; }
.usp3__txt { font-size: 15px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }

/* Accordion */
.acc { margin-top: 8px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; font-size: 15px;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: .2s; }
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__item p, .acc__list { padding: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.acc__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.acc__list li { padding-left: 18px; position: relative; }
.acc__list li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); }

/* Size table */
.sizetable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sizetable th, .sizetable td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.sizetable th { background: var(--ink); color: #fff; font-size: 13px; }
.sizetable tr:last-child td { border-bottom: 0; }
.sizetable td:first-child { font-weight: 800; }

/* Sticky mobile buy bar */
.stickybuy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.08);
  display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px;
  transform: translateY(100%); transition: transform .3s ease;
}
.stickybuy--show { transform: translateY(0); }
.stickybuy__info { display: flex; flex-direction: column; line-height: 1.25; }
.stickybuy__info strong { font-size: 14px; }
.stickybuy__info span { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 920px) {
  .pdp__inner { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
}
@media (max-width: 720px) {
  .stickybuy { display: flex; }
  body { padding-bottom: 72px; }
  .buybox__usp { grid-template-columns: 1fr; }
}

/* ===== LeanFit size finder ===== */
.sf-trigger {
  position: relative; width: 100%; margin: 18px 0 0; padding: 16px;
  border: 1.5px dashed #c9ccd4; border-radius: var(--radius); background: #fff;
  cursor: pointer; font-family: var(--font); display: flex; align-items: center;
  justify-content: center; gap: 10px; transition: .15s;
}
.sf-trigger:hover { border-color: var(--accent); background: #fbfdff; }
.sf-trigger__badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 4px 9px; border-radius: 6px; }
.sf-trigger__txt { font-weight: 700; font-size: 15px; }

.sf {
  position: fixed; inset: 0; z-index: 200; background: rgba(14,16,20,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sf--open { display: flex; }
.sf__dialog {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh;
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.sf__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.sf__back { background: none; border: 0; font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.sf__brand { background: #e9ebef; color: var(--ink); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.sf__brand i { color: var(--accent); font-style: normal; }
.sf__progress { height: 3px; background: var(--line); }
.sf__progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.sf__scroll { padding: 24px; overflow-y: auto; flex: 1; }

.sf-step { display: none; }
.sf-step--active { display: block; }
.sf-title { font-size: 23px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; line-height: 1.15; }
.sf-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.sf-figure { display: flex; justify-content: center; padding: 10px 0 6px; }
.sf-torso { height: 210px; width: auto; }

.sf-field { margin-bottom: 26px; }
.sf-field:last-child { margin-bottom: 6px; }
.sf-field__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sf-field__head label { font-weight: 700; font-size: 15px; }
.sf-field__head label small { color: var(--muted); font-weight: 500; }
.sf-val b { font-size: 18px; font-weight: 800; }
.sf-val em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 700; margin-left: 2px; }
.sf-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 999px; background: #e7e8ec; outline: none; margin: 0;
}
.sf-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer;
}
.sf-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.sf-units { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.sf-units button { background: none; border: 0; font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; padding: 0; }
.sf-units button.on { color: var(--ink); }
.sf-units span { color: #c9ccd4; }

.sf-choices { list-style: none; }
.sf-choices li { border-bottom: 1px solid var(--line); }
.sf-choices li:last-child { border-bottom: 0; }
.sf-choices button {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 6px;
  background: none; border: 0; font-family: var(--font); cursor: pointer; text-align: left; transition: .15s; border-radius: 10px;
}
.sf-choices button:hover { background: var(--bg-alt); }
.sf-choice--on { background: #e8f1ff !important; }
.sf-thumb { flex-shrink: 0; width: 46px; height: 54px; display: flex; align-items: center; justify-content: center; }
.sf-thumb svg { width: 100%; height: 100%; }
.sf-thumb svg path, .sf-thumb svg circle { fill: #eef1f5; stroke: #c2c7d0; stroke-width: 1.5; }
.sf-choice__lbl { flex: 1; font-weight: 600; font-size: 16px; }
.sf-choice__lbl small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.sf-chev { color: #c2c7d0; font-size: 22px; font-weight: 400; }

.sf-step--result { text-align: center; padding-top: 10px; }
.sf-size { font-size: 64px; font-weight: 900; letter-spacing: -2px; color: var(--accent); margin: 8px 0 14px; line-height: 1; }
.sf-why { color: var(--ink-soft); font-size: 14.5px; max-width: 380px; margin: 0 auto; }

.sf__foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .sf { padding: 0; }
  .sf__dialog { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
}
