/* ==========================================================================
   Fadez 2 Riches Barber Supply
   Layout concept: a parts catalog page. Dense grid, hairline rules, every
   item tagged with its own data, nothing decorative that is not information.
   Signature: the spec rail, a monospace data strip carried by every product.
   The interface stays quiet in paper and steel so the inventory carries the
   colour. See docs/DESIGN_DIRECTION.md.
   ========================================================================== */

:root {
  /* ink */
  --graphite: #1a1d21;
  --graphite-2: #2c3138;

  /* steel */
  --steel: #6e7681;
  --steel-2: #a8aeb6;
  --edge: #d5d9de;
  --edge-soft: #e6e9ec;

  /* paper */
  --paper: #ffffff;
  --paper-2: #f4f5f7;
  --paper-3: #eceef1;

  /* action */
  --action: #e8440f;
  --action-dark: #c4360b;
  --action-soft: #fff1ec;

  /* state */
  --stock: #1a7f4b;
  --sale: #b3140c;
  --warn: #8a5a00;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* rhythm */
  --wrap: 1440px;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --radius: 2px;
  --header-h: 62px;

  /* template compatibility aliases */
  --color-bg: var(--paper);
  --color-text: var(--graphite);
  --color-primary: var(--action);
  --color-accent: var(--action);
  --color-muted: var(--steel);
  --font-heading: var(--font-display);
  --max-width: var(--wrap);
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

/* Component display rules such as .card{display:flex} outrank the user agent
   rule for [hidden], so filtered-out cards would stay on screen. This keeps
   the attribute authoritative wherever it is used. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--action); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15rem; }
li { margin-bottom: .3em; }

hr { border: 0; border-top: 1px solid var(--edge); margin: 2.5rem 0; }

/* ----------------------------------------------------------- a11y base -- */

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
  border-radius: var(--radius);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--graphite); color: var(--paper);
  padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* -------------------------------------------------------------- layout -- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 760px; }

main { display: block; min-height: 60vh; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tight { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-line { border-top: 1px solid var(--edge); }
.section-fill { background: var(--paper-2); }

.stack > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------- spec rail --- */
/* The signature. A monospace data strip, like a parts catalog entry. */

.spec-rail {
  font-family: var(--font-mono);
  font-size: .688rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  align-items: center;
}
.spec-rail > * { display: inline-flex; align-items: center; gap: .3rem; }
.spec-rail .sep { color: var(--edge); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .688rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: .75rem;
  display: block;
}
.eyebrow-steel { color: var(--steel); }

/* -------------------------------------------------------------- button -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--action);
  color: var(--paper);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
  min-height: 46px;
}
.btn:hover { background: var(--action-dark); color: var(--paper); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--edge); color: var(--steel); cursor: not-allowed;
}

.btn-dark { background: var(--graphite); }
.btn-dark:hover { background: var(--graphite-2); }

.btn-ghost {
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}
.btn-ghost:hover { background: var(--graphite); color: var(--paper); }

.btn-quiet {
  background: transparent; color: var(--graphite); border-color: var(--edge);
}
.btn-quiet:hover { background: var(--paper-2); color: var(--graphite); border-color: var(--steel-2); }

.btn-sm { padding: .5rem 1rem; font-size: .9375rem; min-height: 38px; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.15rem; min-height: 54px; }

/* ------------------------------------------------------- announce bar --- */

.announce {
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .688rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  z-index: 60;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 34px;
  padding-block: .4rem;
  text-align: center;
}
.announce strong { color: var(--action); font-weight: 500; }
.announce a { text-decoration: underline; text-underline-offset: 2px; }
.announce a:hover { color: var(--action); }
.announce .announce-alt { display: none; }
@media (max-width: 640px) {
  .announce .announce-main { display: none; }
  .announce .announce-alt { display: block; }
}

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.logo:hover { color: var(--graphite); }
.logo .logo-mark { color: var(--graphite); }
.logo .logo-mark em { font-style: normal; color: var(--action); }
.logo .logo-sub {
  font-family: var(--font-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--steel);
  text-transform: uppercase;
}

/* search */
.header-search { position: relative; max-width: 560px; width: 100%; }
.header-search input {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: .6rem 2.5rem .6rem .85rem;
  font-size: .9375rem;
  min-height: 42px;
  transition: border-color .15s ease, background .15s ease;
}
.header-search input:focus { background: var(--paper); border-color: var(--steel-2); }
.header-search input::placeholder { color: var(--steel-2); }
.header-search .search-go {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--steel); border-radius: var(--radius);
}
.header-search .search-go:hover { color: var(--action); background: var(--paper-3); }

.header-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }

