/* Swordis — product page (PDP). Shared chrome in css/chrome.css.
   TODO(backend): single-product WooCommerce template. */

/* ── Breadcrumb ── */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 0 20px;
  font-size: 14px;
  color: var(--fg-tertiary);
}

.pdp-breadcrumb a {
  color: var(--fg-secondary);
  text-decoration: none;
}

.pdp-breadcrumb a:hover {
  color: var(--ink-900);
}

/* ── Main grid ── */
.pdp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 40px;
}

.pdp-h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -.005em;
  color: var(--ink-900);
}

/* height:0 + min-height:100% caps the rail at the main image's height, so any
   number of photos scrolls inside it (scrollbar hidden, bottom fade hints more) */

.pdp-gallery-thumb {
  width: 64px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  padding: 0;
  cursor: pointer;
  background: var(--ink-100);
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  transition: border-color .15s, background .15s;
}

.pdp-gallery-thumb {
  overflow: hidden;
}

.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--r-md) - 1.5px);
}

.pdp-gallery-thumb:hover {
  background: var(--ink-150, #e8eae9);
}

.pdp-gallery-thumb:hover img {
  opacity: .85;
}

.pdp-gallery-thumb.is-active {
  border-color: var(--ink-900);
  background: #fff;
}

.pdp-gallery-thumb.is-active img {
  opacity: 1;
}

/* main photo link - opens the zoom lightbox (product-zoom.js) */
.pdp-zoom-open {
  display: block;
  cursor: zoom-in;
}

/* ── Zoom lightbox (product-zoom.js) — white, photo at full height; count + close float on top.
   Wheel / pinch / click to zoom, drag to pan. ── */
.pdp-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #fff;
  /* the whole lightbox, not just the stage - quick taps on the arrows / close
     would otherwise double-tap zoom the page on iOS */
  touch-action: none;
}

.pdp-zoom[hidden] {
  display: none;
}

.pdp-zoom-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
}

.pdp-zoom-top > * {
  pointer-events: auto;
}

.pdp-zoom-count {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.pdp-zoom-close,
.pdp-zoom-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}

/* stays on the right when a single photo has no count */
.pdp-zoom-close {
  margin-left: auto;
}

.pdp-zoom-close:hover,
.pdp-zoom-arrow:hover {
  border-color: var(--ink-900);
}

.pdp-zoom-main {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.pdp-zoom-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .2);
}

.pdp-zoom-arrow--prev {
  left: 20px;
}

.pdp-zoom-arrow--next {
  right: 20px;
}

.pdp-zoom-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 84px;
  position: relative;
}

/* the photo darkens onto .pdp-zoom-bg (main.css product images) - painted above it whatever the DOM order */
.pdp-zoom-img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform-origin: 50% 50%;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* the previous photo is hidden while the next full size file loads */
.pdp-zoom-img.is-loading,
.pdp-zoom-img.is-loading ~ .pdp-zoom-bg {
  opacity: 0;
}

/* grey tile behind the photo only (product-zoom.js zApply sizes + transforms it like the photo); the lightbox is white */
.pdp-zoom-bg {
  position: absolute;
  z-index: 0;
  background-color: #f4f5f7;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.pdp-zoom-stage.is-zoomed .pdp-zoom-img {
  cursor: grab;
}

.pdp-zoom-stage.is-dragging .pdp-zoom-img {
  cursor: grabbing;
}

@media (max-width: 720px) {
  .pdp-zoom-top {
    padding: 10px;
  }

  .pdp-zoom-arrow {
    width: 38px;
    height: 38px;
  }

  .pdp-zoom-arrow--prev {
    left: 8px;
  }

  .pdp-zoom-arrow--next {
    right: 8px;
  }

  .pdp-zoom-stage {
    padding: 0;
  }
}

/* ── Buy box ── */
.pdp-buybox {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* WooCommerce wraps variant -> stock row -> price -> qty/ATC in form.cart
   (single-product-extra.php, single-product-hooks.php) - same 20px rhythm inside */
.pdp-buybox form.cart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* legacy WC wrappers, empty on the PDP - keep them out of the gap */
.pdp-buybox .add-to-cart-block:empty,
.pdp-buybox .add-to-cart-block:has(> .product-amount:only-child:empty) {
  display: none;
}

.pdp-brand-eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-600);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .14s;
}

.pdp-brand-eyebrow:hover {
  color: var(--accent-700);
}

/* brand + "New" pill (swordis_is_new_product(): published in the last 2 months, not out of stock) */
.pdp-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.pdp-eyebrow-row .pdp-brand-eyebrow {
  margin: 0;
}

.pdp-new-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--brand-700, #17433d);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}

.pdp-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -.01em;
  color: var(--ink-900);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdp-rating-num {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1;
}

.pdp-rating-link {
  font-size: 15px;
  color: var(--accent-600);
  text-decoration: underline;
  cursor: pointer;
  transition: color .14s;
}

.pdp-rating-link:hover {
  color: var(--accent-700);
  text-decoration: none;
}

.pdp-rating-empty {
  font-size: 14px;
  color: var(--fg-tertiary);
}

.pdp-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* TagPill — rounded grey chip, 16px glyph, neutral label */
.pdp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  background: var(--ink-100);
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-900);
  cursor: pointer;
  white-space: nowrap;
}

.pdp-tag img,
.pdp-tag svg {
  flex-shrink: 0;
  display: block;
}

.pdp-tag:hover {
  background: var(--ink-200);
}

.pdp-tag-help {
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: underline;
  cursor: pointer;
}

