/* ==========================================================================
   Product page — loaded by shop/product.php after shop.css.

   The page reads top to bottom as a short story: the photo and the buying
   box, then numbered chapters (Overview, Will it fit?, Specifications) under
   a menu that stays in reach, then a black "Ask us" band. Movement is kept to
   transform and opacity and switched off for prefers-reduced-motion;
   product-page.js only adds classes (reveal, active tab, the buy bar).
   ========================================================================== */

/* ---------- Hero: photo stage ---------- */
.pdp-hero { gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-bottom: var(--sp-6); }
/* Grid items may shrink below their content, so the one-row thumbnail strip scrolls instead of widening the column. */
.pdp-hero > * { min-width: 0; }

.pdp-stage {
  position: relative; border-radius: 18px; border-color: var(--c-border);
  background: radial-gradient(120% 90% at 50% 0%, var(--c-surface) 0%, var(--c-surface-2) 100%);
  animation: pdp-stage-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* A thin red rule draws itself across the top of the stage. */
.pdp-stage::before {
  content: ""; position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--c-brand); transform-origin: left; transform: scaleX(0.18);
  animation: pdp-rule 1.1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* The photo fills the frame exactly and is fitted inside it (never cropped), whatever
   the frame's shape: square, 4:3 on phones, or shortened to fit the screen. Sized
   by the frame, not by the photo, so a tall photo can never push past the frame. */
.pdp-stage #gallery-image {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; object-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Never taller than the screen it is on (landscape phones, tablets, short laptop screens). */
.pdp-stage { width: 100%; max-height: max(240px, calc(100vh - 8rem)); max-height: max(240px, calc(100svh - 8rem)); }
.pdp-stage img.is-in { animation: pdp-photo-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) and (pointer: fine) {
  .pdp-stage:hover img { transform: scale(1.06); }
}
/* On a desktop the photo and its thumbnails fit the first screen. */
@media (min-width: 992px) {
  .pdp-stage { max-height: max(420px, calc(100vh - 15rem)); max-height: max(420px, calc(100svh - 15rem)); }
}

.pdp-stage-nav {
  position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; padding: 0; border: 1px solid var(--c-border); border-radius: 50%;
  background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-2); cursor: pointer;
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.pdp-stage-nav svg { width: 20px; height: 20px; }
.pdp-stage-nav.is-prev { left: 14px; transform: translateX(-6px); }
.pdp-stage-nav.is-next { right: 14px; transform: translateX(6px); }
.pdp-stage:hover .pdp-stage-nav, .pdp-stage-nav:focus-visible { opacity: 1; transform: none; }
.pdp-stage-nav:hover { color: var(--c-brand); }
@media (hover: none) { .pdp-stage-nav { opacity: 0.92; transform: none; } }

.pdp-stage-count {
  position: absolute; z-index: 3; left: 14px; bottom: 14px; padding: 0.2rem 0.6rem; border-radius: var(--r-full);
  background: var(--c-black); color: var(--c-on-black); font: 700 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: 0.04em;
}

.pdp-hero .gallery-thumbs {
  flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 2px 8px; margin-top: var(--sp-3);
}
.pdp-hero .gallery-thumbs::-webkit-scrollbar { display: none; }
.pdp-hero .gallery-thumbs > * { flex: none; scroll-snap-align: start; }
.pdp-hero .gallery-thumbs button, .pdp-hero .gallery-thumbs .gallery-thumb-video {
  width: 72px; height: 72px; border-radius: 12px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.pdp-hero .gallery-thumbs button:hover { transform: translateY(-2px); }
.pdp-hero .gallery-thumbs button.is-active { border: 2px solid var(--c-brand); box-shadow: none; }

/* ---------- Hero: what it is ---------- */
.pdp-summary > * { animation: pdp-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pdp-summary > :nth-child(2) { animation-delay: 60ms; }
.pdp-summary > :nth-child(3) { animation-delay: 120ms; }
.pdp-summary > :nth-child(4) { animation-delay: 180ms; }
.pdp-summary > :nth-child(5) { animation-delay: 240ms; }
.pdp-summary > :nth-child(6) { animation-delay: 300ms; }
.pdp-summary > :nth-child(n+7) { animation-delay: 360ms; }

.pdp-summary .pdp-title {
  font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.45rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.028em; margin: 0 0 var(--sp-3); text-wrap: balance;
}
.pdp-summary .pdp-idline { gap: var(--sp-2); margin-bottom: var(--sp-4); }
.pdp-sku, .pdp-cat {
  display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 650; line-height: 1.5;
}
.pdp-sku { background: var(--c-surface-2); color: var(--c-ink-2); }
/* What it is (Laptop part, Computer, Display …): the one dark chip, read first. */
.pdp-kind {
  display: inline-flex; align-items: center; padding: 0.2rem 0.7rem; border-radius: var(--r-full);
  background: var(--c-black); color: var(--c-on-black); font-size: var(--fs-xs); font-weight: 700; line-height: 1.5;
  letter-spacing: 0.02em; transition: background-color 0.15s ease;
}
.pdp-kind:hover { background: var(--c-brand); color: var(--c-brand-ink); text-decoration: none; }
.pdp-cat { border: 1px solid var(--c-border); color: var(--c-ink-2); transition: border-color 0.15s ease, color 0.15s ease; }
.pdp-cat:hover { border-color: var(--c-brand); color: var(--c-brand); text-decoration: none; }
.pdp-summary .pdp-lede { font-size: var(--fs-md); line-height: 1.6; color: var(--c-ink-2); max-width: 60ch; margin-bottom: var(--sp-4); }

/* "Fits MacBook Pro 13" A1706 and 2 more — Check yours →" */
.pdp-fits-teaser {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); padding: 0.8rem 1rem;
  border-radius: 14px; background: var(--c-brand-soft); color: var(--c-ink); font-size: var(--fs-sm); line-height: 1.45;
  transition: transform 0.2s ease;
}
.pdp-fits-teaser:hover { color: var(--c-ink); text-decoration: none; transform: translateY(-2px); }
.pdp-fits-teaser-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-brand); color: var(--c-brand-ink);
}
.pdp-fits-teaser-icon svg { width: 16px; height: 16px; }
.pdp-fits-teaser-cta { display: block; color: var(--c-brand-dark); font-weight: 700; }

