/*
 * Single product page — Concept B.
 *
 * Full-bleed to --nesa-gutter, the same value the site header uses, so the
 * breadcrumb, gallery and summary all begin on the header's left edge. The
 * page uses the theme's own .bp-container for that column, widened below.
 *
 * Loaded after bp-product.css, which styles the previous PDP composition
 * (quantity stepper, share row). Where the two disagree this file wins on
 * source order; the handful of rules that need to actively undo the old layout
 * are grouped at the bottom rather than sprinkled through.
 */

/* ── Page shell ──────────────────────────────────────────────────────── */

.oxa-pdp-page {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

/*
 * Full-bleed on --nesa-gutter — the same page width as the header and the
 * homepage, so the breadcrumb and the gallery start on the logo's left edge.
 *
 * This is only safe because the gallery caps its own images (see below). With
 * no cap anywhere the lead figure, sized by aspect-ratio, came out 1808px tall
 * on a 2258px monitor — one photo taller than the screen. The fix belongs on
 * the images, not on the page: capping the page would have made the PDP a
 * narrow centred column while every other page runs edge to edge.
 *
 * Scoped to the page: an unscoped rule here would hit the footer and every
 * other .bp-container on the site.
 */
.oxa-pdp-page .bp-container {
  width: 100%;
  max-width: none;
  padding-inline: var(--nesa-gutter);
  margin-inline: auto;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */

.oxa-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 1.25rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

.oxa-crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.oxa-crumbs a:hover { color: var(--nesa-ink); }

.oxa-crumbs__sep {
  color: var(--nesa-line);
  padding-inline: 0.15rem;
}

/* The last crumb is the product itself — same weight, darker. */
.oxa-crumbs > :last-child { color: var(--nesa-ink); }

/* ── Two-column grid ─────────────────────────────────────────────────── */

.oxa-pdp__grid {
  display: grid;
  /*
   * Two columns: gallery left, all the product info right.
   *
   * Percentage tracks pushed apart with `justify-content: space-between` put
   * the leftover ~16.5% between the columns — on a wide monitor that is a
   * ~340px void that reads as a third column. Fractional tracks plus a real
   * gap keep the same proportions with the whitespace under control, which is
   * how the Lindex build does it.
   */
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 64rem) {
  .oxa-pdp__grid {
    /*
     * The concept's block: gallery capped at its own 780px, a roomy buy
     * column beside it, and the pair centred on the page. Proportional
     * 65/35 tracks on a full-bleed page put ~400px of nothing between the
     * capped gallery and the text on a wide monitor. 600px keeps the buy
     * column generous without stretching its full-width buttons into
     * banners on a big screen.
     *
     * minmax(0, 780px) rather than a bare 780px so the gallery may shrink
     * between 64rem and the point where both columns fit at full size.
     */
    grid-template-columns: minmax(0, 720px) minmax(340px, 600px);
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* ── Gallery: thumbnail rail + stage ────────────────────────────────── */

/*
 * Amazon-style viewer: a vertical thumbnail rail on the left, the chosen
 * photo big beside it. The stage has a SET WIDTH and a natural height — the
 * photo's own shape decides how tall the block runs, so a short photo makes
 * a short block and a tall one gets all the room it needs. Nothing is ever
 * cropped, letterboxed or floated on a fill; the old constant 2:3 frame and
 * its blurred backdrop are gone, per the client.
 */
.oxa-pdp__gallery {
  max-width: 720px;
  min-width: 0;
}

/*
 * The rail only exists with 2+ photos, so the grid does too — a single-photo
 * product keeps its stage at the gallery's full width, no dead left track.
 */
.oxa-pdp__gallery:has(.oxa-pdp__thumbs) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.75rem, 1.2vw, 1rem);
  align-items: start;
}

.oxa-pdp__stage {
  position: relative; /* the sale badge anchors to this */
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  width: 100%;
}

/* Set width, natural height. */
.oxa-pdp__stage-img {
  display: block;
  width: 100%;
  height: auto;
}

.oxa-pdp__thumbs {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/*
 * Small uniform tiles — 3:4, cover. A thumbnail exists to be recognised,
 * not read, so a trimmed edge is fine here in exchange for a tidy strip.
 */
.oxa-pdp__thumb {
  width: 72px;
  height: 96px;
  padding: 0;
  border: 1px solid var(--nesa-line);
  background: var(--nesa-cream);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

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

.oxa-pdp__thumb:hover { border-color: var(--nesa-ink-soft); }
.oxa-pdp__thumb.is-active { border-color: var(--nesa-ink); }

.oxa-pdp__thumb:focus-visible {
  outline: none;
  border-color: var(--nesa-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* The placeholder is line art on cream — give the empty stage its ground. */
.oxa-pdp__stage--placeholder { background: var(--nesa-cream); }

.oxa-pdp__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.5rem 0.9rem;
  background: var(--nesa-bg);
  color: var(--nesa-ink);
  font-family: var(--nesa-font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--nesa-track-wide);
  text-transform: uppercase;
  line-height: 1;
}

/* ── Summary column ──────────────────────────────────────────────────── */

.oxa-pdp__summary { min-width: 0; }

.oxa-pdp__summary-inner {
  position: sticky;
  /* Clear the header, which is not fixed but is tall enough to matter when a
   * long gallery scrolls past a short summary. */
  top: 2rem;
}

.oxa-pdp__eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__title {
  margin: 0 0 0.75rem;
  font-family: var(--nesa-font-serif);
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--nesa-ink);
}

.oxa-pdp__subtitle {
  margin: 0 0 1.75rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__subtitle p { margin: 0; }

.oxa-pdp__price {
  margin: 0 0 0.85rem;
  font-family: var(--nesa-font-sans);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--nesa-ink);
}

/* A variable product with one price shows a single figure, not a range. */
.oxa-pdp__price .woocommerce-Price-amount { white-space: nowrap; }

.oxa-pdp__price del {
  margin-right: 0.5rem;
  color: var(--nesa-ink-soft);
  text-decoration-thickness: 1px;
}

.oxa-pdp__price ins {
  text-decoration: none;
  color: var(--nesa-sale);
}

/* ── Rating ──────────────────────────────────────────────────────────── */

.oxa-pdp__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2.25rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.8125rem;
  color: var(--nesa-ink-soft);
}

.oxa-stars {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--nesa-ink);
}

/* Each star is one glyph; the half state is a filled star clipped down the
 * middle over an empty one, so no icon font or second asset is needed. */
.oxa-stars__star {
  position: relative;
  width: 0.95em;
  height: 0.95em;
  font-size: 1rem;
  line-height: 1;
}

.oxa-stars__star::before,
.oxa-stars__star::after {
  content: "★";
  position: absolute;
  inset: 0;
  font-size: 1em;
  line-height: 1;
}

.oxa-stars__star::before { color: var(--nesa-line); }
.oxa-stars__star::after { color: var(--nesa-ink); width: 0; overflow: hidden; }

.oxa-stars__star.is-full::after { width: 100%; }
.oxa-stars__star.is-half::after { width: 50%; }
.oxa-stars__star.is-empty::after { width: 0; }

.oxa-pdp__rating-value { color: var(--nesa-ink-soft); }
.oxa-pdp__rating-sep { color: var(--nesa-line); }

.oxa-pdp__rating-count {
  color: var(--nesa-ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.oxa-pdp__rating-count:hover { color: var(--nesa-ink); }

/* ── Option groups ───────────────────────────────────────────────────── */

.oxa-options {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.oxa-opt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.oxa-opt__label,
.oxa-opt__selected {
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

/* The chosen colour reads as a value, not a label. */
.oxa-opt__selected {
  color: var(--nesa-ink);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
}

.oxa-opt__toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A minus that becomes a plus when the panel is collapsed. */
.oxa-opt__toggle-icon,
.oxa-opt__toggle-icon::before {
  content: "";
  display: block;
  width: 13px;
  height: 1px;
  background: var(--nesa-ink);
}

.oxa-opt__toggle-icon::before {
  transform: rotate(90deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.oxa-opt.is-collapsed .oxa-opt__toggle-icon::before { opacity: 1; }

.oxa-opt.is-collapsed .oxa-opt__body { display: none; }

/* ── Colour circles ──────────────────────────────────────────────────── */

.oxa-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.oxa-swatch {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.oxa-swatch__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--oxa-swatch, #ccc);
  /* A hairline keeps white and nude circles visible against the page. */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.oxa-swatch:hover { border-color: var(--nesa-line); }

/*
 * The buy box's "Ngjyra" circles are links to the sibling products (one
 * product per colour is how the PIM models a garment), not form controls —
 * same look, no underline, and the block carries the spacing the form's
 * .oxa-options flex gap would otherwise provide.
 */
a.oxa-swatch { text-decoration: none; }
.oxa-pdp__colour-links { margin-bottom: 1.75rem; }

/* Selected reads as a ring around the circle, not a change to the circle. */
.oxa-swatch.is-selected { border-color: var(--nesa-ink); }

.oxa-swatch:focus-visible {
  outline: none;
  border-color: var(--nesa-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.oxa-swatch.is-disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* ── Size squares ────────────────────────────────────────────────────── */

.oxa-opt__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.oxa-sizerow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.oxa-sizerow__label {
  flex: 0 0 auto;
  min-width: 5.5rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

.oxa-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.oxa-size {
  min-width: 56px;
  height: 48px;
  padding: 0 0.75rem;
  border: 1px solid var(--nesa-line);
  border-radius: 0;
  background: var(--nesa-bg);
  color: var(--nesa-ink);
  font-family: var(--nesa-font-sans);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.oxa-size:hover { border-color: var(--nesa-ink); }

.oxa-size.is-selected {
  background: var(--nesa-ink);
  border-color: var(--nesa-ink);
  color: #fff;
}

.oxa-size:focus-visible {
  outline: none;
  border-color: var(--nesa-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/*
 * Unavailable: struck through with one diagonal line, still legible as a size
 * the product comes in but cannot be bought right now. Was a 45-degree hatch,
 * which at this size read as a texture rather than as "not available".
 *
 * A gradient rather than a rotated ::after, because the line then spans the box
 * corner to corner whatever the label's width — "S" and "XXL" are not the same
 * size button.
 */
.oxa-size.is-disabled {
  color: var(--nesa-ink-soft);
  border-color: var(--nesa-line);
  background-image: linear-gradient(
    to top right,
    transparent calc(50% - 0.5px),
    var(--nesa-ink-soft) calc(50% - 0.5px),
    var(--nesa-ink-soft) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  /* Not clickable, and no hover or focus ring to suggest otherwise. The button
   * stays in the tab order on purpose — see setDisabled() in oxa-pdp.js — so a
   * keyboard user can still read that the size exists and is sold out. */
  cursor: not-allowed;
  pointer-events: none;
}

.oxa-size.is-disabled:hover,
.oxa-size.is-disabled:focus-visible {
  border-color: var(--nesa-line);
  box-shadow: none;
}

/* A struck size can never be the selected one; if a variation sells out while
 * it is chosen, the strike wins over the filled state. */
.oxa-size.is-disabled.is-selected {
  background-color: var(--nesa-bg);
  color: var(--nesa-ink-soft);
}

/* ── Size guide + reset ──────────────────────────────────────────────── */

.oxa-options__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.5rem;
}

.oxa-sizeguide {
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* WooCommerce shows the Clear link only once a variation is chosen. */
.oxa-reset {
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.oxa-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/*
 * .single_add_to_cart_button is listed alongside .oxa-btn because a SIMPLE
 * product's button comes from WooCommerce's own template, which hard-codes
 * `single_add_to_cart_button button alt` and cannot be given the theme's
 * classes without overriding that template too. Without this, a simple product
 * showed a different-looking button from a variable one on the same site.
 */
.oxa-btn,
.oxa-pdp form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .oxa-btn {
  width: 100%;
  min-height: 64px;
  padding: 0 1.5rem;
  border: 1px solid var(--nesa-ink);
  border-radius: 0;
  font-family: var(--nesa-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.oxa-btn--primary,
.oxa-pdp form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .oxa-btn--primary {
  background: var(--nesa-ink);
  color: #fff;
}

.oxa-btn--primary:hover { background: #000; }

/*
 * Disabled — muted, not ghosted.
 *
 * WooCommerce disables the button until a variation is chosen. At opacity 0.35
 * a solid dark button turns into a pale grey shape that reads as a rendering
 * fault rather than as "pick a size first". A flat muted fill says the same
 * thing deliberately, and keeps the label legible.
 */
.oxa-btn[disabled],
.woocommerce div.product form.cart .oxa-btn[disabled] {
  background: var(--nesa-ink-soft);
  border-color: var(--nesa-ink-soft);
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}

/* ── Wishlist button (rendered by inc/b2b-wishlist.php) ──────────────── */

.oxa-pdp .bp-wish-single { margin-top: 0.75rem; }

.oxa-pdp .bp-wish-btn--single {
  width: 100%;
  min-height: 64px;
  padding: 0 1.5rem;
  border: 1px solid var(--nesa-line);
  border-radius: 0;
  background: var(--nesa-bg);
  color: var(--nesa-ink);
  font-family: var(--nesa-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: border-color 0.15s ease;
}

.oxa-pdp .bp-wish-btn--single:hover { border-color: var(--nesa-ink); }

.oxa-pdp .bp-wish-btn--single .bp-wish-ico {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Filled heart once the product is on the list. */
.oxa-pdp .bp-wish-btn--single.is-in .bp-wish-ico { fill: currentColor; }

/* ── Variation price / availability block ────────────────────────────── */

.oxa-pdp .single_variation_wrap { display: block; }

/* The resolved variation repeats the price WooCommerce already shows above. */
.oxa-pdp .woocommerce-variation-price { display: none; }

.oxa-pdp .woocommerce-variation-availability {
  margin: 0.75rem 0 0;
  font-family: var(--nesa-font-sans);
  font-size: 0.8125rem;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__oos {
  font-family: var(--nesa-font-sans);
  font-size: 0.875rem;
  color: var(--nesa-sale);
}

/* The native selects stay in the DOM — they are what actually posts — but are
 * removed from view. Not display:none: a hidden-but-present control keeps
 * WooCommerce's validation and focus behaviour intact. */
.oxa-opt__native--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Description below the fold ──────────────────────────────────────── */

.oxa-pdp__details {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--nesa-line);
  max-width: 70ch;
}

.oxa-pdp__details-title {
  margin: 0 0 1.25rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__details-body {
  font-family: var(--nesa-font-sans);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--nesa-ink);
}

.oxa-pdp__details-body p { margin: 0 0 1rem; }
.oxa-pdp__details-body p:last-child { margin-bottom: 0; }

/* ── Undo the previous PDP composition ───────────────────────────────── */

/*
 * The form is a plain block: the swatches, the size rows, the size guide and
 * the add-to-cart button stack in DOM order, which puts the button directly
 * above the wishlist button that follows the form.
 *
 * bp-product.css and bp-overrides.css both used to force
 * `display: flex !important` here, for the old layout's quantity-stepper-plus-
 * button row. Those rules are gone, so this no longer has to fight them.
 */
.oxa-pdp div.product form.cart,
body.single-product .oxa-pdp form.cart {
  display: block;
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
}

.oxa-pdp form.cart .quantity { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .oxa-pdp__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  /* One column now, so the gallery takes it all — as the concept does. */
  .oxa-pdp__gallery { max-width: none; }

  /* Sticky is meaningless once the columns stack. */
  .oxa-pdp__summary-inner { position: static; }

  .oxa-pdp__title { font-size: clamp(2rem, 8vw, 2.5rem); }
}

@media (max-width: 560px) {

  /* Smaller thumbs on phones so a five-photo strip still fits one row. */
  .oxa-pdp__thumb { width: 56px; height: 74px; }

  .oxa-sizerow {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .oxa-sizerow__label { min-width: 0; }

  .oxa-size { min-width: 52px; height: 44px; }

  .oxa-btn,
  .oxa-pdp .bp-wish-btn--single { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .oxa-swatch,
  .oxa-size,
  .oxa-btn,
  .oxa-opt__toggle-icon::before {
    transition: none;
  }
}

/* ── Info rows in the right column ─────────────────────────────────────────
 *
 * The summary is a single stack of rows — title, price, colour, size, cart,
 * then the collapsible detail panels. The description used to be a full-width
 * section below the grid; it belongs here with the rest of the product info.
 */

.oxa-pdp__panel {
  border-top: 1px solid var(--nesa-line);
}
.oxa-pdp__panel:last-of-type {
  border-bottom: 1px solid var(--nesa-line);
}

.oxa-pdp__panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--nesa-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--nesa-track-ui);
  color: var(--nesa-ink);
}

/* Both are needed: WebKit uses the pseudo-element, the rest honour list-style. */
.oxa-pdp__panel-summary::-webkit-details-marker { display: none; }

.oxa-pdp__panel-icon {
  flex: 0 0 auto;
  transition: rotate var(--oxa-dur) var(--oxa-ease);
}
.oxa-pdp__panel[open] .oxa-pdp__panel-icon { rotate: 45deg; }

.oxa-pdp__panel-body {
  padding-bottom: 1.25rem;
  font-size: var(--oxa-fs-md);
  line-height: 1.7;
  color: var(--nesa-ink-soft);
}
.oxa-pdp__panel-body p { margin: 0 0 0.75rem; }
.oxa-pdp__panel-body p:last-child { margin-bottom: 0; }

/* ── Related products ────────────────────────────────────────────────── */

/*
 * No rules needed.
 *
 * Related products render as a .nesa-rail now (inc/oxa-pdp.php swaps
 * WooCommerce's grid output for it), and the rail styles itself from
 * components/bestsellers/styles.css — including its own --nesa-gutter padding,
 * so it runs full-bleed to the same edge as the homepage rail.
 *
 * What was here capped section.related at a centred 1280px, which was right
 * while it was a four-column grid inside a capped page and wrong now.
 */

/* ── Add-to-cart toast ─────────────────────────────────────────────────── */

/*
 * On a product page the "added to cart" notice is a toast, not a banner.
 *
 * As a banner it pushed the whole product down the page and sat where nobody
 * looks after clicking a button near the bottom of the buy column. Fixed to the
 * bottom of the viewport it appears where the eye already is, and costs the
 * layout nothing.
 *
 * Scoped to body.single-product on purpose: the cart and checkout pages want a
 * banner in the flow, since there the notice IS the page's main content.
 */
body.single-product .woocommerce-message {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%);
  z-index: 120;

  width: max-content;
  max-width: calc(100vw - 2 * var(--nesa-gutter));
  margin: 0;
  padding: 1rem 1.25rem;

  background: var(--nesa-ink);
  /*
   * Flat black: no border, no shadow, no outline.
   *
   * The drop shadow (0 8px 30px) sat 8px below the box, so against the white
   * page its blurred edge read as a second outline around the toast rather than
   * as depth. WooCommerce's own `border-top: 3px solid` is zeroed here too — it
   * is what gives the stock notice its coloured stripe.
   */
  border: 0;
  outline: 0;
  border-radius: 10px;
  box-shadow: none;
  color: #fff;

  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--nesa-font-sans);
  font-size: var(--oxa-fs-md);

  animation: nesa-toast-in 220ms var(--oxa-ease) both;
}

@keyframes nesa-toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .woocommerce-message { animation: none; }
}

/* The tick, inherited from WooCommerce's icon font, needs to read on black. */
body.single-product .woocommerce-message::before {
  position: static;
  color: #fff;
  flex: 0 0 auto;
  line-height: 1;
}

/* "Shihni shportën" as a plain white link, not the dark pill it is elsewhere. */
body.single-product .woocommerce-message a.button {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  min-height: 0;
  color: #fff;
  font-family: var(--nesa-font-sans);
  font-size: var(--oxa-fs-md);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
body.single-product .woocommerce-message a.button:hover {
  background: none;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dismiss button, added by the script in inc/oxa-pdp.php. */
.nesa-toast__close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.nesa-toast__close:hover { opacity: 1; }

/* ── Store box + perks (concept B buy column) ───────────────────────────── */

.oxa-pdp__storebox {
  display: block;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--nesa-cream);
  font-family: var(--nesa-font-sans);
  font-size: 0.84375rem;
  line-height: 1.55;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__storebox-title {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink);
}

.oxa-pdp__storebox-link {
  display: inline-block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--nesa-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--nesa-line);
}
.oxa-pdp__storebox-link:hover { border-bottom-color: var(--nesa-ink); }

.oxa-pdp__perks {
  display: grid;
  gap: 0.5625rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--nesa-font-sans);
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__perks span { color: var(--nesa-ink); }

/* ── Size guide table (inside the accordion panel) ──────────────────────── */

.oxa-pdp__panel-body h4 {
  margin: 1.375rem 0 0.375rem;
  font-family: var(--nesa-font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  color: var(--nesa-ink-soft);
}

.oxa-pdp__guide-table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 0.84375rem;
}

.oxa-pdp__guide-table th,
.oxa-pdp__guide-table td {
  padding: 0.5625rem 0.625rem;
  border: 1px solid var(--nesa-line);
  text-align: left;
}

.oxa-pdp__guide-table th {
  background: var(--nesa-cream);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
}

/* ── Sticky buy bar ──────────────────────────────────────────────────────
 *
 * Hidden twice over until the script decides otherwise: the [hidden]
 * attribute it toggles, and a transform it animates from. The bar only
 * appears once the real add-to-cart button has left the viewport, so on a
 * short page it never shows at all.
 */

.oxa-stickybuy {
  position: fixed;
  inset: auto 0 0 0;
  /* Under the mobile drawer (70) and its overlay (60): an open menu must
   * cover the bar, not sit behind it. */
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem var(--nesa-gutter);
  /* iPhone home-indicator area — without this the button hugs the bezel. */
  padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
  background: var(--nesa-bg);
  border-top: 1px solid var(--nesa-line);
  transform: translateY(0);
  visibility: visible;
}

/*
 * `display: flex` above beats the UA's [hidden] { display: none }, so the
 * hidden state is spelt out: off-screen, unfocusable, and — after the slide
 * finishes — invisible. Under reduced motion it simply is not displayed.
 */
.oxa-stickybuy[hidden] {
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .oxa-stickybuy {
    transition: transform 0.25s var(--oxa-ease, ease), visibility 0s;
  }
  .oxa-stickybuy[hidden] {
    transition: transform 0.25s var(--oxa-ease, ease), visibility 0s 0.25s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oxa-stickybuy[hidden] { display: none; }
}

.oxa-stickybuy__thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 56px;
  object-fit: cover;
  background: var(--nesa-cream);
}

.oxa-stickybuy__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.oxa-stickybuy__name {
  display: block;
  overflow: hidden;
  font-family: var(--nesa-font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.oxa-stickybuy__sub {
  display: block;
  font-family: var(--nesa-font-sans);
  font-size: 0.8125rem;
  color: var(--nesa-ink-soft);
}

.oxa-stickybuy__sub del { margin-right: 0.4375rem; }
.oxa-stickybuy__sub ins { text-decoration: none; color: var(--nesa-sale); }

.oxa-stickybuy__btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 1.5rem;
  border: 1px solid var(--nesa-ink);
  background: var(--nesa-ink);
  color: #fff;
  font-family: var(--nesa-font-sans);
  font-size: 0.75rem;
  letter-spacing: var(--nesa-track-ui);
  text-transform: uppercase;
  cursor: pointer;
}
.oxa-stickybuy__btn:hover { background: var(--nesa-ink-soft); }

/* The add button while its background POST is in flight. */
.single_add_to_cart_button.is-adding {
  opacity: 0.6;
  cursor: wait;
}

/* The PDP while a colour swap is in flight. */
.oxa-pdp.is-swapping {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
