/**
 * Soukara — single product (PDP) chrome.
 *
 * PDP-specific layout only: the 2-col gallery+summary grid, the gallery stage +
 * thumbs, the summary buy box (eyebrow, title, meta, price, blurb, variation
 * buttons, qty+add row, wishlist), the specs grid, and the lower "detail" +
 * "reviews" + "related" sections. Reuses the shared `.sx-*` utilities and
 * `.soukara-qty` stepper from storefront.css — this file adds the chrome on top.
 *
 * Ported from the handoff PRODUCT route (Soukara Store.dc.html, lines 322–425).
 *
 * @package Soukara
 */

/* ==========================================================
   Route shell
   ========================================================== */

.soukara-pdp {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 28px 80px;
}

/* ---- Breadcrumb (WC native, restyled) ---- */
.soukara-pdp__crumb {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 24px;
}
.soukara-pdp__crumb .woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 600;
}
.soukara-pdp__crumb a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color .25s ease;
}
.soukara-pdp__crumb a:hover { color: var(--clay-600); }

/* ==========================================================
   2-col main: sticky gallery + summary
   ========================================================== */

.soukara-pdp__cols.sx-pdp {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}

/* ---- Gallery ---- */
.soukara-pdp__gallery { position: sticky; top: 90px; }

.soukara-pdp__stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--slate-950);
}
.soukara-pdp__main {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.soukara-pdp__flag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--clay-500);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.soukara-pdp__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.soukara-pdp__thumb {
  flex: 1;
  border: 2px solid transparent;
  background: var(--slate-950);
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  padding: 0;
  opacity: .55;
  transition: opacity .25s ease, border-color .25s ease;
}
.soukara-pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.soukara-pdp__thumb.is-active {
  opacity: 1;
  border-color: var(--clay-500);
}
.soukara-pdp__thumb:hover { opacity: 1; }

/* ---- Zoom trigger (wraps the main image; opens the lightbox) ---- */
.soukara-pdp__zoom {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* ==========================================================
   Lightbox (full-screen image overlay)
   Reuses the .sx-scrim / .sx-modal animations from storefront.css;
   only layout is declared here.
   ========================================================== */
.soukara-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.soukara-lightbox.is-open { display: block; }
.soukara-lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 15, .9);
}
.soukara-lightbox__modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.soukara-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-md, 0 24px 60px rgba(0, 0, 0, .4));
}
.soukara-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease-out);
}
.soukara-lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.soukara-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease-out);
}
.soukara-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.soukara-lightbox__prev { left: 18px; }
.soukara-lightbox__next { right: 18px; }
.soukara-lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .04em;
  opacity: .8;
}

/* ==========================================================
   Summary (buy box surround)
   ========================================================== */

.soukara-pdp__eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay-600);
  font-weight: 700;
  margin-bottom: 12px;
}
.soukara-pdp__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--text-strong);
  margin: 0 0 16px;
}
.soukara-pdp__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.soukara-pdp__meta-sep { color: var(--color-border-strong); }
.soukara-pdp__stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.soukara-pdp__stock.is-in  { color: var(--color-success); }
.soukara-pdp__stock.is-out { color: var(--clay-600); }
.soukara-pdp__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: currentColor;
  display: inline-block;
}

.soukara-pdp__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -.01em;
}
.soukara-pdp__price del {
  font-family: var(--font-sans);
  font-size: 21px;
  color: var(--text-subtle);
  opacity: 1;
}
.soukara-pdp__price ins { text-decoration: none; }

.soukara-pdp__blurb {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-body);
  margin: 0 0 28px;
  max-width: 520px;
}
.soukara-pdp__blurb p { margin: 0 0 12px; }
.soukara-pdp__blurb p:last-child { margin-bottom: 0; }

/* ==========================================================
   Variation controls (set-size buttons + finish swatches)
   ========================================================== */

.soukara-pdp__variation { margin-bottom: 24px; }
.soukara-pdp__variation-label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 11px;
}
.soukara-pdp__variation-current { color: var(--text-strong); }

.soukara-pdp__variation-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.soukara-pdp__variation-options.is-swatches { gap: 12px; }

/* Hide the native select (out of the tab order) but keep it readable/settable
   by WC variations.js. visibility:hidden + pointer-events:none removes it from
   keyboard focus while leaving its value scriptable. */
