/* ==========================================================================
   AGRIYANA - Components
   Header, footer, section heads, carousels, product cards, category cards,
   seals, cart drawer, toasts.
   ========================================================================== */

/* ==================================================================== announcement */
.strip {
  background: var(--raw-night);
  color: #C6D6C9;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
}
.strip-in { display: flex; align-items: center; gap: var(--s-6); min-height: 38px; white-space: nowrap; }
.strip b { color: #F0973F; font-weight: 600; }
.strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--raw-sprout); flex: none; }
@media (max-width: 760px) {
  .strip-in { overflow-x: auto; scrollbar-width: none; }
  .strip-in::-webkit-scrollbar { display: none; }
}

/* ==================================================================== header */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.site-nav.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-in { display: flex; align-items: center; gap: var(--s-4); min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--fg); min-width: 0; }
.brand-text { min-width: 0; overflow: hidden; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.brand-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-subtle); margin-top: 4px; }
@media (max-width: 420px) { .brand-tag { display: none; } }

.nav-links { display: none; align-items: center; gap: 2px; }
@media (min-width: 1080px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--s-4);
  border-radius: var(--r-ctl);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.nav-link:hover { color: var(--fg); background: var(--surface-2); }
.nav-link[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }

/* search sits in the header on desktop: this is a marketplace, search is the CTA */
.nav-search { display: none; position: relative; flex: 1 1 auto; max-width: 380px; margin-inline: var(--s-3); }
@media (min-width: 1080px) { .nav-search { display: block; } }
.nav-search .input { min-height: 44px; padding-left: 42px; border-radius: var(--r-pill); background: var(--surface-2); border-color: transparent; }
.nav-search .input:hover { background: var(--surface); border-color: var(--border-strong); }
.nav-search .input:focus { background: var(--surface); }
.nav-search .ico { position: absolute; left: 14px; top: 22px; transform: translateY(-50%); color: var(--fg-subtle); pointer-events: none; }

.nav-tools { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; flex: none; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 1px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  display: none;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 19px;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-count.is-on { display: grid; }

.nav-toggle { display: inline-flex; }
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-search-btn { display: inline-flex; }
@media (min-width: 1080px) { .nav-search-btn { display: none; } }

.nav-drawer .offcanvas-body { padding: var(--s-6); }
.nav-drawer .nav-link {
  height: 56px; width: 100%;
  font-size: var(--t-lg);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}
.nav-drawer .nav-link:hover { background: transparent; color: var(--brand); }

/* ==================================================================== section head */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.sec-head-copy { max-width: 62ch; }
.sec-head h2 { margin-bottom: var(--s-2); }
/* the eyebrow keeps its own mono treatment, it is not body copy */
.sec-head p:not(.eyebrow) { margin: 0; color: var(--fg-muted); font-size: var(--t-md); }
.on-band .sec-head p:not(.eyebrow) { color: var(--band-fg-muted); }

.see-all {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.see-all:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.see-all .ico { transition: transform var(--dur-1) var(--ease-out); }
.see-all:hover .ico { transform: translateX(3px); }
.on-band .see-all { color: var(--band-fg); border-color: var(--band-border); }
.on-band .see-all:hover { background: var(--band-fg); color: var(--raw-night); border-color: var(--band-fg); }

/* ==================================================================== carousel rail */
.rail { position: relative; }

.rail-nav { display: none; gap: var(--s-2); }
@media (min-width: 900px) { .rail-nav { display: flex; } }

.rail-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.rail-btn:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.rail-btn:active { transform: scale(.94); }
.rail-btn[disabled] { opacity: .32; cursor: not-allowed; pointer-events: none; }
.on-band .rail-btn { background: transparent; border-color: var(--band-border); color: var(--band-fg); }
.on-band .rail-btn:hover { background: var(--band-fg); color: var(--raw-night); }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 1fr);
  gap: var(--s-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--s-2);
  /* let card shadows breathe without being clipped by the scroll box */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .rail-track { scroll-behavior: auto; } }

