/* Aweh product page v2 (Black November redesign). Product pages only, loaded
   after aweh.css / aweh-3.css, so rules here are scoped under .pdx and win on
   specificity rather than by rewriting the older sheets. Maroon = --oxblood. */

.pdx {
  --px-maroon: var(--oxblood, oklch(0.32 0.115 22));
  --px-ink: var(--ink, oklch(0.14 0.022 30));
  --px-gold: var(--gold, oklch(0.72 0.13 78));
  --px-sand: var(--sand, oklch(0.96 0.016 80));
  --px-line: var(--border, oklch(0.16 0.022 32 / 14%));
  --px-r: 14px;
}

/* ===================================================================
   Layout
   =================================================================== */
.pdx .px-grid { display: grid; gap: 22px; margin-top: 10px; }
@media (min-width: 1024px) {
  .pdx .px-grid { grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr); gap: 56px; align-items: start; }
  .pdx .px-buy { position: sticky; top: 88px; align-self: start; }
}
@media (min-width: 1440px) { .pdx .px-grid { gap: 72px; } }

/* ===================================================================
   Gallery
   =================================================================== */
.px-gal { position: relative; display: grid; gap: 14px; min-width: 0; }
.px-gal__main { position: relative; min-width: 0; background: #fff; border-radius: var(--px-r); overflow: hidden; }
.px-gal__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; aspect-ratio: 1 / 1;
  transition: opacity 0.17s ease;
}
.px-gal__track::-webkit-scrollbar { display: none; }
.px-gal__track:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.px-gal.is-fading .px-gal__track { opacity: 0; }
.px-gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; cursor: zoom-in; }
.px-gal__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.px-gal__peek { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.px-gal__peek.is-on { opacity: 1; }

.px-gal__nav, .px-gal__zoom {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: color-mix(in oklch, #fff 92%, transparent); color: var(--px-ink);
  box-shadow: 0 6px 18px -8px rgba(30, 15, 10, 0.35); cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), background-color 0.2s;
}
.px-gal__nav svg, .px-gal__zoom svg { width: 20px; height: 20px; }
.px-gal__nav:hover, .px-gal__zoom:hover { background: #fff; transform: scale(1.06); }
.px-gal__nav:focus-visible, .px-gal__zoom:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
.px-gal__nav { top: 50%; margin-top: -22px; }
.px-gal__nav--prev { left: 12px; }
.px-gal__nav--next { right: 12px; }
.px-gal__nav[hidden] { display: none; }
.px-gal__zoom { top: 12px; right: 12px; }
.px-gal__count {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; margin: 0;
  padding: 5px 10px; border-radius: 999px; background: color-mix(in oklch, var(--px-ink) 78%, transparent); color: #fff;
  font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.02em;
}
.px-gal.is-single .px-gal__count { display: none; }
.px-gal__dots { position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; max-width: 60%; flex-wrap: wrap; justify-content: center; }
.px-gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklch, var(--px-ink) 22%, transparent); transition: transform 0.2s, background-color 0.2s; }
.px-gal__dots i.is-on { background: var(--px-maroon); transform: scale(1.35); }

.px-gal__rail { display: none; }
.px-gal__thumb { padding: 0; border: 1.5px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; flex: 0 0 auto; transition: border-color 0.2s; }
.px-gal__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.px-gal__thumb:hover { border-color: color-mix(in oklch, var(--px-maroon) 40%, transparent); }
.px-gal__thumb.is-on { border-color: var(--px-maroon); }
.px-gal__thumb:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }

@media (max-width: 767px) {
  .px-gal__main { margin-inline: -20px; border-radius: 0; }
  .px-gal__nav { display: none; }
}
@media (min-width: 768px) {
  .px-gal__dots { display: none; }
  .px-gal__rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
  .px-gal__rail .px-gal__thumb { width: 72px; height: 72px; }
}
/* Order: photos first on phones and tablets, colours right under the thumb. */
.px-gal__main { order: 1; }
.px-gal__rail { order: 2; }
.px-cstrip { order: 3; }
.px-gal__more { order: 4; display: none; }
.px-gal__peek { inset: auto; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; }

