/* SourcingPromo — the product page's own layout: the gallery and its single information column, the
   key specs, the tier price with what it includes, the one customization strip, the packaging table,
   the decoration cards, the occasion cards and the compact service links. Tokens, .btn, .lede,
   .facts, .grid and .prose come from tokens.css and style.css; only "pd-" classes live here. */

/* ---------- the top: gallery left, one continuous information column on the right ----------
   The standard values live in that column, so there is no second side list: name, one-line feature,
   key specs, MOQ and production, the tier prices, what the price includes, the setup fee, and the
   RFQ / DDP entries run in that order down one column. The gallery does not stick: the page is read
   top to bottom and the image column keeps its own height. On a phone the grid falls back to one
   column in the same order, with nothing important folded away. */
.pd-hero__grid{
  display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.5rem,4vw,2.75rem);margin-top:1.25rem;
}
/* One column on a phone: no named area is used here, so nothing is placed on implicit rows. */
.pd-hero__media,.pd-hero__info{grid-area:auto;min-width:0}
.pd-hero__info{display:flex;flex-direction:column;gap:.85rem}
.pd-hero__main,.pd-hero__buy{display:flex;flex-direction:column;gap:.85rem;min-width:0}
@media (min-width:900px){
  /* Two columns, three areas: the gallery top-left, the buy block (setup fee, RFQ, DDP entries) under
     it in the same column, and one continuous information column on the right. The buy block moves
     left so both sides end at a comparable height, and its ceiling stops the button from running the
     full width of the column. A phone keeps the printed order: price first, then the buy block. */
  .pd-hero__grid{
    grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
    grid-template-areas:"media main" "buy main";
    align-items:start;
  }
  .pd-hero__media{grid-area:media}
  .pd-hero__info{display:contents}
  .pd-hero__main{grid-area:main}
  .pd-hero__buy{grid-area:buy;max-width:22rem}
}
.pd-hero__eyebrow{
  margin:0;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);
}
.pd-hero__eyebrow a{text-decoration:none;color:inherit}
.pd-hero__eyebrow a:hover{color:var(--brand-dark)}
.pd-hero__title{font-size:var(--title-page);line-height:1.08;letter-spacing:-.03em}
.pd-hero__sku{margin:-.35rem 0 0;font-size:var(--step--1);color:var(--ink-3);font-variant-numeric:tabular-nums}

/* the main image keeps its whole frame: never cropped to fill a fixed box */
.pd-hero__media .cat-gallery__stage{background:var(--sand);border-radius:var(--radius);overflow:hidden}
.pd-hero__media .cat-gallery__panel{display:flex;align-items:center;justify-content:center}
.pd-hero__media .cat-gallery__img{
  display:block;width:100%;height:auto;max-height:min(70vh,40rem);object-fit:contain;
}
.pd-hero__media .qp-media-empty{aspect-ratio:1/1;border-radius:var(--radius)}

/* the specs a buyer checks before the price, side by side like a small table */
.pd-key{
  display:grid;gap:0;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));
  margin:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);overflow:hidden;
}
.pd-key>div{padding:.55rem .75rem;border-left:1px solid var(--line);min-width:0}
.pd-key>div:first-child{border-left:0}
.pd-key dt{font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.pd-key dd{margin:.15rem 0 0;font-size:var(--step--1);font-weight:600;color:var(--ink);line-height:1.35}

.pd-key--spec{grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr))}
.pd-key dd .small{display:block;font-weight:500;color:var(--ink-3);margin-top:.1rem}

/* what the unit price already covers, printed directly under the tier buttons so a price is never
   read without its condition; the standard packaging is named once beside the order actions */
.pd-included{
  padding:.7rem .85rem;background:var(--sand);border:1px solid var(--line);border-radius:var(--radius);
}
.pd-included__title{
  margin:0 0 .35rem;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-3);
}
.pd-included__list{margin:0;display:grid;gap:.4rem}
.pd-included__list>div{display:grid;grid-template-columns:minmax(6.5rem,30%) minmax(0,1fr);gap:.6rem}
.pd-included__list dt{font-size:var(--step--1);color:var(--ink-3);line-height:1.4}
.pd-included__list dd{margin:0;font-size:var(--step--1);color:var(--ink);line-height:1.45}
.pd-included__list dd .small{display:block;color:var(--ink-3)}
@media (max-width:520px){
  .pd-included__list>div{grid-template-columns:minmax(0,1fr);gap:.1rem}
}

