/* product.css — page produit (style Arena) + modal commande rapide */
.product-page{ max-width: var(--container); margin: 0 auto; padding: 2rem 20px 4rem; }
.product-crumb{ font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.6rem; }
.product-crumb a{ cursor: pointer; }
.product-crumb a:hover{ color: var(--accent); }
.product-layout{ display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: start; }

.product-gallery{ position: sticky; top: calc(var(--nav-h) + var(--nav-h-cat) + 16px); }
.det-main-img{ position: relative; aspect-ratio: 3 / 4; background: #eee6d6; overflow: hidden; border-radius: var(--r-l); }
.det-track{ display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.det-track::-webkit-scrollbar{ display: none; }
.det-slide{ flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.det-slide img{ width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.det-dots{ display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.det-dots:empty{ display: none; }
.det-dot{ width: 7px; height: 7px; border-radius: 50%; background: rgba(23,19,13,.22); transition: width .25s, background .25s; padding: 0; }
.det-dot.on{ width: 22px; border-radius: 4px; background: var(--accent); }
.det-arrow{
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,253,248,.9); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; z-index: 4; transition: .25s;
}
.det-arrow:hover{ background: var(--ink); color: var(--accent-2); }
.det-arrow.prev{ left: 12px; } .det-arrow.next{ right: 12px; }
.det-thumbs{ display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.det-thumb{ flex: none; width: 74px; height: 94px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: .25s; background: #eee6d6; }
.det-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.det-thumb.on{ border-color: var(--gold); }

.product-info-brand{ font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.product-info h1{ font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; margin: .5rem 0 .2rem; }
.product-price-row{ display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.product-price-row .now{ font-family: var(--f-display); font-size: 2rem; font-weight: 600; color: var(--gold); }
.product-price-row .old{ font-size: 1.05rem; color: var(--dim); text-decoration: line-through; }
.product-price-row .off{ background: var(--gold); color: #241a08; font-size: .72rem; font-weight: 700; padding: .38rem .75rem; border-radius: 99px; align-self: center; }

.opt-block{ margin-bottom: .4rem; }
.opt-label{ font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin: 1.4rem 0 .7rem; }
.opt-label span{ font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--accent); }
.opt-swatches{ display: flex; flex-wrap: wrap; gap: 9px; }
.opt-sz{
  min-width: 52px; padding: .62rem .9rem; border: 1px solid rgba(23,19,13,.12); border-radius: 12px; background: var(--white);
  font-size: .85rem; font-weight: 500; text-align: center; transition: .25s;
}
.opt-sz:hover{ border-color: var(--gold); }
.opt-sz.on{ background: var(--ink); color: var(--accent-2); border-color: var(--ink); }
/* couleurs: pastilles rondes (le nom s'affiche à côté du titre « Couleur ») */
.opt-col{ position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--white); outline: 2px solid rgba(23,19,13,.14); background: transparent; transition: .25s; display: inline-flex; align-items: center; justify-content: center; }
.opt-col i{ width: 100%; height: 100%; border-radius: 50%; display: block; }
.opt-col span{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt-col.on{ outline-color: var(--gold); transform: scale(1.1); }
.opt-col.txt{ width: auto; height: auto; border-radius: 12px; padding: .62rem .9rem; border: 1px solid rgba(23,19,13,.12); outline: 0; background: var(--white); }
.opt-col.txt span{ position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: .85rem; }
.opt-col.txt.on{ background: var(--ink); color: var(--accent-2); border-color: var(--ink); transform: none; }
.shake{ animation: shake .4s; }
@keyframes shake{ 20%,60%{ transform: translateX(-6px); } 40%,80%{ transform: translateX(6px); } }

.qty-stepper{ display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(23,19,13,.12); border-radius: 999px; background: var(--white); }
.qty-stepper button{ width: 42px; height: 46px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: .2s; }
.qty-stepper button:hover{ color: var(--accent); }
.qty-stepper span{ min-width: 36px; text-align: center; font-weight: 600; }

.product-actions{ display: flex; flex-direction: column; gap: 12px; margin: 1.8rem 0 1.4rem; }
.btn-order-now{
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 0; color: #1c1508;
  background: linear-gradient(120deg, var(--gold), var(--accent-2) 55%, var(--gold)); background-size: 200%;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(195,154,79,.34); transition: .35s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-order-now:hover{ background-position: 100% 0; transform: translateY(-2px); }
.order-now-note{ text-align: center; font-size: .74rem; color: var(--dim); margin-top: -4px; }
.btn-add-cart{
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: .3s;
}
.btn-add-cart:hover{ background: var(--ink); color: var(--accent-2); }

.product-perks{ display: grid; gap: 10px; padding: 1.1rem 1.2rem; background: var(--accent-soft); border-radius: 16px; margin-bottom: 1.2rem; }
.product-perk-item{ display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #6b5420; }
.product-perk-item svg{ color: var(--gold); flex-shrink: 0; }

.det-accordion{ border-top: 1px solid rgba(23,19,13,.12); }
.det-accordion:last-child{ border-bottom: 1px solid rgba(23,19,13,.12); }
.det-accordion-head{ width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-align: left; }
.det-accordion-head svg{ color: var(--gold); transition: transform .3s; }
.det-accordion-head.open svg{ transform: rotate(180deg); }
.det-accordion-body{ max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.9,.3,1); }
.det-accordion-body.open{ max-height: 800px; }
.det-desc{ padding: 0 0 1.3rem; color: var(--dim); line-height: 1.75; font-size: .92rem; white-space: pre-line; }
.related-sec{ margin-top: 4rem; }

@media (max-width: 860px){
  .product-layout{ grid-template-columns: 1fr; gap: 1.6rem; }
  .product-gallery{ position: static; }
  .product-page{ padding: 1rem 14px 3.5rem; }
}

/* ── Modal commande rapide ── */
@keyframes orderPulse{
  0%, 100% { box-shadow: 0 6px 20px rgba(179,38,30,.35); }
  50%      { box-shadow: 0 6px 26px rgba(179,38,30,.6); }
}

.order-now-note{
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: -2px;
}

.order-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.6);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.order-modal-overlay.open{ opacity: 1; pointer-events: auto; }

.order-modal{
  background: var(--white);
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 22px 30px;
  transform: translateY(40px);
  transition: transform .3s ease;
  max-height: 88vh;
  overflow-y: auto;
}
.order-modal-overlay.open .order-modal{ transform: translateY(0); }

@media (min-width: 640px){
  .order-modal-overlay{ align-items: center; }
  .order-modal{ border-radius: var(--radius); }
}

.order-modal-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.order-modal-head h3{
  font-size: 19px;
  text-transform: uppercase;
}
.order-modal-close{
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
}

.order-modal-product{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 18px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 13px;
}
.order-modal-product img{
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.order-summary{
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 13px;
}
.order-summary-row{
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.order-summary-row.total{
  border-top: 1px solid var(--mist);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 16px;
}

.order-submit{
  width: 100%;
  padding: 16px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.order-submit:hover{ background: var(--blue-2); }
.order-submit:disabled{ opacity: .6; }
.order-summary-row.muted{ color: var(--dim); font-size: 12.5px; }
.order-submit{ background: var(--ink); color: var(--accent-2); }
.order-submit:hover{ background: var(--accent); color: var(--white); }
.qty-row{ display: block; }

/* modal: habillage Arena */
.order-modal{ background: var(--white); border-radius: 26px 26px 0 0; }
@media (min-width: 640px){ .order-modal{ border-radius: 26px; } }
.order-modal-overlay{ background: rgba(15,12,7,.6); backdrop-filter: blur(5px); }
.order-modal-product{ background: var(--accent-soft); border-radius: 14px; }
.order-modal-product img{ border-radius: 10px; width: 52px; height: 66px; }
.order-summary{ background: var(--ink); color: var(--white); border-radius: 18px; padding: 1.2rem 1.3rem; }
.order-summary-row{ color: rgba(255,253,248,.75); }
.order-summary-row.total{ border-top-color: rgba(255,253,248,.15); color: var(--accent-2); font-size: 1.25rem; }
.order-summary-row.muted{ color: rgba(255,253,248,.5); }
.order-submit{ border-radius: 999px; background: linear-gradient(120deg, var(--gold), var(--accent-2) 55%, var(--gold)); color: #1c1508; letter-spacing: .14em; font-family: var(--f-sans); font-size: .82rem; }
.order-submit:hover{ background: var(--ink); color: var(--accent-2); }