/* =========================================================
   ANTIQUE HOME — PRODUCT DETAIL PAGE (PDP)
   Loaded after shop.css. Mobile-first; desktop from 1024px.
   ========================================================= */

.pdp{
  position:relative;
  background: var(--paper);
  color: var(--ink-900);
  overflow:hidden;
}

/* full-page ambient background photo, faded under the paper tone */
.pdp__bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.pdp__bg img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:top center;
  opacity:.5;
}
.pdp__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(244,239,230,.55) 0%, var(--paper) 62%, var(--paper) 100%);
}

.pdp__inner{
  position:relative;
  z-index:1;
  padding: 14px var(--gutter) 0;
}

/* =========================================================
   TOP BAR — breadcrumb + prev/next
   ========================================================= */

.pdp__topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 0 16px;
  flex-wrap:wrap;
}
.pdp__topbar .crumb{ margin:0; }

.pdp__nav{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--sans);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--ink-600);
}
.pdp__nav-link{
  display:flex;
  align-items:center;
  gap:6px;
  color: var(--ink-600);
  transition: color .25s var(--ease);
}
.pdp__nav-link:hover{ color: var(--gold-deep); }
.pdp__nav-link svg{ width:13px; height:10px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.pdp__nav-sep{ opacity:.4; }

@media (min-width: 700px){
  .pdp__nav{ font-size:12px; }
}

/* =========================================================
   TOP — gallery + info
   ========================================================= */

.pdp__top{
  display:flex;
  flex-direction:column;
  gap:22px;
}

@media (min-width: 1024px){
  .pdp__top{
    flex-direction:row;
    align-items:flex-start;
    gap:56px;
    padding-bottom:20px;
  }
}

/* ---------- gallery ---------- */

.pdp__gallery{
  display:flex;
  flex-direction:column-reverse;
  gap:10px;
}

@media (min-width: 1024px){
  .pdp__gallery{
    flex-direction:row;
    flex:1 1 56%;
    max-width:56%;
    gap:16px;
  }
}

.pdp__thumbs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
  padding-bottom:2px;
}
.pdp__thumbs::-webkit-scrollbar{ display:none; }

@media (min-width: 1024px){
  .pdp__thumbs{
    flex-direction:column;
    overflow-x:visible;
    overflow-y:auto;
    max-height:560px;
    padding-bottom:0;
    width:84px;
    flex:none;
  }
}

.pdp__thumb{
  position:relative;
  flex:none;
  width:58px; height:58px;
  border-radius:8px;
  overflow:hidden;
  border:1.5px solid rgba(43,36,28,.12);
  background: var(--paper-2);
  cursor:pointer;
  padding:0;
  transition: border-color .25s var(--ease);
}
.pdp__thumb img{ width:100%; height:100%; object-fit:contain; }
.pdp__thumb.is-active{ border-color: var(--gold-deep); }
.pdp__thumb--video .pdp__play{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(20,15,9,.4);
  color:#fff;
}
.pdp__thumb--video .pdp__play svg{ width:16px; height:16px; fill:currentColor; }

@media (min-width: 1024px){
  .pdp__thumb{ width:100%; height:76px; }
}

.pdp__main{
  position:relative;
  margin:0;
  flex:1;
  aspect-ratio: 4 / 4.6;
  border-radius:12px;
  overflow:hidden;
  background: var(--paper-2);
}
.pdp__main img{
  width:100%; height:100%; object-fit:contain; cursor:zoom-in;
  opacity:1;
  transition: opacity .18s var(--ease, ease);
}
/* smooth crossfade while stepping through the gallery via the arrows or
   a scroll/swipe on the photo — toggled from js/product.js's stepImage() */
.pdp__main img.is-fading{ opacity:0; }

.pdp__count{
  position:absolute;
  left:12px; bottom:12px;
  display:flex; align-items:center; gap:5px;
  padding:5px 10px;
  border-radius:20px;
  background: rgba(20,15,9,.55);
  color:#fff;
  font-family: var(--sans);
  font-size:10px;
  letter-spacing:.06em;
}
.pdp__count i{ width:10px; height:1px; background: rgba(255,255,255,.5); }
.pdp__count em{ font-style:normal; }

.pdp__zoom{
  position:absolute;
  right:12px; bottom:12px;
  width:38px; height:38px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(251,248,243,.92);
  border:0;
  color: var(--ink-900);
  cursor:pointer;
  box-shadow: 0 4px 14px rgba(20,15,9,.18);
  transition: transform .3s var(--ease);
}
.pdp__zoom svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
@media (hover:hover){ .pdp__zoom:hover{ transform: scale(1.08); } }

/* small transparent prev/next arrows beside the main product photo —
   step through the gallery without needing the thumbnail rail */
