/* Oswald — self-hosted so the site never waits on Google's servers.
   Files live in /fonts. Nothing to configure. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400;
  src: url("/fonts/oswald-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500;
  src: url("/fonts/oswald-latin-500-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600;
  src: url("/fonts/oswald-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700;
  src: url("/fonts/oswald-latin-700-normal.woff2") format("woff2"); font-display: swap; }

/* ==========================================================================
   Copper Creek Farm Toys — storefront stylesheet
   Brand copper sampled straight from the logo: #AD6C4E
   Built mobile-first. Everything below 900px is the primary experience.
   ========================================================================== */

:root {
  /* ---- brand ---- */
  --copper:        #AD6C4E;
  --copper-deep:   #8A5138;
  --copper-dark:   #6E3F2B;
  --copper-soft:   #D9A98D;
  --copper-wash:   #F6EAE2;

  /* ---- neutrals ---- */
  --ink:           #1C1917;
  --ink-2:         #2B2521;
  --ink-3:         #453D37;
  --muted:         #6F6259;
  --line:          #E4D9CF;
  --line-strong:   #D2C2B4;
  --cream:         #FBF8F4;
  --sand:          #F2EAE1;
  --white:         #FFFFFF;

  /* ---- states ---- */
  --sale:          #B3261E;
  --sale-wash:     #FCEBE9;
  --preorder:      #2F5D4B;
  --preorder-wash: #E6F0EB;
  --success:       #2E7D52;
  --warn:          #A8630B;
  --warn-wash:     #FDF2E2;

  /* ---- type ---- */
  --font-display: "Oswald", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- shape ---- */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.06), 0 1px 3px rgba(28,25,23,.08);
  --shadow:    0 2px 4px rgba(28,25,23,.05), 0 8px 20px rgba(28,25,23,.09);
  --shadow-lg: 0 4px 8px rgba(28,25,23,.06), 0 20px 48px rgba(28,25,23,.16);

  --wrap: 1220px;
  --header-h: 68px;
}

/* -------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-deep); text-decoration: none; }
a:hover { color: var(--copper-dark); }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(1.9rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.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: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .18s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-align: center;
  transition: transform .12s ease, background .16s ease, box-shadow .16s ease, color .16s;
  min-height: 50px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--copper); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--copper-deep); color: #fff; box-shadow: var(--shadow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--copper); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: var(--copper-wash); color: var(--ink); }
.btn--outlineLight { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outlineLight:hover { background: #fff; color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; min-height: 58px; }
.btn--sm { padding: 9px 16px; font-size: .84rem; min-height: 40px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg svg { width: 20px; height: 20px; }

/* ------------------------------------------------------ announcement --- */
.announce {
  background: var(--ink); color: #EDE3D9;
  font-size: .8rem; letter-spacing: .04em;
  padding: 4px 0;
}
.announce strong { color: var(--copper-soft); }
.announce-bar { display: flex; align-items: center; justify-content: center; gap: 20px; }
.announce-links { display: none; margin-left: auto; gap: 18px; }
.announce-links a { color: #C0B4A9; display: inline-block; padding: 5px 0; }
.announce-links a:hover { color: var(--copper-soft); }
@media (min-width: 1000px) {
  .announce-bar { justify-content: flex-start; }
  .announce-links { display: flex; }
}

/* ----------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,248,244,.98);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 10px;
}
@media (min-width: 900px) {
  .header-bar { flex-wrap: nowrap; gap: 14px; padding-top: 0; min-height: var(--header-h); }
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 900px) { .brand img { height: 54px; } }

/* --- search -------------------------------------------------------------
   Always visible, never behind an icon. On a phone it takes its own full
   width row underneath the logo; the whole header is sticky, so it follows
   you down the page. On desktop it sits inline between logo and actions.   */
.header-search {
  position: relative; display: flex; align-items: stretch;
  order: 3; flex: 1 1 100%;            /* wraps to its own row on mobile */
  min-width: 0; max-width: 100%; margin: 0 0 10px;
}
@media (min-width: 900px) {
  .header-search { order: 0; flex: 1 1 auto; max-width: 560px; margin: 0 20px; }
}

.header-search input[type="search"] {
  flex: 1 1 0%; width: 100%; min-width: 0;
  padding: 12px 42px 12px 44px; font-size: 16px;
  border: 2px solid var(--line-strong); border-right: 0;
  border-radius: 100px 0 0 100px; background: #fff;
}
.header-search input[type="search"]:focus {
  border-color: var(--copper); box-shadow: none; outline: none;
}
.header-search:focus-within { box-shadow: 0 0 0 3px rgba(173,108,78,.16); border-radius: 100px; }
.header-search:focus-within .header-search__go { background: var(--copper-deep); }

.header-search__icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: flex; z-index: 1;
}
.header-search__icon svg { width: 19px; height: 19px; }