.soukara-pdp__variation-select {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* ---- Set-of-N size buttons ---- */
.soukara-pdp__size {
  min-width: 64px;
  padding: 0 18px;
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border-strong);
  background: var(--white, #fff);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.soukara-pdp__size-price {
  font-size: 11px;
  font-weight: 600;
  opacity: .7;
  font-family: var(--font-mono);
}
.soukara-pdp__size-price del { opacity: .55; }
.soukara-pdp__size-price ins { text-decoration: none; }
.soukara-pdp__size.is-active {
  border-color: var(--slate-800);
  background: var(--slate-800);
  color: var(--cream);
}

/* ---- Finish swatches ---- */
.soukara-pdp__swatch {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  cursor: pointer;
  background: var(--sand-200);
  border: 2px solid var(--color-border-strong);
  box-shadow: inset 0 0 0 2px var(--white, #fff);
  padding: 0;
}
.soukara-pdp__swatch.is-active { border-color: var(--slate-800); }

/* ==========================================================
   Buy row: qty stepper + Add to bag
   ========================================================== */

.soukara-pdp__buy {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
.soukara-pdp__qty { height: 54px; }

/* The add button is WooCommerce's native `.single_add_to_cart_button button alt`
 * (purple by default). We scope under `.soukara-pdp` AND name the WC class so the
 * selector out-specifies WC core's `.woocommerce button.button.alt` and we can
 * drop the slate design treatment without leaning on !important for the cosmetics.
 * `!important` is used ONLY on `background`/`color`/`border` because some WC builds
 * ship those on `.button.alt` with theme-override-resistant specificity. */
.soukara-pdp .single_add_to_cart_button,
.soukara-pdp__add {
  flex: 1;
  border: 0 !important;            /* override WC core .button.alt border */
  background: var(--slate-800) !important;  /* override WC core purple */
  color: var(--cream) !important;  /* override WC core .button.alt text colour */
  border-radius: 8px;
  min-height: 54px;
  height: 54px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
  transition: background .18s var(--ease-out), box-shadow .18s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.soukara-pdp .single_add_to_cart_button:hover,
.soukara-pdp__add:hover {
  background: var(--slate-900) !important;  /* override WC core hover */
  box-shadow: var(--shadow-sm);
}
.soukara-pdp .single_add_to_cart_button.disabled,
.soukara-pdp .single_add_to_cart_button:disabled,
.soukara-pdp__add.disabled,
.soukara-pdp__add:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Instant Chat Checkout ("next" / inline layout) ─────────────────────────
 * The plugin wraps our native add-to-cart button together with its own WhatsApp
 * button inside a single `.waw-inline-actions` flex row, which squeezes
 * "Add to bag" down to its min width. Unwrap that container with
 * `display: contents` so the qty stepper + Add-to-bag keep row one and the
 * WhatsApp button drops onto its own full-width row beneath them. */
.soukara-pdp__buy { flex-wrap: wrap; }
.soukara-pdp__buy .waw-inline-actions { display: contents; }
.soukara-pdp__buy .waw-product-button-wrap {
  /* `!important` overrides the inline `flex-basis` the plugin prints on this wrap. */
  flex: 1 0 100% !important;
  margin: 0;
}
.soukara-pdp__buy .waw-order-button {
  width: 100%;
  min-height: 54px;
  height: 54px;
  border-radius: 8px;
}

/* ---- Secondary actions: wishlist + (plugin) WhatsApp ---- */
.soukara-pdp__actions {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 30px;
}
.soukara-pdp__wish {
  width: 54px;
  flex: 0 0 54px;
  border: 1.5px solid var(--color-border-strong);
  background: var(--white, #fff);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.soukara-pdp__wish.is-active { color: var(--clay-500); }

/* ==========================================================
   Specs grid
   ========================================================== */

.soukara-pdp__specs {
  border-top: 1px solid var(--color-border);
  padding-top: 22px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}
.soukara-pdp__spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 9px;
  margin: 0;
}
.soukara-pdp__spec-k {
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}
.soukara-pdp__spec-v {
  color: var(--text-strong);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
  margin: 0;
}

/* ==========================================================
   Lower 2-col: detail + reviews
   ========================================================== */

.soukara-pdp__lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 74px;
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
}

.soukara-pdp__h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--text-strong);
  margin: 0 0 16px;
}

.soukara-pdp__longdesc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 18px;
}
.soukara-pdp__longdesc p { margin: 0 0 14px; }

.soukara-pdp__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.soukara-pdp__bullet {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-body);
}
.soukara-pdp__bullet svg { flex: 0 0 auto; margin-top: 2px; }

/* ==========================================================
   Reviews
   ========================================================== */