.pdp__mainNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:34px; height:34px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(251,248,243,.55);
  border:0;
  color: var(--ink-900);
  cursor:pointer;
  backdrop-filter: blur(2px);
  transition: background .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.pdp__mainNav svg{ width:15px; height:11px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.pdp__mainNav--prev{ left:10px; }
.pdp__mainNav--prev svg{ margin-right:1px; }
.pdp__mainNav--next{ right:10px; }
.pdp__mainNav--next svg{ margin-left:1px; }
.pdp__mainNav[disabled]{ opacity:.25; cursor:not-allowed; }
@media (hover:hover){
  .pdp__mainNav:not([disabled]):hover{ background: rgba(251,248,243,.92); transform: translateY(-50%) scale(1.08); }
}

@media (min-width: 1024px){
  .pdp__main{ aspect-ratio:auto; height:560px; }
}

/* ---------- info panel ---------- */

.pdp__info{
  display:flex;
  flex-direction:column;
}

@media (min-width: 1024px){
  .pdp__info{ flex:1 1 44%; max-width:44%; padding-top:6px; }
}

.pdp__eyebrow{
  margin:0 0 8px;
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color: var(--gold-deep);
  display:flex; align-items:center; gap:8px;
}
.pdp__eyebrow::after{
  content:"";
  flex:1;
  height:1px;
  background: rgba(169,138,92,.35);
  max-width:80px;
}

.pdp__title{
  margin:0 0 12px;
  font-family: var(--serif);
  font-weight:500;
  font-size: clamp(30px, 7vw, 42px);
  line-height:1.08;
  color: var(--ink-900);
}

.pdp__priceRow{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.pdp__price{
  font-family: var(--sans);
  font-size:22px;
  font-weight:600;
  color: var(--ink-900);
}
.pdp__compare{
  font-family: var(--sans);
  font-size:14px;
  color: var(--ink-400);
  text-decoration: line-through;
}
.pdp__off{
  padding:3px 9px;
  border-radius:4px;
  background: var(--champagne);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.03em;
}

.pdp__rating{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}
.pdp__stars{ display:flex; gap:2px; }
.pdp__stars svg{ width:14px; height:14px; fill: var(--gold-deep); stroke:none; }
.pdp__stars .pdp__star--half{ opacity:.45; }
.pdp__rating-num{ font-family: var(--sans); font-size:12.5px; font-weight:600; color: var(--ink-900); }
.pdp__rating-count{ font-family: var(--sans); font-size:12px; color: var(--ink-400); }

.pdp__desc{
  margin:0 0 18px;
  font-family: var(--sans);
  font-size:13.5px;
  font-weight:300;
  line-height:1.65;
  color: var(--ink-600);
  max-width:48ch;
}

.pdp__rule{
  display:block;
  height:1px;
  background: rgba(43,36,28,.1);
  margin: 16px 0;
}

.pdp__option{ margin-bottom:18px; }
.pdp__option-label{
  margin:0 0 10px;
  font-family: var(--sans);
  font-size:12.5px;
  font-weight:500;
  color: var(--ink-900);
}
.pdp__option-label span{ font-weight:400; color: var(--ink-600); }

.pdp__swatches{ display:flex; gap:10px; }
.pdp__swatch{
  width:30px; height:30px;
  border-radius:50%;
  border:1px solid rgba(43,36,28,.18);
  cursor:pointer;
  padding:0;
  transition: outline .2s var(--ease), transform .2s var(--ease);
  outline: 2px solid transparent;
  outline-offset:3px;
}
.pdp__swatch.is-active{ outline-color: var(--gold-deep); }
@media (hover:hover){ .pdp__swatch:hover{ transform: scale(1.08); } }

.pdp__sizes{ display:flex; gap:10px; }
.pdp__size{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  padding:10px 8px;
  border:1px solid rgba(43,36,28,.18);
  background: var(--paper-card);
  font-family: var(--sans);
  font-size:12.5px;
  font-weight:500;
  color: var(--ink-900);
  cursor:pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.pdp__size small{ font-size:10px; font-weight:400; color: var(--ink-400); }
.pdp__size.is-active{ border-color: var(--gold-deep); background: var(--paper-2); }
@media (hover:hover){ .pdp__size:hover{ border-color: var(--gold-deep); } }

.pdp__qtyRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.pdp__qty{ width:118px; }
.pdp__stock{
  margin:0;
  font-family: var(--sans);
  font-size:12.5px;
  font-weight:500;
  color: var(--ink-900);
  line-height:1.4;
}
.pdp__stock small{ font-weight:300; color: var(--ink-400); }
.pdp__stock-dot{
  display:inline-block;
  width:8px; height:8px;
  border-radius:50%;
  background:#5C6B4A;
  margin-right:6px;
}

.pdp__actions{
  display:flex;
  gap:10px;
  margin-bottom:18px;
}
.pdp-btn{
  flex:1;
  appearance:none;
  border:0;
  padding:15px 18px;
  font-family: var(--sans);
  font-size:12px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition: background .3s var(--ease), transform .2s var(--ease);
}
.pdp-btn--dark{
  background: var(--ink-900);
  color: var(--paper-card);
}
@media (hover:hover){ .pdp-btn--dark:hover{ background: var(--gold-deep); } }
.pdp-btn:active{ transform: scale(.98); }

.pdp-fav{
  width:52px;
  flex:none;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(43,36,28,.18);
  background: var(--paper-card);
  cursor:pointer;
  color: var(--ink-900);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.pdp-fav svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; }
.pdp-fav[aria-pressed="true"] svg{ fill: var(--gold-deep); stroke: var(--gold-deep); }
@media (hover:hover){ .pdp-fav:hover{ border-color: var(--gold-deep); } }

.pdp__trust{
  list-style:none;
  margin:0 0 4px;
  padding:14px 0;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  border-top:1px solid rgba(43,36,28,.1);
  border-bottom:1px solid rgba(43,36,28,.1);
}
.pdp__trust li{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
}
.pdp__trust svg{ width:22px; height:22px; fill:none; stroke: var(--gold-deep); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.pdp__trust span{ font-family: var(--sans); font-size:10px; line-height:1.35; color: var(--ink-600); }

/* ---------- accordions ---------- */

.pdp__accordions{ display:flex; flex-direction:column; }
.acc{ border-bottom:1px solid rgba(43,36,28,.1); }
.acc__head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 2px;
  background:none;
  border:0;
  font-family: var(--sans);
  font-size:13px;
  font-weight:500;
  color: var(--ink-900);
  cursor:pointer;
  text-align:left;
}
.acc__plus{
  width:16px; height:16px;
  flex:none;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-600);
  transition: transform .3s var(--ease);
}
.acc__plus svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
.acc__plus svg line:first-child{ transition: opacity .2s var(--ease); }
.acc__head[aria-expanded="true"] .acc__plus{ transform: rotate(45deg); }

.acc__body{
  max-height:0;
  overflow:hidden;
  transition: max-height .35s var(--ease);
}
.acc__body p{
  margin:0;
  padding:0 2px 16px;
  font-family: var(--sans);
  font-size:12.5px;
  font-weight:300;
  line-height:1.7;
  color: var(--ink-600);
}

/* =========================================================
   STORY BAND
   ========================================================= */

.pdp__story{
  padding: 44px 0 8px;
  max-width:640px;
}
.pdp__story-kicker{
  margin:0 0 10px;
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color: var(--gold-deep);
}
.pdp__story-title{
  margin:0 0 14px;
  font-family: var(--serif);
  font-weight:500;
  font-size: clamp(30px, 8vw, 44px);
  line-height:1.12;
  letter-spacing:.02em;
  text-transform:uppercase;
  color: var(--ink-900);
}
.pdp__story-text{
  margin:0 0 26px;
  max-width:46ch;
  font-family: var(--sans);
  font-size:13.5px;
  font-weight:300;
  line-height:1.7;
  color: var(--ink-600);
}

.pdp__features{
  list-style:none;
  margin:0;
  padding: 22px 0 0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  border-top:1px solid rgba(43,36,28,.1);
}
.pdp__features li{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
}
.pdp__feature-ico{ color: var(--gold-deep); margin-bottom:2px; }
.pdp__feature-ico svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.pdp__features strong{
  font-family: var(--serif);
  font-weight:500;
  font-size:17px;
  color: var(--ink-900);
}
.pdp__features span{
  font-family: var(--sans);
  font-size:10.5px;
  color: var(--ink-600);
}

@media (min-width: 700px){
  .pdp__features{ grid-template-columns: repeat(3, auto); justify-content:flex-start; gap:56px; }
  .pdp__features li{ align-items:flex-start; text-align:left; }
}

@media (min-width: 1024px){
  .pdp__story{ padding: 68px 0 24px; max-width:760px; }
}

/* =========================================================
   ZOOM LIGHTBOX
   ========================================================= */

.pdp-lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  visibility:hidden;
  pointer-events:none;
  opacity:0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.pdp-lightbox[data-open="true"]{
  visibility:visible;
  pointer-events:auto;
  opacity:1;
  transition: opacity .3s var(--ease);
}
.pdp-lightbox__scrim{
  position:absolute;
  inset:0;
  border:0;
  padding:0;
  background: rgba(20,15,9,.86);
  cursor:zoom-out;
}
.pdp-lightbox__stage{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px 16px;
  pointer-events:none;
}
.pdp-lightbox__stage img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  pointer-events:auto;
  cursor:zoom-out;
}
.pdp-lightbox__close{
  position:absolute;
  top:18px; right:18px;
  width:42px; height:42px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(251,248,243,.14);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  cursor:pointer;
  pointer-events:auto;
  transition: background .25s var(--ease);
}
.pdp-lightbox__close svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
@media (hover:hover){ .pdp-lightbox__close:hover{ background: rgba(251,248,243,.28); } }

@media (prefers-reduced-motion: reduce){
  .pdp-btn, .pdp-fav, .pdp__swatch, .acc__plus, .acc__body, .pdp-lightbox{ transition:none !important; }
}
