/* ─── Product page (PLAN-4 S2): CSS only, no JS ──────────────────────────
   Geometry is the design PDF's pp.9-12, measured on a 2000x1125 render, expressed in PERCENT so it holds at every width:
     gallery  frames x10..1030  = 51%  (10px outer gutter, 10px gaps, 2:3 frames)
     gap      153px             = 7.65%
     info     x1183..1690       = 25.4% (507px at 2000)
     rest     310px             = 15.5%
   Vertical rhythm: the spec's 22/115/88/73/55 are distances to LABEL CENTRES; as edge-to-edge margins on the 8px grid that is 24/88/56/64/48, which lands every element within a few px of the PDF render (README, measured table).
   Loaded ONLY on product pages (inc/pdp.php); it is not in the dist bundle. Tokens only: no hex, nothing under 12px.
   Behaviour (swatch swap, drawers, sticky mobile bar, cart) is S3 to S5 and is NOT here. */

.cao-pdp { --pdp-g1: 24px; --pdp-g2: 88px; --pdp-g3: 56px; --pdp-g4: 64px; --pdp-g5: 48px; --pdp-btn-h: 50px; }

/* the PDF's PDP header has no cart: the shared header still prints it, the PDP hides it (cart returns in S5) */
.cao-pdp .cao-cart { display: none; }

/* ─── Gallery ─── */
.pdp { display: block; }
.pdp-gallery { position: relative; min-width: 0; }
.pdp-frames { display: grid; gap: var(--cao-frame); padding: var(--cao-frame) var(--cao-frame) 0; }
.pdp-frame { position: relative; margin: 0; scroll-margin-top: var(--cao-frame); }
.pdp-media { position: relative; overflow: hidden; background: var(--cao-studio); aspect-ratio: 2 / 3; }
.pdp-media picture { display: contents; }
.pdp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 40%); }