.icon-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .6rem; border-radius: var(--radius); color: var(--graphite);
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .08em;
  text-transform: uppercase; min-height: 42px;
}
.icon-btn:hover { background: var(--paper-2); color: var(--action); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--action); color: var(--paper);
  border-radius: 9px; font-family: var(--font-mono); font-size: .625rem;
  font-weight: 500; display: none; place-items: center; line-height: 1;
}
.cart-count.is-visible { display: grid; }

.nav-toggle { display: none; }

/* primary nav */
.site-nav {
  border-top: 1px solid var(--edge-soft);
  background: var(--paper);
}
.site-nav .container { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav .container::-webkit-scrollbar { display: none; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .7rem 0;
  margin-right: 1.5rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--graphite-2);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--action); border-bottom-color: var(--action);
}
.site-nav a.nav-all { color: var(--steel); margin-left: auto; margin-right: 0; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-search { display: none; }
  .header-search.is-mobile-open {
    display: block; grid-column: 1 / -1; padding-bottom: .65rem;
  }
  .nav-toggle { display: inline-flex; }
}

/* The number wraps mid-digits in a phone-width header, so below this the
   call action is the icon alone. The full number still sits in the footer,
   on the contact page and on every location card. */
@media (max-width: 560px) {
  .header-actions .phone-text { display: none; }
  .icon-btn { padding-inline: .45rem; }
}

/* ---------------------------------------------------------------- hero -- */

.hero { border-bottom: 1px solid var(--edge); background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy h1 em { font-style: normal; color: var(--action); }
.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--graphite-2);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1rem, 3vw, 2.5rem);
  justify-content: start;
  border-top: 1px solid var(--edge);
  padding-top: 1.25rem;
}
.hero-stat .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; display: block;
}
.hero-stat .l {
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel); margin-top: .35rem; display: block;
}

/* the hero plate: real product photography arranged as a catalog plate */
.hero-plate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-plate .cell {
  background: var(--paper);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10%;
  position: relative;
  transition: background .18s ease;
}
.hero-plate .cell:hover { background: var(--paper-2); }
.hero-plate .cell img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-plate .cell .tag {
  position: absolute; left: 7px; top: 7px;
  font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel-2);
}
.hero-plate .cell-wide { grid-column: span 2; aspect-ratio: 2 / 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plate { order: -1; }
}

/* ------------------------------------------------------ category rail --- */

.cat-rail { border-bottom: 1px solid var(--edge); background: var(--paper-2); }
.cat-rail-inner {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  padding-block: .85rem;
}
.cat-rail-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .35rem 1.15rem .35rem 0; margin-right: 1.15rem;
  border-right: 1px solid var(--edge);
  white-space: nowrap;
}
.cat-chip:last-child { border-right: 0; }
.cat-chip .num {
  font-family: var(--font-mono); font-size: .625rem; color: var(--steel-2);
  letter-spacing: .08em;
}
.cat-chip .name {
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.cat-chip:hover .name { color: var(--action); }
.cat-chip .qty { font-family: var(--font-mono); font-size: .625rem; color: var(--steel-2); }

/* -------------------------------------------------------- product grid -- */

.grid-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.grid-head h2 { margin-bottom: .25rem; }
.grid-head .link-more {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--action); white-space: nowrap;
}
.grid-head .link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-grid-4 { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

/* ------------------------------------------------------- product card -- */

.card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .15s ease;
}
.card:hover { background: var(--paper-2); }

.card-media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 11%;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .3s ease;
}
.card:hover .card-media img { transform: scale(1.035); }