/* Coupon ticket — amount stub with perforation notches, savings on this product, blurred code + Unlock */
.pdp-coupon {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.pdp-coupon::before,
.pdp-coupon::after {
  content: "";
  position: absolute;
  left: 84px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
}

/* -9px: the notch centre sits on the ticket's 1px border, so its white half
   covers that stretch of the border - the arc reads as a cut, not a closed "D" */
.pdp-coupon::before {
  top: -9px;
  clip-path: inset(50% 0 0 0);
}

.pdp-coupon::after {
  bottom: -9px;
  clip-path: inset(0 0 50% 0);
}

.pdp-coupon-stub {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;
  background: var(--accent-100);
  color: var(--accent-600);
  border-right: 1.5px dashed #f0b49b;
  border-radius: calc(var(--r-md) - 1px) 0 0 calc(var(--r-md) - 1px);
}

.pdp-coupon-stub b {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em;
}

.pdp-coupon-stub span {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .18em;
}

.pdp-coupon-body {
  min-width: 0;
  padding: 12px 12px 12px 18px;
}

.pdp-coupon-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}

.pdp-coupon-title b {
  color: var(--accent-600);
  font-weight: 700;
}

.pdp-coupon-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-secondary);
}

.pdp-coupon-act {
  padding-right: 12px;
}

.pdp-coupon-code {
  color: var(--accent-600);
  font-weight: 600;
  letter-spacing: .04em;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.pdp-coupon-code.is-blurred {
  filter: blur(4px);
  -webkit-user-select: none;
  user-select: none;
}

.pdp-coupon-unlock {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

.pdp-coupon-unlock:hover {
  background: var(--accent-100, #fff3ee);
  color: var(--accent-600);
  border-color: var(--accent-600);
}

[data-coupon-unlock][hidden],
[data-coupon-copy][hidden] {
  display: none;
}

@media (max-width: 720px) {
  .pdp-coupon {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .pdp-coupon::before,
  .pdp-coupon::after {
    left: 70px;
  }

  .pdp-coupon-stub b {
    font-size: 22px;
  }

  .pdp-coupon-body {
    padding-left: 14px;
  }

  .pdp-coupon-title {
    font-size: 15px;
  }
}

[data-coupon-overlay] {
  background: rgba(15, 26, 24, .55);
  align-items: center;
  padding: 24px;
}

/* Variant picker */
.pdp-variant {
  position: relative;
}

.pdp-variant-error {
  margin: 8px 0 0;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--err-600, #c01414);
}

.pdp-variant-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.pdp-help {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg-tertiary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
}

.pdp-req {
  color: var(--accent-600);
  margin-left: 2px;
}

.pdp-variant-val {
  color: var(--fg-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-variant-val.is-set {
  color: var(--ink-900);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdp-variant-dd {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.pdp-variant-opt {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-900);
}

.pdp-variant-opt:last-child {
  border-bottom: none;
}

.pdp-variant-opt:hover {
  background: var(--ink-100);
}

.pdp-variant-opt.is-selected {
  background: var(--ink-100);
}

.pdp-variant-opt .l {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdp-variant-opt .r {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdp-lead {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-lead--ready {
  color: var(--ok-600, #0b6b3a);
}

.pdp-lead--custom {
  color: var(--accent-600);
}

.pdp-lead--oos {
  color: var(--fg-tertiary);
}

.pdp-oos-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  background: var(--ink-100);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 6px;
  line-height: 1;
  flex-shrink: 0;
}

.pdp-delta {
  font-size: 14px;
  color: var(--accent-600);
  font-weight: 500;
}

.pdp-delta--ink {
  color: var(--ink-900);
}

/* Stock row — component-lib tags */
.pdp-stockrow {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.pdp-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok-600);
  font-size: 15px;
  font-weight: 500;
}

.pdp-ready .c {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ok-100, #e6f4ef);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdp-freedel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 8px;
  background: var(--ok-100, #e6f4ef);
  color: var(--ok-600);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
}

.pdp-customorder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a95d06;
  font-size: 15px;
  font-weight: 500;
}

.pdp-customorder .c {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fdefde;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdp-oos-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-secondary);
  font-size: 15px;
  font-weight: 500;
}

.pdp-oos-tag .c {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdp-proctime {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-secondary);
  font-size: 15px;
  margin-left: auto;
}

.pdp-proctime b {
  color: var(--ink-900);
  font-weight: 500;
}

/* Price */
.pdp-pricerow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pdp-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--sale-500, #c01414);
}

.pdp-price.is-oos {
  color: var(--fg-tertiary);
}

.pdp-price-was {
  font-size: 16px;
  color: var(--fg-tertiary);
}

/* Qty + ATC */
.pdp-qty-atc {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.pdp-fav {
  flex: 0 0 52px;
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-800);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.pdp-fav:hover {
  border-color: var(--accent-500);
  color: var(--accent-600);
  background: var(--accent-100);
}

.pdp-fav.is-on {
  border-color: var(--accent-500);
  background: var(--accent-100);
}

/* same burst as the product-card heart (dots + keyframes live in chrome.css) */
.pdp-fav[data-pop="true"] .pc-fav-burst .dot {
  animation: fav-burst .52s cubic-bezier(.2, .8, .3, 1) forwards;
}

.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  height: 52px;
}

.pdp-qty button {
  width: 40px;
  height: 100%;
  background: none;
  border: none;
  color: var(--fg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-qty span {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.pdp-atc {
  flex: 1;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Out-of-stock: dark brand green instead of the orange CTA */
.pdp-atc--notify,
.pdp-atc--notify:hover {
  color: #fff;
}

.pdp-atc--notify {
  background: var(--brand-900, #01231f);
}

.pdp-atc--notify:hover {
  background: var(--brand-800, #0d332e);
}

@media (max-width: 720px) {
  .single_add_to_cart_button .ic {
    display: none;
  }
}

/* Trust */
.pdp-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pdp-trust-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .14s;
}

.pdp-trust-card:hover {
  background: var(--ink-100);
}

.pdp-trust-ic {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  flex-shrink: 0;
}

.pdp-trust-card b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
}

.pdp-trust-card small {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 17px;
}

/* Video testimonials rail */
.pdp-vt-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.005em;
  color: var(--ink-900);
}

/* .pdp-vt-rail is a Swiper (main.js [stories]) - slides are the tiles, 8px spaceBetween */
.pdp-vt-rail .story-thumb {
  flex: 0 0 calc((100% - 24px) / 4);
}

/* same 8px gap until Swiper adds its inline slide margins (a slide margin
   here would be counted into Swiper's 'auto' slide size and break snapping) */
.pdp-vt-rail:not(.swiper-initialized) .swiper-wrapper {
  gap: 8px;
}

/* draggable Swiper scrollbar: pressing the track jumps there, the fill is
   grabbed in place. touch-action: none - Swiper doesn't handle pointercancel,
   so a page pan starting on the bar would leave the drag stuck */
.pdp-vt-track {
  position: relative;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--ink-150, #e8eae9);
  cursor: pointer;
  touch-action: none;
}

.pdp-vt-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 2px;
  background: var(--ink-900);
  cursor: grab;
}

/* only when there is something to scroll: Swiper flags the bar .swiper-scrollbar-lock when every tile fits (its
   own hide rule is for .swiper-scrollbar), and before it starts (main.js waits until the rail is near) the bar's
   fill means nothing. visibility, not display - the rail below doesn't move when Swiper starts */
.pdp-vt-track.swiper-scrollbar-lock,
.pdp-vt-rail:not(.swiper-initialized) ~ .pdp-vt-track {
  visibility: hidden;
}

/* invisible 19px hit area around the 3px bar */
.pdp-vt-track::before,
.pdp-vt-fill::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
}

/* Video testimonials — same .story-thumb component as the homepage rail
   (styles duplicated here because product.html does not load styles.css) */
.pdp-vt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pdp-vt-head .pdp-vt-title {
  margin: 0;
}

.pdp-vt-count {
  font-size: 14px;
  color: var(--fg-tertiary);
  font-variant-numeric: tabular-nums;
}

.story-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(165deg, #17433d 0%, #01231f 100%);
  color: #fff;
  text-align: left;
  display: block;
  border: none;
  padding: 0;
  cursor: pointer;
}

.story-thumb-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.story-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.story-thumb.is-playing .story-thumb-video {
  opacity: 1;
}

.story-thumb-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease;
}

.story-thumb.is-playing .story-thumb-progress {
  opacity: 1;
}

.story-thumb-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

.story-thumb-play,
.story-thumb-caption {
  transition: opacity .2s ease;
}

.story-thumb.is-playing .story-thumb-play,
.story-thumb.is-playing .story-thumb-caption,
.story-thumb.is-vt-playing .story-thumb-play {
  opacity: 0;
}

.story-thumb-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0, 0, 0, .12), transparent 60%);
  pointer-events: none;
}

.story-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -21px 0 0 -21px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8, 88, 78, .85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.story-thumb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .75) 100%);
}

.story-thumb-author {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.story-thumb-role {
  display: block;
  font-size: 12px;
  opacity: .7;
  margin-top: 2px;
}

/* ── Related rows ── */
.pdp-related {
  padding: 40px 0;
}

/* ── Tabs (reviews / questions) ── */
.pdp-tab {
  padding: 12px 0;
  margin-bottom: -1px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-secondary);
  border-bottom: 2px solid transparent;
}

.pdp-tab.is-active {
  font-weight: 600;
  color: var(--ink-900);
  border-bottom-color: var(--accent-500);
}

/* ── Details · Specs · Shipping accordion (buy box, under the video testimonials) ── */
.pdp-acc {
  margin-top: 8px;
}

.pdp-acc-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
}