/* "02 / 07" on each frame (a static number per frame: a counter that tracked the scroll would need JS) */
.pdp-frame__n {
  position: absolute;
  right: var(--cao-space-4);
  bottom: var(--cao-space-4);
  padding: var(--cao-space-1) var(--cao-space-3);
  border: 1px solid var(--cao-line);
  background: var(--cao-paper);
  font-size: var(--type-meta);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* tick rail: real links to #shot-N; sticky at the foot of the first screen; current = the frame in the URL hash */
.pdp-ticks {
  display: none;
}
.pdp-tick { position: relative; display: block; width: 24px; height: 24px; }
.pdp-tick::before { content: ""; position: absolute; left: 11px; top: 6px; width: 1px; height: 12px; background: var(--cao-line); }
.pdp:not(:has(.pdp-frame:target)) .pdp-tick:first-child::before,
:is(.pdp:has(#shot-1:target) [href="#shot-1"], .pdp:has(#shot-2:target) [href="#shot-2"], .pdp:has(#shot-3:target) [href="#shot-3"],
    .pdp:has(#shot-4:target) [href="#shot-4"], .pdp:has(#shot-5:target) [href="#shot-5"], .pdp:has(#shot-6:target) [href="#shot-6"],
    .pdp:has(#shot-7:target) [href="#shot-7"], .pdp:has(#shot-8:target) [href="#shot-8"], .pdp:has(#shot-9:target) [href="#shot-9"],
    .pdp:has(#shot-10:target) [href="#shot-10"], .pdp:has(#shot-11:target) [href="#shot-11"], .pdp:has(#shot-12:target) [href="#shot-12"])::before {
  top: 2px;
  height: 20px;
  background: var(--cao-ink);
}

/* ─── Info column ─── */
.pdp-info { min-width: 0; padding: var(--cao-space-6) var(--cao-space-4) var(--cao-space-8); }
.pdp-info__in { max-width: 560px; }

.pdp-title { font-family: var(--cao-font-display); font-weight: 400; font-size: clamp(28px, 1.5vw, 30px); line-height: 1; letter-spacing: 0; text-transform: uppercase; }

.pdp-desc { margin-top: var(--pdp-g1); max-width: none; font-size: var(--type-meta); line-height: 16px; }
.pdp-desc p + p { margin-top: var(--cao-space-2); }

.pdp-form { margin: 0; }
.pdp-sec { margin: var(--pdp-g3) 0 0; }
.pdp-colour { margin: var(--pdp-g2) 0 0; padding: 0; border: 0; min-width: 0; }

/* COLOR: label + HOUSE NAME in the left column, swatches start where the PDF puts them (27% of the column) */
.pdp-colour { display: grid; grid-template-columns: 27% minmax(0, 1fr); column-gap: var(--cao-space-2); align-items: start; }
.pdp-colour legend { float: left; padding: 0; }
.pdp-colour__head { display: block; }
.pdp-colour__name { display: block; margin-top: var(--cao-space-1); font-size: var(--type-meta); line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.pdp-colour__sold { white-space: nowrap; }
.pdp-colour .cao-swatches { grid-column: 2; --cao-swatch-size: 40px; --cao-swatch-gap: var(--cao-space-2); }
.pdp-colour .cao-swatch__chip { border-color: color-mix(in srgb, var(--cao-ink) 45%, transparent); position: relative; }
.pdp-colour .cao-swatch input:checked + .cao-swatch__chip { outline: 2px solid var(--cao-ink); outline-offset: 3px; }
@media (hover: hover) {
  .pdp-colour .cao-swatch input:not(:checked):hover + .cao-swatch__chip { outline: 1px solid color-mix(in srgb, var(--cao-ink) 40%, transparent); outline-offset: 3px; }
}
/* sold out: still selectable, struck through (a 3px paper band with a 1px ink core so it reads on cream AND on black) */
.pdp-swatch--sold .cao-swatch__chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top right,
    transparent calc(50% - 2px), var(--cao-paper) calc(50% - 2px), var(--cao-paper) calc(50% - 0.5px),
    var(--cao-ink) calc(50% - 0.5px), var(--cao-ink) calc(50% + 0.5px),
    var(--cao-paper) calc(50% + 0.5px), var(--cao-paper) calc(50% + 2px), transparent calc(50% + 2px));
}

/* SIZE (a bag with more than one size, De Sota Duffle): label in the left column like COLOR, the size chips under the swatches. A size is a chip, not a swatch:
   hairline box, mono caps, the checked one takes the same 2px ink ring at 3px offset as the checked colour (state is never colour alone). Independent of COLOR. */
.pdp-size { display: grid; grid-template-columns: 27% minmax(0, 1fr); column-gap: var(--cao-space-2); align-items: center; margin: var(--cao-space-2) 0 0; padding: 0; border: 0; min-width: 0; }
.pdp-size legend { float: left; padding: 0; }
.pdp-size__head { display: block; }
.pdp-sizes { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--cao-space-2); }
.pdp-sz { position: relative; display: inline-block; }
.pdp-sz input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pdp-sz__chip { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding-inline: var(--cao-space-3); border: 1px solid color-mix(in srgb, var(--cao-ink) 45%, transparent); font-size: var(--type-meta); line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pdp-sz input:checked + .pdp-sz__chip { outline: 2px solid var(--cao-ink); outline-offset: 3px; }
.pdp-sz input:focus-visible + .pdp-sz__chip { outline: 2px solid var(--cao-paper); outline-offset: 3px; box-shadow: 0 0 0 6px var(--cao-ink); }
@media (hover: hover) {
  .pdp-sz input:not(:checked):hover + .pdp-sz__chip { outline: 1px solid color-mix(in srgb, var(--cao-ink) 40%, transparent); outline-offset: 3px; }
}
/* the chooser costs one row, so a sized page takes it back from the two largest gaps: ADD TO CART stays on the first screen at 1440x900 */
.pdp:has(.pdp-size) .pdp-colour { margin-top: var(--pdp-g1); }
.pdp:has(.pdp-size) .pdp-sizeline { margin-top: var(--pdp-g1); }

.pdp-features { margin-top: var(--cao-space-5); }
.pdp-features li { font-size: var(--type-meta); line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; }

.pdp-sizeline { display: grid; grid-template-columns: 27% minmax(0, 1fr); column-gap: var(--cao-space-2); align-items: baseline; margin-top: var(--pdp-g4); }
.pdp-sizeline__v { font-size: var(--type-meta); letter-spacing: 0.04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* litres + price of the checked COLOR in the checked SIZE (a sized bag): every pair is in the markup. The default pair shows until a radio is checked
   (a browser without :has() keeps it); then only the pair the two checked radios name (3 sizes at most, the contract refuses a fourth). */
.pdp-pv { display: none; }
.pdp-pv[data-default] { display: inline; }
.pdp:has([name="attribute_pa_color"]:checked):has([name="attribute_pa_size"]:checked) .pdp-pv { display: none; }
.pdp:has([name="attribute_pa_color"][value="alto"]:checked):has([name="attribute_pa_size"][data-i="1"]:checked) .pdp-pv[data-colour="alto"][data-i="1"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="alto"]:checked):has([name="attribute_pa_size"][data-i="2"]:checked) .pdp-pv[data-colour="alto"][data-i="2"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="alto"]:checked):has([name="attribute_pa_size"][data-i="3"]:checked) .pdp-pv[data-colour="alto"][data-i="3"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="aeluin"]:checked):has([name="attribute_pa_size"][data-i="1"]:checked) .pdp-pv[data-colour="aeluin"][data-i="1"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="aeluin"]:checked):has([name="attribute_pa_size"][data-i="2"]:checked) .pdp-pv[data-colour="aeluin"][data-i="2"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="aeluin"]:checked):has([name="attribute_pa_size"][data-i="3"]:checked) .pdp-pv[data-colour="aeluin"][data-i="3"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="hirav"]:checked):has([name="attribute_pa_size"][data-i="1"]:checked) .pdp-pv[data-colour="hirav"][data-i="1"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="hirav"]:checked):has([name="attribute_pa_size"][data-i="2"]:checked) .pdp-pv[data-colour="hirav"][data-i="2"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="hirav"]:checked):has([name="attribute_pa_size"][data-i="3"]:checked) .pdp-pv[data-colour="hirav"][data-i="3"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="sotho"]:checked):has([name="attribute_pa_size"][data-i="1"]:checked) .pdp-pv[data-colour="sotho"][data-i="1"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="sotho"]:checked):has([name="attribute_pa_size"][data-i="2"]:checked) .pdp-pv[data-colour="sotho"][data-i="2"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="sotho"]:checked):has([name="attribute_pa_size"][data-i="3"]:checked) .pdp-pv[data-colour="sotho"][data-i="3"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="notte"]:checked):has([name="attribute_pa_size"][data-i="1"]:checked) .pdp-pv[data-colour="notte"][data-i="1"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="notte"]:checked):has([name="attribute_pa_size"][data-i="2"]:checked) .pdp-pv[data-colour="notte"][data-i="2"] { display: inline; }
.pdp:has([name="attribute_pa_color"][value="notte"]:checked):has([name="attribute_pa_size"][data-i="3"]:checked) .pdp-pv[data-colour="notte"][data-i="3"] { display: inline; }