.card-flags {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.flag {
  font-family: var(--font-mono); font-size: .5625rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .45rem; border-radius: var(--radius); line-height: 1;
}
.flag-sale { background: var(--sale); color: #fff; }
.flag-deal { background: var(--action); color: #fff; }
.flag-out  { background: var(--paper-3); color: var(--steel); }
.flag-new  { background: var(--graphite); color: #fff; }

.card-body {
  padding: .75rem .85rem 1rem;
  display: flex; flex-direction: column; gap: .4rem;
  flex: 1;
  border-top: 1px solid var(--edge-soft);
}
.card-brand {
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel);
}
.card-title {
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem;
  line-height: 1.3; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card-title { color: var(--action); }

.card-foot { margin-top: auto; padding-top: .35rem; }
.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  line-height: 1; letter-spacing: -0.01em;
}
.price-was {
  font-family: var(--font-mono); font-size: .75rem; color: var(--steel-2);
  text-decoration: line-through;
}
.price-save {
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em;
  color: var(--sale); text-transform: uppercase;
}
.price-from { font-family: var(--font-mono); font-size: .625rem; color: var(--steel); letter-spacing: .08em; }

.card-quickadd {
  margin-top: .6rem;
  opacity: 0; transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease;
}
.card:hover .card-quickadd,
.card:focus-within .card-quickadd { opacity: 1; transform: none; }
@media (hover: none) {
  .card-quickadd { opacity: 1; transform: none; }
}

.card-link::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}

/* ------------------------------------------------------- product page -- */

.crumbs {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--steel);
  padding-block: 1rem; display: flex; gap: .45rem; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--action); }
.crumbs .sep { color: var(--edge); }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.pdp-gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
.pdp-main {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: grid; place-items: center; padding: 6%;
  background: var(--paper);
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px; margin-top: 6px;
}
.pdp-thumb {
  border: 1px solid var(--edge); border-radius: var(--radius);
  aspect-ratio: 1; padding: 8%; display: grid; place-items: center;
  background: var(--paper);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumb[aria-current="true"] { border-color: var(--graphite); border-width: 2px; }
.pdp-thumb:hover { border-color: var(--steel-2); }

.pdp-buy h1 { font-size: clamp(1.5rem, 3vw, 2.15rem); text-transform: none; letter-spacing: -0.01em; }
.pdp-price-row { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .35rem; }
.pdp-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1; }
.pdp-tax { font-family: var(--font-mono); font-size: .688rem; color: var(--steel); letter-spacing: .05em; }

.stock-line {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .07em;
  text-transform: uppercase; margin-block: .85rem;
}
.stock-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stock); }
.stock-line.is-out { color: var(--steel); }
.stock-line.is-out .dot { background: var(--steel-2); }

.variant-block { margin-block: 1.25rem; }
.variant-label {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: .55rem; display: block;
}
.variant-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.variant-opt {
  border: 1px solid var(--edge); border-radius: var(--radius);
  padding: .5rem .85rem; font-size: .875rem; font-weight: 500;
  background: var(--paper); min-height: 40px;
  display: inline-flex; align-items: center;
}
.variant-opt:hover { border-color: var(--steel); }
.variant-opt[aria-pressed="true"] { border-color: var(--graphite); background: var(--graphite); color: var(--paper); }
.variant-opt:disabled { color: var(--steel-2); text-decoration: line-through; cursor: not-allowed; }

.qty-row { display: flex; gap: .6rem; align-items: stretch; margin-block: 1.1rem; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden;
}
.qty button { width: 42px; min-height: 46px; display: grid; place-items: center; font-size: 1.1rem; color: var(--graphite); }
.qty button:hover { background: var(--paper-2); color: var(--action); }
.qty input {
  width: 46px; text-align: center; border: 0; font-family: var(--font-mono);
  font-size: .9375rem; background: transparent; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.trust-list {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  border-top: 1px solid var(--edge); padding-top: 1rem;
  display: grid; gap: .5rem;
}
.trust-list li {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .875rem; color: var(--graphite-2); margin: 0;
}
.trust-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--action); }

.pdp-specs { margin-top: 1.25rem; border-top: 1px solid var(--edge); }
.spec-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--edge-soft);
  font-size: .875rem;
}
.spec-row dt {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel);
}
.spec-row dd { margin: 0; }

.pdp-desc { line-height: 1.65; }
.pdp-desc h2 { font-size: 1.25rem; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
}

/* sticky buy bar */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--paper); border-top: 1px solid var(--edge);
  transform: translateY(105%); transition: transform .22s ease;
  box-shadow: 0 -6px 24px rgba(26, 29, 33, .07);
}
.buy-bar.is-visible { transform: none; }
.buy-bar-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .65rem; min-height: 62px;
}
.buy-bar-media { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: var(--radius); padding: 3px; }
.buy-bar-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.buy-bar-info { min-width: 0; flex: 1; }
.buy-bar-title { font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar-price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.buy-bar .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .buy-bar-media, .buy-bar-title { display: none; }
}

