/* Product page (single-cph_prop). Mobile-first: base serves 320px up, min-width layers upward. */

.product-page { padding-bottom: clamp(30px, 4vw, 56px); }

/* --- breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  /* Anchors are 44px tall (tap targets), which adds ~13px visual space below the
     text; margin-bottom is trimmed accordingly to keep the original rhythm. */
  margin-bottom: clamp(9px, 3vw - 13px, 23px);
}
.breadcrumb a {
  /* Hit target >= 44px (brief rule); horizontal padding + negative margin keeps left edge aligned. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  margin: 0 -6px;
  color: var(--ink-soft);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--green); }
.breadcrumb__current { color: var(--ink); }

/* --- layout: single column (image first), two columns from 900px --- */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.product__media { min-width: 0; }

/**
 * Uniform square stage for every prop photo.
 *
 * The catalogue is wildly inconsistent: 64 of 135 photos are portrait, 39 are
 * landscape, and the extremes run from 0.19 (111x588 street lamps) to 2.40
 * (1000x416 sleigh set). Sizing by width alone made the tall ones render
 * thousands of pixels high. A fixed square + object-fit: contain gives every
 * product page the same frame — matching the catalogue tiles — while the photo
 * keeps its own shape.
 *
 * Never crop (these are the client's only shots of each prop) and never upscale:
 * some sources are barely 111-272px wide, so width/height stay auto and the
 * max-* pair does the fitting.
 */
.product__frame {
  background: var(--paper);
  overflow: hidden; /* .frame radius clips the photo corners */
  box-shadow: 0 14px 34px rgba(20, 68, 43, 0.16);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  position: relative;
  --stage-gutter: clamp(14px, 2.4vw, 26px);
  margin-inline: auto; /* single-column: centre it rather than stranding it left */
}
/**
 * Absolutely positioned + margin:auto, NOT flex/grid centring: a percentage
 * max-height only resolves against a definite height, and an auto-sized grid
 * row just grew to fit the 1000px-tall photos instead of capping them. Against
 * a positioned ancestor the percentages are always definite, so tall props are
 * held to the square while width/height stay auto (no upscaling of the small
 * sources, no distortion, nothing cropped).
 */
.product__img, .product__frame img {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto; /* with inset:0 this is what centres it on both axes */
  width: auto;
  height: auto;
  /* The gutter lives here, not in inset/padding: an absolutely positioned box
     resolves against the padding box, so both would be ignored. */
  max-width: calc(100% - 2 * var(--stage-gutter));
  max-height: calc(100% - 2 * var(--stage-gutter));
  object-fit: contain;
}
.product__noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: clamp(260px, 50vw, 380px);
  background: var(--green);
  color: var(--cream);
  font-family: var(--display);
}

.product__info { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 22px); min-width: 0; }
.product__kicker { margin: 0; color: var(--red); }
/* h1-qualified: must outweigh base h1.display's vw clamp (tuned for the old font). */
h1.product__title { font-size: clamp(26px, 4.8vw, 46px); overflow-wrap: break-word; }

/* --- price block --- */
.product__price-block { border-top: 2px solid var(--green); padding-top: 16px; }
.product__from,
.product__poe {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--green);
}
.product__poe { color: var(--ink); }
.product__poe-note { margin: 6px 0 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* --- buy box (option + qty + add) --- */
.prop-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--paper);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 14px 34px rgba(20, 68, 43, 0.16);
}
.prop-box__field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 100%; min-width: 0; }
.prop-box__field .kicker { color: var(--ink); }

.select-wrap { position: relative; display: block; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 12px 40px 12px 14px;
  cursor: pointer;
}
.select-wrap__icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--green);
}

.product__add { flex: 1 1 100%; text-align: center; min-height: 52px; }

/* --- delivery note --- */
.product__note {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--cream);
  padding: 14px 18px;
  color: var(--ink);
}
.product__note svg { flex: 0 0 auto; color: var(--green); }
.product__note p { margin: 0; font-size: 14px; font-weight: 700; }