/* hide the browser's own X so there aren't two of them */
.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.header-search__clear {
  position: absolute; right: 100px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: var(--sand); border-radius: 50%;
  color: var(--ink-3); cursor: pointer; display: flex; align-items: center;
  justify-content: center; z-index: 1;
}
.header-search__clear[hidden] { display: none; }
.header-search__clear svg { width: 13px; height: 13px; }
.header-search__clear:hover { background: var(--line-strong); }

.header-search__go {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 18px; border: 0; border-radius: 0 100px 100px 0;
  background: var(--copper); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-size: .92rem; letter-spacing: .08em;
  text-transform: uppercase;
}
.header-search__go:hover { background: var(--copper-deep); }
.header-search__go svg { width: 18px; height: 18px; }
.header-search__go span { display: none; }
@media (min-width: 360px) { .header-search__go span { display: inline; } }

.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 95;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); max-height: min(70vh, 520px); overflow-y: auto;
  padding: 6px;
}
.search-hit {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink);
}
.search-hit:hover, .search-hit:focus-visible { background: var(--sand); color: var(--ink); }
.search-hit img {
  width: 54px; height: 54px; object-fit: contain; background: var(--sand);
  border-radius: 6px; padding: 3px;
}
.search-hit b { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.search-hit small { color: var(--muted); font-size: .78rem; }
.search-hit .price-now { font-size: 1rem; }
.search-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: .92rem; }
.search-all {
  display: block; text-align: center; padding: 11px; margin-top: 4px;
  border-top: 1px solid var(--line); font-family: var(--font-display);
  letter-spacing: .06em; text-transform: uppercase; font-size: .86rem;
}

/* --- header right-hand actions ---------------------------------------- */
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--ink); border-radius: var(--r-sm); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--copper); color: #fff;
  font-size: .69rem; font-weight: 700; line-height: 19px; text-align: center;
  border-radius: 10px;
}
.cart-count[data-count="0"] { display: none; }

.header-quote {
  display: none; align-items: center; text-align: center;
  font-family: var(--font-display); font-size: .82rem; line-height: 1.12;
  letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--copper); padding: 8px 14px; border-radius: var(--r-sm);
}
.header-quote:hover { background: var(--copper-deep); color: #fff; }
@media (min-width: 1120px) { .header-quote { display: inline-flex; } }

.header-call {
  display: none; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .03em;
  color: var(--ink); padding: 8px 13px; border: 2px solid var(--line-strong);
  border-radius: var(--r-sm); white-space: nowrap;
}
.header-call:hover { border-color: var(--copper); color: var(--copper-deep); }
.header-call svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 1280px) { .header-call { display: inline-flex; } }

/* ------------------------------------------------- category mega-menu --- */
.main-nav { display: none; border-top: 1px solid var(--line); background: var(--cream); }
@media (min-width: 900px) { .main-nav { display: block; } }