/* ADD TO CART + the express (Apple Pay) slot: two equal hairline boxes, 237 x 50 at 2000 wide */
.pdp-buy { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cao-space-4); width: min(100%, 490px); margin-top: var(--pdp-g5); }
.pdp-buy .cao-btn { width: 100%; min-width: 0; height: var(--pdp-btn-h); padding-inline: var(--cao-space-3); border-color: var(--cao-line); }
.pdp-buy .cao-btn[aria-disabled="true"] { cursor: not-allowed; }
.pdp-buy--sold { grid-template-columns: 1fr; }
.pdp-express { position: relative; height: var(--pdp-btn-h); min-width: 0; border: 1px solid var(--cao-line); background: var(--cao-paper); }
.pdp-express[hidden] { display: none; }
/* the static prototype shows a labelled stand-in; the theme never prints one (Stripe fills the slot, B10) */
.pdp-standin .pdp-express:not([hidden]) { display: grid; place-content: center; font-size: var(--type-meta); letter-spacing: 0.04em; text-transform: uppercase; }
.pdp-standin .pdp-express::before { content: "APPLE PAY (STAND-IN)"; }

.pdp-note { margin-top: var(--cao-space-2); font-size: var(--type-meta); letter-spacing: 0.04em; color: var(--cao-mute); }
.pdp-note:empty { display: none; }