/* --- about --- */
.product__about { padding-top: clamp(36px, 5vw, 64px); }
.product__content { margin-top: 14px; font-size: clamp(16px, 1.1vw, 18px); max-width: 88ch; }
.product__content p { margin: 0 0 1em 0; }
.product__content :last-child { margin-bottom: 0; }

/* --- full-width explainer -------------------------------------------------
   Runs the full width of the wrap under the product. The prose keeps a
   readable measure (a 1720px line of body copy is unreadable); the card grids
   are what actually fill the width, which is what makes it look deliberate
   rather than stretched. */
.explainer__lead {
  max-width: 88ch;
  margin: 16px 0 0;
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.55;
  color: var(--ink);
}
.explainer__block { margin-top: clamp(30px, 3.4vw, 48px); }
.explainer__h {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 16px;
}

/* Where it works */
.explainer__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.3vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.explainer__card {
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: clamp(16px, 1.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.explainer__card-venue {
  font-family: var(--display);
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.15;
  color: var(--green);
}
.explainer__card-note { font-size: 15px; line-height: 1.55; color: var(--ink); }

/* Common questions */
/* Two columns max — Q&A reads badly in narrow ribbons, and 3 or 4 questions
   balance across two columns instead of stranding one on its own row. */
.explainer__faqs {
  display: grid;
  gap: clamp(16px, 2vw, 30px) clamp(24px, 3vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .explainer__faqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.explainer__faq { border-top: 2px solid rgba(20, 68, 43, 0.18); padding-top: 14px; }
.explainer__q {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.25;
  color: var(--green);
}
.explainer__a { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); max-width: 62ch; }

/* Good to know */
.explainer__know {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px clamp(24px, 3vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.explainer__know li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.55;
}
.explainer__know li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* Goes well with — the internal-linking row */
.explainer__goes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.3vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.explainer__goes-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 12px;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.explainer__goes-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.explainer__goes-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.explainer__goes-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
@media (hover: hover) {
  .explainer__goes-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 68, 43, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .explainer__goes-link { transition: none; }
  .explainer__goes-link:hover { transform: none; }
}

/* --- more from category --- */
.related { border-top: 2px solid var(--green); background: var(--paper); margin-top: clamp(36px, 5vw, 64px); }
.related__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.related__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.related__all:hover { color: var(--red); }
.related__all svg { color: var(--red); }
.prop-card__meta .btn-small { white-space: nowrap; }

/* --- gold My List band --- */
.list-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  background: var(--gold);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px);
  margin: clamp(40px, 6vw, 72px) 0;
}
/* .list-band.shadow-ink: soft shadow comes from the base .shadow-ink utility. */
.list-band__copy { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.list-band__head { font-size: clamp(21px, 2.2vw, 28px); }
.list-band__sub { margin: 0; font-size: 15px; font-weight: 600; }

/* --- 560px+: buy-box fields sit side by side, breadcrumb relaxes --- */
@media (min-width: 560px) {
  .breadcrumb { gap: 10px; font-size: 13px; }
  .prop-box__field { flex: 1 1 220px; }
  .prop-box__field--qty { flex: 0 1 110px; min-width: 96px; }
}

/* --- 900px+: two columns (image left, buy box right), band spreads out --- */
@media (min-width: 900px) {
  /* Image column is the fixed square; the buy box takes what is left. Capping
     the pair stops it stretching to the 1720px wrap on big screens — the same
     "deliberate, not stretched" intent the superwide rule below always had. */
  .product {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    max-width: 1180px;
  }
  .product__frame { box-shadow: 0 18px 44px rgba(20, 68, 43, 0.2); margin-inline: 0; }
  .list-band { justify-content: space-between; text-align: left; }
  .list-band__copy { align-items: flex-start; }
}

/* --- 1800px+: superwide — pair stays put, type keeps breathing --- */
@media (min-width: 1800px) {
  .product__info { gap: 26px; }
}

/* --- 2200px+: display type keeps growing (continuous at the boundary) --- */
@media (min-width: 2200px) {
  h1.product__title { font-size: clamp(46px, 2.1vw, 54px); }  /* 2.1vw@2200 ≈ 46.2 → continuous */
  .list-band__head { font-size: clamp(28px, 1.3vw, 33px); } /* 1.3vw@2200 ≈ 28.6 → continuous */
}