@media (min-width: 640px)  { .rail-track { grid-auto-columns: minmax(262px, 1fr); } }
@media (min-width: 1180px) { .rail-track { grid-auto-columns: minmax(280px, 1fr); } }

/* ==================================================================== product card */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.pcard:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pcard:focus-within { border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .pcard:hover { transform: none; } }

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}
.pcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--ease-out);
}
.pcard:hover .pcard-media img { transform: scale(1.055); }
@media (prefers-reduced-motion: reduce) { .pcard:hover .pcard-media img { transform: none; } }

/* machinery photography is a flyer, not a studio shot: contain it on a
   neutral tile so it reads as a product rather than a poster */
.pcard-media.is-contain { background: var(--raw-white); }
.pcard-media.is-contain img { object-fit: contain; padding: var(--s-5); }
[data-theme='dark'] .pcard-media.is-contain { background: #F2F0EA; }

.pcard-flags { position: absolute; top: var(--s-3); left: var(--s-3); display: grid; gap: 5px; justify-items: start; z-index: 2; }


.pcard-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); flex: 1; }
.pcard-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--fg-subtle); }
.pcard-name { font-family: var(--font-display); font-size: var(--t-md); font-weight: 700; letter-spacing: -.018em; line-height: 1.24; margin: 0; }
.pcard-name a { text-decoration: none; color: inherit; }
.pcard-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard-short { font-size: var(--t-sm); color: var(--fg-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); }

.price { display: grid; gap: 1px; }
.price-now { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-was { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--fg-subtle); text-decoration: line-through; }
.price-unit { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); }

.pcard-act { position: relative; z-index: 2; }
.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-fg);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.add-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.add-btn:active { transform: scale(.96); }
.add-btn.is-wa { background: var(--surface-2); color: var(--fg); border: 1px solid var(--border-strong); }
.add-btn.is-wa:hover { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .add-btn:hover { transform: none; } }

/* ==================================================================== category card */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: var(--s-6);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  background: var(--raw-ink);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card:focus-visible { outline: 3px solid var(--border-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cat-card:hover { transform: none; } }

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 720ms var(--ease-out);
}
.cat-card:hover img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) { .cat-card:hover img { transform: none; } }

.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 20, 12, .92) 4%, rgba(6, 20, 12, .58) 42%, rgba(6, 20, 12, .12) 78%);
}

.cat-card .cat-ico { width: 30px; height: 30px; stroke: var(--raw-sprout); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-3); }
.cat-card h3 { font-size: var(--t-xl); margin: 0 0 var(--s-2); color: #fff; }
.cat-card p { font-size: var(--t-sm); color: rgba(255, 255, 255, .82); margin: 0 0 var(--s-4); max-width: 34ch; }
.cat-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: #F0973F;
}
.cat-go .ico { width: 15px; height: 15px; transition: transform var(--dur-1) var(--ease-out); }
.cat-card:hover .cat-go .ico { transform: translateX(4px); }
.cat-count {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .34);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

/* ==================================================================== usp strip */
.usp {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.usp-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.usp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); }
.usp-ico .ico { color: var(--brand); }
.usp-item b { display: block; font-size: var(--t-sm); font-weight: 700; line-height: 1.3; }
.usp-item span { font-size: var(--t-xs); color: var(--fg-subtle); line-height: 1.4; }

