/* PDP + reviews widget. Tokens come from site.css; this file only adds product-page layout. */

/* ---- Buy box ---- */
.pdp .product-buy h1 { margin: 0 0 6px; font-size: clamp(1.65rem, 3.4vw, 2.3rem); line-height: 1.1; }
.pdp-rating { margin: 0 0 4px; font-size: 0.82rem; }
.pdp-rating a { display: inline-flex; align-items: baseline; gap: 4px; color: var(--text); text-decoration: none; }
.pdp-rating-count, .pdp-rating-text { color: var(--muted); }
.pdp-rating a:hover span:last-child { text-decoration: underline; }
.pdp-stars { color: var(--text); letter-spacing: 0.08em; margin-right: 6px; }

/* ---- Price block ---- */
.pdp-price-block { margin: 8px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pdp-price-block .sale-badge { display: block; width: fit-content; margin-bottom: 8px; }
.pdp-price-block .price { gap: 4px 10px; }
.pdp-price-block .price-drop { order: 2; }
.pdp-price-block .price-now { font-size: 1.45rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pdp-price-block .price-old { font-size: 1rem; }
.pdp-klarna { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ---- Colour and size ---- */
.pdp .pick { margin: 0 0 16px; }
.pdp .pick legend, .pdp .pick-head { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.pdp .pick legend strong { font-weight: 400; text-transform: none; letter-spacing: 0.02em; font-size: 0.86rem; }
.pdp .size-guide-link { font-size: 0.78rem; font-weight: 400; text-transform: none; letter-spacing: 0.02em; color: var(--muted); }
.pdp .size-guide-link:hover { color: var(--text); }
.pdp .size-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.pdp .size-opt span { min-width: 0; height: 48px; gap: 2px; font-size: 0.82rem; }
.pdp-model-line { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }
.pdp-lowstock { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 0.8rem; }
.pdp-lowstock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); flex: none; }
.pdp-lowstock[hidden] { display: none; }

/* ---- Add to bag, payment marks, USPs ---- */
.pdp-add { margin-top: 4px; }
.pdp-ships { margin: 12px 0 0; text-align: center; font-size: 0.86rem; font-weight: 500; color: var(--wine); }
.pdp-usps { list-style: none; display: grid; gap: 7px; margin: 14px 0 14px; padding: 0; font-size: 0.82rem; }   /* above the Add to bag button (owner 2026-10-24) */
.pdp-usps li { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.pdp-usps svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pdp-usps a { color: inherit; }
.pdp .pdp-acc, .product-buy .pdp-acc { margin-top: 16px; }
.pdp-acc .acc-body { padding-bottom: 14px; }
.pdp-acc summary { padding-block: 14px; }
.pdp-acc .prose { max-width: none; }
.pdp-acc .prose p:first-child { margin-top: 0; }

/* ---- Size guide pop-up ---- */
.sg-fit { margin: 0 0 8px; font-weight: 500; }
.pdp-advisor { margin: 20px 0; padding: 16px; background: var(--panel); }
.pdp-advisor-title { margin: 0 0 10px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.pdp-advisor select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--border); background: var(--bg); font: inherit; color: var(--text); }
.pdp-advisor-q label { display: block; margin: 6px 0; font-size: 0.88rem; }
.pdp-advisor-q fieldset { border: 0; margin: 12px 0 0; padding: 0; }
.pdp-advisor-q legend { padding: 0; margin: 0 0 4px; font-size: 0.88rem; }
.pdp-advisor-q fieldset label { display: inline-flex; gap: 6px; align-items: center; margin-right: 18px; }
.pdp-advisor-result { margin: 12px 0 0; font-weight: 600; }

/* ---- Gallery zoom ---- */
.g-zoom-hit { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.g-zoom-hit img { display: block; width: 100%; height: auto; }
.pdp-lightbox { border: 0; padding: 0; max-width: min(96vw, 900px); background: #FBF7F2; }
.pdp-lightbox::backdrop { background: rgba(23, 19, 26, 0.72); }
.pdp-lightbox img { display: block; width: 100%; height: auto; }
.pdp-lightbox-close { position: absolute; top: 8px; right: 8px; z-index: 1; }

/* ---- Sticky bar extras ---- */
.pdp-sticky { gap: 10px; }
.pdp-sticky-thumb { width: 40px; height: 50px; object-fit: cover; flex: 0 0 auto; }

/* ---- Reviews ---- */
.pdp-review-summary { display: grid; gap: 20px; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .pdp-review-summary { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; } }
.pdp-review-score { text-align: center; }
.pdp-review-avg { margin: 0; font-family: var(--head); font-size: 3.4rem; font-weight: 480; line-height: 1; }
.pdp-review-stars-big { margin: 8px 0 4px; font-size: 1.1rem; }
.pdp-review-count { margin: 0; font-size: 0.82rem; color: var(--muted); }
.pdp-hist { display: grid; gap: 6px; }
.pdp-hist-row { display: grid; grid-template-columns: 2.4rem 1fr 2rem; gap: 10px; align-items: center; font-size: 0.8rem; }
.pdp-hist-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdp-bars { display: grid; gap: 10px; max-width: 420px; }
.pdp-bar { display: grid; grid-template-columns: 8.5rem 1fr 2.5rem; gap: 8px; align-items: center; font-size: 0.85rem; }
.pdp-bar-track { height: 8px; background: rgba(23, 19, 26, 0.08); }
.pdp-bar-fill { display: block; height: 100%; background: currentColor; }
.pdp-bar-pct { text-align: right; font-variant-numeric: tabular-nums; }
.pdp-review-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 18px; align-items: end; font-size: 0.88rem; }
.pdp-review-filters select { min-height: 40px; }
.pdp-check { display: inline-flex; gap: 6px; align-items: center; }
.pdp-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pdp-review { padding-bottom: 16px; border-bottom: 1px solid rgba(23, 19, 26, 0.12); }
.pdp-review-meta { margin: 0 0 4px; font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.pdp-review-stars { letter-spacing: 0.04em; }
.pdp-verified { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.pdp-review-title { margin: 0 0 4px; font-weight: 600; }
.pdp-review-body { margin: 0; white-space: pre-wrap; }
.pdp-review-tags { margin: 6px 0 0; font-size: 0.82rem; }
.pdp-review-photos { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pdp-review-photos img { width: 72px; height: 90px; object-fit: cover; flex: 0 0 auto; }
.pdp-write { margin-top: 24px; text-align: center; }
.pdp-write > summary { list-style: none; min-width: min(100%, 260px); }
.pdp-write > summary::-webkit-details-marker { display: none; }
.pdp-write[open] > summary { margin-bottom: 4px; }
.pdp-write-form { text-align: left; margin-inline: auto; }
.pdp-review-empty { text-align: center; }
.pdp-review-empty-stars { margin: 0 0 6px; font-size: 1.2rem; color: var(--soft); }
.pdp-review-empty-text { margin: 0; font-size: 0.95rem; color: var(--muted); }
.pdp-write-form { display: grid; gap: 10px; max-width: 420px; margin-top: 12px; }
.pdp-write-form label { display: grid; gap: 4px; font-size: 0.88rem; }
.pdp-write-form input, .pdp-write-form textarea, .pdp-write-form select { min-height: 42px; padding: 8px 10px; }
.pdp-review-flash { padding: 10px 12px; border: 1px solid rgba(23, 19, 26, 0.16); margin-bottom: 14px; }
.pdp-review-flash--bad { border-color: #6B1B32; }

/* ==== Below the buy box (2026-10-22 second pass) ====
   Full-width bands, 48 px apart on a phone and 64 px on desktop; white and tinted bands alternate. One heading
   system: centred caps sans titles (22-28 px); serif only for the product and brand name. */
.pdp-after { border-top: 1px solid var(--line); }
.pdp-band { padding-block: 36px; background: var(--bg); }
@media (min-width: 900px) { .pdp-band { padding-block: 64px; } }
.pdp-band--tint { background: var(--panel); }
.pdp-band--wine { background: var(--wine); color: var(--on-fill); }
.pdp-band + .pdp-band:not(.pdp-band--tint):not(.pdp-band--wine) { border-top: 1px solid var(--line); }
.pdp-band--tint + .pdp-band, .pdp-band--wine + .pdp-band { border-top: 0 !important; }
.pdp-narrow { max-width: 820px; }
.pdp-head { margin: 0 0 20px; text-align: center; }
@media (min-width: 900px) { .pdp-head { margin-bottom: 32px; } }
.pdp-title { margin: 0; font-family: var(--font); font-size: clamp(1.375rem, 5.6vw, 1.75rem); font-weight: 500; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.08em; }
.pdp-sub { margin: 8px auto 0; max-width: 40ch; font-size: 0.9rem; color: var(--muted); }
.pdp-sub a { color: inherit; }
.pdp-band--wine .pdp-sub { color: inherit; opacity: 0.86; }
/* tag-us rail joins the same heading system on the product page */
[data-page-type="product"] .ugc-gallery { padding-block: 36px; border-top: 1px solid var(--line); }
[data-page-type="product"] .ugc-title { font-family: var(--font); font-size: clamp(1.375rem, 5.6vw, 1.75rem); font-weight: 500; letter-spacing: 0.08em; }

/* ---- Styled by Satin Eve: 4:5 swipe rail, ~70% wide on a phone so the next one peeks ---- */
.pdp-rail { list-style: none; display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pdp-rail::-webkit-scrollbar { display: none; }
.pdp-rail-tile { flex: 0 0 70%; min-width: 0; scroll-snap-align: start; background: var(--surface-2); }
@media (min-width: 720px) { .pdp-rail-tile { flex-basis: 40%; } }
@media (min-width: 1100px) { .pdp-rail-tile { flex-basis: calc((100% - 30px) / 4); } }
.pdp-rail-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pdp-rail-zoom img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---- Rail cards: 2-up on a phone, 4-up on desktop, large 4:5 photos ---- */
.pdp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
.pdp-card { position: relative; min-width: 0; }
.pdp-card-img { display: block; background: var(--surface-2); }
.pdp-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-card-add { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: var(--bg); color: var(--text); cursor: pointer; box-shadow: 0 1px 4px rgba(23, 19, 26, 0.18); }
.pdp-card-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.pdp-card-add:hover { background: var(--text); color: var(--bg); }
.pdp-card-body { display: grid; gap: 4px; padding-top: 10px; }
.pdp-card-name { color: var(--text); font-size: 0.86rem; line-height: 1.3; text-decoration: none; }
.pdp-card-name:hover { text-decoration: underline; }
.pdp-card .price { font-size: 0.86rem; gap: 2px 6px; }
.pdp-card .price-old { font-size: 0.78rem; }
.pdp-card .save-pill { font-size: 0.6rem; padding: 2px 6px 1px; }
.pdp-card-dots { display: flex; gap: 5px; margin-top: 2px; }
.pdp-card-dots svg { width: 10px; height: 10px; box-shadow: 0 0 0 1px var(--line); border-radius: 50%; }

/* ---- Why Satin Eve: photo cards on the wine band ---- */
.pdp-why-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; margin: 0; padding: 0; }
@media (min-width: 900px) { .pdp-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pdp-why-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--wine-dark); }
.pdp-why-text { padding-top: 14px; }
.pdp-why-text svg { display: block; width: 22px; height: 22px; margin: 0 0 8px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pdp-why-text h3 { margin: 0 0 4px; font-family: var(--font); font-size: 0.74rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.1em; }
.pdp-why-text p { margin: 0; font-size: 0.84rem; line-height: 1.45; opacity: 0.88; }
.pdp-why-text a { color: inherit; }

/* Review form: star buttons and fit/quality bars */
.pdp-rate { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.pdp-rate legend { padding: 0; font-size: 0.88rem; }
.pdp-rate-stars { display: flex; gap: 4px; }
.pdp-rate-star { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.7rem; line-height: 1; background: none; border: 1px solid var(--line); color: var(--soft); cursor: pointer; }
.pdp-rate-star.is-on { color: inherit; border-color: currentColor; }
.pdp-rate-star:focus-visible, .pdp-slider input[type="range"]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pdp-slider { display: grid; gap: 4px; }
.pdp-slider label { display: flex; justify-content: space-between; font-size: 0.88rem; }
.pdp-slider input[type="range"] { width: 100%; min-height: 44px; padding: 0; opacity: 0.55; }
.pdp-slider.is-set input[type="range"] { opacity: 1; }
.pdp-slider-ends { display: flex; justify-content: space-between; margin: 0; }
.pdp-review-mini { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 0.78rem; }
.pdp-mini { display: inline-flex; align-items: center; gap: 8px; }
.pdp-mini-track { position: relative; width: 84px; height: 4px; background: rgba(23, 19, 26, 0.12); }
.pdp-mini-dot { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: currentColor; }
.pdp-mini-dot[data-pos="1"] { left: 0%; }
.pdp-mini-dot[data-pos="2"] { left: 25%; }
.pdp-mini-dot[data-pos="3"] { left: 50%; }
.pdp-mini-dot[data-pos="4"] { left: 75%; }
.pdp-mini-dot[data-pos="5"] { left: 100%; }

/* ---- Complete the look: same snap rail as the tag-us photos (70% wide on a phone, 4-up on desktop) ---- */
.pdp-grid--rail { display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pdp-grid--rail::-webkit-scrollbar { display: none; }
.pdp-grid--rail > .pdp-card { flex: 0 0 70%; scroll-snap-align: start; }
@media (min-width: 720px) { .pdp-grid--rail > .pdp-card { flex-basis: 40%; } }
@media (min-width: 1100px) { .pdp-grid--rail > .pdp-card { flex-basis: calc((100% - 30px) / 4); } }

/* One divider only between the delivery block and the first band: the full-width .pdp-after rule; the last accordion row adds none. */
.pdp-acc details:last-child { border-bottom: 0; }

/* Compact bottom gap under the buy box on a phone: the first band supplies its own padding. */
@media (max-width: 899px) { .product.pdp { padding-bottom: 24px; } }

.pdp-follow { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.pdp-social a { width: 36px; height: 36px; color: var(--text); }