/* ---- the category row folds away once the page moves --------------------
   Scrolled, the header keeps the logo, the search box, the phone number and
   the cart and drops the category row — 123px down to 68px on a wide screen.
   The announcement bar sits outside .site-header and so already scrolls off
   on its own; between them that is the same shape the bigger farm-toy shops
   use, and the reason their header is still useful nine hundred products
   down a shop page.

   Desktop only. Below 900px .main-nav is already display:none and the
   categories live in the drawer, so there is nothing here to collapse.

   max-height rather than height because the row is 54px wide-screen and
   108px where it wraps to two lines between 900 and 1120px — 120px clears
   both. That wrap is why this is worth having on an iPad in landscape: it
   hands back 108px of an 800px-tall screen at the counter.

   visibility matters as much as the height. Without it the category links
   keep their place in the tab order and a keyboard user tabs into a menu
   that is not on the screen; it is delayed on the way out so the fold is
   still visible, and instant on the way back in. */
@media (min-width: 900px) {
  .main-nav {
    max-height: 120px; overflow: hidden;
    transition: max-height .24s ease, visibility 0s;
  }
  .site-header.is-condensed .main-nav {
    max-height: 0; visibility: hidden;
    transition: max-height .24s ease, visibility 0s .24s;
  }
}
/* ---- and on a phone, where there is no category row to fold -------------
   Below 900px the categories are already in the drawer, so the thing taking
   up the room is the search box — it wraps onto a row of its own, which is
   what makes the header 186px on a phone. That is a quarter of the screen,
   held permanently, on the device most of these customers are using.

   So on a phone it is the search row that folds instead. Logo, phone number
   and cart stay stuck to the top; one flick back to the top brings the search
   back. Same trigger, same class, different row. */
@media (max-width: 899px) {
  .header-search {
    max-height: 64px; overflow: hidden;
    transition: max-height .24s ease, margin-bottom .24s ease, visibility 0s;
  }
  .site-header.is-condensed .header-search {
    max-height: 0; margin-bottom: 0; visibility: hidden;
    transition: max-height .24s ease, margin-bottom .24s ease, visibility 0s .24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav, .header-search { transition: none; }
}
.main-nav-inner { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
/* Between 900–1120px the full menu is a squeeze — tighten it so every item
   fits on one line on an iPad in landscape. flex-wrap above is the fallback
   that guarantees the page itself can never scroll sideways. */
@media (min-width: 900px) and (max-width: 1120px) {
  .nav-top { padding: 13px 9px; font-size: .86rem; letter-spacing: .045em; }
}
.nav-item { position: static; }
.nav-item[hidden] { display: none; }
.nav-top {
  display: flex; align-items: center; height: 100%;
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink);
  padding: 13px 14px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav-top:hover, .nav-item.is-open .nav-top {
  color: var(--copper-deep); border-bottom-color: var(--copper); background: var(--sand);
}
.nav-top--accent { color: var(--sale); }
.acc-flat--accent { color: var(--sale); }
.nav-top--accent:hover { color: #fff; background: var(--sale); border-bottom-color: var(--sale); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 88;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(28,25,23,.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner {
  display: flex; flex-wrap: wrap; gap: 24px 30px;
  padding: 26px 18px 30px; align-items: flex-start;
}
.mega-lead { flex: 0 0 250px; }
.mega-col  { flex: 1 1 155px; max-width: 235px; }
.mega-col[hidden] { display: none; }
@media (max-width: 1080px) { .mega-lead { flex-basis: 210px; } }
.mega-lead h3 {
  font-size: 1.35rem; margin-bottom: .35em; color: var(--copper-deep);
}
.mega-lead p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.mega-col h4 {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega-col a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 7px 0; font-size: .93rem; color: var(--ink-3);
}
.mega-col a:hover { color: var(--copper-deep); }
.mega-col a[hidden] { display: none; }
.nav-n { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------- mobile accordion --- */
/* Labelled, not just a hamburger. Half of Shawn's customers are not going to
   go hunting for three grey lines. */
.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 52px; min-height: 46px; padding: 5px 4px;
  border: 2px solid var(--line-strong); background: #fff; border-radius: var(--r-sm);
  color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--copper); color: var(--copper-deep); background: var(--sand); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle b {
  font-family: var(--font-display); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1; font-weight: 600;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.drawer {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(28,25,23,.55);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw);
  background: var(--cream); padding: 18px;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer nav { display: flex; flex-direction: column; }
.acc { border-bottom: 1px solid var(--line); }
.acc[hidden] { display: none; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 15px 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.14rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink); text-align: left;
}
.acc-btn svg { width: 20px; height: 20px; transition: transform .18s; flex: none; }
.acc-btn[aria-expanded="true"] { color: var(--copper-deep); }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 4px 14px; }
.acc-btn[aria-expanded="true"] + .acc-body { display: grid; gap: 1px; }
.acc-body a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 12px; font-size: .96rem; color: var(--ink-3); border-radius: var(--r-sm);
}
.acc-body a[hidden] { display: none; }
.acc-body a:hover { background: var(--sand); color: var(--copper-deep); }
.acc-flat {
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.14rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink);
}
.acc-flat:hover { color: var(--copper-deep); }
.drawer-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }

/* ------------------------------------------------------------- badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px; white-space: nowrap;
}
.badge--sale     { background: var(--sale); color: #fff; }
.badge--preorder { background: var(--preorder); color: #fff; }
.badge--low      { background: var(--warn-wash); color: var(--warn); border: 1px solid #E9C68B; }
.badge--sold     { background: var(--ink-3); color: #fff; }
.badge--new      { background: var(--copper); color: #fff; }
.badge--stock    { background: var(--preorder-wash); color: var(--preorder); }
.badge--call     { background: var(--copper); color: #fff; }

/* ------------------------------------------------------ product cards --- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.grid.is-short { justify-content: start; }
@media (min-width: 700px) {
  .grid.is-short { grid-template-columns: repeat(auto-fill, minmax(210px, 250px)); }
}
.grid--3 { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; position: relative;
  transition: border-color .16s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--copper-soft); box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--sand);
  display: block; overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
  transition: transform .35s ease; mix-blend-mode: multiply;
}
.card:hover .card__media img { transform: scale(1.045); }
.card__flags { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.card__body { padding: 13px 13px 15px; display: flex; flex-direction: column; flex: 1; }
.card__brand {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.card__title {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1.32;
  color: var(--ink); margin: 0 0 8px; text-transform: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); letter-spacing: .01em; }
.price-now.is-sale { color: var(--sale); }
.price-now.is-call { color: var(--copper-deep); font-size: 1.05rem; letter-spacing: .04em; }
.price-was { font-size: .88rem; color: var(--muted); text-decoration: line-through; }
.card__meta { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.card__eta {
  font-size: .76rem; color: var(--preorder); margin-top: 5px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.card__eta::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--preorder); flex: none;
}
.card.is-sold .card__media img { filter: grayscale(.65) opacity(.62); }

/* the "see the rest" tile that keeps a thin row from looking half-empty */
.card--more {
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  padding: 24px 18px; background: var(--sand); border-style: dashed;
  border-color: var(--line-strong); color: var(--ink);
}
.card--more:hover { background: var(--copper-wash); border-color: var(--copper); color: var(--copper-deep); }
.card--more__icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px;
  border-radius: 50%; background: var(--copper); color: #fff; font-size: 1.2rem;
}
.card--more b {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1.2;
}
.card--more small { color: var(--muted); font-size: .82rem; }