/* ==================================================================== seals, badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-chip);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.badge-accent  { background: var(--accent-soft);  border-color: transparent; color: var(--accent-ink); }
.badge-brand   { background: var(--brand-soft);   border-color: transparent; color: var(--brand); }
.badge-danger  { background: var(--danger-soft);  border-color: transparent; color: var(--danger); }
.badge-solid   { background: var(--raw-ink); border-color: transparent; color: #fff; }
.on-band .badge { background: rgba(255, 255, 255, .07); border-color: var(--band-border); color: var(--band-fg-muted); }

.seal {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
}
.seal .ico { color: var(--accent-ink); }
.seal-text { display: grid; line-height: 1.3; }
.seal-text b { font-size: var(--t-sm); font-weight: 700; }
.seal-text span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-subtle); }
.on-band .seal { background: rgba(240, 151, 63, .12); border-color: var(--band-border); }
.on-band .seal-text span { color: var(--band-fg-muted); }
.on-band .seal .ico, .on-band .seal-text b { color: var(--band-accent); }

/* ==================================================================== spec table */
.spec { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--t-sm); }
.spec th, .spec td { text-align: left; padding: var(--s-3) 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec th { width: 44%; font-weight: 500; color: var(--fg-subtle); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; padding-right: var(--s-4); }
.spec td { font-weight: 500; font-variant-numeric: tabular-nums; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ==================================================================== facts */
.facts { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.fact { display: grid; gap: var(--s-3); padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); align-content: start; }
.on-band .fact { background: rgba(255, 255, 255, .035); border-color: var(--band-border); }
.fact .ico { color: var(--accent-ink); }
.on-band .fact .ico { color: var(--band-accent); }
.fact b { font-family: var(--font-display); font-size: var(--t-md); font-weight: 700; letter-spacing: -.018em; }
.fact span { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.55; }
.on-band .fact span { color: var(--band-fg-muted); }

/* ==================================================================== cart drawer */
.cart-drawer { width: min(440px, 100vw) !important; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border); }
.cart-head h2 { font-size: var(--t-lg); margin: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-6); }
.cart-foot { border-top: 1px solid var(--border); padding: var(--s-5) var(--s-6); background: var(--surface-2); display: grid; gap: var(--s-3); }

.cart-line { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 66px; height: 66px; border-radius: var(--r-ctl); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .specimen-tag { display: none; }
.cart-thumb .specimen svg { width: 54%; }
.cart-line-name { font-weight: 700; font-size: var(--t-sm); line-height: 1.3; margin: 0 0 3px; }
.cart-line-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); }
.cart-line-price { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--s-2); }
.qty button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; color: var(--fg);
  transition: background-color var(--dur-1) var(--ease-out);
}
.qty button:hover { background: var(--surface-2); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

.cart-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); font-size: var(--t-sm); }
.cart-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cart-row.is-total { font-size: var(--t-md); font-weight: 700; padding-top: var(--s-3); border-top: 1px solid var(--border); }
.cart-row.is-total b { font-size: var(--t-xl); font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }

.empty { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-10) var(--s-4); color: var(--fg-muted); }
.empty .ico { width: 44px; height: 44px; color: var(--border-strong); }
.empty b { font-family: var(--font-display); font-size: var(--t-lg); color: var(--fg); }
.empty p { font-size: var(--t-sm); margin: 0; max-width: 32ch; }

/* ==================================================================== toast */
.toast-zone {
  position: fixed;
  left: 50%; bottom: var(--s-6);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: grid;
  gap: var(--s-2);
  width: min(430px, calc(100vw - 32px));
  pointer-events: none;
}
.toast-msg {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-ctl);
  background: var(--raw-night);
  color: #F3F0E6;
  border: 1px solid #1E3B2A;
  box-shadow: var(--shadow-xl);
  font-size: var(--t-sm);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.toast-msg.is-in { opacity: 1; transform: none; }