.pdp-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.pdp-chips li {
  padding: 0.3rem 0.75rem; border: 1px solid var(--c-border); border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink);
}
.pdp-chips li span { color: var(--c-ink-3); font-weight: 500; }

/* ---------- Hero: the buy box ---------- */
.pdp-summary .price-block {
  position: relative; overflow: hidden; margin-block: var(--sp-2) var(--sp-4); padding: var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: var(--shadow-2);
}
.pdp-summary .price-block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-brand); }
.pdp-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.pdp-summary .price-block .price { font-size: clamp(2rem, 1.6rem + 1.3vw, 2.7rem); font-weight: 800; line-height: 1; }
.pdp-summary .price-note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--c-ink-3); }
.pdp-summary .price-stock { margin: 0; }
.pdp-summary .stock-pill { position: relative; padding: 0.3rem 0.7rem; border-radius: var(--r-full); font-size: var(--fs-sm); }
.pdp-summary .stock-in { background: var(--c-ok-soft); }
.pdp-summary .stock-low { background: var(--c-warn-soft); }
.pdp-summary .stock-out { background: var(--c-surface-2); }
/* The in-stock dot breathes. */
.pdp-summary .stock-in::after {
  content: ""; position: absolute; left: 0.7rem; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: currentColor; animation: pdp-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pdp-summary .add-to-cart { display: flex; gap: var(--sp-3); align-items: stretch; margin: 0; }
.pdp-summary .add-to-cart-submit { flex: 1; white-space: nowrap; }
.pdp-summary .qty-stepper { flex: none; border-radius: 10px; }
.pdp-summary .qty-input { width: 3.25rem; padding: 0; }
.pdp-summary .pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-3); }
.pdp-summary .pdp-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: var(--fs-base); }
.pdp-actions svg, .pdp-ask-buttons svg { width: 18px; height: 18px; flex: none; }
.pdp-wa { background: var(--c-black); border-color: var(--c-black); color: var(--c-on-black); }
.pdp-wa:hover, .pdp-wa:focus-visible { background: var(--c-black-3); border-color: var(--c-black-3); color: var(--c-on-black); }