.pdp-acc-head .ic {
  flex-shrink: 0;
  color: var(--fg-secondary);
  transition: transform .2s, color .14s;
}

.pdp-acc-head:hover .ic {
  color: var(--ink-900);
}

.pdp-acc-head[aria-expanded="true"] .ic {
  transform: rotate(180deg);
}

.pdp-acc-pane {
  display: none;
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 24px;
  color: var(--fg-body);
  max-width: 680px;
}

.pdp-acc-pane.is-open {
  display: block;
}

.pdp-acc-pane p {
  margin: 0 0 12px;
}

.pdp-sku {
  font-size: 14px;
  color: var(--fg-tertiary);
}

.pdp-readmore {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--accent-600);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: color .14s;
}

.pdp-readmore:hover {
  color: var(--accent-700);
  text-decoration: none;
}

.pdp-mentioned {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.pdp-mentioned-title {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 600;
  margin: 0 0 10px;
}

.pdp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdp-specs {
  display: grid;
  grid-template-columns: 1fr;
  font-size: 14px;
  max-width: 770px;
}

.pdp-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-secondary);
}

.pdp-spec-row span {
  color: var(--fg-tertiary);
}

.pdp-spec-row b {
  color: var(--ink-900);
  font-weight: 500;
}

.pdp-specs:not(.is-expanded) .pdp-spec-row:nth-child(n+7) {
  display: none;
}

.pdp-specs+.pdp-readmore {
  margin-top: 12px;
}

.pdp-ship {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-ship p {
  margin: 0;
}

.pdp-ship-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-ship-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}

.pdp-ship-block p span {
  color: var(--fg-body);
}

.pdp-ship-block p b {
  color: var(--ink-900);
  font-weight: 500;
}

.pdp-callout {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 21px;
  color: var(--ink-900);
}

.pdp-ship-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-600);
  text-decoration: none;
  transition: color .14s;
}

.pdp-ship-link:hover {
  color: var(--accent-700);
}

/* ── Brand overview (Hanbon Forge — full-bleed muted band, paper style) ── */
.pdp-brand {
  margin: 48px 0 36px;
  background: var(--bg-muted);
  padding: 80px 0 48px;
}

.pdp-brand-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.pdp-brand-eyebrow2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  font-weight: 600;
}

.pdp-brand-eyebrow2 .rule {
  width: 24px;
  height: 1px;
  background: var(--border-strong);
}

.pdp-brand-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 47px;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink-900);
}

.pdp-brand-tagline {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  font-weight: 500;
}

.pdp-brand-desc {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-800);
}

.pdp-brand-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pdp-brand-feature {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.pdp-brand-img {
  position: relative;
  display: block;
  aspect-ratio: 405 / 225;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--border) 100%);
}

