/* ==========================================================
   SAMAIA — product page, standard store layout
   Gallery left (thumbnails + main image), summary right
   (title, price, options, quantity, add to cart), details
   in accordions, related designs, footer.
   Uses the tokens from style.css. --pc = product colour.
   ========================================================== */

.samaia-product { --pc: var(--accent); --pc-ink: var(--paper); }

/* ---------- Breadcrumb ---------- */
.pdp-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: calc(var(--gutter) * 2 + 64px) var(--gutter) 18px; font-size: 12px; font-weight: 500; color: var(--ink-soft);
}
.pdp-crumbs a { transition: color .3s; }
.pdp-crumbs a:hover { color: var(--ink); }
.pdp-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Two columns ---------- */
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px); padding: 0 var(--gutter) 12vh; align-items: start;
}

/* ---------- Gallery ---------- */
.pdp-gallery {
  position: sticky; top: calc(var(--gutter) + 80px);
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px;
}
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - var(--gutter) - 100px); overflow-y: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  position: relative; flex: none; width: 72px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden;
  background: var(--stone); opacity: .55; transition: opacity .3s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 0; transition: opacity .3s; }
.pdp-thumb:hover { opacity: .85; }
.pdp-thumb[aria-selected="true"] { opacity: 1; }
.pdp-thumb[aria-selected="true"]::after { opacity: 1; }

.pdp-stage { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--gutter) - 100px); background: var(--stone); overflow: hidden; }
.pdp-track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; cursor: zoom-in; margin: 0; }
.pdp-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); will-change: transform; }
.pdp-slide.is-zoomed img { transform: scale(1.9); transition: transform .25s ease-out; }

.pdp-arrow {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  opacity: 0; transition: opacity .3s, background .3s;
}
.pdp-arrow svg { width: 12px; }
.pdp-arrow--prev { left: 14px; }
.pdp-arrow--next { right: 14px; }
.pdp-stage:hover .pdp-arrow, .pdp-arrow:focus-visible { opacity: 1; }
.pdp-arrow:hover { background: var(--limestone); }
.pdp-arrow[disabled] { opacity: 0 !important; pointer-events: none; }

.pdp-count { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 5px 10px; background: var(--paper); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; background: var(--paper); }
.pdp-zoom svg { width: 13px; }
.pdp-badge { position: absolute; left: 14px; top: 14px; z-index: 3; padding: 6px 11px; background: var(--pc); color: var(--pc-ink); font-size: 11px; font-weight: 700; }
.pdp-dots { display: none; }

