/* =============================================================================
   WILD BOYS  ·  PRODUCT PAGE STYLES
   product-page.css

   Shared by every generated product page. Everything here is built from
   wildboys.tokens.css: no raw hex values, no one-off sizes. If you need
   something new, add a token there first.

   Load order in every product page:
     1. the Google Fonts stylesheet
     2. /wildboys.tokens.css
     3. this file
   ============================================================================= */
/* =============================================================================
   PRODUCT PAGE
   Everything here is built from wildboys.tokens.css. No raw hex values, no
   one-off pixel sizes. If you need something new, add a token there first.
   ============================================================================= */

*,*::before,*::after { box-sizing: border-box; }
body { margin: 0; }

/* ---- skip link, first thing a keyboard user meets ---- */
.wb-skip {
  position: absolute; left: -9999px;
  background: var(--wb-heat); color: var(--wb-heat-ink);
  font-family: var(--wb-font-body); font-size: var(--wb-text-2xs);
  font-weight: 700; letter-spacing: var(--wb-tracking-wide);
  text-transform: uppercase; padding: 12px 20px; z-index: 200;
}
.wb-skip:focus { left: 16px; top: 16px; }

/* ---- masthead ---- */
.wb-nav {
  position: sticky; top: 0; z-index: var(--wb-z-nav);
  background: color-mix(in srgb, var(--wb-black) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wb-line);
}
/* These values are deliberately identical to the home page nav, so the
   wordmark and the link row land on exactly the same pixels on every page. */
.wb-nav__inner {
  max-width: none; margin-inline: 0;
  padding: var(--wb-space-4) clamp(16px, 3vw, 44px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--wb-space-5);
}
.wb-wordmark {
  font-family: var(--wb-font-display); font-size: var(--wb-text-lg);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wb-bone); text-decoration: none; justify-self: start;
}
.wb-wordmark span { color: var(--wb-ash-dim); }
.wb-nav__links {
  display: flex; gap: clamp(18px, 2.4vw, 34px); justify-content: center; flex-wrap: nowrap;
  font-family: var(--wb-font-body); font-size: var(--wb-text-2xs);
  font-weight: 700; letter-spacing: var(--wb-tracking-wide); text-transform: uppercase;
}
.wb-nav__links a { color: var(--wb-ash); text-decoration: none; white-space: nowrap; transition: color var(--wb-dur-fast) var(--wb-ease); }
.wb-nav__links a:hover { color: var(--wb-bone); }
.wb-nav__spacer {
  visibility: hidden; pointer-events: none;
  font-family: var(--wb-font-body); font-size: var(--wb-text-2xs); font-weight: 700;
  letter-spacing: var(--wb-tracking-wide); text-transform: uppercase;
  border: 1px solid transparent; padding: 9px 14px; white-space: nowrap;
  display: inline-flex; align-items: center; line-height: 1; min-height: 38px;
}
.wb-nav__back { justify-self: end; }
/* Seven nav items need about 1100px to sit on one line without breaking
   words, so the link row gives way below that rather than wrapping. */
@media (max-width: 1100px) {
  .wb-nav__inner { grid-template-columns: 1fr auto; }
  .wb-nav__links { display: none; }
}

/* ---- breadcrumb ---- */
.wb-crumb {
  font-family: var(--wb-font-data); font-size: var(--wb-text-3xs);
  letter-spacing: var(--wb-tracking-wide); text-transform: uppercase;
  color: var(--wb-ash-dim); padding-block: var(--wb-space-5) 0;
}
.wb-crumb a { color: var(--wb-ash); text-decoration: none; }
.wb-crumb a:hover { color: var(--wb-bone); }

/* ---- the product itself ---- */
.wb-product {
  display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: var(--wb-space-9); align-items: start;
  padding-block: var(--wb-space-7) var(--wb-section);
}
@media (max-width: 880px) {
  .wb-product { grid-template-columns: 1fr; gap: var(--wb-space-7); }
}

.wb-shot { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: var(--wb-surface-2); margin: 0; }
/* On a wide screen the detail column runs longer than the photograph, so the
   photograph follows the reader instead of leaving a hole. */
@media (min-width: 881px) {
  .wb-shot { position: sticky; top: calc(var(--wb-space-8) + var(--wb-space-4)); }
}
.wb-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-shot__note {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--wb-font-data); font-size: 9px;
  letter-spacing: var(--wb-tracking-wide); color: var(--wb-ash-dim);
  background: var(--wb-black); padding: 4px 8px;
}

.wb-eyebrow {
  font-family: var(--wb-font-data); font-size: var(--wb-text-3xs);
  letter-spacing: var(--wb-tracking-mega); text-transform: uppercase;
  color: var(--wb-heat); margin: 0 0 var(--wb-space-4);
}
.wb-title {
  font-family: var(--wb-font-display); font-size: var(--wb-display-sec);
  line-height: var(--wb-leading-tight); text-transform: uppercase;
  text-wrap: balance; margin: 0 0 var(--wb-space-4);
}
.wb-pitch { font-size: var(--wb-text-lg); color: var(--wb-ash); max-width: 46ch; margin: 0 0 var(--wb-space-6); }

