/* ============================================================
   FORGE — Product detail page (PDP)
   Layered on storefront.css + collection.css.
   Faithful structural reconstruction of the reference PDP.
   All imagery is editable placeholders (.ph system).
   ============================================================ */

/* ---------- Layout shell ---------- */
.pdp { padding-block: clamp(20px, 4vw, 64px) clamp(40px, 6vw, 90px); }
.pdp__top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 96px);
  align-items: start;
}

/* ============================================================
   GALLERY
   ============================================================ */
.pdp__gallery { position: static; }
.pdp__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  overflow: hidden;
}
.pdp__stage .ph { position: absolute; inset: 0; }
.pdp__stage .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pdp__zoom {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  transition: transform .18s;
}
.pdp__zoom:hover { transform: scale(1.07); }
.pdp__zoom svg { width: 22px; height: 22px; }

/* ============================================================
   INFO / BUY BOX
   ============================================================ */
.pdp__info { padding-top: 8px; }
.pdp__title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.pdp__priceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pdp__price { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; }
.pdp__rate { font-size: 20px; color: var(--ink-soft); white-space: nowrap; }
.pdp__rate::first-letter { color: var(--accent); }

.pdp__rule { height: 1px; background: var(--line); margin: 28px 0; }

/* ---------- Description accordion ---------- */
.pdp__disc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  padding: 2px 0;
}
.pdp__discChev {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e3e3e0;
  display: grid; place-items: center;
  transition: transform .25s;
}
.pdp__discChev svg { width: 16px; height: 16px; }
.pdp__disc[aria-expanded="true"] .pdp__discChev { transform: rotate(180deg); }
.pdp__discBody {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.pdp__discBody.is-open { grid-template-rows: 1fr; }
.pdp__discBody > * { min-height: 0; overflow: hidden; }
.pdp__discBody p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-top: 18px;
}
.pdp__discBody p + p { padding-top: 12px; }