/* the standard packaging the tier prices are quoted for, standing beside the order actions so the
   buyer reads what the price covers before pressing the button */
.pd-buy__pack{
  padding:.7rem .85rem;background:var(--sand);border:1px solid var(--line);border-radius:var(--radius);
}
.pd-buy__pack-title{
  margin:0 0 .25rem;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-3);
}
.pd-buy__pack-value{margin:0;font-size:var(--step--1);color:var(--ink);line-height:1.45}

/* the entries under the price: the RFQ button, then plain text links on one line */
.pp-links{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem 1.15rem;margin:.55rem 0 0;font-size:var(--step--1)}
.pp-links .link-arrow{font-weight:500}
.pp-links__ddp{font-weight:600}

/* the one customization entry, between the price and the rest of the page */
.pd-strip__box{
  display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;justify-content:space-between;
  padding:.9rem 1.1rem;background:var(--paper);border:1px solid var(--line);border-left:3px solid var(--brand);
  border-radius:var(--radius);
}
.pd-strip__box p{margin:0;flex:1 1 24rem;min-width:0;font-size:var(--step--1);color:var(--ink-2);line-height:1.5}
.pd-strip__box strong{color:var(--ink);font-weight:700}
.pd-strip__box .link-arrow{flex:0 0 auto;font-weight:600}

/* ---------- the anchor bar ---------- */
.pd-bar{padding-block:0}
.pd-bar .wrap{border-block:1px solid var(--line);padding-block:.5rem}
@media (min-width:900px){.pd-bar .pd-nav{justify-content:center}}
.pd-nav a{border-color:transparent;background:transparent}
.pd-nav a:hover{background:var(--sand);border-color:var(--line)}

/* ---------- details: the description beside a detail image ---------- */
.pd-spec{margin:0;display:grid;gap:0;border-top:1px solid var(--line)}
.pd-spec>div{display:grid;grid-template-columns:minmax(7rem,32%) minmax(0,1fr);gap:.75rem;padding:.5rem 0;border-bottom:1px solid var(--line)}
.pd-spec dt{font-size:var(--step--1);color:var(--ink-3);line-height:1.4}
.pd-spec dd{margin:0;font-size:var(--step--1);color:var(--ink);line-height:1.5}
.pd-spec dd .small{display:block;color:var(--ink-3)}
.pd-details__media img{border-radius:var(--radius);width:100%;height:auto}
.pd-prose{max-width:var(--measure-body)}

/* ---------- decoration: a small picture-and-text card, read in one line ---------- */
.pd-methods{gap:.75rem}
.pd-method{
  display:flex;gap:.8rem;align-items:flex-start;min-width:0;
  padding:.8rem .9rem;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
}
.pd-method__img{
  flex:0 0 4.5rem;width:4.5rem;height:4.5rem;overflow:hidden;background:var(--sand);
  border-radius:calc(var(--radius) - 1px);
}
.pd-method__thumb{display:block;width:100%;height:100%;object-fit:cover}
.pd-method__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.25rem}
.pd-method__name{font-size:.9375rem;font-weight:600;letter-spacing:-.01em;margin:0;line-height:1.3}
.pd-method__name a{text-decoration:none}
.pd-method p{margin:0;line-height:1.45;font-size:var(--step--1)}
.pd-method .link-arrow{margin-top:auto;align-self:flex-start;font-size:var(--step--1)}
.pd-artwork{
  padding:1rem 1.1rem;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
}
.pd-artwork h3{margin:0 0 .45rem;font-size:1rem}
.pd-artwork__list{margin:0;padding-left:1.1rem;display:grid;gap:.3rem;font-size:var(--step--1);color:var(--ink-2);line-height:1.45}