.soukara-pdp__reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.soukara-pdp__reviews-score { text-align: right; }
.soukara-pdp__reviews-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1;
}
.soukara-pdp__reviews-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.soukara-pdp__dist {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 26px;
}
.soukara-pdp__dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.soukara-pdp__dist-star { width: 30px; font-family: var(--font-mono); }
.soukara-pdp__dist-bar {
  flex: 1;
  height: 7px;
  background: var(--sand-100);
  border-radius: 99px;
  overflow: hidden;
}
.soukara-pdp__dist-fill {
  display: block;
  height: 100%;
  background: var(--clay-400);
  border-radius: 99px;
}
.soukara-pdp__dist-n {
  width: 34px;
  text-align: right;
  font-family: var(--font-mono);
}

.soukara-pdp__review-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.soukara-pdp__review {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}
.soukara-pdp__review-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}
.soukara-pdp__review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--sand-200);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  flex: 0 0 auto;
}
.soukara-pdp__review-who { flex: 1; }
.soukara-pdp__review-author {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-strong);
}
.soukara-pdp__review-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
.soukara-pdp__review-verified {
  color: var(--color-success);
  font-weight: 600;
}
.soukara-pdp__review-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.soukara-pdp__review-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.soukara-pdp__review-body p { margin: 0 0 8px; }
.soukara-pdp__review-body p:last-child { margin-bottom: 0; }

.soukara-pdp__noreviews {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 26px;
}

/* Native review form — restyled to the Soukara cream surface. */
.soukara-pdp__review-form { margin-top: 28px; }
.soukara-pdp__review-form #reply-title { margin-bottom: 6px; }
.soukara-pdp__review-form .comment-notes {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.soukara-pdp__review-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.soukara-pdp__review-form p { margin: 0 0 16px; }

.soukara-pdp__review-form input[type="text"],
.soukara-pdp__review-form input[type="email"],
.soukara-pdp__review-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-strong);
  background: var(--white);
  box-sizing: border-box;
}
.soukara-pdp__review-form textarea {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}
.soukara-pdp__review-form input[type="text"]:focus,
.soukara-pdp__review-form input[type="email"]:focus,
.soukara-pdp__review-form textarea:focus {
  outline: none;
  border-color: var(--slate-800);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Name + Email share a row on wider screens. */
@media (min-width: 560px) {
  .soukara-pdp__review-form .comment-form-author,
  .soukara-pdp__review-form .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }
  .soukara-pdp__review-form .comment-form-author { margin-right: 14px; }
}

/* Rating — WooCommerce swaps the <select> for its p.stars widget. Colour the
   star glyphs clay instead of the default link blue. */
.soukara-pdp__review-form .comment-form-rating { margin-bottom: 18px; }
.soukara-pdp__review-form .comment-form-rating select { display: none; }
.soukara-pdp__review-form p.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1;
}
.soukara-pdp__review-form p.stars a {
  color: var(--clay-500);
  text-decoration: none;
}
.soukara-pdp__review-form p.stars a:hover,
.soukara-pdp__review-form p.stars a.active {
  color: var(--clay-600);
}

/* Cookies-consent checkbox row. */
.soukara-pdp__review-form .comment-form-cookies-consent label {
  display: inline;
  font-weight: 500;
  color: var(--text-muted);
}
.soukara-pdp__review-form .comment-form-cookies-consent input { margin-right: 8px; }

/* Submit — slate fill. `!important` overrides WC core's #respond input#submit
   (ID specificity) without leaning on a brittle selector. */
.soukara-pdp__review-form .form-submit { margin-top: 4px; }
.soukara-pdp__review-form .form-submit input[type="submit"],
.soukara-pdp__review-submit {
  border: 0 !important;
  background: var(--slate-800) !important;
  color: var(--cream) !important;
  border-radius: 8px;
  min-height: 50px;
  padding: 0 30px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.soukara-pdp__review-form .form-submit input[type="submit"]:hover,
.soukara-pdp__review-submit:hover { background: var(--slate-900) !important; }

/* ==========================================================
   Related
   ========================================================== */

.soukara-pdp__related { margin-top: 74px; }
.soukara-pdp__related-title {
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 26px;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 980px) {
  .soukara-pdp__cols.sx-pdp { grid-template-columns: 1fr; gap: 32px; }
  .soukara-pdp__gallery { position: static; }
  .soukara-pdp__lower { grid-template-columns: 1fr; gap: 40px; }
  .soukara-pdp__reviews { margin-top: 8px; }
}

@media (max-width: 560px) {
  .soukara-pdp { padding: 18px 16px 60px; }
  .soukara-pdp__specs { grid-template-columns: 1fr; }
  .soukara-pdp__buy { flex-wrap: wrap; }
}
