/* Product page, custom design (mockup/store-custom.html, "Product" view). Tokens come from site.css. */
.pd { --sale: #c8102e; --low: #a35500; --gutter: max(24px, env(safe-area-inset-left, 0px)); }
.pd .visually-hidden, .pd-bis .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pd [hidden], .pd-bis [hidden] { display: none !important; }
.pd-label { margin: 0 0 14px; font: 700 12px/1.3 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-ink); }
.pd-label--muted { color: var(--muted); margin: 0; }

/* Title band */
.pd-title { padding-block: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 28px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
.pd-crumb { grid-column: 1 / -1; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 6px; }
.pd-crumb a:hover { color: var(--navy); }
.pd-name { font-size: clamp(3rem, 8.5vw, 7.5rem); line-height: .88; color: var(--navy); letter-spacing: -.03em; overflow-wrap: break-word; padding-bottom: .04em; }
.pd-name--l { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .92; }
.pd-name--xl { font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: .95; }
.pd-tag { text-align: right; padding-bottom: 6px; }
.pd-price { margin: 0; display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; }
.pd-price b { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); color: var(--navy); }
.pd-price s { font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1 var(--display); color: var(--muted); }
.pd-price.is-sale b { color: var(--sale); }
.pd-summary { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Filmstrip */
.pd-film { position: relative; }
.pd-film__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.pd-film__track::-webkit-scrollbar { display: none; }
.pd-film__track:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pd-film__frame { margin: 0; flex: none; height: clamp(380px, 62vh, 620px); scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--plate); }
.pd-film__frame--sq { aspect-ratio: 1 / 1; }
.pd-film__frame--tall { aspect-ratio: 4 / 5; }
/* Customer photos are small originals: cap the frame so they are never blown up past their own size. */
.pd-film__frame--customer { height: min(clamp(380px, 62vh, 620px), calc(var(--max-w) * 1.25)); }
.pd-film__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.pd-film__frame figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(4, 30, 66, .86); color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 2px; }
.pd-film__nav { position: absolute; z-index: 2; right: calc(var(--gutter) + 14px); bottom: 14px; display: flex; gap: 8px; }
.pd-film__nav button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); padding: 0; }
.pd-film__nav button:hover { border-color: var(--navy); }
.pd-film__nav button:disabled, .pd-film__nav button[aria-disabled="true"] { opacity: .4; cursor: default; border-color: var(--line); }
.pd-film__nav svg { width: 18px; height: 18px; }
.pd-film__prev svg { transform: scaleX(-1); }