/* Desktop: every photo of the colour in a 2-column grid, hero across both. */
@media (min-width: 1024px) {
  .px-gal { gap: 16px; }
  .px-cstrip { order: 0; }
  .px-gal__main { background: transparent; border-radius: 0; overflow: visible; }
  .px-gal__more { order: 2; }
  .px-gal__rail { display: none; }
  .px-gal__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; aspect-ratio: auto; scroll-snap-type: none; }
  .px-gal__slide { aspect-ratio: 1 / 1; background: #fff; border-radius: var(--px-r); overflow: hidden; }
  .px-gal__slide:first-child { grid-column: 1 / -1; }
  .px-gal:not(.is-expanded) .px-gal__slide:nth-child(n+8) { display: none; }
  .px-gal__nav, .px-gal__count, .px-gal__zoom, .px-gal__dots { display: none !important; }
  .px-gal__peek { border-radius: var(--px-r); }
  .px-gal__slide img { transition: transform 0.6s var(--ease-out-expo); }
  .px-gal__slide:hover img { transform: scale(1.03); }
  .px-gal__more:not([hidden]) {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
    border: 1.5px solid var(--px-line); border-radius: 12px; background: var(--background); color: var(--foreground);
    font: 700 0.9375rem/1 var(--font-sans); cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
  }
  .px-gal__more:hover { border-color: var(--px-maroon); }
  .px-gal__more:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
}

/* Colour strip under the photos */
.px-cstrip__label { margin: 0 0 8px; font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.px-cstrip__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.px-cstrip__row::-webkit-scrollbar { display: none; }
.px-cstrip__opt {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--px-line); border-radius: 999px;
  background: var(--background); color: var(--foreground); font: 500 0.8125rem/1.2 var(--font-sans); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.px-cstrip__opt img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 1px var(--px-line); }
.px-cstrip__opt:hover { border-color: color-mix(in oklch, var(--px-maroon) 45%, transparent); }
.px-cstrip__opt[aria-pressed="true"] { border-color: var(--px-maroon); background: color-mix(in oklch, var(--px-maroon) 6%, var(--background)); }
.px-cstrip__opt:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
.px-cstrip__opt.is-dead { opacity: 0.6; }
.px-cstrip__opt.is-dead img { filter: grayscale(1); }
.px-cstrip__opt em { font-style: normal; color: var(--muted-foreground); }

/* Full-screen viewer */
.px-lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--px-ink); overflow: hidden; }
.px-lb::backdrop { background: #fff; }
.px-lb__bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 18px; }
.px-lb__count { margin: 0; font: 600 0.875rem/1 var(--font-sans); }
.px-lb__close, .px-lb__nav { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: color-mix(in oklch, var(--px-ink) 6%, #fff); color: var(--px-ink); cursor: pointer; }
.px-lb__close svg, .px-lb__nav svg { width: 22px; height: 22px; }
.px-lb__close:focus-visible, .px-lb__nav:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
.px-lb__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.px-lb__track::-webkit-scrollbar { display: none; }
.px-lb__track:focus { outline: none; }
.px-lb__slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; display: grid; place-items: center; padding: 64px 12px 24px; touch-action: pan-x pan-y pinch-zoom; }
.px-lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.px-lb__nav { position: absolute; z-index: 3; top: 50%; margin-top: -24px; }
.px-lb__nav--prev { left: 16px; }
.px-lb__nav--next { right: 16px; }
@media (hover: none) { .px-lb__nav { display: none; } }

/* ===================================================================
   Buy box
   =================================================================== */
.px-buy { min-width: 0; }
.px-buy__in { display: grid; gap: 18px; }
.px-head { display: grid; gap: 8px; }
.px-brand { margin: 0; font: 700 0.75rem/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--px-maroon); }
.aweh2 .pdx .px-title, .pdx .px-title {
  margin: 0; max-width: 30ch;
  font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.4rem, 2.1vw, 1.95rem); line-height: 1.16; letter-spacing: -0.015em;
  text-transform: none; color: var(--foreground); overflow-wrap: break-word;
}
.pdx .px-head .ratingline { margin: 2px 0 0; font-size: 0.875rem; }