/* ------------------------------------------------------------ filters -- */

.shop-layout {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start;
}
.filters { position: sticky; top: calc(var(--header-h) + 1rem); }
.filter-group { border-bottom: 1px solid var(--edge); padding-block: 1rem; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: .7rem;
}
.filter-list { list-style: none; padding: 0; margin: 0; max-height: 268px; overflow-y: auto; }
.filter-list li { margin: 0; }
.filter-opt {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem 0; font-size: .875rem; cursor: pointer; width: 100%;
  text-align: left; min-height: 34px;
}
.filter-opt:hover { color: var(--action); }
.filter-opt input { width: 15px; height: 15px; accent-color: var(--action); flex-shrink: 0; }
.filter-opt .n { margin-left: auto; font-family: var(--font-mono); font-size: .625rem; color: var(--steel-2); }

.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; padding-bottom: 1rem;
  border-bottom: 1px solid var(--edge); margin-bottom: 1.25rem;
}
.result-count { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.sort-select {
  border: 1px solid var(--edge); border-radius: var(--radius);
  padding: .5rem 2rem .5rem .75rem; font-size: .875rem; background: var(--paper);
  min-height: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236e7681' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.filter-toggle { display: none; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; z-index: 70; background: var(--paper);
    padding: 1.25rem; overflow-y: auto; display: none;
  }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
}

/* --------------------------------------------------------- cart drawer -- */

.drawer-scrim {
  position: fixed; inset: 0; background: rgba(26, 29, 33, .45);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  z-index: 80;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--paper); z-index: 81; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s ease;
  box-shadow: -8px 0 32px rgba(26, 29, 33, .12);
}
.drawer.is-open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--edge); flex-shrink: 0;
}
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-close { width: 38px; height: 38px; display: grid; place-items: center; color: var(--steel); border-radius: var(--radius); }
.drawer-close:hover { background: var(--paper-2); color: var(--graphite); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.15rem; }
.drawer-foot { border-top: 1px solid var(--edge); padding: 1.15rem; flex-shrink: 0; background: var(--paper-2); }

.ship-meter { margin-bottom: 1rem; }
.ship-meter-text { font-family: var(--font-mono); font-size: .688rem; letter-spacing: .05em; text-transform: uppercase; color: var(--graphite-2); margin-bottom: .45rem; }
.ship-meter-text strong { color: var(--action); font-weight: 500; }
.ship-bar { height: 5px; background: var(--paper-3); border-radius: 3px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--action); border-radius: 3px; transition: width .3s ease; }
.ship-bar.is-full span { background: var(--stock); }

.line-item { display: grid; grid-template-columns: 62px 1fr auto; gap: .8rem; padding-block: .85rem; border-bottom: 1px solid var(--edge-soft); }
.line-item:first-child { padding-top: 0; }
.line-media { border: 1px solid var(--edge); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 5px; }
.line-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-title { font-size: .875rem; font-weight: 600; line-height: 1.3; margin-bottom: .2rem; }
.line-variant { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.line-remove { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-top: .35rem; }
.line-remove:hover { color: var(--sale); text-decoration: underline; }
.line-price { font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-align: right; }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--steel); }
.cart-empty svg { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--edge); }

.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .85rem; }
.total-row .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.total-row .val { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }

/* cart upsell */
.upsell { border-top: 1px solid var(--edge); margin-top: 1rem; padding-top: 1rem; }
.upsell h3 { font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: .75rem; }
.upsell-item { display: grid; grid-template-columns: 50px 1fr auto; gap: .7rem; align-items: center; padding-block: .5rem; }
.upsell-item .um { border: 1px solid var(--edge); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 4px; }
.upsell-item .um img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.upsell-item .ut { font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.upsell-item .up { font-family: var(--font-mono); font-size: .75rem; color: var(--steel); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 130%);
  background: var(--graphite); color: var(--paper);
  padding: .8rem 1.25rem; border-radius: var(--radius); z-index: 90;
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 500;
  transition: transform .25s ease; max-width: calc(100vw - 2rem);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; color: #4ade80; flex-shrink: 0; }

/* ------------------------------------------------------------- offers -- */

.offer-strip {
  background: var(--graphite); color: var(--paper);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem; align-items: center;
}
.offer-strip h2 { color: var(--paper); margin-bottom: .4rem; }
.offer-strip p { color: var(--steel-2); margin: 0; }
.offer-strip .btn { background: var(--action); }
@media (max-width: 720px) { .offer-strip { grid-template-columns: 1fr; } }

.countdown { display: flex; gap: .5rem; margin-top: .9rem; }
.countdown .unit {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: .45rem .6rem; text-align: center; min-width: 52px;
}
.countdown .unit .v { font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem; display: block; line-height: 1.1; }
.countdown .unit .u { font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }

.stock-bar { margin-top: .75rem; max-width: 260px; }
.stock-bar-text { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); margin-bottom: .3rem; }
.stock-bar-track { height: 4px; background: var(--paper-3); border-radius: 3px; overflow: hidden; }
.stock-bar-track span { display: block; height: 100%; background: var(--warn); }

/* ------------------------------------------------------------- email --- */

.email-capture {
  background: var(--paper-2); border: 1px solid var(--edge);
  border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.email-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.email-form input[type="email"] {
  flex: 1; min-width: 210px; border: 1px solid var(--edge);
  border-radius: var(--radius); padding: .75rem .9rem; min-height: 46px; background: var(--paper);
}
.email-form input:focus { border-color: var(--steel); }
.consent {
  font-size: .75rem; color: var(--steel); margin-top: .85rem; max-width: 62ch; line-height: 1.5;
}
.consent a { text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------------- forms -- */

.field { margin-bottom: 1rem; }
.field label {
  display: block; font-family: var(--font-mono); font-size: .688rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--edge); border-radius: var(--radius);
  padding: .7rem .85rem; background: var(--paper); min-height: 46px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--steel); }
.field textarea { min-height: 128px; resize: vertical; }
.field .hint { font-size: .75rem; color: var(--steel); margin-top: .3rem; }

.checkbox-field { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }
.checkbox-field input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--action); flex-shrink: 0; }
.checkbox-field label { font-family: var(--font-body); font-size: .8125rem; text-transform: none; letter-spacing: 0; color: var(--graphite-2); line-height: 1.5; margin: 0; }

.notice {
  border: 1px solid var(--edge); border-left: 3px solid var(--action);
  background: var(--action-soft); border-radius: var(--radius);
  padding: 1rem 1.15rem; font-size: .9375rem;
}
.notice strong { display: block; margin-bottom: .2rem; }

/* ------------------------------------------------------------- tables -- */

.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table th, .data-table td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--edge-soft); }
.data-table th {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel); border-bottom-color: var(--edge);
}

/* ---------------------------------------------------------- locations -- */

.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden; }
.loc-card { background: var(--paper); padding: 1.35rem; }
.loc-card h3 { margin-bottom: .5rem; }
.loc-card address { font-style: normal; color: var(--graphite-2); font-size: .9375rem; }
.loc-pending {
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--warn); margin-top: .5rem; display: block;
}

/* ------------------------------------------------------------ footer --- */

.site-footer {
  background: var(--graphite); color: var(--steel-2);
  margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 2rem;
}
.site-footer h3 {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--paper); margin-bottom: .85rem;
}
.site-footer a { color: var(--steel-2); }
.site-footer a:hover { color: var(--action); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; font-size: .875rem; }
.footer-brand .logo-mark { color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; display: block; }
.footer-brand .logo-mark em { font-style: normal; color: var(--action); }
.footer-brand p { font-size: .875rem; margin-top: .75rem; max-width: 34ch; }
.footer-nap { font-style: normal; font-size: .875rem; }
.footer-nap p { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.35rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .8125rem;
}
.footer-bottom .sfw a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ utility -- */

.muted { color: var(--steel); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lede { font-size: 1.0625rem; color: var(--graphite-2); max-width: 68ch; }

.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .8125rem; padding-inline: .6rem;
}
.pager a:hover { border-color: var(--graphite); color: var(--graphite); }
.pager [aria-current="page"] { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }

.placeholder-slot {
  border: 1px dashed var(--edge); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; color: var(--steel);
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .08em;
  text-transform: uppercase; background: var(--paper-2);
}

@media print {
  .site-header, .site-footer, .announce, .buy-bar, .drawer, .drawer-scrim { display: none !important; }
}