/* ─── Disclosures: native <details>, no height animation, only rendered when they have content ─── */
.pdp-disc { margin-top: var(--cao-space-5); width: min(100%, 490px); border-top: 1px solid var(--cao-hair); }
.pdp-disc + .pdp-disc { margin-top: 0; }
.pdp-disc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--cao-hit);
  font-size: var(--type-action);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.pdp-disc > summary::-webkit-details-marker { display: none; }
.pdp-disc__icon::before { content: "+"; }
.pdp-disc[open] .pdp-disc__icon::before { content: "\2212"; }
.pdp-disc__body { padding: var(--cao-space-2) 0 var(--cao-space-4); font-size: var(--type-meta); line-height: 16px; }
.pdp-disc__body dt { margin-top: var(--cao-space-3); letter-spacing: 0.04em; text-transform: uppercase; }
.pdp-disc__body dt:first-child { margin-top: 0; }
.pdp-disc__body dd { margin: 0; }
.pdp-disc:last-of-type { border-bottom: 1px solid var(--cao-hair); }

/* ─── Shop Similar: four 2:3 tiles, 10px gutters, name-only captions (2 lines reserved) ─── */
.pdp-similar { padding-top: var(--cao-space-8); }
.pdp-similar__head { padding: 0 var(--cao-frame) var(--cao-space-3); }
.pdp-similar .cao-cards { grid-template-columns: repeat(4, 1fr); padding-bottom: 0; }
.pdp-similar .cao-card__name { display: block; min-height: calc(2 * 1.5em); line-height: 1.5; }
@media (max-width: 1023px) { .pdp-similar .cao-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .pdp-similar .cao-cards { grid-template-columns: none; } }

/* the PDF's footer sits 67px under the captions (p.12): 64px on the grid, not the home page's 192px */
.cao-pdp .cao-footer { padding-top: var(--cao-space-8); }
/* a social link with no URL yet prints as a bare <span> (inc/helpers.php) and ran together on one line: give it the links' box
   (the same fix the P0 prototype carried; the source is components/footer.css, outside this slice) */
.cao-pdp .cao-footer__col > span { display: block; padding-block: var(--cao-space-1); font-size: var(--type-meta); letter-spacing: 0.04em; text-transform: uppercase; }
.pdp-similar { scroll-margin-top: var(--cao-space-8); }
@media (max-width: 767px) { .cao-pdp .cao-footer__col > span { display: flex; align-items: center; min-height: var(--cao-hit); } }

/* ─── Two lanes (jb 2026-11-07) ───────────────────────────────────────────────────────────────────────────
   LEFT  = the product's lifestyle frames only, scrolling (.pdp-gallery, above).
   RIGHT = the sticky info column, now topped by the STUDIO VIEWER of the selected colour: a main view and a row of thumbnails
           (front first; back, side, three-quarter, interior). Every colour's set is in the markup; the COLOR swatches (radios in the
           same .pdp) choose which set shows, with :has() and no JS: on a browser without :has() the page's own colour keeps showing.
   The viewer shrinks with the viewport height (--pdp-view-h) so ADD TO CART stays on screen at 1440x900. */
