/* Theme Name: ZeroY Starter */
/* SourcingPromo — global styles. Page-specific CSS lives in assets/css/*.css */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--page);color:var(--ink);
  font-family:var(--font-body);font-size:var(--step-0);line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration-color:var(--line-strong);text-underline-offset:3px}
a:hover{color:var(--brand-dark);text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:2px}
hr{border:0;border-top:1px solid var(--line);margin:0}

h1,h2,h3,h4{margin:0;line-height:1.15;letter-spacing:-.02em;font-weight:650;text-wrap:balance}
h1{font-size:var(--step-4);font-weight:680;letter-spacing:-.035em}
h2{font-size:var(--step-3)}
h3{font-size:var(--step-2);letter-spacing:-.015em}
h4{font-size:var(--step-1)}
p{margin:0}

/* ---------- layout ---------- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.wrap--narrow{max-width:var(--maxw-narrow)}
.section{padding-block:var(--space-section)}
.section--sand{background:var(--sand);border-block:1px solid var(--line)}
.section--tight{padding-block:clamp(2rem,3.5vw,3.25rem)}
.stack{display:flex;flex-direction:column;gap:1rem}
.stack--loose{gap:1.75rem}
.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.split{display:grid;gap:clamp(1.5rem,4vw,3rem)}
@media (min-width:860px){.split{grid-template-columns:1fr 1fr;align-items:start}}
.grid{display:grid;gap:1.25rem}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}

/* ---------- type helpers ---------- */
.eyebrow{
  font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--brand-dark);margin:0;
}
.lede{font-size:var(--step-1);color:var(--ink-2);line-height:1.55;max-width:60ch}
.muted{color:var(--ink-3)}
.small{font-size:var(--step--1)}
.note{font-size:var(--step--1);color:var(--ink-3);line-height:1.5;max-width:70ch}
.num{font-variant-numeric:tabular-nums}
.prose{max-width:var(--maxw-narrow)}
.prose>*+*{margin-top:1em}
.prose h2{margin-top:2rem;font-size:var(--step-2)}
.prose h3{margin-top:1.75rem}
.prose ul,.prose ol{padding-left:1.25rem}
.prose li+li{margin-top:.4em}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.7rem 1.15rem;border-radius:var(--radius-pill);border:1px solid transparent;
  font:inherit;font-size:.9375rem;font-weight:600;line-height:1.2;
  text-decoration:none;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s;
}
.btn--primary{background:var(--brand);color:#fff}
.btn--primary:hover{background:var(--brand-dark);color:#fff}
.btn--ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.btn--ghost:hover{border-color:var(--ink);color:var(--ink)}
.btn--quiet{background:var(--sand-2);color:var(--ink)}
.btn--quiet:hover{background:var(--line)}
.btn--block{width:100%}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45;pointer-events:none}
.link-arrow{font-weight:600;text-decoration:none;border-bottom:1px solid var(--brand);padding-bottom:1px}

/* ---------- surfaces ---------- */
.card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);
  overflow:hidden;display:flex;flex-direction:column;
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
.card:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}
.card__media{aspect-ratio:4/3;background:var(--sand-2);position:relative;display:block;overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover}
.card__media--square{aspect-ratio:1/1}
.card__body{padding:1rem 1.1rem 1.15rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
.card__title{font-size:1.0625rem;font-weight:650;line-height:1.3;letter-spacing:-.01em}
.card__title a{text-decoration:none}
.card__foot{margin-top:auto;padding-top:.7rem;display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
/* The card's one action (parts/product-card.php): quiet by default, and it says so once the
   product is already in the visitor's RFQ list. */
.card-rfq{
  display:inline-flex;align-items:center;gap:.35rem;align-self:flex-start;margin-top:.5rem;
  padding:.38rem .7rem .38rem .6rem;border-radius:var(--radius-pill);
  border:1px solid var(--line-strong);background:var(--paper);
  font-size:var(--step--1);font-weight:600;line-height:1.2;color:var(--ink);text-decoration:none;
  transition:border-color .15s,background-color .15s,color .15s;
}
.card-rfq:hover{border-color:var(--ink);color:var(--ink)}
.card-rfq__mark{font-weight:700;color:var(--brand);line-height:1}
.card-rfq.is-added{background:var(--brand-tint);border-color:var(--brand);color:var(--brand-dark)}
.card-rfq.is-added .card-rfq__mark{color:var(--brand-dark)}
.placeholder-media{
  background:
    repeating-linear-gradient(135deg,var(--sand-2) 0 10px,transparent 10px 20px),
    var(--sand-2);
  display:grid;place-items:center;color:var(--ink-3);font-size:.75rem;
  letter-spacing:.08em;text-transform:uppercase;
}

/* ---------- price ---------- */
.price{font-size:1.0625rem;font-weight:680;letter-spacing:-.01em}
.price span{font-weight:500;color:var(--ink-3);font-size:var(--step--1);letter-spacing:0}
.tag{
  display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;border-radius:var(--radius-sm);
  background:var(--sand-2);color:var(--ink-2);font-size:.75rem;font-weight:560;letter-spacing:.01em;
}
.tag--brand{background:var(--brand-tint);color:var(--brand-dark)}
.tag--ok{background:#E8F3EE;color:var(--ok)}
.tag--warn{background:#FBF1DF;color:var(--warn)}

/* ---------- facts & tables ---------- */
.facts{display:grid;gap:.55rem;margin:0}
.facts>div{display:grid;grid-template-columns:minmax(8rem,40%) 1fr;gap:1rem;padding-bottom:.55rem;border-bottom:1px solid var(--line)}
.facts dt{margin:0;color:var(--ink-3);font-size:var(--step--1)}
.facts dd{margin:0;font-weight:520}
table.data{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
table.data th,table.data td{padding:.65rem .5rem;text-align:left;border-bottom:1px solid var(--line)}
table.data th{font-size:var(--step--1);color:var(--ink-3);font-weight:560;text-transform:uppercase;letter-spacing:.06em}
table.data td:not(:first-child),table.data th:not(:first-child){text-align:right}

/* ---------- forms ---------- */
.field{display:flex;flex-direction:column;gap:.35rem}
.field>label{font-size:var(--step--1);font-weight:600;color:var(--ink-2)}
.field .hint{font-size:var(--step--1);color:var(--ink-3)}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=date],select,textarea{
  font:inherit;font-size:.9375rem;color:var(--ink);background:var(--paper);
  border:1px solid var(--line-strong);border-radius:var(--radius);padding:.6rem .7rem;width:100%;
}
textarea{min-height:7rem;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.form-status{font-size:var(--step--1);color:var(--warn);min-height:1.2em}

/* ---------- header ---------- */
/* The header sticks, so an anchor's target needs room above it instead of hiding under the bar. */
html{scroll-padding-top:72px}
@media (min-width:960px){html{scroll-padding-top:84px}}
/* No backdrop-filter here on purpose: a filter on an ancestor becomes the containing block for
   fixed positioning, and every navigation panel is fixed to the viewport by its behaviour. */
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line)}
.site-header__inner{display:flex;align-items:center;gap:.5rem;min-height:60px}
@media (min-width:960px){.site-header__inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;min-height:68px}}
@media (min-width:1180px){.site-header__inner{gap:1.5rem}}
.brand{display:inline-flex;align-items:center;gap:.6rem;font-weight:700;letter-spacing:-.02em;text-decoration:none;font-size:1.0625rem;color:var(--ink)}
.brand__mark{width:26px;height:26px;border-radius:7px;background:var(--brand);display:grid;place-items:center;color:#fff;font-size:.8125rem;font-weight:700}
.brand__logo{display:block;height:40px;width:auto;max-width:min(280px,46vw)}
@media (max-width:600px){.brand__logo{height:32px;max-width:8.5rem}}
/* A 320px phone still has to hold the logo, the search toggle, "My RFQ" and the menu button. */
@media (max-width:399px){.brand__logo{height:28px;max-width:6.5rem}}
@media (min-width:960px) and (max-width:1179px){.brand__logo{height:36px;max-width:8rem}}
/* The footer logo keeps its own colours: the image's transparent background lets the footer through. */
.brand--footer .brand__logo{height:52px;max-width:8.5rem}
/* The primary navigation: six links, three of which also carry a panel. The link always goes to
   the page; the chevron beside it opens the panel, so neither job is guessed from the other. */
.nav{display:none}
@media (min-width:960px){.nav{display:block;min-width:0;justify-self:center}}
.nav__list{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.1rem .15rem;margin:0;padding:0;list-style:none}
.nav__item{display:flex;align-items:center;min-width:0}
.nav__link{
  display:inline-flex;align-items:center;min-height:44px;padding-inline:.55rem;
  font-size:.9375rem;font-weight:560;color:var(--ink-2);text-decoration:none;white-space:nowrap;
  border-radius:var(--radius-sm);
}
.nav__link:hover{color:var(--ink)}
.nav__toggle{
  display:inline-grid;place-items:center;width:32px;height:44px;padding:0;
  border:0;background:none;color:var(--ink-2);cursor:pointer;border-radius:var(--radius-sm);
}
.nav__toggle:hover{color:var(--ink);background:var(--sand)}
.nav__chev{transition:transform .15s ease}
.nav__item[data-state="open"] .nav__chev{transform:rotate(180deg)}
.nav__item[data-state="open"] .nav__toggle{color:var(--ink)}
/* The bar is dense between 960px and 1180px: the links tighten before anything is dropped. */
@media (max-width:1179px){
  .nav__link{font-size:.875rem;padding-inline:.4rem}
  .nav__toggle{width:28px}
}

/* The panel itself: contents are read from the site, so nothing here assumes how many links it holds.
   Its position is set by the behaviour (fixed, flipped and clamped to the viewport). */
.nav__panel{
  width:min(46rem,calc(100vw - 2rem));
  padding:1.15rem 1.3rem 1.3rem;
  background:var(--paper);border:1px solid var(--line);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);
}
.nav__panel[hidden]{display:none}
.nav__cols{display:grid;gap:1.25rem 2rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.nav__col{min-width:0}
.nav__col-title{
  margin:0 0 .5rem;font-size:.6875rem;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-3);
}
.nav__lead{
  display:flex;align-items:center;min-height:44px;padding:.4rem .55rem;margin-bottom:.2rem;
  border-radius:var(--radius-sm);font-size:.9375rem;font-weight:650;color:var(--ink);text-decoration:none;
}
.nav__links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:0 .5rem;margin:0;padding:0;list-style:none}
.nav__links a{
  display:flex;align-items:center;min-height:40px;padding:.35rem .55rem;border-radius:var(--radius-sm);
  font-size:.9375rem;color:var(--ink-2);text-decoration:none;
}
.nav__lead:hover,.nav__links a:hover{background:var(--sand);color:var(--ink)}
/* The right-hand cluster: search, the RFQ list and its count, the quote button, and — below 960px —
   the one button that opens everything the bar cannot hold. */
.header-actions{display:flex;align-items:center;gap:.35rem;margin-left:auto}
@media (min-width:960px){.header-actions{gap:.6rem;margin-left:0;justify-self:end}}
@media (min-width:1180px){.header-actions{gap:.85rem}}

/* Search is a native <details>, so it opens and closes with no script at all. The panel is placed
   against the header, never against the button, so it stays on screen at every width. */
.header-search__toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-width:44px;min-height:44px;padding-inline:.5rem;border-radius:var(--radius-pill);
  color:var(--ink-2);cursor:pointer;list-style:none;
}
.header-search__toggle::-webkit-details-marker{display:none}
.header-search__toggle:hover{color:var(--ink);background:var(--sand)}
.header-search[open] .header-search__toggle{color:var(--ink);background:var(--sand)}
.header-search__label{font-size:.9375rem;font-weight:600}
/* Too narrow for the word: the label stays in the accessible name, only its pixels go. */
@media (max-width:1179px){
  .header-search__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}