.pdp-brand-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes pdp-paper-shim {
  0% {
    transform: translateX(-30%);
  }

  100% {
    transform: translateX(130%);
  }
}

.pdp-brand-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-30%);
  animation: pdp-paper-shim 4.2s ease-in-out infinite;
  pointer-events: none;
}

.pdp-brand-img .num {
  position: absolute;
  bottom: 8px;
  right: 16px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  color: rgba(255, 255, 255, .45);
  letter-spacing: -.03em;
  line-height: 1;
  mix-blend-mode: overlay;
}

.pdp-brand-feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink-900);
  letter-spacing: -.005em;
}

.pdp-brand-feature p {
  margin: -12px 0 0;
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 24px;
}

.stars--sm {
  gap: 1px;
}

/* Brand template: Windlass — photo band + overlapping white feature card */
.pdp-brand--windlass {
  margin: 48px 0 36px;
}

.pdp-brandw-band {
  position: relative;
  background-position: center;
  background-size: cover;
  background-color: #0b0907;
  background-repeat: no-repeat #0b0907;
  color: #fff;
  padding: 56px 0 120px;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.pdp-brandw-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .25) 75%, rgba(0, 0, 0, .15) 100%);
}

.pdp-brandw-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.pdp-brandw-medal {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #0a0807;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 2px 20px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.pdp-brandw-medal img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

.pdp-brandw-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
}

.pdp-brandw-head p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, .78);
  max-width: 620px;
}

.pdp-brandw-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pdp-brandw-cardwrap {
  position: relative;
  margin-top: -88px;
  padding-bottom: 12px;
}

.pdp-brandw-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 28px 32px;
}

.pdp-brandw-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pdp-brandw-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.pdp-brandw-img {
  display: block;
  aspect-ratio: 405 / 225;
  overflow: hidden;
  background: var(--ink-100);
  border-radius: var(--r-md);
}

.pdp-brandw-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-brandw-feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-900);
  letter-spacing: -.005em;
}

.pdp-brandw-feature p {
  margin: -6px 0 0;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 22px;
  padding: 0 8px;
}

/* Brand template: ShadowDancer — black band, brush strokes, outline numerals */
.pdp-brand--sd {
  margin: 48px 0 36px;
}

.pdp-brandsd-band {
  position: relative;
  background: #0b0b0b;
  color: #fff;
  padding: 72px 0 80px;
  overflow: hidden;
}

.pdp-brandsd-strokes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pdp-brandsd-strokes img {
  position: absolute;
  height: auto;
}

.pdp-brandsd-inner {
  position: relative;
}

.pdp-brandsd-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.pdp-brandsd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}

.pdp-brandsd-eyebrow .rule {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, .35);
}

.pdp-brandsd-logo {
  display: block;
  margin: 0 auto 22px;
  width: min(240px, 52%);
  height: auto;
}

.pdp-brandsd-tag {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
}

.pdp-brandsd-desc {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  color: rgba(255, 255, 255, .82);
}

.pdp-brandsd-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pdp-brandsd-feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-brandsd-media {
  position: relative;
  display: block;
  aspect-ratio: 405 / 225;
  background: #141110;
  overflow: hidden;
}

.pdp-brandsd-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-brandsd-media i {
  position: absolute;
  top: 14px;
  left: 14px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  font-weight: 600;
}

.pdp-brandsd-media .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 140% at 50% 40%, transparent 55%, rgba(11, 11, 11, .7) 100%);
}

.pdp-brandsd-feature h3 {
  margin: 0 0 -14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: #fff;
  letter-spacing: -.005em;
}

.pdp-brandsd-feature p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, .64);
}

@media (max-width: 720px) {
  .pdp-brandw-band {
    padding: 32px 0 88px;
  }

  .pdp-brandw-band::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 100%);
  }

  .pdp-brandw-head {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    justify-items: center;
  }

  .pdp-brandw-medal {
    width: 88px;
    height: 88px;
  }

  .pdp-brandw-head h2 {
    font-size: 24px;
    line-height: 28px;
  }

  .pdp-brandw-cardwrap {
    margin-top: -60px;
  }

  .pdp-brandw-card {
    padding: 20px 16px 24px;
  }

  .pdp-brandw-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pdp-brandsd-band {
    padding: 40px 0 48px;
  }

  .pdp-brandsd-head {
    margin-bottom: 32px;
  }

  .pdp-brandsd-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Reviews ── */
.pdp-reviews {
  padding: 36px 0 40px;
  scroll-margin-top: 96px;
}

.pdp-rev-summary {
  display: grid;
  grid-template-columns: auto 280px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
  padding: 17px 0;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
}

.pdp-rev-avg-num {
  margin: 0;
  font-size: 38px;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  display: inline-block;
  margin-right: 10px;
}

.pdp-rev-avg .stars {
  vertical-align: 4px;
}

.pdp-rev-count {
  font-size: 14px;
  color: var(--fg-secondary);
  margin: 8px 0 0;
}

.pdp-rev-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-rev-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.pdp-rev-bar>span:first-child {
  color: var(--ink-900);
  font-weight: 500;
  white-space: nowrap;
}

.pdp-rev-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-150, #e8eae9);
  flex: 1;
  min-width: 60px;
}

.pdp-rev-knob {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 10px;
  background: var(--ink-900);
  border-radius: 1px;
}

.pdp-rev-bar b {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pdp-rev-bar small {
  color: var(--fg-tertiary);
  font-weight: 400;
}

.pdp-rev-sort {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.pdp-rev-sort-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  font-weight: 600;
}

.pdp-rev-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.pdp-rev-tabs .pdp-tab {
  font-size: 15px;
  padding: 10px 0;
}

.pdp-rev-list {
  display: flex;
  flex-direction: column;
}

.pdp-review {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 24px;
}

.pdp-review:last-child {
  border-bottom: none;
}

/* a thin grey rule between the reviewer and the review (the column is 16px wider for it) */
.pdp-rev-who {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-direction: column;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.pdp-rev-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pdp-rev-nameline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-rev-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
}

.pdp-rev-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pdp-rev-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
}