.wb-tags { display: flex; flex-wrap: wrap; gap: var(--wb-space-2); margin-bottom: var(--wb-space-6); }
.wb-tag {
  font-family: var(--wb-font-data); font-size: var(--wb-text-3xs);
  letter-spacing: var(--wb-tracking-wide); text-transform: uppercase;
  color: var(--wb-ash); border: 1px solid var(--wb-line);
  padding: 5px 10px; border-radius: var(--wb-radius-sm); white-space: nowrap;
}
.wb-tag--lead { color: var(--wb-bone); border-color: var(--wb-line-strong); }

/* price and buy */
.wb-buy {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--wb-space-5);
  padding-block: var(--wb-space-5);
  border-top: 1px solid var(--wb-line); border-bottom: 1px solid var(--wb-line);
  margin-bottom: var(--wb-space-6);
}
.wb-price { font-family: var(--wb-font-display); font-size: var(--wb-text-2xl); font-variant-numeric: tabular-nums; }
.wb-vol { font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-wide); text-transform: uppercase; color: var(--wb-ash-dim); }
.wb-buy__right { margin-left: auto; display: flex; align-items: center; gap: var(--wb-space-4); }

.wb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--wb-space-2);
  font-family: var(--wb-font-body); font-size: var(--wb-text-2xs); font-weight: 700;
  letter-spacing: var(--wb-tracking-wide); text-transform: uppercase;
  padding: 14px 26px; border: 1px solid transparent; border-radius: var(--wb-radius-sm);
  cursor: pointer; text-decoration: none;
  transition: background var(--wb-dur-fast) var(--wb-ease), border-color var(--wb-dur-fast) var(--wb-ease),
              color var(--wb-dur-fast) var(--wb-ease), transform var(--wb-dur-fast) var(--wb-ease);
}
.wb-btn:active { transform: translateY(1px); }
.wb-btn--primary { background: var(--wb-heat-fill); color: var(--wb-heat-ink); }
.wb-btn--primary:hover { background: var(--wb-heat-fill-hv); }
.wb-btn[disabled] { background: var(--wb-surface-2); color: var(--wb-ash-dim); border-color: var(--wb-line); cursor: not-allowed; transform: none; }

.wb-stock { display: inline-flex; align-items: center; gap: var(--wb-space-2); font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-wide); text-transform: uppercase; }
.wb-stock::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: var(--wb-radius-pill); flex: none; }
.wb-stock--in { color: var(--wb-in-stock); }
.wb-stock--low { color: var(--wb-low-stock); }
.wb-stock--out { color: var(--wb-out-stock); }
.wb-stock--out::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

/* heat, stated once for the tier */
.wb-heatmark { display: flex; flex-direction: column; gap: var(--wb-space-2); margin-bottom: var(--wb-space-6); }
.wb-heatmark__scale { display: inline-flex; gap: 4px; align-items: center; }
.wb-heatmark__scale i { width: 14px; height: 14px; background: var(--wb-line-strong); transform: rotate(45deg); display: block; }
.wb-heatmark__scale i.on:nth-child(3) { background: var(--wb-heat-3); }
.wb-heatmark__scale i.on:nth-child(4) { background: var(--wb-heat-4); }
.wb-heatmark__text { font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-wide); text-transform: uppercase; color: var(--wb-ash); }
.wb-heatmark__sub { font-size: var(--wb-text-xs); color: var(--wb-ash-dim); margin: 0; max-width: 46ch; }

/* ingredients, always open. see tokens 13c */
.wb-ingredients { display: flex; flex-direction: column; gap: var(--wb-space-4); padding-top: var(--wb-space-5); border-top: 1px solid var(--wb-line); }
.wb-ingredients__label { font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-mega); text-transform: uppercase; color: var(--wb-ash-dim); margin: 0; }
.wb-ingredients__allergens { font-family: var(--wb-font-data); font-size: var(--wb-text-xs); line-height: 1.7; color: var(--wb-bone); border-left: 2px solid var(--wb-heat); padding-left: var(--wb-space-4); margin: 0; }
.wb-ingredients__list { font-family: var(--wb-font-data); font-size: var(--wb-text-xs); line-height: 1.8; color: var(--wb-ash); margin: 0; max-width: var(--wb-measure); }
.wb-ingredients__list b, .wb-ingredients__allergens b { color: var(--wb-bone); font-weight: 600; text-transform: uppercase; }

/* spec table */
.wb-spec-grid { display: grid; gap: 1px; background: var(--wb-line); border: 1px solid var(--wb-line); grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); margin-top: var(--wb-space-6); }
.wb-spec-cell { background: var(--wb-surface-1); padding: var(--wb-space-5); }
.wb-spec-cell dt { font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-wide); text-transform: uppercase; color: var(--wb-ash-dim); margin-bottom: var(--wb-space-2); }
.wb-spec-cell dd { margin: 0; font-size: var(--wb-text-sm); color: var(--wb-bone); }