.px-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.px-price__now { font: 700 2rem/1.05 var(--font-sans); letter-spacing: -0.02em; color: var(--foreground); }
.px-price__now del, .px-price__now .rrp { font-size: 1.05rem; font-weight: 500; color: var(--muted-foreground); }
.px-price__now ins { text-decoration: none; }
.px-price__now .price-from { font-size: 0.95rem; font-weight: 600; color: var(--muted-foreground); margin-right: 4px; }
.pdp__save {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--px-maroon); color: var(--px-sand);
  font: 700 0.875rem/1.1 var(--font-sans); letter-spacing: 0;
}
.pdp__save[hidden] { display: none; }
.pdp__save .woocommerce-Price-amount { font: inherit; color: inherit; }

.pdp__bn { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--px-ink); color: var(--px-sand); font-size: 0.875rem; line-height: 1.4; }
.pdp__bn b { color: #fff; }
.pdp__bnchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--px-maroon); color: var(--px-sand); font: 700 0.6875rem/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.pdp__bnchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--px-gold); }
.pdp__bn--soon { background: color-mix(in oklch, var(--px-maroon) 7%, transparent); color: var(--foreground); }
.pdp__bn[hidden] { display: none; }

.px-stock { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 0.9rem; color: color-mix(in oklch, var(--foreground) 82%, transparent); }
.px-low { padding: 3px 9px; border-radius: 999px; background: color-mix(in oklch, var(--warn) 10%, transparent); color: var(--warn); font-weight: 700; font-size: 0.8rem; }
.px-low[hidden] { display: none; }

/* ---- Options ---- */
.pdx .pdp__form table.variations { margin: 0; }
.pdx .pdp__form table.variations td { margin-bottom: 18px; }
.pdx .pdp__form .vpick { font-size: 0.9375rem; margin: 0 0 10px; }
.pdx .pdp__form .cfvsw-swatches-container { display: flex; flex-wrap: wrap; gap: 8px; }
.pdx .pdp__form .cfvsw-swatches-option {
  min-height: 46px !important; padding: 0 16px !important; border-radius: 12px !important;
  border: 1.5px solid var(--px-line) !important; font: 600 0.875rem/1.2 var(--font-sans) !important;
}
.pdx .pdp__form .cfvsw-swatches-option.cfvsw-selected-swatch { border-color: var(--px-maroon) !important; background: color-mix(in oklch, var(--px-maroon) 7%, var(--background)) !important; color: var(--px-maroon) !important; box-shadow: 0 0 0 1px var(--px-maroon); }

/* Colour tiles: the real frame in that colour, its name underneath */
.pdx .pdp__form .cfvsw-swatches-container[swatches-attr*="colo"] .cfvsw-swatches-option {
  width: 88px !important; min-width: 0 !important; min-height: 0 !important; height: auto !important;
  padding: 6px 6px 8px !important; align-items: stretch !important;
}
.pdx .pdp__form .cfvsw-swatches-container[swatches-attr*="colo"] .cfvsw-swatch-inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; line-height: 1.2; text-align: center; white-space: normal; overflow-wrap: anywhere;
}
.pdx .pdp__form .cfvsw-swatches-option[data-swatch-shot] .cfvsw-swatch-inner::before {
  width: 74px !important; height: 52px !important; border-radius: 8px !important;
  background-size: contain !important; background-repeat: no-repeat; background-color: #fff !important;
}
.pdx .pdp__form .cfvsw-swatches-option[data-swatch-colour] .cfvsw-swatch-inner::before { width: 34px !important; height: 34px !important; margin: 8px 0 4px; }
.pdx .pdp__form .cfvsw-swatches-option[data-aweh-dead] { opacity: 0.55; }
.pdx .pdp__form .cfvsw-swatches-option[data-aweh-dead]::after { left: 6px; right: 6px; top: 40%; height: 1.5px; transform: rotate(-24deg); }
.pdx .pdp__form .reset_variations { min-height: 32px; margin: 0 0 6px !important; font-size: 0.75rem; }