/* ------------------------------------------------------------ sections --- */
.section { padding: 52px 0; }
.section--tight { padding: 34px 0; }
.section--flush { padding: 30px 0 6px; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #DED3C8; }
.section--ink h2, .section--ink h3 { color: #fff; }
@media (min-width: 900px) { .section { padding: 74px 0; } }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.eyebrow {
  display: block;
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 8px;
}
.lede { font-size: 1.06rem; color: var(--ink-3); max-width: 62ch; }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,25,23,.62) 0%, rgba(28,25,23,.80) 55%, rgba(28,25,23,.94) 100%),
    radial-gradient(120% 90% at 20% 0%, rgba(173,108,78,.34), transparent 60%);
}
.hero__inner { position: relative; padding: 44px 0 40px; }
@media (min-width: 900px) { .hero__inner { padding: 78px 0 66px; } }
.hero h1 { color: #fff; margin-bottom: .32em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--copper-soft); }
.hero__sub { font-size: 1.08rem; color: #DCD1C6; max-width: 56ch; margin-bottom: 22px; }
@media (min-width: 900px) { .hero__sub { font-size: 1.2rem; } }
.hero__cta { display: grid; gap: 11px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hero__cta { grid-template-columns: auto auto; justify-content: start; } }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px;
  font-size: .86rem; color: #C9BCB0;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--copper-soft); flex: none; }
.trust-item svg, .footer-contact svg, .social svg { flex: none; }

/* ------------------------------------------------------------- panels --- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
@media (min-width: 700px) { .panel { padding: 30px; } }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 52px; } }
.split img { border-radius: var(--r-lg); }

/* category tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: var(--r); overflow: hidden; background: var(--ink);
}
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform .4s, opacity .3s; }
.tile:hover img { transform: scale(1.06); opacity: .48; }
.tile[hidden] { display: none; }
.tile span {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .07em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  display: flex; align-items: baseline; gap: 8px;
}
.tile-n {
  font-size: .78rem; font-weight: 400; color: rgba(255,255,255,.72);
  text-shadow: none;
}
.tile-n:empty { display: none; }
.tile-n::before { content: "("; }
.tile-n:not(:empty)::after { content: ")"; }

/* trust strip */
.trust-strip { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .trust-strip { grid-template-columns: repeat(4, 1fr); gap: 26px; } }
.trust-item { text-align: center; }
.trust-item svg { width: 30px; height: 30px; color: var(--copper); margin-bottom: 8px; }
.trust-item h3 { font-size: .96rem; letter-spacing: .06em; margin-bottom: 4px; }
.trust-item p { font-size: .86rem; color: var(--muted); margin: 0; }

/* brand row — every pill is a real filtered link, not decoration */
.brand-head {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  margin: 22px 0 12px;
}
.brands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.brands a {
  display: inline-flex; align-items: center; min-height: 42px;
  font-family: var(--font-display); font-size: .88rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 10px 17px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: #fff; transition: background .14s, border-color .14s, color .14s, transform .14s;
}
.brands a:hover, .brands a:focus-visible {
  background: var(--copper); border-color: var(--copper); color: #fff; transform: translateY(-1px);
}
.brands a[data-empty] { color: var(--muted); border-style: dashed; }

/* --------------------------------------------------------------- forms --- */
.field { margin-bottom: 16px; }
.field label, .label {
  display: block; font-weight: 600; font-size: .9rem; color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { font-size: .8rem; color: var(--muted); margin: 5px 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input[type="password"], input[type="date"], input[type="url"],
select, textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(173,108,78,.16);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236F6259' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-note { font-size: .84rem; color: var(--muted); }
.form-status { margin-top: 14px; padding: 13px 15px; border-radius: var(--r-sm); font-size: .92rem; display: none; }
.form-status.is-ok   { display: block; background: var(--preorder-wash); color: var(--preorder); border: 1px solid #B8D6C8; }
.form-status.is-err  { display: block; background: var(--sale-wash); color: var(--sale); border: 1px solid #F0BFBB; }

/* segmented toggle */
.segmented {
  display: grid; grid-auto-flow: column; gap: 4px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 100px; padding: 4px;
}
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: 11px 14px; border-radius: 100px;
  font-family: var(--font-display); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); transition: background .16s, color .16s;
}
.segmented button[aria-selected="true"] { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------- misc --- */
.breadcrumb { font-size: .84rem; color: var(--muted); padding: 10px 0 0; }
.breadcrumb a { color: var(--muted); display: inline-block; padding: 5px 0; }
.breadcrumb a:hover { color: var(--copper-deep); }

.empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff;
}
.skeleton { background: linear-gradient(90deg, var(--sand) 25%, #E9E0D6 37%, var(--sand) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------------------------------------------------------- newsletter --- */
.newsletter { background: var(--ink-2); padding: 46px 0; }
.newsletter-inner { display: grid; gap: 26px; align-items: center; }
@media (min-width: 880px) { .newsletter-inner { grid-template-columns: 1.05fr .95fr; gap: 46px; } }
.newsletter-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .newsletter-row { grid-template-columns: 1fr auto; } }
.newsletter input { border-color: transparent; }
.newsletter .form-status.is-ok { background: #234B3B; color: #CDE7DA; border-color: #3A6B57; }

/* ------------------------------------------------------- product rows --- */
.row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.row-head h2 { margin: 0; font-size: clamp(1.25rem, 3.4vw, 1.75rem); }
.row-head .shop-more {
  font-family: var(--font-display); font-size: .86rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--copper-deep); white-space: nowrap;
  padding: 6px 0;
}
.row-head .shop-more:hover { color: var(--copper-dark); }
.prow-section + .prow-section { padding-top: 0; }
.prow-section[hidden] { display: none; }

/* --------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink); color: #B9ADA2; padding: 44px 0 24px; margin-top: 0; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 36px; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; } }
@media (min-width: 1120px) {
  .footer-grid { grid-template-columns: 1.5fr .9fr .9fr .8fr .9fr 1.1fr; gap: 30px; }
}
.site-footer img.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer h4 {
  font-family: var(--font-display); font-size: .88rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin: 0 0 14px;
}
.site-footer a { color: #C6BAAF; }
.site-footer a:hover { color: var(--copper-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .93rem; }
/* Footer links get real height so they're comfortable to hit on a phone
   (WCAG 2.5.8 wants at least 24px; these land at 28). */
.site-footer ul a, .footer-contact a { display: inline-block; padding: 6px 0; }
.footer-contact { font-size: .93rem; display: grid; gap: 9px; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-legal { display: block; }
.footer-legal a { white-space: nowrap; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm); color: #C6BAAF;
}
.social a:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.social svg { width: 19px; height: 19px; }
.footer-bottom a { display: inline-block; padding: 5px 0; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  font-size: .82rem; color: #8D8178;
}
/* Other ways to pay: quiet toggle under the card button */
.altpay { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.altpay-toggle {
  background: none; border: 0; cursor: pointer; width: 100%;
  font: inherit; font-size: .86rem; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px; padding: 6px 0;
}
.altpay-toggle:hover { color: var(--copper-deep, #8A5138); }
.altpay-body { margin-top: 10px; }
.altpay-methods { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.altpay-method {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px;
  font-weight: 600; min-height: 44px;
}
.altpay-method:has(input:checked) { border-color: var(--copper); background: var(--sand); }
.altpay-method input { accent-color: var(--copper); }

/* The visit ticker: a real count, quiet, tabular digits so it never jiggles */
.visit-ticker { font-variant-numeric: tabular-nums; opacity: .85; }

/* ---------------------------------------------------- sticky mobile bar --- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-bar .btn { min-height: 46px; padding: 11px 14px; font-size: .92rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { body.has-mobile-bar { padding-bottom: 74px; } }

/* --------------------------------------------------------------- print --- */
@media print {
  .site-header, .site-footer, .mobile-bar, .announce { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- quick add ---- */
/* Add straight from the card. On a phone this is the difference between
   scroll-add-scroll-add and opening every listing and coming back. */
.card__add{
  margin-top:10px;width:100%;display:block;
  padding:11px 14px;border:1px solid var(--copper-deep);border-radius:4px;
  background:var(--copper);color:#fff;
  font-family:var(--disp,inherit);font-size:.9rem;letter-spacing:.04em;
  text-transform:uppercase;cursor:pointer;
  transition:background .15s ease,opacity .15s ease;
  /* comfortably past the 44px minimum tap target */
  min-height:44px;
}
.card__add:hover{background:var(--copper-deep)}
.card__add:active{transform:translateY(1px)}
.card__add.is-added{background:var(--green,#2F5D4B);border-color:var(--green,#2F5D4B)}
.card__add[disabled]{cursor:default}
.card.is-sold .card__add{display:none}
@media (max-width:520px){
  .card__add{padding:12px;font-size:.86rem}
}