/* Body: pick + reference */
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 64px); }
.pd-opt { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.pd-opt__name { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.pd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-tiles--words { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.pd-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; min-width: 0; }
.pd-tile__input { position: absolute; opacity: 0; pointer-events: none; }
.pd-tile b { font: 800 22px/1.1 var(--display); color: var(--navy); }
.pd-tiles--words .pd-tile b { font-size: 17px; }
.pd-tile__note { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pd-tile__note.is-low { color: var(--low); font-weight: 600; }
.pd-tile:hover { border-color: var(--navy); }
.pd-tile:has(.pd-tile__input:checked) { border: 2px solid var(--navy); padding: 11px 13px; background: var(--mist); }
.pd-tile:has(.pd-tile__input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.pd-tile.is-out { background: var(--mist); }
.pd-tile.is-out b { color: #6f7c8f; text-decoration: line-through; }
.pd-tile.is-out .pd-tile__note { color: var(--navy); text-decoration: underline; }
.pd-tile:has(.pd-tile__input:disabled) { cursor: not-allowed; }

.pd-add { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.pd-qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); height: 58px; padding: 0 4px; background: #fff; }
.pd-qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--navy); padding: 0; }
.pd-qty input { width: 2.4em; border: 0; text-align: center; font: 700 16px var(--body); color: var(--ink); background: none; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-atc { height: 58px; font-size: 16px; width: 100%; padding-inline: 16px; }
.pd-atc:disabled, .pd-dock__btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.pd-notify { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0; border: 0; background: none; font: 600 15px var(--body); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pd-notify svg { width: 18px; height: 18px; flex: none; }
.pd-flash { margin: 10px 0 0; font-weight: 600; color: var(--navy); }
.pd-mto { margin: 12px 0 0; font-size: 14px; color: var(--navy); }
.pd-mto[hidden] { display: none; }
.pd-ship { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.pd-ship b { color: var(--navy); }

.pd-facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(var(--cells, 4), minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.pd-facts div { padding: 14px 12px 0 0; min-width: 0; }
.pd-facts dt { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-facts dd { margin: 4px 0 0; font: 700 16px/1.2 var(--display); color: var(--navy); overflow-wrap: break-word; }

.pd-lead { margin: 0; font: 700 clamp(1.6rem, 2.8vw, 2.4rem)/1.12 var(--display); color: var(--navy); letter-spacing: -.01em; text-wrap: balance; }
.pd-lead--long { font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.5 var(--body); letter-spacing: 0; color: var(--ink); text-wrap: pretty; max-width: 60ch; }
.pd-desc { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin-top: 18px; }
.pd-desc--only { margin-top: 0; color: var(--ink); font-size: 1.1rem; }
.pd-desc p { margin: 0 0 .6em; }
.pd-desc ul { margin: 0 0 .6em; padding-left: 1.2em; }
.pd-desc li { margin-bottom: .2em; }

/* Size chart */
.pd-chart { margin-top: 28px; }
.pd-chart__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pd-chart__units { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.pd-chart__units button { border: 0; background: none; padding: 4px 12px; border-radius: 99px; font: 600 12.5px var(--body); color: var(--muted); cursor: pointer; }
.pd-chart__units button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pd-chart__scroll { overflow-x: auto; }
.pd-chart table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pd-chart th, .pd-chart td { padding: 9px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.pd-chart thead th { color: var(--navy); font-family: var(--display); font-weight: 800; }
.pd-chart tbody th { text-align: left; color: var(--muted); font-weight: 500; padding-right: 10px; }
.pd-chart .is-on { background: var(--mist); color: var(--navy); font-weight: 700; }
.pd-chart thead .is-on { box-shadow: inset 0 3px 0 var(--navy); }
.pd-chart__note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.pd-chart__note b { color: var(--navy); }
.pd-chart__how { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.pd-chart__how summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.pd-chart__how ol { margin: 8px 0 0; padding-left: 1.2em; }
.pd-chart__how b { color: var(--navy); }

/* Section heads */
.pd-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 22px; flex-wrap: wrap; }
.pd-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); line-height: 1; }
.pd-head a { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--gold); }

/* Worn around town */
.pd-worn { background: var(--navy); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.pd-worn .pd-head h2, .pd-worn .pd-head a { color: #fff; }
.pd-worn__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pd-worn__grid img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0%; border-radius: var(--radius); background: var(--navy-deep); }

/* Star rows: drawn by ::before/::after (decorative); the element or its parent carries the text.
   Same .rstars rule as collections.css (cards). */
.rstars { position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.rstars::before { content: "\2605\2605\2605\2605\2605"; color: #c9d1dc; }
.rstars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0 auto 0 0; width: var(--rpct, 0%); overflow: hidden; color: var(--gold-line); }
.rstars--lg { font-size: 20px; letter-spacing: 2px; }

/* Rating link in the title band */
.pd-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pd-rating:hover { text-decoration-color: var(--navy); }

/* Reviews */
.pd-rv { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.pd-rv:focus { outline: none; }
.pd-rv__grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.pd-rv__sum { position: sticky; top: 96px; }
.pd-rv__avg { margin: 0; }
.pd-rv__avg b { font: 800 clamp(3.2rem, 6vw, 4.6rem)/.9 var(--display); color: var(--navy); letter-spacing: -.02em; }
.pd-rv__based { margin: 8px 0 18px; font-size: 14px; color: var(--muted); }
.pd-rv__dist { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pd-rv__dist li { display: grid; grid-template-columns: 54px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pd-rv__bar { height: 6px; background: var(--plate); border-radius: 3px; overflow: hidden; }
.pd-rv__bar i { display: block; height: 100%; background: var(--gold-line); border-radius: 3px; }
.pd-rv__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.pd-rv__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.pd-rv__list { list-style: none; margin: 0; padding: 0; }
.pd-rv__item { padding: 24px 0; border-top: 1px solid var(--line); }
.pd-rv__item:first-child { border-top: 0; padding-top: 0; }
.pd-rv__item:focus { outline: none; }
.pd-rv__item:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.pd-rv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-rv__top time { font-size: 13px; color: var(--muted); }
.pd-rv__title { margin: 10px 0 0; font: 700 1.15rem/1.25 var(--display); color: var(--navy); letter-spacing: 0; }
.pd-rv__body { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.pd-rv__body p { margin: 0 0 .6em; }
.pd-rv__body p:last-child { margin-bottom: 0; }
.pd-rv__photos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-rv__photos a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--plate); }
.pd-rv__photos a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pd-rv__photo { display: block; width: 96px; height: 96px; object-fit: cover; }
.pd-rv__by { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--navy); }
.pd-rv__badge { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.pd-rv__badge svg { width: 14px; height: 14px; }
.pd-rv__reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--mist); font-size: 14.5px; line-height: 1.55; }
.pd-rv__reply p { margin: 0 0 .5em; }
.pd-rv__reply p:last-child { margin-bottom: 0; }
.pd-rv__reply .pd-rv__reply-by { font: 700 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.pd-rv__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pd-rv__shown { margin: 0; font-size: 13px; color: var(--muted); }
.pd-rv__more { background: #fff; color: var(--navy); border-color: var(--navy); }
.pd-rv__more:hover { background: var(--mist); }
.pd-rv__more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.pd-rv__empty { max-width: 60ch; }
.pd-rv__empty p { margin: 0 0 6px; color: var(--muted); }
.pd-rv__empty .pd-rv__none { font: 700 1.25rem/1.3 var(--display); color: var(--navy); }

/* Write a review (/reviews/write) */
.rw { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); max-width: 760px; }
.rw-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.rw-head img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); background: var(--plate); flex: none; }
.rw-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--navy); }
.rw-head p { margin: 6px 0 0; color: var(--muted); }
.rw-form { display: grid; gap: 20px; }
.rw-field { display: grid; gap: 6px; }
.rw-field label, .rw-stars legend { font-size: 14px; font-weight: 600; color: var(--navy); }
.rw-field small { font-size: 13px; color: var(--muted); }
.rw-field input[type="text"], .rw-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9d2de; border-radius: var(--radius); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.rw-field textarea { min-height: 160px; resize: vertical; }
.rw-field input[type="file"] { font: inherit; font-size: 14px; max-width: 100%; }
.rw-stars { border: 0; padding: 0; margin: 0; min-width: 0; }
.rw-stars__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rw-stars__opt { position: relative; }
.rw-stars__opt input { position: absolute; opacity: 0; pointer-events: none; }
.rw-stars__opt > span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--navy); background: #fff; }
.rw-stars__opt > span::before { content: "\2605"; color: var(--gold-line); font-size: 18px; line-height: 1; }
.rw-stars__opt input:checked + span { border: 2px solid var(--navy); padding: 9px 13px; background: var(--mist); }
.rw-stars__opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.rw-stars__opt small { font-size: 13px; font-weight: 500; color: var(--muted); }
.rw-err { display: block; margin-top: 6px; font-size: 13px; color: var(--sale, #c8102e); font-weight: 600; }
.rw-errors a { color: inherit; }
.rw-errors { margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid var(--sale, #c8102e); background: #fdf1f2; color: var(--ink); }
.rw-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.rw-done { padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--mist); }
.rw-done h2 { font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.rw-done p { margin: 8px 0 0; }
.rw-done a { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--gold); }

/* Goes with */
.pd-pairs { padding-block: clamp(40px, 6vw, 72px); }
.pd-pairs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.pd-pairs__grid > * { min-width: 0; }

/* Docked add-to-bag bar: sticks to the bottom of the screen while the page scrolls, and slides
   away while the main add button is on screen. */
.pd-dock { position: sticky; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(4, 30, 66, .4); padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform .2s ease, opacity .2s ease; }
.pd-dock.is-tucked { transform: translateY(100%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility 0s .2s; }
.pd-dock__in { display: flex; align-items: center; gap: 14px; height: 72px; }
.pd-dock img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--plate); flex: none; }
.pd-dock__text { flex: 1; min-width: 0; }
.pd-dock__text b { display: block; font: 800 17px/1.2 var(--display); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-dock__text span { font-size: 13px; color: var(--muted); }
.pd-dock__btn { height: 46px; flex: none; }
/* Keep the site's floating offer chip clear of the dock. */
body:has(.pd-dock:not(.is-tucked)) .promo { bottom: calc(97px + env(safe-area-inset-bottom, 0px)); }

/* Back-in-stock dialog */
.pd-bis { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 6px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 80px -30px rgba(4, 30, 66, .6); }
.pd-bis::backdrop { background: rgba(4, 30, 66, .55); }
.pd-bis__head { position: relative; padding: 24px 56px 6px 24px; }
.pd-bis__head .pd-label { margin-bottom: 6px; }
.pd-bis__head h2 { font-size: 1.7rem; line-height: 1.05; color: var(--navy); }
.pd-bis__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; color: var(--navy); cursor: pointer; }
.pd-bis__body { padding: 8px 24px 24px; }
.pd-bis__lead { margin: 0 0 16px; color: var(--muted); }
.pd-bis__lead b { color: var(--navy); }
.pd-bis__form { display: grid; gap: 8px; }
.pd-bis__form label { font-size: 13px; font-weight: 600; color: var(--navy); }
.pd-bis__form input[type="email"] { height: 50px; padding: 0 14px; border: 1px solid #c9d2de; border-radius: var(--radius); font: inherit; font-size: 16px; }
.pd-bis__form .btn { width: 100%; margin-top: 4px; }
.pd-bis__error { margin: 10px 0 0; color: var(--sale, #c8102e); font-size: 14px; }
.pd-bis__success { display: none; text-align: center; padding: 12px 0 4px; color: var(--navy); }
.pd-bis__success svg { width: 40px; height: 40px; }
.pd-bis__success h3 { font-size: 1.4rem; margin-top: 8px; }
.pd-bis.is-done .pd-bis__form, .pd-bis.is-done .pd-bis__lead, .pd-bis.is-done .pd-bis__error { display: none; }
.pd-bis.is-done .pd-bis__success { display: block; }

@media (max-width: 1000px) {
  .pd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-worn__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-pairs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-pairs__grid > :nth-child(4) { display: none; }
}
@media (max-width: 720px) {
  .pd-title { grid-template-columns: minmax(0, 1fr); }
  .pd-tag { text-align: left; }
  .pd-price { justify-content: flex-start; }
  .pd-film__nav { display: none !important; }
  .pd-film__frame { height: 440px; max-width: calc(100vw - 2 * var(--gutter)); }
  .pd-film__frame--customer { height: min(440px, calc(var(--max-w) * 1.25)); }
  /* The main shot stays square on phones (the frame width caps it), so nothing is cut off. */
  .pd-film__frame--sq { height: auto; width: min(440px, calc(100vw - 2 * var(--gutter))); }
  .pd-body { grid-template-columns: minmax(0, 1fr); }
  .pd-rating { margin-top: 6px; }
  .pd-rv__grid { grid-template-columns: minmax(0, 1fr); }
  .pd-rv__sum { position: static; }
  .pd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .pd-pairs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .pd-pairs__grid > :nth-child(4) { display: block; }
  .pd-dock__in { height: 64px; gap: 10px; }
  .pd-dock img { width: 40px; height: 40px; }
  .pd-dock__text b { font-size: 15px; }
  body:has(.pd-dock:not(.is-tucked)) .promo { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-dock { transition: none; }
  .pd-film__track { scroll-behavior: auto; }
}

/* Product FAQ (config/seo.php product_faq). */
.pd-faq { padding-top: 8px; padding-bottom: 40px; max-width: 80ch; }
.pd-faq__item h3 { margin: 18px 0 6px; font-size: 1.05rem; color: var(--navy); }
.pd-faq__item p { margin: 0; line-height: 1.7; }

/* One photo (templates/product.php $solo): photo beside the buy box, the whole image shown on the
   plate color, buy box first on the right, the reference under it. */
.pd-body--solo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "photo pick" "photo ref"; align-items: start; row-gap: clamp(28px, 4vw, 48px); padding-top: clamp(16px, 2vw, 28px); }
.pd-body--solo .pd-solo-photo { grid-area: photo; }
.pd-body--solo .pd-pick { grid-area: pick; }
.pd-body--solo .pd-ref { grid-area: ref; }
.pd-solo-photo { position: sticky; top: calc(var(--header-h, 66px) + 16px); margin: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: clamp(16px, 4%, 40px); border-radius: var(--radius); background: var(--plate); overflow: hidden; }
.pd-solo-photo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .pd-body--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "pick" "ref"; }
  .pd-solo-photo { position: static; }
}
.pd-film__frame--fit img { object-fit: contain; object-position: 50% 50%; padding: clamp(12px, 3%, 32px); }

/* Find my size (App\SizeFinder) */
.pd-sf { margin: 4px 0 14px; }
.pd-sf summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.pd-sf__body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid #d5dce6; border-radius: 8px; background: #f7f9fc; font-size: 14px; }
.pd-sf__body label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.pd-sf__body select { font: inherit; padding: 8px 10px; border: 1px solid #c9d2de; border-radius: 6px; max-width: 12em; background: #fff; }
.pd-sf__body small { color: #4d5d73; }
.pd-sf__fit { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pd-sf__fit legend { font-weight: 600; margin-bottom: 6px; }
.pd-sf__fit label { flex-direction: row; align-items: center; font-weight: 400; gap: 6px; }
.pd-sf__out { margin: 0; min-height: 1.4em; }
.pd-sf__pick { margin-left: 4px; font: inherit; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: 3px; padding: 6px 12px; cursor: pointer; }

/* Gift card: the sayings to print (App\GiftCards::designs). */
.pd-sayings { margin-top: 18px; }
.pd-sayings ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.pd-sayings img { display: block; width: 100%; height: auto; border-radius: 3px; }