/* ---- The add-to-bag row: stepper + button, then Buy now ---- */
.pdx .pdp__form .woocommerce-variation-add-to-cart,
.pdx .pdp__form form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.pdx .pdp__form form.cart:not(.variations_form) > .upsell,
.pdx .pdp__form .woocommerce-variation-add-to-cart > .upsell { flex: 1 1 100%; margin: 0 0 4px; }
.pdx .pdp__form .single_variation:not(:empty) { margin: 0 0 12px; font-size: 0.9rem; }
.pdx .pdp__form .single_variation .price { display: none; }
.pdx .pdp__form .woocommerce-variation-availability .in-stock { display: none; }
.pdx .pdp__form .quantity.px-qty { display: inline-flex; align-items: center; height: 52px; margin: 0; border: 1.5px solid var(--px-line); border-radius: 12px; overflow: hidden; background: var(--background); }
.pdx .pdp__form .quantity.px-qty input.qty {
  width: 44px !important; min-height: 0 !important; height: 100%; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent;
  font: 700 1rem/1 var(--font-sans) !important; text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.pdx .pdp__form .quantity.px-qty input.qty::-webkit-inner-spin-button,
.pdx .pdp__form .quantity.px-qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.px-qty__btn { width: 40px; height: 100%; border: 0; background: transparent; color: var(--foreground); font: 500 1.25rem/1 var(--font-sans); cursor: pointer; }
.px-qty__btn:hover { background: color-mix(in oklch, var(--foreground) 6%, transparent); }
.px-qty__btn:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: -2px; }
.pdx .pdp__form .quantity:not(.px-qty) input.qty { height: 52px; min-height: 52px !important; border-radius: 12px !important; }

.pdx .pdp__form .single_add_to_cart_button,
.pdx .pdp__form button.single_add_to_cart_button {
  flex: 1 1 150px; height: 52px; min-height: 52px !important; padding: 0 24px !important;
  border: 0 !important; border-radius: 12px !important;
  background: var(--px-maroon) !important; color: var(--px-sand) !important;
  font: 700 1rem/1 var(--font-sans) !important; letter-spacing: 0.01em !important; text-transform: none !important;
  box-shadow: 0 10px 24px -14px color-mix(in oklch, var(--px-maroon) 90%, transparent); animation: none !important;
  transform: none; transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}
.pdx .pdp__form .single_add_to_cart_button:hover { background: color-mix(in oklch, var(--px-maroon) 86%, #000) !important; }
.pdx .pdp__form .single_add_to_cart_button:active { transform: scale(0.985) !important; }
.pdx .pdp__form .single_add_to_cart_button:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 3px; }
.pdx .pdp__form .single_add_to_cart_button.disabled { opacity: 0.6; cursor: pointer; }
.pdx .pdp__form .pdp__buynow,
.pdx .pdp__form button.pdp__buynow {
  flex: 1 1 100%; height: 48px; min-height: 48px !important; padding: 0 20px !important;
  border: 1.5px solid var(--foreground) !important; border-radius: 12px !important;
  background: transparent !important; color: var(--foreground) !important;
  font: 700 0.9375rem/1 var(--font-sans) !important; letter-spacing: 0.01em !important; text-transform: none !important;
  box-shadow: none !important; animation: none !important; cursor: pointer;
}
.pdx .pdp__form .pdp__buynow:hover { background: var(--foreground) !important; color: var(--background) !important; }
.pdx .pdp__form .pdp__buynow:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 3px; }

/* ---- Move cloth: one compact toggle row ---- */
.pdx .pdp__form .upsell { position: relative; margin: 0 0 14px; }
.upsell__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.upsell__label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--px-line); border-radius: 12px; background: var(--background); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.upsell__label:hover { border-color: color-mix(in oklch, var(--px-maroon) 40%, transparent); }
.upsell__box { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: color-mix(in oklch, var(--foreground) 18%, transparent); transition: background-color 0.2s; }
.upsell__box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease-out-expo); }
.upsell__input:checked + .upsell__label { border-color: var(--px-maroon); background: color-mix(in oklch, var(--px-maroon) 5%, var(--background)); }
.upsell__input:checked + .upsell__label .upsell__box { background: var(--px-maroon); }
.upsell__input:checked + .upsell__label .upsell__box::after { transform: translateX(16px); }
.upsell__input:focus-visible + .upsell__label { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
.upsell__text { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; flex: 1; font-size: 0.875rem; line-height: 1.35; }
.upsell__text b { font-weight: 700; }
.upsell__price { font-weight: 700; color: var(--px-maroon); white-space: nowrap; }
.upsell__text small { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted-foreground); }