/* ---------- Summary ---------- */
.pdp-summary__inner { max-width: 540px; }
.pdp-meta { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.pdp-meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.pdp-meta a::before { content: ""; width: 10px; height: 10px; background: var(--pc); }
.pdp-title {
  margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-stretch: 84%;
  font-size: clamp(32px, 3.1vw, 54px); line-height: .96; letter-spacing: -.03em;
}

.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; }
.pdp-price__now { font-size: clamp(26px, 2vw, 34px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pdp-price__was { font-size: 17px; font-weight: 500; color: var(--ink-soft); }
.pdp-price__was:empty, .pdp-price__save:empty { display: none; }
.pdp-price__save { padding: 3px 8px; background: var(--pc); color: var(--pc-ink); font-size: 12px; font-weight: 700; align-self: center; }
.pdp-tax { margin: 6px 0 0; font-size: 12px; color: var(--ink-soft); }
.pdp-short { margin: 24px 0 0; font-size: 16px; line-height: 1.55; max-width: 46ch; }

/* ---------- Options (WooCommerce attributes / variations) ---------- */
.pdp-form { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.pdp-opt { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.pdp-opt legend { display: flex; gap: 8px; padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.pdp-opt legend span { font-weight: 500; color: var(--ink-soft); }
.pdp-opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-chip { position: relative; }
.pdp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pdp-chip label {
  display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 11px 14px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.pdp-chip label small { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.pdp-chip label:hover { border-color: var(--ink); }
.pdp-chip input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.pdp-chip input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.pdp-chip--swatch label { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
.pdp-chip--swatch i { width: 18px; height: 18px; flex: none; box-shadow: inset 0 0 0 1px rgba(31,36,33,.2); }

/* ---------- Quantity + add to cart ---------- */
.pdp-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 8px; }
.pdp-qty { display: grid; grid-template-columns: 40px 44px 40px; height: 56px; border: 1px solid var(--ink); }
.pdp-qty button { font-size: 18px; font-weight: 500; }
.pdp-qty button:hover { background: var(--stone); }
.pdp-qty input {
  width: 100%; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; color: var(--ink);
  -moz-appearance: textfield;
}
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-add {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 20px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  transition: background .3s;
}
.pdp-add:hover { background: #333a36; }
.pdp-add__sum { font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.pdp-add.is-added { background: var(--pc); color: var(--pc-ink); }
.pdp-wish { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .3s; }
.pdp-wish svg { width: 20px; }
.pdp-wish:hover { border-color: var(--ink); }
.pdp-wish[aria-pressed="true"] svg { fill: var(--brand); stroke: var(--brand); }

.pdp-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.pdp-wa svg { width: 7px; transition: transform .4s var(--ease); }
.pdp-wa:hover svg { transform: translate(2px, -2px); }
.pdp-status { min-height: 18px; margin: 12px 0 0; font-size: 12px; font-weight: 600; }

/* ---------- Trust row ---------- */
.pdp-trust { list-style: none; margin: 28px 0 0; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.pdp-trust svg { width: 22px; flex: none; color: var(--ink); }
.pdp-trust b { display: block; color: var(--ink); font-weight: 700; }

/* ---------- Accordions ---------- */
.pdp-acc { margin-top: 8px; }
.pdp-acc details { border-bottom: 1px solid var(--line); }
.pdp-acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 14px; font-weight: 700;
}
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: ""; width: 11px; height: 11px; flex: none; background:
  linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat,
  linear-gradient(currentColor, currentColor) center / 1.4px 100% no-repeat; transition: transform .35s var(--ease); }
.pdp-acc details[open] summary::after { transform: rotate(45deg); }
.pdp-acc__body { padding: 0 0 20px; font-size: 14px; line-height: 1.65; }
.pdp-acc__body p { margin: 0; max-width: 58ch; }
.pdp-list, .pdp-steps { margin: 0; padding: 0; list-style: none; }
.pdp-list li, .pdp-steps li { position: relative; padding: 7px 0 7px 24px; }
.pdp-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 5px; border-left: 1.4px solid var(--ink); border-bottom: 1.4px solid var(--ink); transform: rotate(-45deg); }
.pdp-steps { counter-reset: s; }
.pdp-steps li { counter-increment: s; }
.pdp-steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; font-weight: 700; font-size: 12px; }
.pdp-specs { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.pdp-specs dt, .pdp-specs dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.pdp-specs dt { color: var(--ink-soft); padding-right: 24px; }
.pdp-specs dd { font-weight: 600; text-align: right; }

/* ---------- Related ---------- */
.pdp-related { padding: 0 .55vw 14vh; }
.pdp-related__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 calc(var(--gutter) - .55vw) 22px; }
.pdp-related__head h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-stretch: 84%; font-size: clamp(24px, 2vw, 34px); letter-spacing: -.02em; }
.pdp-related__head a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pdp-related__head a svg { width: 7px; }
.pdp-related__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55vw; }
.pdp-related .card__media { aspect-ratio: 1 / 1.1; }
.pdp-related .card__caption { align-items: baseline; gap: 16px; padding-top: 12px; }
.pdp-related .card__caption span:first-child { min-width: 0; font-size: clamp(15px, 1.12vw, 19px); font-weight: 600; color: var(--ink); }
.pdp-related .card__caption span.card__price { flex: none; white-space: nowrap; font-size: clamp(16px, 1.28vw, 21px); font-weight: 600; color: var(--ink); }

/* ---------- Lightbox ---------- */
.pdp-lightbox { position: fixed; inset: 0; z-index: 120; background: var(--limestone); display: grid; place-items: center; }
.pdp-lightbox[hidden] { display: none; }
.pdp-lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.pdp-lightbox .pdp-arrow { opacity: 1; position: fixed; }
.pdp-lightbox .pdp-count { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); }
.pdp-lightbox__close { position: fixed; top: 22px; right: var(--gutter); font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- Sticky add-to-cart (phones) ---------- */
.pdp-sticky { display: none; }

/* ================= Phones and portrait tablets ================= */
@media (max-width: 900px) {
  .pdp-crumbs { padding: 92px 5vw 14px; font-size: 12px; }
  .pdp { grid-template-columns: 1fr; gap: 0; padding: 0 0 10vh; }
  .pdp-gallery { position: relative; top: auto; display: block; }
  .pdp-thumbs { display: none; }
  .pdp-stage { max-height: none; aspect-ratio: 4 / 5; }
  .pdp-arrow, .pdp-zoom { display: none; }
  .pdp-slide { cursor: default; }
  .pdp-count { left: auto; right: 12px; bottom: 12px; }
  .pdp-dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0 0; }
  .pdp-dots i { width: 6px; height: 6px; background: var(--ink); opacity: .22; transition: opacity .3s, width .3s; }
  .pdp-dots i.is-on { opacity: 1; width: 18px; }
  .pdp-summary__inner { max-width: none; padding: 26px 5vw 0; }
  .pdp-title { font-size: clamp(30px, 9vw, 44px); }
  .pdp-short { font-size: 15px; }
  .pdp-chip label { min-width: 0; flex: 1; }
  .pdp-opt__list { display: grid; grid-template-columns: 1fr 1fr; }
  .pdp-buy { grid-template-columns: auto 1fr; }
  .pdp-wish { display: none; }
  .pdp-trust { grid-template-columns: 1fr; gap: 12px; }
  .pdp-related { padding: 0 0 10vh; }
  .pdp-related__head { padding: 0 5vw 16px; }
  .pdp-related__row { display: flex; gap: 10px; overflow-x: auto; padding: 0 5vw; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pdp-related__row::-webkit-scrollbar { display: none; }
  .pdp-related__row .card { flex: 0 0 68vw; scroll-snap-align: start; }
  .pdp-related .card__media { aspect-ratio: 4 / 5; }
  .pdp-related .card__caption { flex-direction: column; gap: 3px; }
  .pdp-related .card__caption span:first-child { font-size: 14px; }
  .pdp-related .card__caption span.card__price { font-size: 16px; }
  .pdp-related .card__panel { display: none; }

  .pdp-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
    padding: 10px 5vw calc(10px + env(safe-area-inset-bottom)); background: var(--paper);
    box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .pdp-sticky.is-on { transform: translateY(0); }
  .pdp-sticky img { width: 44px; height: 52px; object-fit: cover; }
  .pdp-sticky div { min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
  .pdp-sticky span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
  .pdp-sticky b { font-size: 15px; }
  .pdp-sticky button { height: 44px; padding: 0 18px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .pdp-gallery { grid-template-columns: 60px minmax(0, 1fr); }
  .pdp-thumb { width: 60px; }
  .pdp-trust { grid-template-columns: 1fr; }
}

/* ==========================================================
   WordPress additions
   ========================================================== */
.pdp-thumbs[hidden] { display: none; }
.pdp-gallery:has(.pdp-thumbs[hidden]) { grid-template-columns: minmax(0, 1fr); }
.pdp-short p { margin: 0 0 .6em; }
.pdp-short p:last-child { margin-bottom: 0; }
.pdp-stock { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pdp-stock[hidden] { display: none; }

.pdp-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.pdp-stars { --r: 0%; position: relative; display: inline-block; width: 84px; height: 14px; flex: none;
  background: linear-gradient(90deg, var(--ink) var(--r), rgba(31,36,33,.2) var(--r));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 14'%3E%3Cg%3E%3Cpath id='s' d='M7 .5l1.9 4.3 4.6.4-3.5 3 1.1 4.6L7 10.4 2.9 12.8 4 8.2.5 5.2l4.6-.4z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 14'%3E%3Cg%3E%3Cpath id='s' d='M7 .5l1.9 4.3 4.6.4-3.5 3 1.1 4.6L7 10.4 2.9 12.8 4 8.2.5 5.2l4.6-.4z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* swatch variants */
.pdp-chip--swatch i.is-img { background-size: cover; background-position: center; }
.pdp-chip.is-unavailable label { opacity: .4; text-decoration: line-through; }
.pdp-chip.is-unavailable input:checked + label { opacity: .7; }

.pdp-add[disabled] { background: var(--stone); color: var(--ink-soft); cursor: not-allowed; }
.pdp-add.is-loading { opacity: .7; pointer-events: none; }
.pdp-buy--single { grid-template-columns: 1fr; }
.pdp-form--external .pdp-add { display: inline-flex; width: 100%; }
.pdp-form--external .pdp-add svg { width: 9px; }
.pdp-status:empty { display: none; }
.pdp-status.is-error { color: var(--brand); }

/* grouped products keep WooCommerce's table, styled lightly */
.pdp-form--grouped table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.pdp-form--grouped td { padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pdp-form--grouped .quantity input { width: 56px; height: 40px; border: 1px solid var(--line); background: transparent; text-align: center; font: inherit; }
.pdp-form--grouped button[type="submit"] { height: 56px; padding: 0 24px; background: var(--ink); color: var(--paper); font-weight: 700; }

/* WooCommerce notices (non-AJAX add to cart) */
.pdp-notices { margin-bottom: 18px; }
.pdp-notices ul, .pdp-notices .woocommerce-message, .pdp-notices .woocommerce-error, .pdp-notices .woocommerce-info {
  list-style: none; margin: 0 0 8px; padding: 12px 16px; background: var(--paper); font-size: 13px; font-weight: 600; }
.pdp-notices .woocommerce-error { background: #F4DFE1; color: var(--brand); }
.pdp-notices a.button { float: right; font-size: 12px; border-bottom: 1px solid currentColor; }

/* description content from the editor */
.pdp-acc__body h2, .pdp-acc__body h3, .pdp-acc__body h4 { font-family: var(--display); font-weight: var(--display-weight); font-size: 16px; margin: 1em 0 .4em; }
.pdp-acc__body ul:not(.pdp-list):not(.pdp-reviews) { padding-left: 18px; margin: .4em 0; }
.pdp-acc__body img { max-width: 100%; height: auto; }

.pdp-reviews { list-style: none; margin: 0; padding: 0; }
.pdp-reviews li { padding: 14px 0; border-top: 1px solid var(--line); }
.pdp-reviews li:first-child { border-top: 0; padding-top: 0; }
.pdp-reviews__who { margin: 6px 0 4px !important; font-size: 12.5px; font-weight: 700; }
.pdp-reviews__who time { font-weight: 500; color: var(--ink-soft); margin-left: 6px; }

.pdp-locked { padding: 20vh var(--gutter); max-width: 520px; margin: 0 auto; }

/* related uses the shop cards */
.pdp-related .card__caption .card__name { min-width: 0; }

@media (max-width: 900px) {
  .pdp-gallery:has(.pdp-thumbs[hidden]) { display: block; }
}

/* WooCommerce adds a "View cart" link after AJAX adds; the side cart already shows it */
.pdp-form .added_to_cart { display: none !important; }

/* ==========================================================
   Gallery settings (WooCommerce → Samaia Shop → Product page)
   ========================================================== */
.pdp-gallery .pdp-stage { aspect-ratio: var(--pdp-ratio, 4 / 5); }
.pdp-gallery--fit-contain .pdp-slide img { object-fit: contain; }
.pdp-gallery--fit-contain .pdp-stage { background: var(--paper); }
.pdp-gallery:not(.has-full) .pdp-slide { cursor: default; }
.pdp-gallery:not(.has-zoom).has-full .pdp-slide { cursor: zoom-in; }

/* thumbnails under the image */
.pdp-gallery--thumbs-bottom { grid-template-columns: minmax(0, 1fr); }
.pdp-gallery--thumbs-bottom .pdp-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
.pdp-gallery--thumbs-bottom .pdp-thumb { width: 76px; }
.pdp-gallery--thumbs-none { grid-template-columns: minmax(0, 1fr); }
.pdp-gallery--thumbs-none .pdp-thumbs { display: none; }

/* phones: swipe the image, thumbnails strip under it */
.pdp-mthumbs { display: none; }
.pdp-track { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .pdp-gallery--m-thumbs .pdp-dots { display: none; }
  .pdp-gallery--m-thumbs .pdp-mthumbs {
    display: flex; gap: 8px; padding: 10px 5vw 0; overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pdp-mthumbs::-webkit-scrollbar { display: none; }
  .pdp-mthumb { position: relative; flex: 0 0 60px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--stone); opacity: .55; scroll-snap-align: center; transition: opacity .3s; }
  .pdp-mthumb img { width: 100%; height: 100%; object-fit: cover; }
  .pdp-mthumb.is-on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .pdp-mthumb.is-on img { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
  .pdp-gallery.has-full .pdp-slide { cursor: zoom-in; }
  .pdp-stage { max-height: 78svh; }
}

/* full screen viewer: swipe between images */
.pdp-lightbox { display: block; }
.pdp-lightbox[hidden] { display: none; }
html.pdp-lb-lock, html.pdp-lb-lock body { overflow: hidden; }
.pdp-lb-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x pinch-zoom;
}
.pdp-lb-track::-webkit-scrollbar { display: none; }
.pdp-lb-track.is-zooming { scroll-snap-type: none; overflow: hidden; }
.pdp-lb-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; overflow: hidden; cursor: zoom-in; }
.pdp-lb-slide img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; transition: transform .35s var(--ease); }
.pdp-lb-slide.is-zoomed { cursor: zoom-out; }
.pdp-lb-slide.is-zoomed img { transform: scale(2.2); }
.pdp-lightbox .pdp-lightbox__close, .pdp-lightbox .pdp-arrow, .pdp-lightbox .pdp-count { z-index: 2; }
@media (max-width: 900px) {
  .pdp-lightbox .pdp-arrow { display: none; }
  .pdp-lb-slide img { max-width: 100vw; max-height: 80svh; }
}

/* ==========================================================
   Palette / Material (Samaia Options)
   ========================================================== */
.pdp-chip--swatch label small { margin-left: 2px; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.pdp-chip--material i { width: 26px; height: 26px; }
.pdp-opt--samaia + .pdp-opt--samaia { margin-top: -4px; }
/* one image per swipe */
.pdp-slide, .pdp-lb-slide { scroll-snap-stop: always; }

/* option groups: looks and multiple choice */
.pdp-opt__hint { margin-left: 4px; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.pdp-opt__hint::before { content: "("; } .pdp-opt__hint::after { content: ")"; }
.pdp-chip--swatch i { position: relative; }
.pdp-chip--swatch i b { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px var(--limestone); }
.pdp-chip--swatch input:checked + label i b { box-shadow: 0 0 0 2px var(--paper); }
.pdp-opt--look-image .pdp-chip--swatch i, .pdp-opt--look-both .pdp-chip--swatch i { width: 30px; height: 30px; }
.pdp-opt--look-text .pdp-chip label { min-width: 0; padding: 11px 16px; }
/* multi-choice: a small tick in the corner of chosen options */
.pdp-chip--multi label { position: relative; }
.pdp-chip--multi input:checked + label::after {
  content: ""; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23F3F1EA' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