.pdp--lanes { --pdp-view-h: 340px; --pdp-thumb: 52px; }
.pdp-frame--land .pdp-media { aspect-ratio: 3 / 2; }
.pdp-studios { margin-top: var(--cao-space-4); }
.pdp-studio, .pdp--lanes .pdp-colour__name { display: none; }
.pdp-studio[data-default], .pdp--lanes .pdp-colour__name[data-default] { display: block; }
.pdp:has([name="attribute_pa_color"][value="alto"]:checked) :is(.pdp-studio, .pdp-colour__name) { display: none; }
.pdp:has([name="attribute_pa_color"][value="alto"]:checked) :is(.pdp-studio, .pdp-colour__name)[data-colour="alto"] { display: block; }
.pdp:has([name="attribute_pa_color"][value="aeluin"]:checked) :is(.pdp-studio, .pdp-colour__name) { display: none; }
.pdp:has([name="attribute_pa_color"][value="aeluin"]:checked) :is(.pdp-studio, .pdp-colour__name)[data-colour="aeluin"] { display: block; }
.pdp:has([name="attribute_pa_color"][value="hirav"]:checked) :is(.pdp-studio, .pdp-colour__name) { display: none; }
.pdp:has([name="attribute_pa_color"][value="hirav"]:checked) :is(.pdp-studio, .pdp-colour__name)[data-colour="hirav"] { display: block; }
.pdp:has([name="attribute_pa_color"][value="sotho"]:checked) :is(.pdp-studio, .pdp-colour__name) { display: none; }
.pdp:has([name="attribute_pa_color"][value="sotho"]:checked) :is(.pdp-studio, .pdp-colour__name)[data-colour="sotho"] { display: block; }
.pdp:has([name="attribute_pa_color"][value="notte"]:checked) :is(.pdp-studio, .pdp-colour__name) { display: none; }
.pdp:has([name="attribute_pa_color"][value="notte"]:checked) :is(.pdp-studio, .pdp-colour__name)[data-colour="notte"] { display: block; }
.pdp-studio__main { position: relative; height: var(--pdp-view-h); overflow: hidden; background: var(--cao-studio); }
.pdp-studio__view { position: absolute; inset: 0; display: none; margin: 0; }
.pdp-studio__view--1 { display: block; }
.pdp-studio:has(.pdp-thumb:not(.pdp-thumb--1) input:checked) .pdp-studio__view--1 { display: none; }
.pdp-studio:has(.pdp-thumb--2 input:checked) .pdp-studio__view--2 { display: block; }
.pdp-studio:has(.pdp-thumb--3 input:checked) .pdp-studio__view--3 { display: block; }
.pdp-studio:has(.pdp-thumb--4 input:checked) .pdp-studio__view--4 { display: block; }
.pdp-studio:has(.pdp-thumb--5 input:checked) .pdp-studio__view--5 { display: block; }
.pdp-studio:has(.pdp-thumb--6 input:checked) .pdp-studio__view--6 { display: block; }
.pdp-studio__view picture { display: contents; }
.pdp-studio__view img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-studio__thumbs { display: flex; gap: var(--cao-space-2); margin-top: var(--cao-space-2); }
.pdp-thumb { position: relative; flex: 0 0 var(--pdp-thumb); width: var(--pdp-thumb); height: var(--pdp-thumb); overflow: hidden; background: var(--cao-studio); border: 1px solid var(--cao-hair); cursor: pointer; }
.pdp-thumb picture { display: contents; }
.pdp-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pdp-thumb:has(input:checked) { border-color: var(--cao-ink); outline: 1px solid var(--cao-ink); outline-offset: 0; }
.pdp-thumb:has(input:focus-visible) { outline: 2px solid var(--cao-ink); outline-offset: 2px; }
@media (hover: hover) { .pdp-thumb:not(:has(input:checked)):hover { border-color: var(--cao-ink); } }