/* ---------- Options (size) ---------- */
.pdp__opt { margin-bottom: 6px; }
.pdp__optLabel { font-size: 17px; color: var(--ink-soft); margin-bottom: 16px; }
.pdp__optValue { color: var(--ink); font-weight: 700; }
.pdp__pills { display: flex; flex-wrap: wrap; gap: 14px; }
.pdp__pill {
  min-width: 132px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: border-color .18s, box-shadow .18s;
}
.pdp__pill:hover { border-color: var(--ink); }
.pdp__pill.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Purchase options ---------- */
.pdp__purchase { display: flex; flex-direction: column; gap: 14px; margin: 30px 0 4px; }
.pdp__buy {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 22px 26px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.pdp__buy.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp__buy[data-buy="once"] { display: flex; align-items: center; justify-content: space-between; }

.buy-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.buy-more__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.buy-more__card {
  position: relative;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.buy-more__card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 14, 14, .42);
}
.buy-more__card:focus-visible {
  outline: 3px solid rgba(255, 70, 20, .35);
  outline-offset: 3px;
}
.buy-more__card.is-selected {
  border-color: var(--ink);
  background: #0e0e0e;
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}
.buy-more__top {
  width: 100%;
  min-height: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 17px;
}
.buy-more__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 70, 20, .11);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.buy-more__badge--best { background: var(--accent); color: #fff; }
.buy-more__card.is-selected .buy-more__badge {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.buy-more__card.is-selected .buy-more__badge--best { background: var(--accent); }
.buy-more__price {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}
.buy-more__meta {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}
.buy-more__save {
  margin-top: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.buy-more__card.is-selected .buy-more__meta,
.buy-more__card.is-selected .buy-more__save {
  color: rgba(255, 255, 255, .78);
}

/* ---------- Quantity ---------- */
.pdp__qtyRow { margin: 34px 0 24px; }
.pdp__qtyRow[hidden] { display: none; }
.pdp__qtyLabel { display: block; font-size: 17px; color: var(--ink-soft); margin-bottom: 16px; }
.pdp__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}
.pdp__step {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .15s;
}
.pdp__step:hover { background: var(--bg); }
.pdp__step svg { width: 20px; height: 20px; }
.pdp__qty { min-width: 56px; text-align: center; font-size: 19px; font-weight: 700; }

/* ---------- Actions ---------- */
.pdp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.pdp__addcart {
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 24px;
  border-radius: 999px;
  transition: transform .15s, background .2s;
}
.pdp__addcart:hover { transform: translateY(-2px); background: #000; }
.pdp__shoppay {
  background: #5a31f4;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  padding: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, filter .2s;
}
.pdp__shoppay:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pdp__shoppayLogo { font-weight: 800; letter-spacing: -0.02em; }
.pdp__fine {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 30px;
}
.pdp__fine a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cross-sell ---------- */
.pdp__cross { margin-top: 56px; }
.pdp__crossTitle { font-size: 24px; font-weight: 500; color: var(--ink-soft); margin-bottom: 24px; }
.pdp__crossRow { display: flex; align-items: center; gap: 18px; }
.cross-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.cross-card__media {
  position: relative;
  width: 88px; height: 88px;
  flex: 0 0 auto;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 6px;
}
.cross-card__media .ph { position: absolute; inset: 0; }
.cross-card__media .ph::after { font-size: 8px; padding: 4px; }
.cross-card__media .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.cross-card__body { flex: 1; min-width: 0; }
.cross-card__name { font-size: 17px; font-weight: 700; }
.cross-card__price { font-size: 15px; color: var(--ink-soft); margin: 3px 0 10px; }
.cross-card__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  max-width: 280px;
}
.cross-card__select svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cross-card__add {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 120px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0 28px;
  transition: filter .2s;
}
.cross-card__add:hover { filter: brightness(1.05); }
.pdp__crossNext {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.pdp__crossNext:hover { background: var(--ink); color: #fff; }
.pdp__crossNext svg { width: 18px; height: 18px; }

/* ============================================================
   ATHLETE — lifestyle image with overlapping CTA
   ============================================================ */
.pdp-athlete {
  position: relative;
  padding-bottom: clamp(40px, 6vw, 70px);
}
.pdp-athlete__media {
  position: relative;
  height: clamp(420px, 60vw, 760px);
  border-radius: var(--radius);
  overflow: hidden;
}
.pdp-athlete__media .ph { position: absolute; inset: 0; }
.pdp-athlete__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pdp-athlete__add {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vw, 44px);
  transform: translateX(-50%);
  z-index: 2;
  width: min(92%, 640px);
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 24px;
  border-radius: 999px;
  transition: transform .15s, background .2s;
}
.pdp-athlete__add:hover { transform: translateX(-50%) translateY(-2px); background: #000; }

/* ============================================================
   FEATURE — tagline + accordion panel
   ============================================================ */
.pdp-feat {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  padding-block: clamp(56px, 8vw, 120px);
}
.pdp-feat__title {
  font-size: clamp(48px, 6vw, 104px);
  line-height: 0.9;
}
.pdp-feat__panel {
  background: var(--bg-card);
  border-radius: 20px;
  padding: clamp(20px, 2.2vw, 40px) clamp(24px, 3vw, 52px);
}
.feat-acc { border-bottom: 1px solid var(--line); }
.feat-acc:last-child { border-bottom: none; }
.feat-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 30px 0;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.feat-acc__icon {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  transition: transform .25s;
}
.feat-acc__icon svg { width: 16px; height: 16px; }
.feat-acc.is-open .feat-acc__icon { transform: rotate(180deg); }
.feat-acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.feat-acc.is-open .feat-acc__body { grid-template-rows: 1fr; }
.feat-acc__body > div { min-height: 0; overflow: hidden; }
.feat-acc__body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-bottom: 30px;
  max-width: 48ch;
}

.pdp-marquee { padding-top: 0; }

/* ============================================================
   REVIEWS
   ============================================================ */
.pdp-rev { padding-block: clamp(40px, 5vw, 80px) clamp(60px, 8vw, 120px); }
.pdp-rev__prop { text-align: center; max-width: 880px; margin: 0 auto clamp(48px, 7vw, 100px); }
.pdp-rev__prop h4 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.pdp-rev__prop p { font-size: 17px; line-height: 1.55; color: var(--ink); }
.pdp-rev__prop a { text-decoration: underline; text-underline-offset: 2px; }

.pdp-rev__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.pdp-rev__score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pdp-rev__avg { font-size: 30px; font-weight: 700; }
.pdp-rev__stars { font-size: 26px; color: var(--accent); letter-spacing: 2px; }
.pdp-rev__based { font-size: 17px; color: var(--ink); }
.pdp-rev__rec { font-size: 19px; color: var(--ink); }
.pdp-rev__recPct { font-weight: 700; }

.pdp-rev__bars {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px;
  align-items: center;
  max-width: 540px;
  margin-bottom: 44px;
}
.rev-bar__label { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.rev-bar__label::after { content: '★'; color: var(--accent); }
.rev-bar__track { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rev-bar__fill { height: 100%; background: var(--ink); border-radius: 999px; }
.rev-bar__n { font-size: 16px; color: var(--ink); text-align: right; min-width: 24px; }

.pdp-rev__tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.pdp-rev__tab {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0 0 18px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.pdp-rev__tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.pdp-rev__tabCount { font-weight: 500; }

.pdp-rev__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.pdp-rev__filter, .pdp-rev__write {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  transition: background .2s;
}
.pdp-rev__filter:hover, .pdp-rev__write:hover { background: #000; }
.pdp-rev__filter svg, .pdp-rev__write svg { width: 20px; height: 20px; }

.pdp-rev__count { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.pdp-rev__list { display: flex; flex-direction: column; }

/* ---------- Review card ---------- */
.rev {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.rev:first-child { border-top: 1px solid var(--line); }
.rev__person {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  align-self: start;
}
.rev__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rev__avatar {
  width: 52px; height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.rev__name { font-size: 17px; font-weight: 700; }
.rev__verified { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-top: 2px; }
.rev__verified svg { width: 15px; height: 15px; color: var(--ink); }
.rev__rec { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.rev__rec svg { width: 17px; height: 17px; color: var(--accent); }
.rev__meta { display: flex; flex-direction: column; gap: 0; }
.rev__metaRow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rev__metaRow strong { font-weight: 700; }
.rev__metaRow span { color: var(--ink-soft); }
.rev__q { padding: 11px 0 0; border-top: 1px solid var(--line); }
.rev__q strong { display: block; font-size: 15px; margin-bottom: 4px; }
.rev__q span { font-size: 15px; color: var(--ink-soft); }

.rev__body { padding-top: 4px; }
.rev__bodyTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rev__bodyStars { font-size: 18px; color: var(--accent); letter-spacing: 2px; }
.rev__age { font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.rev__title { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.rev__text { font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 64ch; }
.rev__helpful { display: flex; align-items: center; gap: 18px; justify-content: flex-end; margin-top: 26px; font-size: 15px; color: var(--ink-soft); }
.rev__vote { display: inline-flex; align-items: center; gap: 6px; }
.rev__vote svg { width: 17px; height: 17px; }

/* ============================================================
   STICKY ADD-TO-CART BAR
   ============================================================ */
.pdp-sticky {
  position: fixed;
  right: clamp(16px, 3vw, 48px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  padding: 14px 16px;
  width: min(440px, calc(100vw - 32px));
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.pdp-sticky.is-visible { transform: translateY(0); opacity: 1; }
.pdp-sticky__media {
  position: relative;
  width: 64px; height: 64px;
  flex: 0 0 auto;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 6px;
}
.pdp-sticky__media .ph { position: absolute; inset: 0; }
.pdp-sticky__media .ph::after { font-size: 7px; padding: 3px; }
.pdp-sticky__media .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pdp-sticky__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdp-sticky__name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky__price { font-size: 15px; color: var(--ink-soft); }
.pdp-sticky__add {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background .2s;
}
.pdp-sticky__add:hover { background: #000; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .pdp__top { grid-template-columns: 1fr; gap: 40px; }
  .pdp__gallery { position: static; }
  .pdp-feat { grid-template-columns: 1fr; gap: 32px; }
  .rev { grid-template-columns: 1fr; gap: 22px; }
  .rev__person { max-width: 420px; }
}
@media (max-width: 600px) {
  .pdp { padding-block: 14px 48px; }
  .pdp__title { font-size: 40px; }
  .buy-more { grid-template-columns: 1fr; }
  .buy-more__card { min-height: 0; }
  .pdp__actions { grid-template-columns: 1fr; gap: 14px; }
  .pdp__addcart, .pdp__shoppay { padding: 22px; }
  /* full-width pill rows like the reference */
  .pdp__pill { flex: 1; min-width: 0; }
  .pdp-feat__title { font-size: 52px; }
  .pdp-feat__panel { border-radius: 16px; padding: 4px 22px; }
  .feat-acc__head { font-size: 17px; padding: 26px 0; }
  .pdp-rev__prop { margin-bottom: 56px; }
  .pdp-rev__summary { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pdp-rev__bars { max-width: 100%; }
  .pdp-rev__toolbar { flex-direction: column; align-items: stretch; }
  .pdp-rev__write, .pdp-rev__filter { justify-content: center; }
  .pdp-sticky { left: 16px; right: 16px; width: auto; }
  .pdp-sticky__price { display: none; }
  .pdp__crossNext { display: none; }
  .cross-card { flex-wrap: wrap; }
  .cross-card__add { width: 100%; padding: 16px; }
}