.pdp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); list-style: none; padding: 0; margin: 0; }
.pdp-trust li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-xs); color: var(--c-ink-3); line-height: 1.45; }
.pdp-trust svg { flex: none; width: 22px; height: 22px; color: var(--c-brand); margin-top: 1px; }
.pdp-trust strong { display: block; font-size: var(--fs-sm); color: var(--c-ink); }
.pdp-trust a { font-weight: 650; }

/* ---------- The chapter menu ---------- */
.pdp-tabs {
  position: sticky; top: var(--pdp-top, 0px); z-index: 30; margin-top: var(--sp-4);
  background: var(--c-surface); border-block: 1px solid var(--c-border);
}
.pdp-tabs-inner { position: relative; display: flex; gap: var(--sp-5); overflow-x: auto; scrollbar-width: none; }
.pdp-tabs-inner::-webkit-scrollbar { display: none; }
.pdp-tabs a {
  flex: none; display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.95rem 0.1rem;
  color: var(--c-ink-3); font-size: var(--fs-sm); font-weight: 650; white-space: nowrap; transition: color 0.2s ease;
}
.pdp-tabs a:hover, .pdp-tabs a.is-active { color: var(--c-ink); text-decoration: none; }
.pdp-tabs-no { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-brand); }
/* One red bar slides under the chapter being read: width 1px, sized with scaleX. */
.pdp-tabs-bar {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 3px; background: var(--c-brand);
  transform-origin: left; transform: translateX(var(--bar-x, 0px)) scaleX(var(--bar-w, 0));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Chapters ---------- */
.pdp-chapter {
  padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--c-border);
  scroll-margin-top: calc(var(--pdp-top, 0px) + 56px);
}
.pdp-chapter:last-child { border-bottom: 0; }
.pdp-ask { scroll-margin-top: calc(var(--pdp-top, 0px) + 56px); }
.pdp-chapter-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.pdp-chapter-no {
  display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border: 1.5px solid var(--c-brand); border-radius: var(--r-full);
  color: var(--c-brand); font: 700 var(--fs-xs)/1.5 var(--font-mono); letter-spacing: 0.04em;
}
.pdp-chapter h2, .pdp-ask-pitch h2 {
  margin: 0; font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.35rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}

/* Reveal as the chapter scrolls in (product-page.js arms only what starts below the fold). */
[data-reveal].is-armed { opacity: 0; transform: translateY(28px); }
[data-reveal].is-armed.is-visible {
  opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-armed .pdp-spec-grid > div, [data-reveal].is-armed .pdp-fit-card { opacity: 0; transform: translateY(12px); }
[data-reveal].is-armed.is-visible .pdp-spec-grid > div, [data-reveal].is-armed.is-visible .pdp-fit-card {
  opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(min(var(--i, 0), 12) * 45ms + 150ms);
}

/* ---------- Overview: the story and the facts beside it ---------- */
.pdp-overview { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pdp-story { position: relative; min-width: 0; }
.pdp-story .prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: var(--c-ink-2); }
.pdp-story .prose > p:first-child:not(:has(img)) { font-size: 1.2rem; line-height: 1.6; color: var(--c-ink); font-weight: 500; }
.pdp-story .prose h3, .pdp-story .prose h4 {
  display: flex; align-items: center; gap: 0.6rem; margin: 2.25rem 0 0.85rem;
  font-size: var(--fs-lg); font-weight: 750; letter-spacing: -0.01em; color: var(--c-ink);
}
.pdp-story .prose h4 { font-size: var(--fs-md); }
.pdp-story .prose h3::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--c-brand); }
.pdp-story .prose > :first-child { margin-top: 0; }
.pdp-story .prose ul, .pdp-story .prose ol { padding-left: 1.25rem; }
.pdp-story .prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.pdp-story .prose li::marker { color: var(--c-brand); }
.pdp-story .prose dl {
  display: grid; grid-template-columns: minmax(7.5rem, 36%) minmax(0, 1fr); margin: 0 0 var(--sp-5);
  border-top: 1px solid var(--c-border); font-size: var(--fs-base);
}
.pdp-story .prose dt, .pdp-story .prose dd { padding: 0.7rem 0; border-bottom: 1px solid var(--c-border); margin: 0; }
.pdp-story .prose dt { color: var(--c-ink-3); font-weight: 600; padding-right: var(--sp-4); }
.pdp-story .prose dd { color: var(--c-ink); font-weight: 550; overflow-wrap: anywhere; }
.pdp-story .prose img { max-width: 100%; height: auto; border-radius: 14px; }
.pdp-story .prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--c-border); opacity: 1; }
.pdp-story .prose a { font-weight: 600; }
.pdp-story-empty { font-size: 1.15rem; line-height: 1.65; color: var(--c-ink-2); max-width: 60ch; }