/* ---------- the sample, packaging and delivery table ---------- */
.pd-spec--logistics{margin-top:.25rem}
.pd-spec--logistics>div{grid-template-columns:minmax(8rem,40%) minmax(0,1fr)}

/* ---------- the compact service links ----------
   One line standing in for the four-step timeline: the detail lives on the service pages, and this
   page only points at them. Same chips as the anchor strip above and the same step--1 size, so the
   two navigation bands share one type scale; these leave the page, so they sit quieter: no fill, a
   line-coloured border and a lighter weight. */
.pd-help{
  display:flex;flex-wrap:wrap;align-items:center;gap:.7rem 1.5rem;justify-content:space-between;
  padding-block:.35rem;
}
.pd-help__label{
  margin:0;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);
}
.pd-help__nav{justify-content:flex-end;gap:.45rem}
.pd-help__nav a{background:transparent;border-color:var(--line);font-weight:500;color:var(--ink-2)}
.pd-help__nav a:hover{background:var(--sand);border-color:var(--line-strong);color:var(--ink)}
@media (max-width:700px){
  .pd-help{flex-direction:column;align-items:flex-start;gap:.55rem}
  .pd-help__nav{justify-content:flex-start}
}

/* ---------- the category trail, in the information column ----------
   Level 1, then the level-2 subcategory it holds, both plain links to the terms' own pages, so the
   buyer reads where the item sits without leaving the page's hierarchy. The last step is quieter:
   it is the leaf, not the family. */
.pd-trail{display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem}
.pd-trail__step{text-decoration:none}
.pd-trail__sep{color:var(--line-strong);font-weight:400}
.pd-trail__leaf{color:var(--ink-2)}

/* ---------- where the item is used: short picture cards ----------
   The occasion term's own image with its name under it, so a buyer sees the use rather than reading a
   list of labels. Four fit one row on a desktop and two on a phone; a term without an image is not
   printed at all. */
.pd-scenecards{
  display:grid;gap:.75rem;margin:0;padding:0;list-style:none;
  /* Fixed tracks, not auto-fit: a product linked to a single occasion prints one card at card size
     instead of stretching that picture across the row. */
  grid-template-columns:repeat(auto-fill,minmax(11rem,15rem));
  justify-content:start;
}
.pd-scenecard{
  display:flex;flex-direction:column;gap:.45rem;text-decoration:none;color:inherit;min-width:0;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
}
a.pd-scenecard:hover{border-color:var(--ink-3)}
.pd-scenecard__media{display:block;aspect-ratio:16/9;background:var(--sand);overflow:hidden}
.pd-scenecard__img{display:block;width:100%;height:100%;object-fit:cover}
.pd-scenecard__name{
  display:block;padding:0 .7rem .7rem;font-size:var(--step--1);font-weight:600;line-height:1.35;
  color:var(--ink);
}

/* ---------- short lists keep the catalogue's card size ----------
   `auto-fit` collapses the tracks a short list does not fill, so two related products each took half
   the page (a 590px square of empty image) and a single guide card took the whole row. Fixed tracks
   plus a ceiling hold every card at the size the catalogue prints it, whether the list holds one item
   or three. Scoped to this page's own sections, so the catalogue and the home page are untouched. */
@media (min-width:900px){
  .pd-related .grid--3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:62rem}
  .pd-refs .grid--2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:62rem}
}

/* the occasion pictures under "Where this item is used": the same ceiling, so two cards stay two
   cards instead of stretching into two half-page posters */
.pd-scenecards{max-width:52rem}

/* the detail pictures are insets under the description, never full-width posters; two of them print
   side by side on a wide screen and stack on a phone */
.pd-details__media{display:grid;gap:1rem;max-width:32rem;margin-inline:auto}
.pd-details__media--multi{max-width:46rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.pd-detail{margin:0;display:grid;gap:.45rem;min-width:0}
.pd-detail__cap{font-size:var(--step--1);line-height:1.45;color:var(--ink-3)}
@media (max-width:700px){
  .pd-details__media--multi{grid-template-columns:minmax(0,1fr);max-width:32rem}
}