.header-search__panel{
  position:absolute;left:0;right:0;top:100%;
  background:var(--paper);border-bottom:1px solid var(--line);box-shadow:var(--shadow);
  padding-block:1rem;
}
.header-search__form{display:flex;align-items:center;gap:.5rem}
.header-search__panel .header-search__form{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.header-search__field{
  flex:1 1 auto;min-width:0;min-height:44px;padding:.5rem .9rem;
  font:inherit;font-size:.9375rem;color:var(--ink);background:var(--paper);
  border:1px solid var(--line-strong);border-radius:var(--radius-pill);
}
.header-search__field:focus{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.header-search__form .btn{min-height:44px;flex:0 0 auto}

.header-cta{display:none}
@media (min-width:960px){.header-cta{display:inline-flex;min-height:44px}}
/* The RFQ list keeps its name in the header on every page; the number appears with the first
   item, so an empty list is not a piece of furniture. */
.header-rfq{
  display:inline-flex;align-items:center;gap:.4rem;min-height:44px;
  font-size:.9375rem;font-weight:600;text-decoration:none;color:var(--ink-2);white-space:nowrap;
}
.header-rfq:hover{color:var(--ink)}
.header-rfq__count{
  display:inline-grid;place-items:center;min-width:1.3rem;height:1.3rem;padding-inline:.3rem;
  border-radius:var(--radius-pill);background:var(--brand);color:#fff;
  font-size:.75rem;font-weight:700;line-height:1;
}
.header-rfq__count[hidden]{display:none}

/* The mobile panel: one button, one panel holding the same navigation, the search field and the
   quote button. It closes on Escape and when focus leaves it, because its behaviour does that. */
.nav-mobile{display:block}
@media (min-width:960px){.nav-mobile{display:none}}
.nav-mobile__toggle{
  display:inline-grid;place-items:center;width:44px;height:44px;padding:0;
  border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--paper);
  color:var(--ink);cursor:pointer;
}
.nav-mobile__toggle:hover{border-color:var(--ink)}
.nav-mobile__panel{
  width:min(21rem,calc(100vw - 1rem));
  padding:1rem 1.1rem 1.15rem;
  background:var(--paper);border:1px solid var(--line);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);
}
.nav-mobile__panel[hidden]{display:none}
.nav-mobile__group+.nav-mobile__group{margin-top:.35rem;padding-top:.35rem;border-top:1px solid var(--line)}
.nav-mobile__link{display:flex;align-items:center;min-height:44px;font-size:1rem;font-weight:650;color:var(--ink);text-decoration:none}
.nav-mobile__sub{display:grid;gap:0;margin:0 0 .35rem .15rem;padding-left:.75rem;border-left:2px solid var(--line)}
.nav-mobile__sub-title{margin:.35rem 0 .1rem;font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.nav-mobile__sub-link{display:flex;align-items:center;min-height:44px;font-size:.9375rem;color:var(--ink-2);text-decoration:none}
.nav-mobile__link:hover,.nav-mobile__sub-link:hover{color:var(--brand-dark)}
.nav-mobile__foot{display:grid;gap:.6rem;margin-top:.85rem;padding-top:.85rem;border-top:1px solid var(--line)}
.nav-mobile__foot .btn{min-height:44px}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:#D9D6D0;margin-top:0;padding-block:clamp(2.5rem,5vw,4rem) 1.5rem}
.site-footer a{color:#F2EFEA;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer h2{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#9A968F;font-weight:600;margin-bottom:.85rem}
/* The brand sits above the five columns, so the logo keeps its width and the links keep theirs. */
.site-footer__brand{display:grid;gap:.85rem;justify-items:start;max-width:34rem;margin-bottom:2.5rem}
.site-footer__blurb{color:#B9B5AE;max-width:32ch;margin:0;line-height:1.55}
.brand--footer{color:#fff}
.site-footer__grid{display:grid;gap:2rem 1.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5rem),1fr))}
.site-footer__group{min-width:0}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.1rem;font-size:.9375rem}
.site-footer li>a{display:inline-flex;align-items:center;min-height:32px;line-height:1.35}
.site-footer__hint{color:#8E8A83;font-size:var(--step--1);font-weight:400}
.site-footer__addresses{display:grid;gap:.75rem;margin-top:1.15rem}
.site-footer__address{
  margin:0;color:#8E8A83;font-size:var(--step--1);line-height:1.5;max-width:30ch;
}
.site-footer__address .site-footer__hint{
  display:block;margin-bottom:.15rem;color:#7E7A73;
  font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;
}
.site-footer__base{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid #33373D;display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between;font-size:var(--step--1);color:#9A968F}

/* ---------- misc ---------- */
.breadcrumbs{font-size:var(--step--1);color:var(--ink-3);display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.breadcrumbs a{color:var(--ink-3);text-decoration:none}
.breadcrumbs a:hover{color:var(--ink);text-decoration:underline}
.empty{
  border:1px dashed var(--line-strong);border-radius:var(--radius-lg);padding:2rem;
  text-align:center;color:var(--ink-3);background:var(--sand);
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:100}
.skip-link:focus{left:0;color:#fff}

/* ---------- price states ----------
   Three states, never a zero: a channel that cannot carry the product shows "—";
   one whose rate or data is missing asks for a price. Both use these classes so
   the product page, the cards and the RFQ say it the same way. */
.price-state{font-size:var(--step--1);color:var(--ink-3);line-height:1.35}
.price-state--ask{color:var(--warn);font-weight:600}
.price-state--blocked{color:var(--ink-3)}
.badge--sample{background:#FBF1DF;color:var(--warn)}
.quote-note{font-size:var(--step--1);color:var(--ink-3);max-width:66ch;line-height:1.5}
.fee-line{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding-block:.5rem;border-bottom:1px dashed var(--line)}
.fee-line:last-of-type{border-bottom:0}
.fee-line dt{color:var(--ink-2)}
.fee-line dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.channel-row{display:grid;grid-template-columns:1fr auto;gap:.35rem 1rem;align-items:baseline;padding-block:.6rem;border-bottom:1px solid var(--line)}
.channel-row:last-child{border-bottom:0}
.channel-row__label{font-weight:600}
.channel-row__days{grid-column:1/-1;font-size:var(--step--1);color:var(--ink-3)}
.channel-row__price{text-align:right;font-variant-numeric:tabular-nums;font-weight:680;font-size:1.0625rem}