/* ---- Messages ---- */
.pdx .pdp__form td.is-missing .cfvsw-swatches-option { border-color: color-mix(in oklch, var(--warn) 70%, transparent) !important; }
.pdx .pdp__form td.is-missing .vpick { color: var(--warn); font-weight: 700; }
.pdp__err { flex: 1 1 100%; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in oklch, var(--warn) 8%, transparent); border: 1px solid color-mix(in oklch, var(--warn) 30%, transparent); color: var(--foreground); font-size: 0.875rem; line-height: 1.45; }
.pdp__err[hidden] { display: none; }
.pdp__err button, .vnote__try { padding: 0; border: 0; background: none; cursor: pointer; color: var(--px-maroon); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.vnote__try:focus-visible, .pdp__err button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 2px; }
.vnote a { font-weight: 600; }

/* ---- Delivery promise ---- */
.px-ship { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--px-line); border-radius: var(--px-r); background: var(--card); }
.px-ship p { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 0.875rem; line-height: 1.5; color: color-mix(in oklch, var(--foreground) 84%, transparent); }
.px-ship svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--px-maroon); }
.px-ship b { color: var(--foreground); }
.px-ship__pairs { display: flex; align-items: center; gap: 6px; padding-left: 28px; font-size: 0.75rem; color: var(--muted-foreground); }
.px-ship__pairs i { width: 34px; height: 6px; border-radius: 999px; background: color-mix(in oklch, var(--foreground) 12%, transparent); }
.px-ship__pairs i.is-on { background: var(--px-maroon); }
.px-ship__pairs span { margin-left: 4px; }

/* ---- Trust row ---- */
.px-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.px-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.px-trust svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--px-maroon); }

/* ---- Accordions ---- */
.px-acc { border-top: 1px solid var(--px-line); }
.px-acc__item { border-bottom: 1px solid var(--px-line); }
.px-acc__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; cursor: pointer; list-style: none; font: 700 0.9375rem/1.2 var(--font-sans); }
.px-acc__item summary::-webkit-details-marker { display: none; }
.px-acc__item summary span { display: grid; place-items: center; transition: transform 0.25s var(--ease-out-expo); }
.px-acc__item summary svg { width: 18px; height: 18px; }
.px-acc__item[open] summary span { transform: rotate(180deg); }
.px-acc__item summary:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
.px-acc__body { padding: 0 0 18px; font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }
.px-acc__body h1, .px-acc__body h2, .px-acc__body h3 { font-family: var(--font-sans); font-size: 1rem; line-height: 1.4; text-transform: none; margin: 14px 0 6px; }
.px-acc__body ul { padding-left: 18px; }
.px-spec { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.85rem; }
.px-spec th, .px-spec td { padding: 8px 0; border-bottom: 1px solid var(--px-line); text-align: left; vertical-align: top; }
.px-spec th { width: 40%; font-weight: 600; color: var(--muted-foreground); }

.pdx .pdp__secure { margin: 0; font-size: 0.8125rem; color: var(--muted-foreground); }

/* ---- Whole product sold out ---- */
.pdp__soldout { padding: 18px; border: 1px solid var(--px-line); border-radius: var(--px-r); background: var(--card); }
.pdp__soldout-h { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: var(--px-maroon); }
.pdp__soldout-p { margin: 8px 0 14px; font-size: 0.9375rem; line-height: 1.5; }
.pdp__soldout-wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; background: var(--px-maroon); color: var(--px-sand); font-weight: 700; text-decoration: none; }
.pdp__soldout-wa:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.pdp__soldout-wa svg { width: 18px; height: 18px; }
.pdp__soldout-k { margin: 18px 0 8px; color: var(--muted-foreground); }
.pdp__alts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdp__alts a { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--px-line); border-radius: 10px; background: var(--background); color: inherit; text-decoration: none; }
.pdp__alts a:hover { border-color: var(--px-maroon); }
.pdp__alts img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; flex: 0 0 auto; }
.pdp__alts span { display: grid; gap: 2px; font-size: 0.875rem; line-height: 1.35; }