.pdp-rev-body {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 24px;
  color: var(--fg-body);
}

.pdp-rev-body p {
  margin: 0 0 10px;
}

/* review / reply text clamped to 5 lines, 'Read more' / 'Read less' without js (swordis_review_more_html):
   the checkbox lifts the clamp; rev-fit-<width> drops clamp + toggle where the text is at least that wide */
.rev-more {
  position: relative;
  container-type: inline-size;
  margin-bottom: 22px;
}

.review-reply .rev-more {
  margin-bottom: 0;
}

.rev-more-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rev-more > .pdp-rev-body,
.rev-more > .review-reply-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--rev-lines, 5);
  overflow: hidden;
  margin: 0;
}

.rev-more > .pdp-rev-body p:last-child {
  margin-bottom: 0;
}

.rev-more-toggle:checked ~ .pdp-rev-body,
.rev-more-toggle:checked ~ .review-reply-text {
  -webkit-line-clamp: none;
}

.pdp-rev-more {
  display: var(--rev-more, inline-block);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-top: 8px;
}

.rev-more-toggle:checked ~ .pdp-rev-more .is-more,
.rev-more-toggle:not(:checked) ~ .pdp-rev-more .is-less {
  display: none;
}

.rev-more-toggle:focus-visible ~ .pdp-rev-more {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

@container (min-width: 320px) { .rev-fit-320 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 360px) { .rev-fit-360 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 400px) { .rev-fit-400 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 440px) { .rev-fit-440 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 480px) { .rev-fit-480 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 520px) { .rev-fit-520 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 560px) { .rev-fit-560 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 600px) { .rev-fit-600 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 640px) { .rev-fit-640 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 680px) { .rev-fit-680 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 720px) { .rev-fit-720 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 760px) { .rev-fit-760 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 800px) { .rev-fit-800 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 840px) { .rev-fit-840 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 880px) { .rev-fit-880 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 920px) { .rev-fit-920 > * { --rev-lines: none; --rev-more: none; } }
@container (min-width: 960px) { .rev-fit-960 > * { --rev-lines: none; --rev-more: none; } }

.pdp-rev-photos {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Placeholder tiles — mixed aspect ratios; some are videos (play badge).
   TODO(backend): swap gradient placeholders for real customer media. */
.pdp-rev-photo {
  position: relative;
  height: 72px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-100) 0%, #e2e0dd 100%);
}

.pdp-rev-photo--wide {
  aspect-ratio: 4 / 3;
}

.pdp-rev-photo--vertical {
  aspect-ratio: 3 / 4;
}

.pdp-rev-photo:hover {
  border-color: var(--border-strong);
}

.pdp-rev-photo img,
.pdp-rev-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Customer photos & videos strip above the list (polished-UI parity) */
.pdp-rev-strip {
  position: relative;
  margin: 2px 0 26px;
}

.pdp-rms-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.pdp-rms-strip::-webkit-scrollbar {
  display: none;
}

.rms-tile {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-200, #e2e0dd);
}

.rms-tile img,
.rms-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rms-tile .ph {
  width: 100%;
  height: 100%;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(15, 26, 24, .4);
}

.rms-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .18s ease;
}

.rms-play-disk {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding-left: 2px;
}

.rms-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 0 8px 10px;
  opacity: 0;
  transition: opacity .18s ease;
  color: #fff;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78) 100%);
}

.rms-stars {
  display: flex;
  gap: 2px;
}

.rms-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rms-tile:hover .rms-overlay {
  opacity: 1;
}

.rms-tile:hover .rms-play {
  opacity: 0;
}

.rms-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.rms-arrow:hover {
  background: var(--ink-100);
}

.rms-arrow--left {
  left: 8px;
}

.rms-arrow--right {
  right: 8px;
}

.pdp-rev-pager {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pdp-rev-shown {
  position: absolute;
  left: 0;
}

.pdp-rev-shown {
  margin: 0;
  font-size: 13px;
  color: var(--fg-tertiary);
  font-variant-numeric: tabular-nums;
}

.pdp-pagination {
  display: flex;
  gap: 6px;
}

.pdp-pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
}

.pdp-pagination button.is-active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

.pdp-pagination button:disabled {
  opacity: .4;
  cursor: default;
}

.pdp-pagination-gap {
  min-width: 20px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-tertiary);
}

/* Empty states (no reviews / no questions) */
.pdp-empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}

.pdp-empty-ic {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-empty-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-900);
  font-family: var(--font-display);
  letter-spacing: -.01em;
}

.pdp-empty-sub {
  margin: 0 auto;
  font-size: 15px;
  color: var(--fg-secondary);
  max-width: 420px;
}

.pdp-empty .btn {
  margin-top: 18px;
  height: 40px;
  padding: 0 18px;
}

.pdp-rev-summary[hidden],
.pdp-rev-pager[hidden],
.pdp-ask-row[hidden] {
  display: none;
}

/* Q&A */
.pdp-ask-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pdp-qa-list {
  display: flex;
  flex-direction: column;
}

.pdp-qa {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.pdp-qa:last-child {
  border-bottom: none;
}

.pdp-qa-who {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pdp-qa-q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pdp-qa-q p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-900);
  font-weight: 500;
}

.pdp-qa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--ink-900);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-top: 2px;
  flex-shrink: 0;
}

.pdp-qa-badge--a {
  background: var(--accent-500);
}

.pdp-qa-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--ink-100);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.pdp-qa-a-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}

.pdp-qa-a-meta b {
  font-weight: 600;
}

.pdp-qa-a-meta i {
  font-style: normal;
  font-size: 13px;
  color: var(--fg-tertiary);
}

.pdp-qa-a p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--fg-body);
}

.pdp-qa-waiting {
  font-size: 14px;
  color: var(--fg-tertiary);
  font-style: italic;
  padding: 10px 0;
}

