/* ─────────────────────────────────────────────────────────────────────
   AVENU — Product Detail Page
   Streetwear-flavoured PDP: 60/40 hero (gallery + sticky info column),
   highlights strip, accordion+lead, size-guide table, photo reviews,
   bundle row, related grid, recently-viewed placeholder.
   Mobile (≤768): single column, scroll-snap gallery, accordion full-width,
   bundle + related + recently become horizontal-scroll rails.
   ───────────────────────────────────────────────────────────────────── */

/* ── Section frame ───────────────────────────────────────────────────── */
.av-pdp {
  color: var(--color-text);
  background: var(--color-bg);
}
.av-pdp__breadcrumbs { padding-top: var(--space-5); }

.av-pdp__block {
  padding-block: var(--space-7);
}
.av-pdp__block--hero        { padding-top: var(--space-5); padding-bottom: var(--space-8); }
.av-pdp__block--highlights  { background: #FAFAF8; border-block: 1px solid var(--color-border); padding-block: 0; }
.av-pdp__block--sizeguide   { background: #FAFAF8; padding-block: var(--space-8); scroll-margin-top: 92px; }
.av-pdp__block--reviews     { padding-block: var(--space-8); scroll-margin-top: 92px; }
.av-pdp__block--bundle      { background: #F4F4F2; padding-block: var(--space-8); }
.av-pdp__block--related     { padding-block: var(--space-8); }
.av-pdp__block--recently    { padding-block: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--color-border); }

@media (max-width: 768px) {
  .av-pdp__block              { padding-block: var(--space-6); }
  .av-pdp__block--hero        { padding-top: var(--space-4); padding-bottom: var(--space-6); }
  .av-pdp__block--sizeguide,
  .av-pdp__block--reviews,
  .av-pdp__block--bundle,
  .av-pdp__block--related,
  .av-pdp__block--recently    { padding-block: var(--space-6); }
}

/* ─────────────────────────────────────────────────────────────────────
   1. HERO — gallery (left) + sticky info (right)
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-hero {
  display: grid;
  /* 7:5 split per the approved prototype (col-span-7 / col-span-5).
     Both columns flex so the gallery image fills its column with no dead-space gap. */
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 1024px) {
  .av-pdp-hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); }
}
@media (max-width: 900px) {
  .av-pdp-hero { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Gallery container fills its grid cell so the main image can grow with it. */
.av-pdp-gallery { width: 100%; }
.av-pdp-gallery__main-frame { max-height: none; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.av-pdp-gallery {
  display: flex;
  gap: var(--space-4);
}
.av-pdp-gallery__thumbs {
  display: flex; flex-direction: column;
  gap: var(--space-3);
  width: 72px;
  flex: 0 0 auto;
}
.av-pdp-thumb {
  width: 64px;
  height: 80px;
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f0ed;
  padding: 0;
  transition: border-color var(--transition-fast);
  position: relative;
}
.av-pdp-thumb:hover { border-color: rgba(0,0,0,0.2); }
.av-pdp-thumb.is-active { border-color: var(--color-text); }
.av-pdp-thumb__img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Video thumbnail: the poster frame with a play badge over it. */
.av-pdp-thumb--video { background: #1a1a1a; }
.av-pdp-thumb__play {
  position: absolute; inset: 0; margin: auto;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); color: #fff;
  pointer-events: none;
}

.av-pdp-gallery__main { flex: 1; min-width: 0; }
.av-pdp-gallery__main-frame {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 800px;
  background: linear-gradient(135deg, #efe8e2 0%, #d6c7bc 50%, #b09a8d 100%);
  overflow: hidden;
  border-radius: 2px;
}
.av-pdp-gallery__main-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.av-pdp-gallery__main-frame:hover .av-pdp-gallery__main-img { transform: scale(1.05); }
/* The video takes the photo's place in the frame; contain so nothing is cropped. */
.av-pdp-gallery__main-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; background: #000;
  border: 0;
  z-index: 1;
}
.av-pdp-gallery__mobile-slide video,
.av-pdp-gallery__mobile-slide iframe { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; border: 0; }
.av-pdp-gallery__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 6rem; color: rgba(255,255,255,0.7);
  font-weight: 700; letter-spacing: var(--tracking-eyebrow);
}

.av-pdp-gallery__save-chip {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  background: var(--color-accent);
  color: #FFF;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  border-radius: 3px;
}

.av-pdp-gallery__wishlist {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  color: var(--color-text);
}
.av-pdp-gallery__wishlist:hover { background: #FFF; transform: scale(1.04); }
.av-pdp-gallery__wishlist[data-active="true"],
.av-pdp-gallery__wishlist[data-in-wishlist] {
  color: var(--color-accent);
}
.av-pdp-gallery__wishlist[data-in-wishlist] svg {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

/* Overlay anchor — wishlist/share are children of __main (not __main-frame)
   so they survive the mobile breakpoint where the frame is display:none'd. */
.av-pdp-gallery__main { position: relative; }
.av-pdp-gallery__wishlist,
.av-pdp-gallery__share { z-index: 2; }

/* Share button — same circle as the wishlist button, stacked below it. */
.av-pdp-gallery__share {
  position: absolute;
  top: 64px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  color: var(--color-text);
}
.av-pdp-gallery__share:hover { background: #FFF; transform: scale(1.04); }

/* ── Pincode delivery check ─────────────────────────────────────────── */
.av-pincode { display: block; margin-top: var(--space-3); }
.av-pincode__row { display: flex; gap: 8px; }
.av-pincode__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border, #E5E5E5);
  border-radius: 4px;
  font-size: 14px;
  background: var(--color-surface, #FAFAFA);
  color: var(--color-text);
}
.av-pincode__input:focus { outline: 2px solid var(--color-accent); outline-offset: -1px; }
.av-pincode__btn {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--color-text);
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.av-pincode__btn:disabled { opacity: 0.6; cursor: wait; }
.av-pincode__result { margin: 6px 0 0; font-size: 13px; line-height: 1.4; min-height: 1em; }
.av-pincode[data-state="ok"] .av-pincode__result { color: #16A34A; }
.av-pincode[data-state="warn"] .av-pincode__result { color: #CA8A04; }
.av-pincode[data-state="fail"] .av-pincode__result { color: #EF4444; }
.av-pincode[data-state="checking"] .av-pincode__result { color: var(--color-text); opacity: 0.7; }

/* "Link copied" bubble — text comes from the merchant-editable
   data-copied-label attribute via attr(), shown for 2s after a desktop copy. */
.av-pdp-gallery__share[data-copied]::after {
  content: attr(data-copied-label);
  position: absolute;
  top: 50%; right: calc(100% + 8px);
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--color-text);
  color: #FFF;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.av-pdp-gallery__dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
}
.av-pdp-gallery__dot {
  display: inline-block;
  width: 6px; height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 999px;
  transition: width var(--transition-fast), background var(--transition-fast);
}
.av-pdp-gallery__dot.is-active {
  width: 24px;
  background: #FFF;
}

.av-pdp-gallery__mobile-rail { display: none; }

@media (max-width: 900px) {
  .av-pdp-gallery { flex-direction: column; gap: var(--space-3); }
  .av-pdp-gallery__thumbs { display: none; }
  .av-pdp-gallery__main-frame { aspect-ratio: 3/4; max-height: none; }
}
@media (max-width: 768px) {
  /* Hide the static main frame on small screens and replace with a
     scroll-snap rail of all images. */
  .av-pdp-gallery__main-frame { display: none; }
  .av-pdp-gallery__mobile-rail {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--container-pad-mobile) * -1);
    padding: 0 var(--container-pad-mobile);
  }
  .av-pdp-gallery__mobile-rail::-webkit-scrollbar { display: none; }
  .av-pdp-gallery__mobile-slide {
    flex: 0 0 88%;
    aspect-ratio: 3/4;
    background: var(--color-surface);
    scroll-snap-align: center;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
  }
  .av-pdp-gallery__mobile-slide img { width: 100%; height: 100%; object-fit: cover; }
}

/* ── Info column ─────────────────────────────────────────────────────── */
.av-pdp-info { min-width: 0; }
.av-pdp-info__sticky {
  position: sticky;
  top: 92px;
  align-self: start;
}
@media (max-width: 900px) { .av-pdp-info__sticky { position: static; } }

.av-pdp-info__brand {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.av-pdp-info__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

/* Rating row */
.av-pdp-info__rating {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.av-pdp-info__stars {
  display: inline-flex; align-items: center; gap: 2px;
  color: #F5A524;
}
.av-pdp-info__rating-value { font-weight: 500; color: var(--color-text); }
.av-pdp-info__rating-count {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.av-pdp-info__rating-count:hover { text-decoration: underline; }
.av-pdp-info__bestseller-sep { color: var(--color-text-muted); }
.av-pdp-info__bestseller {
  font-size: var(--text-xs);
  color: #137333;
  font-weight: 500;
}

/* Price block */
.av-pdp-info__price { margin-top: var(--space-5); }
.av-pdp-info__price-row {
  display: flex; align-items: baseline;
  gap: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.av-pdp-info__price-current {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}
.av-pdp-info__price-mrp {
  font-size: 15px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.av-pdp-info__price-off {
  display: inline-flex;
  padding: 4px 8px;
  background: #FDECEE;
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.av-pdp-info__tax {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--color-text-muted);
}
.av-pdp-info__emi {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Option blocks (color + size) */
.av-pdp-info__option { margin-top: var(--space-5); }
.av-pdp-info__option-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
}
.av-pdp-info__option-label { font-size: var(--text-sm); }
.av-pdp-info__option-name { color: var(--color-text-muted); }
.av-pdp-info__option-value { color: var(--color-text); font-weight: 500; margin-left: 4px; }
.av-pdp-info__option-meta { font-size: 11px; color: var(--color-text-muted); }

/* Color swatches */
.av-pdp-info__colors { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.av-pdp-color {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}
.av-pdp-color:hover { transform: scale(1.05); }
.av-pdp-color.is-active::after {
  content: ""; position: absolute; inset: -5px;
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
}

/* Size chips */
.av-pdp-info__size-guide {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.av-pdp-info__size-guide:hover { text-decoration: underline; text-underline-offset: 2px; }

.av-pdp-info__sizes { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.av-pdp-size {
  min-width: 56px;
  min-height: 44px;
  padding: 4px var(--space-3);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1;
}
.av-pdp-size__label { font-size: var(--text-sm); }
.av-pdp-size__sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.av-pdp-size.is-active .av-pdp-size__sub { color: rgba(255,255,255,0.7); }
.av-pdp-size:hover { border-color: var(--color-text); }
.av-pdp-size.is-active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.av-pdp-size.is-disabled,
.av-pdp-size:disabled {
  color: #BFBFBF;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #FAFAFA;
}
.av-pdp-size.is-disabled:hover,
.av-pdp-size:disabled:hover { border-color: rgba(0,0,0,0.18); }

.av-pdp-info__inventory {
  margin: var(--space-2) 0 0;
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Form: qty + ATC + Buy Now */
.av-pdp-info__form { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.av-pdp-info__qty {}
.av-pdp-info__qty-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.av-pdp-qty {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.av-pdp-qty__btn {
  width: 40px; height: 40px;
  background: var(--color-bg);
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
  color: var(--color-text);
}
.av-pdp-qty__btn:hover { background: #F5F5F5; }
.av-pdp-qty__input {
  width: 48px; height: 40px;
  border: 0; border-left: 1px solid rgba(0,0,0,0.08); border-right: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-size: var(--text-sm); font-weight: 600;
  background: var(--color-bg);
  appearance: textfield;
  -moz-appearance: textfield;
}
.av-pdp-qty__input::-webkit-outer-spin-button,
.av-pdp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Stock status — shown above the cart buttons when the selected variant
   is sold out OR when no variant matches the current option combination.
   Styled red and prominent so it's not missed; the buttons go disabled in
   sync. Hidden via the `hidden` attribute when the variant is available. */
.av-pdp-info__stock-status {
  margin: 0 0 var(--space-3);
  padding: 10px 14px;
  border: 1px solid rgba(225, 29, 42, 0.25);
  background: rgba(225, 29, 42, 0.06);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent, #E11D2A);
  display: flex; align-items: center; gap: 8px;
}
/* `display: flex` above overrides the UA default for [hidden], which would
   otherwise hide the empty banner. Re-assert the hidden behaviour with
   matching specificity so the banner disappears when the variant is
   available. */
.av-pdp-info__stock-status[hidden] { display: none; }
.av-pdp-info__stock-status::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") center/contain no-repeat;
}

.av-pdp-info__actions {
  display: flex; flex-direction: column;
  gap: var(--space-3);
}
.av-pdp-info__atc,
.av-pdp-info__buynow {
  width: 100%;
  padding: 16px 24px;
  border: 1.5px solid var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.av-pdp-info__atc {
  background: var(--color-text);
  color: var(--color-primary-text);
}
.av-pdp-info__atc:hover { background: #000; border-color: #000; }
.av-pdp-info__atc:disabled { background: var(--color-text-soft); border-color: var(--color-text-soft); cursor: not-allowed; }
.av-pdp-info__buynow {
  background: var(--color-bg);
  color: var(--color-text);
}
.av-pdp-info__buynow:hover { background: var(--color-text); color: var(--color-primary-text); }
.av-pdp-info__buynow:disabled { opacity: 0.5; cursor: not-allowed; }

/* Pincode block */
.av-pdp-info__pincode {
  margin-top: var(--space-5);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: var(--space-4);
}
.av-pdp-pincode__head {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
}
.av-pdp-pincode__row {
  display: flex;
}
.av-pdp-pincode__input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.18);
  border-right: none;
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: var(--font-body);
}
.av-pdp-pincode__input:focus { outline: none; border-color: var(--color-text); }
.av-pdp-pincode__btn {
  height: 44px;
  padding: 0 18px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.av-pdp-pincode__btn:hover { background: var(--color-text); color: var(--color-bg); }

.av-pdp-pincode__result {
  margin-top: var(--space-3);
  display: flex; flex-direction: column; gap: 6px;
}
.av-pdp-pincode__line {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: 12.5px;
}
.av-pdp-pincode__line--muted { color: var(--color-text-muted); }
.av-pdp-pincode__line-strong { font-weight: 500; color: var(--color-text); }
.av-pdp-pincode__line-muted { color: var(--color-text-muted); }
.av-pdp-pincode__bullet {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #F4F4F2;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.av-pdp-pincode__bullet--ok { background: #137333; color: #FFF; }

/* Trust strip — info-column version (2x2 on desktop, full-width on mobile) */
.av-pdp-info__trust {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.av-pdp-trust__item {
  display: flex; align-items: center; gap: 10px;
}
.av-pdp-trust__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F4F4F2;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-text);
}
.av-pdp-trust__icon img { width: 16px; height: 16px; object-fit: contain; }
.av-pdp-trust__text { font-size: var(--text-xs); line-height: 1.25; }
.av-pdp-trust__label { font-weight: 500; color: var(--color-text); }
.av-pdp-trust__sublabel { color: var(--color-text-muted); }

/* ─────────────────────────────────────────────────────────────────────
   2. HIGHLIGHTS strip — 4 across, soft surface band
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.av-pdp-highlight {
  display: flex; align-items: center; gap: 14px;
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid rgba(0,0,0,0.08);
}
.av-pdp-highlight:last-child { border-right: 0; }
.av-pdp-highlight__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #F4F4F2;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-text);
}
.av-pdp-highlight__icon img { width: 20px; height: 20px; object-fit: contain; }
.av-pdp-highlight__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.av-pdp-highlight__sublabel {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .av-pdp-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-pdp-highlight {
    padding: var(--space-4) var(--space-3);
  }
  .av-pdp-highlight:nth-child(2n) { border-right: 0; }
  .av-pdp-highlight:nth-child(-n+2) { border-bottom: 1px solid rgba(0,0,0,0.08); }
}

/* ─────────────────────────────────────────────────────────────────────
   3. ACCORDION — lead + 4 panels
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-accordion-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .av-pdp-accordion-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

.av-pdp-accordion-grid__lead .eyebrow { color: var(--color-text-muted); margin-bottom: var(--space-3); }
.av-pdp-accordion__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0;
}
.av-pdp-accordion__subtext {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 32rem;
}
.av-pdp-accordion__help {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: #F4F4F2;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text);
}
.av-pdp-accordion__help-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--color-text);
}

.av-pdp-accordion { display: flex; flex-direction: column; }
.av-pdp-accordion .accordion__item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.av-pdp-accordion .accordion__item { border-bottom: 1px solid rgba(0,0,0,0.08); border-top: 0; }
.av-pdp-accordion__btn {
  padding: var(--space-5) 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.av-pdp-accordion__panel {
  padding: 0 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.av-pdp-accordion__panel.rte p + p { margin-top: var(--space-3); }
.av-pdp-accordion__panel.rte ul { margin: var(--space-3) 0; padding-left: 1.2rem; list-style: disc; }
.av-pdp-accordion__panel.rte ol { margin: var(--space-3) 0; padding-left: 1.2rem; }
.av-pdp-accordion__panel.rte img { max-width: 100%; height: auto; border-radius: var(--radius-xs); margin-block: var(--space-3); }
.av-pdp-accordion__panel.rte video { max-width: 100%; border-radius: var(--radius-xs); margin-block: var(--space-3); }
/* Custom field IMAGE_LIST — 2-col grid that reflows to 1 col on mobile. */
.av-pdp-cf-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-block: var(--space-3); }
.av-pdp-cf-images img { width: 100%; height: auto; border-radius: var(--radius-xs); margin: 0; }
@media (max-width: 640px) { .av-pdp-cf-images { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────────────
   4. SIZE GUIDE table
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-sizeguide {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .av-pdp-sizeguide { grid-template-columns: 1fr; gap: var(--space-5); }
}

.av-pdp-sizeguide__lead .eyebrow { color: var(--color-text-muted); margin-bottom: var(--space-3); }
.av-pdp-sizeguide__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0;
}
.av-pdp-sizeguide__subtext {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.av-pdp-sizeguide__units {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
}
.av-pdp-sizeguide__unit {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 500;
}
.av-pdp-sizeguide__unit.is-active {
  border-color: rgba(0,0,0,0.08);
  background: var(--color-bg);
  color: var(--color-text);
}

.av-pdp-sizeguide__table-wrap {
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.av-pdp-sizeguide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.av-pdp-sizeguide__table thead {
  background: #F4F4F2;
}
.av-pdp-sizeguide__table th {
  text-align: left;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.av-pdp-sizeguide__table tbody tr { border-top: 1px solid rgba(0,0,0,0.08); }
.av-pdp-sizeguide__table td {
  padding: 14px var(--space-5);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.av-pdp-sizeguide__table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .av-pdp-sizeguide__table-wrap { overflow-x: auto; }
  .av-pdp-sizeguide__table th,
  .av-pdp-sizeguide__table td { padding: var(--space-3); white-space: nowrap; }
}

/* ─────────────────────────────────────────────────────────────────────
   5. PHOTO REVIEWS — aggregate (left) + cards (right)
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-reviews {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .av-pdp-reviews { grid-template-columns: 1fr; gap: var(--space-6); }
}

.av-pdp-reviews__aggregate .eyebrow { color: var(--color-text-muted); margin-bottom: var(--space-3); }
.av-pdp-reviews__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0;
}

.av-pdp-reviews__score-row {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin-top: var(--space-6);
}
.av-pdp-reviews__score {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.av-pdp-reviews__score-of {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.av-pdp-reviews__agg-stars {
  display: inline-flex; align-items: center; gap: 2px;
  color: #F5A524;
  margin-top: var(--space-2);
}
.av-pdp-reviews__agg-total {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
}
.av-pdp-reviews__agg-total strong { color: var(--color-text); font-weight: 500; }

.av-pdp-reviews__bars {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.av-pdp-reviews__bar-row {
  display: grid;
  grid-template-columns: 24px 14px 1fr 48px;
  align-items: center; gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.av-pdp-reviews__bar-num { text-align: right; }
.av-pdp-reviews__bar-track {
  height: 6px;
  background: #F0EFED;
  border-radius: 999px;
  overflow: hidden;
}
.av-pdp-reviews__bar-fill {
  display: block;
  height: 100%;
  background: #F5A524;
  border-radius: 999px;
}
.av-pdp-reviews__bar-count { text-align: right; }

.av-pdp-reviews__cta { margin-top: var(--space-6); }

/* Honest empty state — rendered when product.recentReviews is empty AND
   `show_demo_reviews_when_empty` is OFF. Mirrors the search-empty +
   wishlist-empty pattern: centered eyebrow + heading + body + CTA. */
.av-pdp-reviews-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: var(--space-3);
  place-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.av-pdp-reviews-empty__eyebrow { margin: 0; color: var(--color-text-muted); }
.av-pdp-reviews-empty__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  margin: 0;
}
.av-pdp-reviews-empty__text {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin: 0 0 var(--space-3);
}
.av-pdp-reviews-empty__cta { margin: 0; }

.av-pdp-reviews__filters {
  margin-top: var(--space-6);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
}
.av-pdp-reviews__filter-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-right: 4px;
}
.av-pdp-reviews__filter {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background var(--transition-fast);
}
.av-pdp-reviews__filter:hover { background: #F4F4F2; }
.av-pdp-reviews__filter.is-active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.av-pdp-reviews__cards-wrap { min-width: 0; }
.av-pdp-reviews__cards-head {
  margin-bottom: var(--space-5);
}
.av-pdp-reviews__cards-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.av-pdp-reviews__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 1024px) {
  .av-pdp-reviews__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .av-pdp-reviews__cards {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--container-pad-mobile) * -1);
    padding: 0 var(--container-pad-mobile);
  }
  .av-pdp-reviews__cards::-webkit-scrollbar { display: none; }
  .av-pdp-reviews__cards > .av-pdp-review { flex: 0 0 78%; scroll-snap-align: center; }
}

.av-pdp-review {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  display: flex; flex-direction: column;
}
.av-pdp-review__photo {
  aspect-ratio: 4/5;
  background: #f3f0ed;
  overflow: hidden;
}
.av-pdp-review__photo img { width: 100%; height: 100%; object-fit: cover; }
.av-pdp-review__photo-placeholder {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #efe8e2 0%, #d6c7bc 100%);
}
.av-pdp-review__body {
  padding: var(--space-4);
  display: flex; flex-direction: column; flex: 1;
}
.av-pdp-review__stars {
  display: inline-flex; align-items: center; gap: 2px;
  color: #F5A524;
}
.av-pdp-review__quote {
  margin: var(--space-2) 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
}
.av-pdp-review__foot {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.av-pdp-review__name { font-size: var(--text-xs); font-weight: 500; color: var(--color-text); }
.av-pdp-review__loc { font-size: 11px; color: var(--color-text-muted); }
.av-pdp-review__verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: #137333;
  font-weight: 500;
}

.av-pdp-reviews__viewall {
  margin-top: var(--space-6);
  text-align: center;
}
.av-pdp-reviews__viewall a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────────────────
   6. COMPLETE THE LOOK — bundle row + totals
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-bundle__head {
  margin-bottom: var(--space-6);
}
.av-pdp-bundle__head .eyebrow { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.av-pdp-bundle__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0;
}
.av-pdp-bundle__subtext {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32rem;
}

.av-pdp-bundle {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 1024px) {
  .av-pdp-bundle { grid-template-columns: 1fr; }
}

.av-pdp-bundle__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}
@media (max-width: 768px) {
  .av-pdp-bundle__row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--container-pad-mobile) * -1);
    padding: 0 var(--container-pad-mobile);
  }
  .av-pdp-bundle__row::-webkit-scrollbar { display: none; }
  .av-pdp-bundle__row > * { scroll-snap-align: center; }
  .av-pdp-bundle__plus { display: none; }
}

.av-pdp-bundle-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 14px;
  background: var(--color-bg);
  display: flex; gap: 12px; align-items: center;
}
.av-pdp-bundle-card__check {
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 1.5px solid rgba(0,0,0,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.av-pdp-bundle-card__check.is-checked {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}
.av-pdp-bundle-card__thumb {
  width: 72px; height: 92px;
  background: #f3f0ed;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.av-pdp-bundle-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.av-pdp-bundle-card__body { flex: 1; min-width: 0; }
.av-pdp-bundle-card__eyebrow {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.av-pdp-bundle-card__title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}
.av-pdp-bundle-card__title a { color: inherit; text-decoration: none; }
.av-pdp-bundle-card__title a:hover { text-decoration: underline; }
.av-pdp-bundle-card__variant {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.av-pdp-bundle-card__pricerow {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 6px;
}
.av-pdp-bundle-card__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.av-pdp-bundle-card__mrp {
  font-size: 11px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.av-pdp-bundle__plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  justify-self: center;
}

/* Totals */
.av-pdp-bundle__total {
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.av-pdp-bundle__total-eyebrow {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.av-pdp-bundle__total-rows { display: flex; flex-direction: column; gap: 8px; font-size: var(--text-sm); }
.av-pdp-bundle__total-row { display: flex; justify-content: space-between; }
.av-pdp-bundle__total-row > span:first-child { color: var(--color-text-muted); }
.av-pdp-bundle__total-discount { color: var(--color-accent); }
.av-pdp-bundle__total-grand {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: var(--space-4); padding-top: var(--space-4);
  display: flex; align-items: baseline; justify-content: space-between;
}
.av-pdp-bundle__total-grand-label { font-size: var(--text-sm); font-weight: 500; }
.av-pdp-bundle__total-grand-vals { display: inline-flex; align-items: baseline; gap: 8px; }
.av-pdp-bundle__total-grand-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.av-pdp-bundle__total-grand-mrp {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.av-pdp-bundle__total-savings { text-align: right; margin-top: 4px; }
.av-pdp-bundle__total-savings span {
  display: inline-block;
  padding: 2px 6px;
  background: #FDECEE;
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.av-pdp-bundle__cta {
  margin-top: var(--space-5);
  width: 100%;
  background: var(--color-text);
  color: var(--color-primary-text);
  border: 0;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  transition: background var(--transition-fast);
}
.av-pdp-bundle__cta:hover { background: #000; }
.av-pdp-bundle__total-foot {
  margin: var(--space-3) 0 0;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────
   7. YOU MAY ALSO LIKE — 4-up product grid
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-related__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}
.av-pdp-related__head-left .eyebrow { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.av-pdp-related__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0;
}
.av-pdp-related__viewall {
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--color-text);
  text-decoration: none;
}
.av-pdp-related__viewall:hover { text-decoration: underline; text-underline-offset: 4px; }

.av-pdp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
}
@media (max-width: 1024px) {
  .av-pdp-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
}
@media (max-width: 768px) {
  .av-pdp-related__grid {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--container-pad-mobile) * -1);
    padding: 0 var(--container-pad-mobile);
  }
  .av-pdp-related__grid::-webkit-scrollbar { display: none; }
  .av-pdp-related__grid > .product-card { flex: 0 0 60%; scroll-snap-align: center; }
}

/* ─────────────────────────────────────────────────────────────────────
   8. RECENTLY VIEWED — placeholder row, populated by future JS
   ───────────────────────────────────────────────────────────────────── */
.av-pdp-recently__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--space-5);
}
.av-pdp-recently__heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.av-pdp-recently__clear {
  background: transparent;
  border: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.av-pdp-recently__clear:hover { color: var(--color-text); }

.av-pdp-recently {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  min-height: 80px;
}
@media (max-width: 1024px) {
  .av-pdp-recently { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
}
@media (max-width: 768px) {
  .av-pdp-recently {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .av-pdp-recently::-webkit-scrollbar { display: none; }
  .av-pdp-recently > .product-card { flex: 0 0 60%; scroll-snap-align: center; }
}
.av-pdp-recently__empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-5) 0;
}

/* The phone rail only renders for 2+ images. With 0 or 1 there is no rail,
   so keep the main frame (image or placeholder) on phones (#203). */
@media (max-width: 768px) {
  .av-pdp-gallery__main:not(:has(.av-pdp-gallery__mobile-rail)) .av-pdp-gallery__main-frame { display: block; }
}
/* display:inline-flex above beats the UA [hidden] rule, which left an empty
   "% OFF" pill on every non-sale product (#203). */
.av-pdp-info__price-off[hidden] { display: none; }