/* A long description folds to a readable length, with a button to open it. */
.pdp-story.is-collapsed .prose {
  max-height: 34rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent);
          mask-image: linear-gradient(to bottom, black 72%, transparent);
}
.pdp-story-more {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--sp-4); padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--c-ink); border-radius: var(--r-full); background: var(--c-surface); color: var(--c-ink);
  font-size: var(--fs-sm); font-weight: 700; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.pdp-story-more:hover { background: var(--c-ink); color: var(--c-ink-invert); }
.pdp-story-more svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.pdp-story-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.pdp-videos { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }

.pdp-glance {
  position: sticky; top: calc(var(--pdp-top, 0px) + 72px);
  padding: var(--sp-5); border-radius: 18px; background: var(--c-black); color: var(--c-on-black);
}
.pdp-glance h3 {
  margin: 0 0 var(--sp-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-on-black-2);
}
.pdp-glance dl { margin: 0; }
.pdp-glance dl > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0.7rem 0; border-top: 1px solid var(--c-black-3); }
.pdp-glance dt { color: var(--c-on-black-2); font-size: var(--fs-sm); font-weight: 500; }
.pdp-glance dd { margin: 0; text-align: right; font-size: var(--fs-sm); font-weight: 650; overflow-wrap: anywhere; }
.pdp-glance a { color: var(--c-on-black); text-decoration: underline; text-decoration-color: var(--c-brand); text-underline-offset: 3px; }
.pdp-glance a:hover { color: var(--c-on-black); text-decoration-thickness: 2px; }

/* ---------- Will it fit? ---------- */
.pdp-fits-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pdp-finder { padding: var(--sp-5); border-radius: 18px; background: var(--c-surface-2); }
.pdp-finder-art { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto var(--sp-4); }
.pdp-finder-art .art-body { fill: var(--c-surface); stroke: var(--c-border-strong); stroke-width: 1.5; }
.pdp-finder-art .art-foot, .pdp-finder-art .art-line { fill: var(--c-surface-3); }
.pdp-finder-art .art-mark {
  fill: var(--c-brand-soft); stroke: var(--c-brand); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center; animation: pdp-mark 2.4s ease-in-out infinite;
}
.pdp-finder-art .art-text { fill: var(--c-brand-dark); font: 700 12px var(--font-mono); letter-spacing: 0.04em; }
.pdp-finder-lede { font-size: var(--fs-sm); color: var(--c-ink-2); line-height: 1.55; margin-bottom: var(--sp-4); }
.pdp-finder-form label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: var(--sp-2); }
.pdp-finder-row { display: flex; gap: var(--sp-2); }
.pdp-finder-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 0.9rem; border: 1.5px solid var(--c-border-strong); border-radius: 12px;
  background: var(--c-surface); font: 700 var(--fs-md) var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.pdp-finder-row input::placeholder { text-transform: none; font-weight: 500; letter-spacing: 0; color: var(--c-ink-3); }
.pdp-finder-row input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--ring); }
.pdp-finder-row .btn { height: 48px; border-radius: 12px; padding-inline: 1.2rem; }
.pdp-finder-result { min-height: 1.5em; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); line-height: 1.5; }
.pdp-finder-result:empty { margin: 0; }
.pdp-finder-result.is-yes, .pdp-finder-result.is-no, .pdp-finder-result.is-unknown {
  padding: 0.75rem 0.9rem; border-radius: 12px; animation: pdp-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pdp-finder-result.is-yes { background: var(--c-ok-soft); color: var(--c-ok); }
.pdp-finder-result.is-no { background: var(--c-warn-soft); color: var(--c-warn); }
.pdp-finder-result.is-unknown { background: var(--c-surface); color: var(--c-ink-2); }
.pdp-finder-result strong { color: inherit; }
.pdp-finder-result a { font-weight: 700; }

.pdp-fits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-4); }
.pdp-fit-card {
  padding: 1.1rem 1.2rem; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pdp-fit-card:hover { transform: translateY(-3px); border-color: var(--c-ink); }
.pdp-fit-label { margin: 0 0 var(--sp-3); font-size: var(--fs-md); font-weight: 750; letter-spacing: -0.01em; }
.pdp-fit-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.pdp-fit-card li { display: flex; align-items: center; gap: var(--sp-2); padding: 0.2rem; border-radius: 8px; transition: background-color 0.3s ease; }
.pdp-fit-card li .mono {
  padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--c-black); color: var(--c-on-black);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
}
.pdp-fit-years { font-size: var(--fs-sm); color: var(--c-ink-3); }
.pdp-fit-card li.is-match { background: var(--c-ok-soft); }
.pdp-fit-card li.is-match .mono { background: var(--c-ok); }