.pdp-qa-q > div,
.pdp-qa-a > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdp-qa-q p + p,
.pdp-qa-a p + p {
  margin-top: 10px;
}

/* hidden always wins over the display rules below */
.pdp-modal-overlay[hidden],
.pdp-variant-dd[hidden],
.pdp-stockrow[hidden],
.pdp-variant-error[hidden],
[data-rev-pane][hidden],
[data-details-more][hidden],
[data-notify-form][hidden],
.pdp-notify-done[hidden],
[data-ask-form-wrap][hidden],
.pdp-ask-done[hidden],
[data-tagmodal-pane][hidden] {
  display: none !important;
}

.pdp-notify-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.pdp-notify-head .ic {
  flex-shrink: 0;
  display: block;
}

.pdp-notify-head h3 {
  margin: 0;
  line-height: 1.2;
}

.pdp-infopop-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}

.pdp-infopop-cta:hover {
  background: var(--ink-100);
  border-color: var(--ink-300, #c8cdd1);
}

.pdp-infopop-cta[hidden] {
  display: none !important;
}

/* Unlock-discount modal - email + newsletter checkbox */
.pdp-coupon-modal {
  max-width: 400px;
  padding: 36px 32px 28px;
  text-align: center;
}

.pdp-coupon-modal h3 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
}

.pdp-coupon-modal-ic {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pdp-coupon-modal-ic span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-100, #fde9df);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-600);
}

.pdp-coupon-modal-sub {
  margin: 8px 0 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--fg-secondary);
}

.pdp-coupon-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-coupon-modal-form .input {
  height: 48px;
  font-size: 16px;
}

.pdp-coupon-modal-form .btn {
  height: 48px;
  font-size: 16px;
  font-weight: 500;
}

.pdp-coupon-modal-form .btn[aria-busy="true"] {
  cursor: progress;
}

.pdp-coupon-modal-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--err-600, #c01414);
}

.pdp-coupon-modal-error[hidden] {
  display: none;
}

/* "no thanks" - the code without subscribing */
.pdp-coupon-modal-skip {
  align-self: center;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.pdp-coupon-modal-skip:hover {
  color: var(--ink-900);
}

.pdp-coupon-modal-skip:disabled {
  cursor: progress;
  opacity: .6;
}

.pdp-coupon-modal-skip[hidden],
.pdp-coupon-modal-legal[hidden] {
  display: none;
}

/* newsletter checkbox - same look as the checkout one (checkout.css .co-check) */
.pdp-coupon-modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 6px;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-secondary);
  cursor: pointer;
}

.pdp-coupon-modal-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pdp-coupon-modal-check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: #fff;
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}

.pdp-coupon-modal-check-box .ic {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}

.pdp-coupon-modal-check:hover .pdp-coupon-modal-check-box {
  border-color: var(--ink-900);
}

.pdp-coupon-modal-check input:checked + .pdp-coupon-modal-check-box {
  background: var(--accent-500);
  border-color: var(--accent-500);
}

.pdp-coupon-modal-check input:checked + .pdp-coupon-modal-check-box .ic {
  opacity: 1;
  transform: scale(1);
}

.pdp-coupon-modal-check input:focus-visible + .pdp-coupon-modal-check-box {
  box-shadow: 0 0 0 3px rgba(26, 45, 40, .18);
}

.pdp-coupon-modal-spinner {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pdp-coupon-spin 0.8s linear infinite;
}

@keyframes pdp-coupon-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-coupon-modal-spinner { animation-duration: 2.4s; }
}

.pdp-coupon-modal-legal {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--fg-tertiary);
  line-height: 17px;
}

/* Small dialogs (notify / info popups) center vertically */
.pdp-modal-overlay:has(.pdp-modal--sm) {
  align-items: center;
  padding: 24px 16px;
}

.pdp-coupon-modal-legal a {
  color: var(--fg-secondary);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .pdp-coupon-modal {
    max-width: 360px;
    padding: 26px 20px 20px;
  }

  .pdp-coupon-modal h3 {
    font-size: 21px;
    line-height: 28px;
  }

  .pdp-coupon-modal-ic span {
    width: 52px;
    height: 52px;
  }

  .pdp-coupon-modal-ic svg {
    width: 24px;
    height: 24px;
  }

  .pdp-coupon-modal-sub {
    margin: 6px 0 18px;
    font-size: 14px;
    line-height: 20px;
  }

  .pdp-coupon-modal-form .input,
  .pdp-coupon-modal-form .btn {
    height: 42px;
    font-size: 15px;
  }

  .pdp-coupon-modal-check {
    font-size: 13px;
    line-height: 18px;
  }

  .pdp-coupon-modal-legal {
    font-size: 12px;
  }
}

/* ── Modals (tag info / info popup / notify / ask) ── */
.pdp-modal {
  position: relative;
  width: 100%;
  max-width: 576px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .35);
  padding: 20px 24px 28px;
}

.pdp-modal--sm {
  max-width: 520px;
  padding: 28px 28px 24px;
}

.pdp-sheet-grab {
  display: none;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 3px;
  background: var(--border-strong, #c5ccca);
}

.pdp-modal h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.01em;
  color: var(--ink-900);
}

.pdp-modal>p,
.pdp-modal [data-ask-form-wrap]>p {
  font-size: 14px;
  line-height: 21px;
  color: var(--fg-secondary);
  margin: 0 0 16px;
}

.pdp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.pdp-modal-close:hover {
  background: var(--ink-100);
}

.pdp-modal-tabs {
  margin: 8px auto 20px;
  width: fit-content;
  background: var(--ink-100);
  border-radius: 10px;
  padding: 4px;
  display: flex;
  gap: 4px;
}

.pdp-modal-tabs button {
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: var(--fg-tertiary);
  cursor: pointer;
  transition: background .14s, color .14s;
}

.pdp-modal-tabs button.is-active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.pdp-modal-intro {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 26px;
  margin: 0 0 12px;
  padding: 0 12px;
}