.toast-msg .ico { color: var(--raw-sprout); flex: none; }
.toast-msg.is-warn .ico { color: #F0973F; }

/* ==================================================================== footer */
.site-footer { background: var(--raw-night); color: #F3F0E6; padding-block: var(--s-11) var(--s-7); position: relative; overflow: hidden; }
.foot-grid { display: grid; gap: var(--s-8); }
@media (min-width: 780px)  { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1060px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.foot-brand .brand { color: #F3F0E6; }
.foot-brand .brand-tag { color: #A3B8A9; }
.foot-blurb { color: #A3B8A9; font-size: var(--t-sm); max-width: 42ch; margin: var(--s-5) 0 var(--s-6); }

.foot-col h4 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: var(--tr-mono); text-transform: uppercase; color: #A3B8A9; margin-bottom: var(--s-4); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.foot-col a { color: #F3F0E6; text-decoration: none; font-size: var(--t-sm); transition: color var(--dur-1) var(--ease-out); display: inline-flex; align-items: center; gap: 8px; }
.foot-col a:hover { color: #F0973F; }

.foot-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-10); padding-top: var(--s-6);
  border-top: 1px solid #1E3B2A;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: #A3B8A9;
}
.foot-line a { color: inherit; }
.foot-line a:hover { color: #F0973F; }

/* ==================================================================== misc */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-subtle); margin-bottom: var(--s-6);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .ico { width: 13px; height: 13px; opacity: .55; }

.note {
  display: flex; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
.note .ico { color: var(--accent-ink); flex: none; }
.on-band .note { background: rgba(255, 255, 255, .045); color: var(--band-fg-muted); }
.on-band .note .ico { color: var(--band-accent); }

.divider-lead {
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase;
  color: var(--fg-subtle); margin-bottom: var(--s-6);
}
.divider-lead::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.steps { display: grid; gap: var(--s-6); counter-reset: step; }
.step { position: relative; counter-increment: step; padding-left: 62px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -3px;
  font-family: var(--font-mono); font-size: var(--t-lg); font-weight: 600;
  color: var(--accent-ink); letter-spacing: -.02em;
}
.step::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: -14px; width: 1px; background: var(--border); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--t-md); margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); color: var(--fg-muted); margin: 0; }

/* the specimen tile: authored artwork for products with no photograph */
.specimen {
  --tint: var(--brand);
  /* per-product, written by A.media() from a hash of the product id, so no two
     photograph-less tiles carry the same texture */
  --sp-a: 155deg;
  --sp-s: 15px;
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  overflow: hidden;
  background: linear-gradient(var(--sp-a), color-mix(in srgb, var(--tint) 16%, var(--surface)), var(--surface));
}
/* the lattice is its own layer so it can rotate without taking the wash with
   it; oversized and centred so the rotation never exposes a corner */
.specimen::before {
  content: '';
  position: absolute;
  inset: -35%;
  pointer-events: none;
  transform: rotate(var(--sp-a));
  background:
    radial-gradient(circle at 1.2px 1.2px, color-mix(in srgb, var(--tint) 26%, transparent) 1.2px, transparent 0)
    0 0 / var(--sp-s) var(--sp-s);
}
.specimen svg {
  position: relative;   /* above the rotated lattice in ::before */
  width: 44%; max-width: 96px; height: auto; aspect-ratio: 1;
  stroke: var(--tint); stroke-width: 1.05; fill: none; stroke-linecap: round; stroke-linejoin: round;
  opacity: .8;
}
.specimen-tag {
  position: absolute; left: var(--s-4); bottom: var(--s-3); z-index: 1;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase;
  color: color-mix(in srgb, var(--tint) 70%, var(--fg));
}
.tint-clay    { --tint: var(--raw-clay); }
.tint-forest  { --tint: var(--brand); }
.tint-harvest { --tint: var(--accent); }
.tint-sprout  { --tint: var(--sprout); }
.tint-chill   { --tint: var(--chill); }

/* ==========================================================================
   Corrections that must beat the component rules above, so they live last.
   ========================================================================== */

/* Four 44px controls plus the wordmark do not fit a 375px phone. Search moves
   into the menu drawer below this width rather than being squeezed. */
@media (max-width: 559px) {
  .nav-search-btn { display: none; }
  .nav-in { gap: var(--s-2); min-height: 66px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 19px; }
}

/* Compact controls stay compact with a mouse; every touch target grows to the
   44px minimum on a finger-driven device. */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .add-btn { min-height: 44px; }
  .qty button { width: 44px; height: 44px; }
  .filter-opt { min-height: 48px; }
}