/* ---------- Specifications: tiles ---------- */
.pdp-spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; overflow: hidden;
}
/* Each tile draws its own right and bottom rule; the frame clips the outer ones, so a short last row stays clean. */
.pdp-spec-grid > div {
  padding: 1.05rem 1.25rem; background: var(--c-surface); transition: background-color 0.2s ease;
  box-shadow: 1px 0 0 var(--c-border), 0 1px 0 var(--c-border);
}
.pdp-spec-grid > div:hover { background: var(--c-surface-2); }
.pdp-spec-grid dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-3); }
.pdp-spec-grid dd { margin: 0.35rem 0 0; font-size: var(--fs-md); font-weight: 650; color: var(--c-ink); overflow-wrap: anywhere; }

/* ---------- Ask us: the black band ---------- */
.pdp-ask { background: var(--c-black); color: var(--c-on-black); padding-block: clamp(3rem, 7vw, 5.5rem); }
.pdp-ask-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pdp-ask-pitch h2 { color: var(--c-on-black); margin-top: var(--sp-4); }
.pdp-ask-pitch p { margin: var(--sp-4) 0 var(--sp-5); color: var(--c-on-black-2); font-size: var(--fs-md); line-height: 1.65; max-width: 44ch; }
.pdp-ask-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.pdp-ask .pdp-wa { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); }
.pdp-ask .pdp-wa:hover, .pdp-ask .pdp-wa:focus-visible { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: var(--c-brand-ink); }
.pdp-ask-call { border: 1.5px solid var(--c-on-black-2); color: var(--c-on-black); background: transparent; }
.pdp-ask-call:hover, .pdp-ask-call:focus-visible { border-color: var(--c-on-black); color: var(--c-on-black); background: var(--c-black-3); }
.pdp-ask .enquiry-panel { margin: 0; max-width: none; border: 0; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); color: var(--c-ink); }

