/* Studio product page: media + thumbs, swatches, sizes, spec table, rail, phone buy bar. */
.pdp { padding: 16px var(--gutter) 0; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(20px, 3vw, 56px); align-items: start; }

/* ---- media ---- */
.pdp-media { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.pdp-thumbs { grid-row: 1; grid-column: 1; display: grid; gap: 8px; align-content: start; }
.pdp-media__main { grid-row: 1; grid-column: 2; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--chalk-lo); }
.pdp-media__main > img, .pdp-media__wipe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-media__wipe { z-index: 2; }
@media (hover: hover) and (pointer: fine) { .pdp-media__main { cursor: zoom-in; } }
.lens { position: absolute; left: 0; top: 0; z-index: 3; width: 180px; height: 180px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 12px 40px rgb(0 0 0 / .3); background-repeat: no-repeat; pointer-events: none; opacity: 0; transition: opacity .25s; }
.lens.is-on { opacity: 1; }
.pdp-media__index { position: absolute; left: 14px; bottom: 14px; z-index: 4; padding: 6px 10px; border-radius: 999px; background: var(--chalk); color: var(--carbon); }
.pdp-thumbs button { overflow: hidden; border-radius: 10px; opacity: .55; transition: opacity .3s, box-shadow .3s; }
.pdp-thumbs button:hover { opacity: .85; }
.pdp-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--cobalt); }
.pdp-thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---- info column ---- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp-info__title { margin: 16px 0 10px; font: 800 clamp(2.6rem, 1.4rem + 4vw, 5rem)/.88 var(--sans); font-stretch: 70%; text-transform: uppercase; }
.pdp-info__price { margin: 0 0 18px; font-size: 1.1rem; }
.pdp-info__lede { max-width: 52ch; margin: 0; opacity: .85; }
.pdp-opt { margin-top: 24px; }
.pdp-opt .mono { margin: 0; }
.swatches { display: flex; gap: 10px; margin-top: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .3s, transform .4s var(--spring); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { outline-color: var(--cobalt); }

.sizes { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.sizes legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; padding: 0; }
.sizes__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sizes__grid label { display: grid; place-items: center; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-stretch: 85%; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.sizes__grid label:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.sizes__grid input:checked + label { background: var(--carbon); color: var(--chalk); box-shadow: none; }
.sizes__grid input:focus-visible + label { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.sizes__grid input:disabled + label { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.sizes__grid input:disabled + label:hover { box-shadow: inset 0 0 0 1.5px var(--line); }

.btn--buy { margin-top: 24px; min-height: 60px; font-size: 14px; }

.spec { width: 100%; margin-top: 28px; border-collapse: collapse; }
.spec th, .spec td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font: 400 var(--fs-sm)/1.4 var(--mono); }
.spec th { width: 36%; font-weight: 400; text-transform: uppercase; color: var(--muted); }

/* ---- phone buy bar ---- */
.buybar { position: fixed; inset: auto 0 0; z-index: 55; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); background: var(--chalk); color: var(--carbon); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgb(15 15 16 / .12); transform: translateY(110%); transition: transform .5s var(--ease-out); }
.buybar.is-on { transform: none; }
.buybar img { width: 44px; height: 55px; object-fit: cover; border-radius: 8px; }
.buybar__text { flex: 1; min-width: 0; }
.buybar__text p { margin: 0; }
.buybar__name { font-weight: 800; font-stretch: 85%; text-transform: uppercase; line-height: 1.1; }
.buybar .btn { min-height: 44px; padding: 0 18px; }
.buybar.is-on ~ .demo-pill { opacity: 0; pointer-events: none; }

@media (min-width: 900px) { .buybar { display: none; } }
@media (max-width: 899px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-media { position: static; grid-template-columns: minmax(0, 1fr); }
  .pdp-media__main { grid-column: 1; }
  .pdp-thumbs { grid-row: 2; grid-template-columns: repeat(4, 1fr); }
}