/* ---- Sticky mini bar: normal button proportions ---- */
.stickybuy .stickybuy__btn { min-height: 46px; border-radius: 12px; }
.stickybuy.is-ready .stickybuy__btn { background: var(--oxblood, #6b1f24); border-color: var(--oxblood, #6b1f24); color: var(--sand, #f6f1ea); }

/* ===================================================================
   Reviews under the buy box (aweh-reviews.php markup)
   =================================================================== */
#reviews, .rvtop { scroll-margin-top: 96px; }
.rvtop { margin: 48px 0 8px; padding: 24px 18px; border-radius: 16px; background: color-mix(in oklch, var(--px-maroon) 5%, var(--background)); border: 1px solid color-mix(in oklch, var(--px-maroon) 14%, transparent); }
.rvtop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.rv .rvtop__kick { margin: 0 0 6px; color: var(--px-maroon); }
.rv .rvtop__h { margin: 0; font-family: var(--font-display); font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.05; text-transform: uppercase; color: var(--px-maroon); }
.rv .rvtop__score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; font-size: 0.9375rem; }
.rvtop__score b { font-size: 1.125rem; }
.rvtop__n { color: var(--muted-foreground); }
.rv .rvtop__src { margin: 6px 0 0; font-size: 0.8125rem; color: var(--muted-foreground); }
.rv .rvtop__grid { margin: 0; }
.rvtop .rv-card { background: var(--background); }
.rvtop__all { min-height: 44px; }
@media (min-width: 1024px) {
  .rvtop { padding: 30px 32px; }
  .rv .rvtop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rv-badge--tk { color: var(--px-maroon, #6b1f24); }
.rv .rv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv-photo { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.rv-photo:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.rv-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s var(--ease-out-expo); }
.rv-photo:hover .rv-photo__img { transform: scale(1.05); }
.rvlb { max-width: min(92vw, 900px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #1f1410; }
.rvlb::backdrop { background: rgba(20, 10, 8, 0.78); }
.rvlb img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; object-fit: contain; }
.rvlb__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20, 10, 8, 0.6); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rvlb__close:focus-visible { outline: 2px solid #c9a14a; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .px-gal__track, .px-gal__peek, .px-gal__nav, .px-gal__zoom, .px-gal__dots i, .upsell__label, .upsell__box, .upsell__box::after, .px-acc__item summary span, .rv-photo__img { transition: none !important; }
  .px-gal__nav:hover, .px-gal__zoom:hover, .rv-photo:hover .rv-photo__img { transform: none; }
}
/* The header now scrolls with the page here, so the old fixed-header offset is just a gap. */
main.pdp { padding-top: clamp(12px, 2vw, 28px); }
/* Keep the WhatsApp launcher clear of the buy row and the sticky buy bar. */
body:has(main.pdp) .walaunch { bottom: 96px; }
@media (max-width: 767px) { body:has(main.pdp) .walaunch { bottom: 88px; } }

/* aweh-3.css pins the launcher bottom-left with !important on phones, over the title. */
@media (max-width: 767px) {
  body:has(main.pdp) .walaunch { left: auto !important; right: 14px !important; bottom: 92px !important; align-items: flex-end; }
  body:has(main.pdp).has-stickybuy .walaunch { bottom: 96px !important; }
}

/* While the bag request runs (Modern Cart adds .moderncart-loading), say so. */
.single_add_to_cart_button.moderncart-loading,
.single_add_to_cart_button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.single_add_to_cart_button.moderncart-loading::after,
.single_add_to_cart_button.is-loading::after {
  content: "Adding to bag\2026"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font: inherit; font-weight: 600;
}
.single_add_to_cart_button.moderncart-loading::before,
.single_add_to_cart_button.is-loading::before {
  content: ""; position: absolute; left: calc(50% - 86px); top: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: awehspin .7s linear infinite;
}
@keyframes awehspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .single_add_to_cart_button.moderncart-loading::before, .single_add_to_cart_button.is-loading::before { animation: none; } }
/* One spinner, beside the label (Modern Cart's own sat on top of the text). */
.single_add_to_cart_button.moderncart-loading, .single_add_to_cart_button.is-loading { color: #fff !important; padding-left: 44px !important; opacity: .92; }
.single_add_to_cart_button.moderncart-loading::after, .single_add_to_cart_button.is-loading::after { content: none !important; display: none !important; }
.single_add_to_cart_button.moderncart-loading::before, .single_add_to_cart_button.is-loading::before { left: calc(50% - 72px) !important; }

/* =====================================================================
   Round 3: badge palette, Black November chip, delivery timeline,
   sticky bar polish, small-screen fit.
   ===================================================================== */
.pdx .pdp__save.px-save { padding: 0; overflow: hidden; align-items: stretch; border-radius: 999px; background: #FFE3D6; color: #B42318; font: 700 0.875rem/1 var(--font-sans); }
.pdx .pdp__save.px-save[hidden] { display: none; }
.px-save__amt { display: flex; align-items: center; padding: 7px 10px 7px 12px; white-space: nowrap; }
.px-save__pct { display: flex; align-items: center; padding: 7px 11px; background: #C93A22; color: #fff; white-space: nowrap; }
.px-price__now { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.125rem); }

.pdx .pdp__bn, .pdx .pdp__bn--soon { background: #14100E; color: #F3EDE4; border-radius: 12px; }
.pdx .pdp__bnchip { background: transparent; color: #D9B26B; border: 1px solid #D9B26B; }
.pdx .pdp__bnchip::before { background: #D9B26B; }

/* Delivery timeline */
.pdx .px-ship { gap: 12px; }
.px-tl { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: start; }
.px-tl__item { min-width: 0; }
.px-tl__step {
  display: grid; justify-items: center; align-content: start; gap: 5px; width: 100%; min-height: 44px;
  margin: 0; padding: 6px 2px 8px; border: 0; border-radius: 12px; background: transparent; color: inherit;
  font: inherit; text-align: center; cursor: pointer; transition: background-color 0.2s; -webkit-tap-highlight-color: transparent;
}
.px-tl__step:hover, .px-tl__step[aria-pressed="true"] { background: color-mix(in oklch, var(--px-maroon) 7%, transparent); }
.px-tl__step:focus-visible { outline: 2px solid var(--px-maroon); outline-offset: 2px; }
.px-tl__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--background); border: 1.5px solid color-mix(in oklch, var(--px-maroon) 30%, transparent); color: var(--px-maroon); transition: background-color 0.2s, color 0.2s; }
.pdx .px-ship .px-tl__ico svg { width: 18px; height: 18px; margin: 0; color: inherit; }
.px-tl__step[aria-pressed="true"] .px-tl__ico { background: var(--px-maroon); border-color: var(--px-maroon); color: #fff; }
.px-tl__k { font: 700 0.75rem/1.2 var(--font-sans); color: var(--foreground); overflow-wrap: anywhere; }
.px-tl__d { font: 600 0.75rem/1.25 var(--font-sans); color: var(--px-maroon); overflow-wrap: anywhere; }
.px-tl__arrow { position: relative; display: block; height: 2px; margin-top: 25px; border-radius: 2px; background: color-mix(in oklch, var(--foreground) 12%, transparent); }
.px-tl__arrow i { position: absolute; inset: 0; border-radius: inherit; background: var(--px-maroon); transform: scaleX(0); transform-origin: left center; transition: transform 0.7s var(--ease-out-expo); }
.px-tl__arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--px-maroon); border-right: 2px solid var(--px-maroon); transform: translateY(-50%) rotate(45deg); opacity: 0; transition: opacity 0.3s ease 0.55s; }
.px-tl.is-in .px-tl__arrow i { transform: scaleX(1); }
.px-tl.is-in .px-tl__arrow ~ .px-tl__arrow i { transition-delay: 0.45s; }
.px-tl.is-in .px-tl__arrow::after { opacity: 1; animation: pxNudge 1.8s ease-in-out 1.2s 3; }
.px-tl.is-in .px-tl__arrow ~ .px-tl__arrow::after { transition-delay: 1s; }
@keyframes pxNudge { 0%, 100% { transform: translate(0, -50%) rotate(45deg); } 50% { transform: translate(3px, -50%) rotate(45deg); } }
.pdx .px-ship .px-tl__tip { display: block; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--background); font-size: 0.8125rem; line-height: 1.45; }
.pdx .px-ship .px-tl__tip[hidden] { display: none; }
.pdx .px-ship__free { padding-top: 12px; border-top: 1px solid var(--px-line); }
@media (max-width: 359px) {
  .px-tl { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); }
  .px-tl__k, .px-tl__d { font-size: 0.6875rem; }
  .px-tl__ico { width: 34px; height: 34px; }
  .px-tl__arrow { margin-top: 23px; }
}

/* Sticky mini bar: just the price that will be paid, and room for the name on small phones. */
.stickybuy__price del, .stickybuy__price .rrp { display: none; }
.stickybuy__price { font-weight: 700; }
@media (max-width: 430px) {
  .stickybuy .stickybuy__btn { min-width: 0; padding: 0 16px; }
  .stickybuy__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
}

/* Small phones: the price row and options never clip. */
@media (max-width: 380px) {
  .px-price { gap: 8px 10px; }
  .pdx .pdp__form .cfvsw-swatches-container[swatches-attr*="colo"] .cfvsw-swatches-option { width: 80px !important; }
  .px-trust li { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .px-tl__arrow i { transform: scaleX(1); transition: none; }
  .px-tl__arrow::after { opacity: 1; transition: none; animation: none !important; }
  .px-tl__step, .px-tl__ico, .px-gal__slide img, .px-gal__more { transition: none; }
  .px-gal__slide:hover img { transform: none; }
}

/* Desktop product pages: the buy box lives on the right, so the WhatsApp launcher moves to the gallery side. */
@media (min-width: 768px) { body:has(main.pdp) .walaunch { left: 24px !important; right: auto !important; bottom: 24px !important; align-items: flex-start; } }

/* =====================================================================
   Slop audit (30 Oct): one colour picker on desktop, quiet campaign line,
   one save badge, plain text links for secondary actions.
   ===================================================================== */
@media (min-width: 1024px) { .pdx .px-cstrip { display: none; } }
.px-cstrip__label { display: none; }
.pdx .px-cstrip__opt em { font-style: normal; }

.pdx .px-bn { margin: 0; padding: 1px 0 1px 10px; border-left: 2px solid #D9B26B; font-size: 0.875rem; line-height: 1.45; color: var(--foreground); }
.pdx .px-bn[hidden] { display: none; }

.pdx .pdp__save.px-save { padding: 6px 10px; border-radius: 8px; background: #FFE3D6; color: #B42318; font: 700 0.875rem/1.1 var(--font-sans); }

.pdx .pdp__secure { display: block; }
.pdx .pdp__soldout-k { margin: 18px 0 8px; font-size: 0.875rem; font-weight: 600; color: var(--foreground); }

@media (min-width: 1024px) {
  .pdx .px-gal .px-gal__more:not([hidden]) { justify-content: flex-start; width: auto; min-height: 44px; padding: 0; border: 0; background: none; color: var(--px-maroon); text-decoration: underline; text-underline-offset: 3px; }
}

.pdx .rvtop__note { margin: 0 0 6px; font-size: 0.8125rem; color: var(--muted-foreground); }
.pdx a.rvtop__all { display: inline-flex; align-items: center; min-height: 44px; color: var(--px-maroon); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.pdx .rv .rv-empty { border: 1px solid var(--border); }
.pdx .rv .rv-empty__line { margin: 0; font-size: 1rem; line-height: 1.5; }
.pdx .rv .rv-empty .rv-write > summary.rv-btn,
.pdx .rv .rv-empty .rv-write[open] > summary.rv-btn {
  width: auto; min-height: 44px; padding: 0; border: 0; background: none; color: var(--px-maroon);
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px; justify-content: flex-start;
}
.pdx .rv .rv-empty .rv-write > summary .rv-btn__icon { display: none; }
.pdx .rv .rv-range { margin-top: 16px; }