.pdp-related { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- The buy bar ---------- */
.pdp-buybar {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
  background: var(--c-surface); border-top: 1px solid var(--c-border); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.35);
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pdp-buybar.is-shown { transform: none; }
.pdp-buybar-inner { display: flex; align-items: center; gap: var(--sp-3); padding-block: 0.6rem; }
.pdp-buybar img { flex: none; width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface); }
.pdp-buybar-text { flex: 1; min-width: 0; }
.pdp-buybar-name { margin: 0; font-size: var(--fs-sm); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-buybar-price { margin: 0; font: 800 var(--fs-md) var(--font-mono); }
.pdp-buybar .btn { flex: none; }
/* Room for the bar at the end of the page, and the WhatsApp button lifts above it. */
body:has([data-buybar]) .site-footer { padding-bottom: 5rem; }
.wa-fab { transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.15s ease; }
body:has(.pdp-buybar.is-shown) .wa-fab { translate: 0 -68px; }

/* ---------- Colour swap: the page settles in ---------- */
[data-pdp-root].is-switching .pdp-stage img { opacity: 0.6; }

/* ---------- Keyframes ---------- */
@keyframes pdp-stage-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pdp-rule { from { transform: scaleX(0); } to { transform: scaleX(0.18); } }
@keyframes pdp-photo-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pdp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pdp-ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes pdp-mark { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes pdp-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Tablet and below ---------- */
@media (max-width: 1023.98px) {
  .pdp-overview { grid-template-columns: 1fr; }
  .pdp-glance { position: static; }
  .pdp-fits-grid { grid-template-columns: 1fr; }
  .pdp-ask-inner { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
  /* The trail shrinks to one "back" link: the category this product sits in. */
  [data-pdp-root] .page-head { padding-block: var(--sp-3) var(--sp-2); }
  [data-pdp-root] .breadcrumbs { margin-bottom: 0; }
  [data-pdp-root] .breadcrumbs li { display: none; }
  [data-pdp-root] .breadcrumbs li:nth-last-child(2) { display: block; }
  [data-pdp-root] .breadcrumbs li:nth-last-child(2)::before { content: "\2190"; margin-right: var(--sp-2); color: var(--c-brand); }
  [data-pdp-root] .breadcrumbs li:nth-last-child(2) a { color: var(--c-ink-2); font-weight: 600; }

  .pdp-hero { padding-bottom: var(--sp-4); }
  .pdp-stage { border-radius: 14px; aspect-ratio: 4 / 3; }
  .pdp-stage-nav { width: 38px; height: 38px; margin-top: -19px; }
  .pdp-stage-nav.is-prev { left: 8px; } .pdp-stage-nav.is-next { right: 8px; }
  .pdp-hero .gallery-thumbs button, .pdp-hero .gallery-thumbs .gallery-thumb-video { width: 60px; height: 60px; }
  .pdp-summary .price-block { padding: var(--sp-4); border-radius: 16px; }
  .pdp-summary .add-to-cart-submit { min-height: 50px; }
  .pdp-trust { gap: var(--sp-3); }
  .pdp-tabs { top: 0; }
  .pdp-tabs-inner { gap: var(--sp-4); }
  .pdp-story .prose { font-size: 1rem; }
  .pdp-story .prose > p:first-child:not(:has(img)) { font-size: 1.1rem; }
  .pdp-story .prose dl { grid-template-columns: minmax(6.5rem, 40%) minmax(0, 1fr); font-size: var(--fs-sm); }
  .pdp-spec-grid { grid-template-columns: 1fr 1fr; }
  .pdp-spec-grid > div { padding: 0.85rem 0.95rem; }
  .pdp-spec-grid dd { font-size: var(--fs-base); }
  .pdp-ask-buttons .btn { flex: 1 1 100%; }
  /* Above the phone action bar (shop-mobile.css), sliding out from behind it. */
  .pdp-buybar { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, 0.35); }
  .pdp-buybar .btn { padding-inline: 0.9rem; font-size: var(--fs-sm); }
  body:has([data-buybar]) .site-footer { padding-bottom: 4.5rem; }
}
@media (max-width: 419.98px) {
  .pdp-summary .pdp-actions { grid-template-columns: 1fr; }
  .pdp-trust { grid-template-columns: 1fr; }
  .pdp-spec-grid { grid-template-columns: 1fr; }
}

/* ---------- No movement when it is not wanted ---------- */
@media (prefers-reduced-motion: reduce) {
  .pdp-stage, .pdp-stage::before, .pdp-summary > *, .pdp-stage img.is-in, .pdp-finder-art .art-mark,
  .pdp-summary .stock-in::after, .pdp-finder-result { animation: none !important; }
  .pdp-summary .stock-in::after { display: none; }
  .pdp-stage:hover img { transform: none; }
  [data-reveal].is-armed, [data-reveal].is-armed .pdp-spec-grid > div, [data-reveal].is-armed .pdp-fit-card { opacity: 1; transform: none; transition: none; }
  .pdp-tabs-bar, .pdp-buybar, .wa-fab, .pdp-fit-card, .pdp-fits-teaser { transition: none; }
}

.pdp-fits-note {
  grid-column: 1 / -1; margin: 0; padding: 1rem 1.2rem; border: 1px dashed var(--c-border-strong); border-radius: 16px;
  font-size: var(--fs-sm); color: var(--c-ink-2); line-height: 1.55;
}
.pdp-fits-note strong { color: var(--c-ink); margin-right: 0.25rem; }
.pdp-fits-note a { font-weight: 700; }

/* ---------- The brand line: the mark in its own colour, the name in ink ---------- */
.pdp-summary .pdp-brand { color: var(--c-ink); }
.pdp-summary .pdp-brand-link { color: var(--c-ink); transition: opacity 0.15s ease; }
.pdp-summary .pdp-brand-link svg { color: var(--brand-colour, var(--c-ink)); }
.pdp-summary .pdp-brand-link:hover, .pdp-summary .pdp-brand-link:focus-visible { color: var(--c-ink); opacity: 0.7; }