/* story strip */
.wb-strip { border-top: 1px solid var(--wb-line); padding-block: var(--wb-section-tight); }
.wb-strip h2 { font-family: var(--wb-font-display); font-size: var(--wb-text-2xl); text-transform: uppercase; margin: 0 0 var(--wb-space-5); }
.wb-strip p { color: var(--wb-ash); max-width: var(--wb-measure); margin: 0 0 var(--wb-space-4); }

/* footer */
.wb-footer { border-top: 1px solid var(--wb-line); padding-block: var(--wb-space-7); }
.wb-footer__links { display: flex; flex-wrap: wrap; gap: var(--wb-space-5); font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-wide); text-transform: uppercase; margin-bottom: var(--wb-space-5); }
.wb-footer__links a { color: var(--wb-ash); text-decoration: none; }
.wb-footer__links a:hover { color: var(--wb-bone); }
.wb-colophon { display: flex; flex-wrap: wrap; gap: var(--wb-space-3) var(--wb-space-5); align-items: center; font-family: var(--wb-font-data); font-size: var(--wb-text-3xs); letter-spacing: var(--wb-tracking-wide); text-transform: uppercase; color: var(--wb-ash-dim); padding-top: var(--wb-space-5); border-top: 1px solid var(--wb-line-soft); }
.wb-colophon__mark { color: var(--wb-ash); }
.wb-colophon__sep { color: #6A6A6A; }  /* decorative, but #3A3A3A was near invisible */

/* ---- dietary line under the ingredients ---- */
.wb-ingredients__diet {
  font-family: var(--wb-font-data);
  font-size: var(--wb-text-3xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wb-ash-dim);
  margin: 0;
}

/* ---- the rest of the range ---- */
.wb-also {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--wb-line);
  border: 1px solid var(--wb-line);
  /* This is navigation, not a second hero. Capped so it stays secondary. */
  max-width: 680px;
}
.wb-also__item {
  background: var(--wb-surface-1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background var(--wb-dur-fast) var(--wb-ease);
}
.wb-also__item:hover { background: var(--wb-surface-2); }
.wb-also__item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  max-width: 100%;
}
.wb-also__item span {
  font-family: var(--wb-font-display);
  font-size: var(--wb-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wb-bone);
  padding: var(--wb-space-4) var(--wb-space-5);
}

/* ---- Out of stock capture ----
   Shown by default and hidden only when stock is confirmed available, so a
   failed script leaves the useful thing on screen rather than a dead button. */
.wb-notify {
  border: 1px solid var(--wb-line);
  border-left: 2px solid var(--wb-heat);
  background: var(--wb-surface-1);
  padding: var(--wb-space-5);
  margin-bottom: var(--wb-space-6);
}
.wb-notify[hidden] { display: none; }

.wb-notify__h {
  font-family: var(--wb-font-data);
  font-size: var(--wb-text-3xs);
  font-weight: 600;
  letter-spacing: var(--wb-tracking-mega);
  text-transform: uppercase;
  color: var(--wb-heat);
  margin: 0 0 var(--wb-space-3);
}
.wb-notify__p {
  font-size: var(--wb-text-sm);
  color: var(--wb-ash);
  margin: 0 0 var(--wb-space-4);
  max-width: 52ch;
}
.wb-notify__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
.wb-notify__row {
  display: flex;
  gap: var(--wb-space-2);
  flex-wrap: wrap;
}
.wb-notify__row .wb-input { flex: 1 1 220px; min-width: 0; }
.wb-notify__row .wb-btn { flex: 0 0 auto; }

.wb-input {
  width: 100%;
  background: var(--wb-surface-2);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-sm);
  color: var(--wb-bone);
  font-family: var(--wb-font-body);
  font-size: var(--wb-text-sm);
  padding: 13px 15px;
  transition: border-color var(--wb-dur-fast) var(--wb-ease);
}
.wb-input::placeholder { color: var(--wb-ash-dim); }
.wb-input:hover { border-color: var(--wb-line-strong); }
.wb-input:focus { border-color: var(--wb-heat); outline: none; }

.wb-notify__small {
  font-size: var(--wb-text-2xs);
  color: var(--wb-ash-dim);
  margin: var(--wb-space-3) 0 0;
  max-width: 52ch;
}
.wb-notify__small a { color: var(--wb-ash); }

.wb-notify__msg {
  font-family: var(--wb-font-data);
  font-size: var(--wb-text-2xs);
  margin: var(--wb-space-3) 0 0;
  min-height: 1.2em;
}
.wb-notify__msg--ok  { color: var(--wb-bone); }
.wb-notify__msg--err { color: var(--wb-heat); }