/* ─── Desktop (1024+): the split ─── */
@media (min-width: 1024px) {
  .pdp { display: grid; grid-template-columns: calc(51% + var(--cao-frame)) 7.65% 25.4% minmax(0, 1fr); align-items: start; }
  .pdp-gallery { grid-column: 1; }
  .pdp-frames { padding-right: 0; }
  /* ticks: a sticky 100svh layer overlapping the first screen of frames, links sit at its foot */
  .pdp-ticks {
    position: sticky;
    top: calc(100svh - var(--cao-space-4) - 36px);
    z-index: 6;
    display: flex;
    align-items: center;
    width: max-content;
    height: 36px;
    margin: 0 0 -36px calc(var(--cao-frame) + var(--cao-space-4));
    padding: 0 var(--cao-space-2);
    border: 1px solid var(--cao-line);
    background: var(--cao-paper);
  }
  .pdp-info {
    grid-column: 3;
    position: sticky;
    /* PDF: block top at 24.4% of the viewport. Floor 24px, and pulled up on short screens so the 788px block still fits (no JS to measure it) */
    top: clamp(24px, calc(100svh - 800px), 24.4svh);
    padding: 0;
  }
  .pdp-info__in { max-width: none; }
  /* two lanes: the viewer leads the info column (the title stays first in the document, the viewer is lifted above it) */
  .pdp--lanes .pdp-info__in { display: flex; flex-direction: column; }
  .pdp--lanes .pdp-studios { order: -1; margin: 0 0 var(--cao-space-4); }
  .pdp--lanes { --pdp-view-h: clamp(140px, calc(100svh - 740px), 340px); --pdp-thumb: 40px; --pdp-g1: 16px; --pdp-g2: 32px; --pdp-g3: 24px; --pdp-g4: 24px; --pdp-g5: 24px; }
  .pdp--lanes .pdp-info { top: 68px; }
  .pdp--lanes .pdp-features { margin-top: var(--cao-space-2); }
  /* the header's wordmark is centred on the page, which is the photo's right edge on the split: a mark half on a photo and half on paper is cut by it.
     Seat it in the empty gutter between the gallery and the info column (same percentages as the grid above), clear of every frame */
  .cao-pdp .cao-wordmark { position: absolute; top: 50%; left: calc(51% + var(--cao-frame) + 3.825%); translate: -50% -50%; justify-self: auto; }
}

/* a viewport too short for the sticky block lets it scroll with the page instead of clipping its foot */
@media (min-width: 1024px) and (max-height: 700px) { .pdp-info { position: static; padding-top: var(--cao-space-8); } }

/* shorter than the PDF's 1125: compress the big gaps (never the type) so the whole block fits one screen */
@media (min-width: 1024px) and (max-height: 840px) { .cao-pdp { --pdp-g2: 64px; --pdp-g3: 40px; --pdp-g4: 48px; --pdp-g5: 32px; } }

/* ─── Under 1024: a minimal fallback, single column, gallery then info (the proper mobile PDP is S4) ─── */
@media (max-width: 1023px) {
  /* the gallery is a swipe strip: one 2:3 frame at a time with the next one peeking, native scroll-snap (no JS, pinch zoom untouched) */
  .pdp-frames {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    grid-template-columns: none;
    padding-inline: var(--cao-frame);
    scroll-padding-inline: var(--cao-frame);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pdp-frames::-webkit-scrollbar { display: none; }
  .pdp-frames:focus-visible { outline: 2px solid var(--cao-ink); outline-offset: -2px; }
  .pdp-frame { scroll-snap-align: start; scroll-margin-top: 0; }
  .pdp-info { padding: var(--cao-space-6) var(--cao-space-4) var(--cao-space-8); }
  .pdp-info__in { max-width: 560px; }
  .pdp-colour, .pdp-size, .pdp-sizeline { grid-template-columns: 96px minmax(0, 1fr); }
  .pdp-sz__chip { min-height: 44px; }
  .cao-pdp { --pdp-g2: 48px; --pdp-g3: 40px; --pdp-g4: 32px; --pdp-g5: 32px; }
  .pdp-colour .cao-swatches { --cao-swatch-size: 44px; }
  .pdp-buy, .pdp-disc { width: 100%; }
  /* two lanes on a phone: the lifestyle strip first, then the info block with the studio viewer UNDER the title */
  .pdp--lanes .pdp-frames { align-items: start; }
  .pdp--lanes { --pdp-view-h: 340px; --pdp-thumb: 56px; }
  .pdp--lanes .pdp-studios { margin-top: var(--cao-space-4); }
  /* a jump to #details or #similar-h lands BELOW the fixed header (8 + 44 + 8 + an 8px breath), not under it */
  .pdp-info, .pdp-similar__head { scroll-margin-top: calc(var(--cao-space-2) * 2 + var(--cao-hit) + var(--cao-space-2)); }
}