.pdp-modal-row {
  display: flex;
  gap: 12px;
  padding: 14px 12px;
  align-items: flex-start;
}

.pdp-modal-row>.pdp-modal-glyph {
  margin-top: 3px;
}

.pdp-modal-row b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -.005em;
  margin-bottom: 6px;
}

.pdp-modal-row p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--fg-secondary);
}

/* 22px glyph well — Figma tier/flag icons at ~1.2 scale */
.pdp-modal-glyph {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-modal-glyph img {
  border-radius: 50%;
  display: block;
}

.pdp-modal-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--ink-100);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pdp-modal-ic--ok {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  background: #e8f3ed;
  color: #0b6b3a;
}

.pdp-modal-eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 600;
  margin: 8px 0;
}

.pdp-notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-notify-form .input {
  flex: 1;
  min-width: 0;
  height: 44px;
}

/* a logged in customer's account address - WooCommerce signs them up with it */
.pdp-notify-form .input[readonly] {
  color: var(--fg-tertiary);
  background: var(--bg-muted);
}

.pdp-notify-form .btn {
  height: 44px;
}

.pdp-notify-form .btn[aria-busy="true"] {
  cursor: progress;
}

/* turnstile + the error line go under the field and button */
.pdp-notify-form .cf-turnstile,
.pdp-notify-error {
  flex: 1 0 100%;
}

.pdp-notify-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--err-600, #c01414);
}

.pdp-notify-error[hidden] {
  display: none;
}

/* woocommerce notices above the product - the back in stock email links land here (stock-notifications.php) */
.single-product .woocommerce-notices-wrapper:not(:empty) {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-info,
.single-product .woocommerce-notices-wrapper .woocommerce-error {
  margin: 0;
  padding: 14px 18px;
  list-style: none;
  border-radius: 8px;
  background: var(--ok-100, #e6f4ef);
  border: 1px solid #b9dfd1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-900);
}

.single-product .woocommerce-notices-wrapper .woocommerce-error {
  background: #fbe3e0;
  border-color: #f4b7b1;
  color: #4a1412;
}

.single-product .woocommerce-notices-wrapper > * + * {
  margin-top: 10px;
}

/* the .container gutter */
@media (max-width: 720px) {
  .single-product .woocommerce-notices-wrapper:not(:empty) {
    padding: 12px 14px 0;
  }
}

/* .pdp-modal - outranks the grey .pdp-modal > p */
.pdp-modal .pdp-notify-done {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ok-600, #0b6b3a);
  font-size: 15px;
  font-weight: 500;
  margin: 12px 0 0;
}

.pdp-ask-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.pdp-ask-field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
}

.pdp-ask-field span i {
  font-style: normal;
  color: var(--fg-tertiary);
  font-weight: 400;
}

.pdp-ask-field textarea {
  resize: vertical;
  min-height: 110px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 21px;
  font-family: inherit;
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: #fff;
}

.pdp-ask-field small {
  font-size: 12px;
  color: var(--fg-tertiary);
}

.pdp-ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pdp-ask-grid .input {
  height: 40px;
}

.pdp-ask-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  margin: 0 -24px -28px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  margin-top: 6px;
}

.pdp-ask-cancel {
  height: 40px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-900);
}

.pdp-ask-foot .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pdp-ask-done {
  text-align: center;
  padding: 24px 8px 8px;
}

/* ask modal - honeypot (off screen, not display:none - some bots skip hidden fields) + error line */
.pdp-ask-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pdp-ask-error {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--err-600, #c01414);
}

.pdp-ask-error[hidden] {
  display: none;
}

.pdp-modal-overlay--dark {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  padding: 24px;
}

/* ══════════════ MOBILE ══════════════ */
@media (max-width: 900px) {
  /* minmax(0, ...) - a bare 1fr has an auto minimum, so the Swiper rails
     inside (.pdp-vt-rail) could stretch the column to their content width */
  .pdp-main-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* title + rating sit above the photos: the buy box children join the grid
     (same 20px gap as the buy box) so they can be reordered without moving DOM */
  .pdp-buybox {
    display: contents;
  }

  .pdp-buybox-head,
  .pdp-buybox > .pdp-rating {
    order: -1;
  }

  /* thumbs become a small horizontal strip right below the image */

  .pdp-gallery-thumb {
    width: 60px;
    flex: 0 0 60px;
  }

  .pdp-brand-features {
    grid-template-columns: 1fr;
  }

  .pdp-rev-summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pdp-rev-sort {
    justify-content: flex-start;
  }
}

/* Tablet (721–1024px): related rows become a horizontal slider, ~3.2 per view */

@media (max-width: 720px) {
  .pdp-title {
    font-size: 18px;
    line-height: 24px;
  }

  .pdp-breadcrumb,
  .single-product .breadcrumbs {
    padding: 10px 0 8px;
    margin-bottom: 13px;
    border-bottom: 1px solid var(--border);
  }

  .pdp-trust {
    grid-template-columns: 1fr;
  }

  .pdp-review,
  .pdp-qa {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* stacked above the review - no rule between them */
  .pdp-rev-who {
    flex-direction: row;
    padding-right: 0;
    border-right: 0;
  }

  .pdp-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Testimonial rail: 2.5 cells visible on mobile */
  .pdp-vt-rail .story-thumb {
    flex: 0 0 calc((100% - 24px) / 2.5);
  }

  /* Related rows: horizontal 2-up swipe like the homepage mobile rails */
  .pdp-related {
    padding: 24px 0 8px;
  }

  .pdp-brand {
    margin: 32px 0;
    padding: 40px 0 32px;
  }

  .pdp-brand-head {
    margin-bottom: 32px;
  }

  .pdp-brand-eyebrow2 {
    font-size: 11px;
    gap: 10px;
    margin-bottom: 14px;
  }

  .pdp-brand-eyebrow2 .rule {
    width: 18px;
  }

  .pdp-brand-name {
    font-size: 30px;
    line-height: 36px;
  }

  .pdp-brand-tagline {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .pdp-brand-desc {
    font-size: 14px;
    line-height: 24px;
  }

  .pdp-brand-features {
    gap: 24px;
  }

  .pdp-brand-feature {
    gap: 12px;
  }

  .pdp-brand-img .num {
    font-size: 43px;
    bottom: 6px;
    right: 12px;
  }

  .pdp-brand-feature h3 {
    font-size: 18px;
  }

  .pdp-brand-feature p {
    margin-top: -6px;
    font-size: 14px;
    line-height: 21px;
  }

  .pdp-reviews {
    padding: 28px 0 32px;
  }

  .pdp-rev-pager {
    flex-direction: column;
    align-items: center;
  }

  .pdp-rev-shown {
    position: static;
  }

  .pdp-ask-grid {
    grid-template-columns: 1fr;
  }

  /* Notify sheet: slide up from the bottom on mobile */
  .pdp-sheet-grab {
    display: block;
  }

  .pdp-modal-overlay:has(.pdp-modal--sheet) {
    align-items: flex-end;
    padding: 0;
  }

  .pdp-modal--sheet {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
    animation: pdp-sheet-up .3s cubic-bezier(.2, .7, .25, 1);
  }

  .pdp-modal--sheet .pdp-modal-close {
    top: 18px;
    right: 14px;
  }

  .pdp-modal--sheet .pdp-notify-head {
    margin-top: 4px;
  }

  .pdp-notify-form {
    flex-direction: row;
  }
}

@keyframes pdp-sheet-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* select2 */
.single-product select {
  border: none
}

.product__select .select-parent__label {
  margin-bottom: 6px;
}

/* extra options select box — same look as the handoff .pdp-variant-btn */
.product__select .select2-container .select2-selection--single {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md) !important;
  cursor: pointer;
  font-size: 15px;
}

.product__select .select2-container--open .select2-selection--single {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(23, 67, 61, .12);
}

/* native select before select2 initialises — mirrors the select2 box so nothing shifts
   (select2 adds .select2-hidden-accessible once it takes over) */
.product__select select.product-extra-options:not(.select2-hidden-accessible) {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 44px 0 14px;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b7a77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px top calc(50% - 1px) / 16px auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-tertiary);
  -webkit-appearance: none;
  appearance: none;
}

.product__select.is-error .select2-container .select2-selection--single {
  border-color: var(--err-600, #c01414);
  box-shadow: 0 0 0 3px rgba(192, 20, 20, .1);
}

.product__select.is-error .pdp-variant-error {
  display: block !important;
}

.product__select .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: relative;
  flex-shrink: 0;
  height: 16px;
  width: 16px;
  margin-left: 6px;
  margin-top: -2px;
}

.product__select .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none !important;
}

.product__select .select2-container--default .select2-selection--single .select2-selection__arrow {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b7a77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px auto;
  transition: transform .15s;
}

.product__select .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
  transform: rotate(180deg);
}

.product__select .select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1;
  min-width: 0;
  padding: 0;
  /* fixed (not normal) so the text lands on the same pixel row as the native select
     before init — with Inter, line-height: normal rounds 1px lower */
  line-height: 20px;
  color: var(--ink-900);
}

.product__select .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--fg-tertiary);
  font-weight: 500;
}

/* selected value: icon · label · chip · +$delta, label truncates first;
   chip + delta sit on the far right, like the open dropdown's rows */
.product__select .pdp-variant-val.is-set {
  display: flex;
}

.product__select .pdp-variant-val__text {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product__select .pdp-variant-val .pdp-delta {
  flex-shrink: 0;
}

/* extra options dropdown — same look as the handoff .pdp-variant-dd
   (select2 renders it inside .product__select via dropdownParent) */
.product__select .select2-dropdown.pdp-variant-dd {
  top: 4px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.product__select .select2-dropdown--above.pdp-variant-dd {
  top: -4px;
}

.product__select .select2-container--default .select2-results > .select2-results__options {
  max-height: 340px;
}

.product__select .select2-results__option {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.product__select .select2-results__option:last-child {
  border-bottom: none;
}

/* the <li> carries the row divider */
.product__select .select2-results__option .pdp-variant-opt {
  border-bottom: none;
}

.product__select .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.product__select .select2-container--default .select2-results__option--selected {
  background: var(--ink-100);
  color: var(--ink-900);
  font-weight: 400;
}

.select2-dropdown.product-option-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.select2-dropdown.product-option-dropdown ul li {
  width: 100%;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-900) !important;
}

.select2-dropdown.product-option-dropdown ul li:hover,
.select2-dropdown.product-option-dropdown ul li.select2-results__option--highlighted,
.select2-dropdown.product-option-dropdown ul li.select2-results__option--selected {
  background: var(--ink-100);
}

.select2-dropdown.product-option-dropdown ul li.select2-results__option--selected .wl-extras__opt-check {
  display: block !important;
}

/* add to cart in progress - spinner over the form (was woo-custom.css) */
.single-product .product__info form.cart.blocked::before {
    content: '';
    position: absolute;
    z-index: 12;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 35px;
    height: 35px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg class='loading-spinner' xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none'%3E%3Cpath id='track' fill='%23E6E9E9' d='M24,48 C10.745166,48 0,37.254834 0,24 C0,10.745166 10.745166,0 24,0 C37.254834,0 48,10.745166 48,24 C48,37.254834 37.254834,48 24,48 Z M24,44 C35.045695,44 44,35.045695 44,24 C44,12.954305 35.045695,4 24,4 C12.954305,4 4,12.954305 4,24 C4,35.045695 12.954305,44 24,44 Z'/%3E%3Cpath id='section' fill='%2301231F' d='M24,0 C37.254834,0 48,10.745166 48,24 L44,24 C44,12.954305 35.045695,4 24,4 L24,0 Z'/%3E%3C/g%3E%3C/svg%3E");
    animation: spin 0.7s infinite linear;
}

.single-product .product__info form.cart.blocked::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: #ffffffc7;
    z-index: 11;
    width: 100%;
    height: 102%;
}
