/* ============================================================
   PINE & PADDLE — Wilderness Supply Co. — Stylesheet
   Palette: sage · rust · cream · charcoal (vintage wilderness)
   ============================================================ */
:root {
  /* Brand accent kept under the legacy --red name so every existing usage
     re-skins automatically. Primary = rust; secondary = sage. */
  --red: #b35a34;        /* rust (primary accent / CTAs) */
  --red-glow: #cd7a4f;   /* lighter rust */
  --rust: #b35a34;
  --pine: #84926d;       /* sage green */
  --sage: #84926d;
  --bg: #1a1714;         /* warm charcoal */
  --bg-2: #211d18;
  --bg-3: #2a251e;
  --surface: #241f19;
  --surface-2: #2e2820;
  --line: #3a342b;
  --text: #f0e8d8;       /* cream */
  --muted: #b9ad97;
  --muted-2: #897e6a;
  --amber: #c9a24c;      /* campfire gold */
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1320px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
  --font: "Inter", system-ui, sans-serif;
  --display: "Oswald", "Rajdhani", sans-serif;
  --race: "Oswald", "Rajdhani", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* `clip` hides horizontal overflow WITHOUT making <body> a scroll container.
     Plain `overflow-x: hidden` does, which breaks `position: fixed` on iOS
     Safari — the bottom nav bar would detach and float mid-screen on scroll. */
  overflow-x: hidden;   /* fallback for very old browsers */
  overflow-x: clip;
  overflow-clip-margin: 0;
}
/* Keep horizontal clipping on the page scroller itself, not on <body>. */
html { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 10px; font-weight: 700;
  font-family: var(--display); letter-spacing: .04em; font-size: .95rem;
  text-transform: uppercase; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-glow));
  color: #fff; box-shadow: 0 8px 24px -8px rgba(179,90,52,.7);
}
.btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(179,90,52,.85); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost {
  background: transparent; color: var(--text); border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--red), #7a3c22);
  overflow: hidden; font-size: .82rem; font-weight: 600;
  letter-spacing: .01em; height: 36px; display: flex; align-items: center;
}
.announce__track {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: marquee 34s linear infinite; padding-left: 2rem;
}
.announce__track span:nth-child(even) { opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,11,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(8,8,11,.92); }
.header__inner {
  max-width: var(--max); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); }
.logo__mark {
  background: linear-gradient(135deg, var(--red), var(--red-glow));
  color: #fff; font-weight: 700; font-size: 1.35rem; line-height: 1;
  padding: .35rem .5rem; border-radius: 8px; letter-spacing: -.02em;
  box-shadow: 0 4px 16px -4px rgba(179,90,52,.7);
}
.logo__text { font-weight: 700; letter-spacing: .22em; font-size: 1.05rem; }
.nav { display: flex; gap: 1.8rem; margin-right: auto; }
.nav__link {
  font-family: var(--display); font-weight: 600; letter-spacing: .05em;
  font-size: .95rem; color: var(--muted); position: relative; padding: .3rem 0;
  text-transform: uppercase; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .25s;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text); position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: #fff; }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 0%,100%{transform:scale(1)} 30%{transform:scale(1.18)} }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--red); border-radius: 9px; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px; transform: scale(0);
  transition: transform .2s;
}
.cart-count.is-visible { transform: scale(1); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Search bar ---------- */
.searchbar {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  border-top: 1px solid transparent;
}
.searchbar.open { max-height: 80px; border-top-color: var(--line); }
.searchbar__inner {
  max-width: var(--max); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; gap: .8rem; color: var(--muted);
}
.searchbar input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: 1rem; font-family: inherit;
}
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar kbd {
  font-size: .7rem; border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 6px; color: var(--muted-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 11vw, 8.5rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  min-height: 86vh; display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(179,90,52,.32), transparent 60%),
    radial-gradient(700px 480px at 12% 92%, rgba(40,80,160,.18), transparent 60%),
    linear-gradient(180deg, #0a0a0f 0%, #08080b 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 35%, #000 0%, transparent 75%);
}
.hero__content { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero__eyebrow {
  font-family: var(--display); font-weight: 700; letter-spacing: .3em;
  color: var(--red-glow); font-size: .85rem; margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.hero__eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  line-height: 1.03; letter-spacing: -.01em;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.hero__title span { color: var(--red-glow); }
.hero__sub {
  color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 560px; margin: 1.6rem 0 2.2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.2rem; flex-wrap: wrap;
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700;
  color: #fff;
}
.hero__stats span { color: var(--muted); font-size: .85rem; letter-spacing: .05em; }

/* ---------- Trust strip ---------- */
.trust {
  max-width: var(--max); margin: -2rem auto 0; position: relative; z-index: 5;
  padding: 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.trust__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .9rem;
  box-shadow: var(--shadow);
}
.trust__icon { font-size: 1.6rem; }
.trust__item strong { display: block; font-size: .95rem; }
.trust__item small { color: var(--muted); font-size: .8rem; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__eyebrow {
  font-family: var(--display); font-weight: 700; letter-spacing: .25em;
  color: var(--red-glow); font-size: .8rem; margin-bottom: .5rem;
}
.section__title {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: .01em; text-transform: uppercase;
}
.section__link { color: var(--muted); font-weight: 600; font-family: var(--display); letter-spacing: .03em; transition: color .2s; }
.section__link:hover { color: var(--red-glow); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-card {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column;
  gap: .35rem; transition: transform .2s, border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(400px 200px at 100% 0%, rgba(179,90,52,.18), transparent 70%);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--red); }
.cat-card:hover::before { opacity: 1; }
.cat-card__icon { font-size: 2rem; }
.cat-card__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-top: .3rem; }
.cat-card__blurb { color: var(--muted); font-size: .85rem; }
.cat-card__count { color: var(--red-glow); font-size: .8rem; font-weight: 600; margin-top: .6rem; }

/* ---------- Shop ---------- */
.section--shop { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2)); max-width: none; }
.section--shop > .section__head, .shop { max-width: var(--max); margin-left: auto; margin-right: auto; }
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; position: sticky; top: 110px;
}
.filters__group { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.filters__group h4 {
  font-family: var(--display); letter-spacing: .08em; text-transform: uppercase;
  font-size: .85rem; margin-bottom: .8rem; color: var(--muted);
}
.filters__list { display: flex; flex-direction: column; gap: .5rem; max-height: 220px; overflow-y: auto; }
.filters__list::-webkit-scrollbar { width: 6px; }
.filters__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.check { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--muted); cursor: pointer; transition: color .15s; }
.check:hover { color: var(--text); }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.price-range input[type=range] { width: 100%; accent-color: var(--red); }
.price-range__labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .4rem; }

.shop__main { min-width: 0; }
.shop__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; gap: 1rem; flex-wrap: wrap; }
.shop__count { color: var(--muted); font-size: .9rem; }
.shop__sort { display: flex; align-items: center; gap: .6rem; }
.shop__sort label { color: var(--muted); font-size: .85rem; font-family: var(--display); letter-spacing: .05em; }
.shop__sort select {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: .55rem .8rem; border-radius: 9px; font-family: inherit; font-size: .9rem; outline: none;
}
.shop__sort select:focus { border-color: var(--red); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); border-color: #34343f; box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4/3; background: #0a0a0d; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .08em;
  padding: .25rem .6rem; border-radius: 6px;
}
.badge--new { background: #fff; color: #08080b; }
.badge--sale { background: var(--red); color: #fff; }
.card__quick {
  position: absolute; left: 50%; bottom: -50px; transform: translateX(-50%);
  background: rgba(8,8,11,.85); backdrop-filter: blur(6px); color: #fff;
  border: 1px solid var(--line); padding: .55rem 1.2rem; border-radius: 8px;
  font-family: var(--display); font-weight: 600; letter-spacing: .05em; font-size: .82rem;
  text-transform: uppercase; transition: bottom .25s ease, background .2s; white-space: nowrap;
}
.card:hover .card__quick { bottom: .8rem; }
.card__quick:hover { background: var(--red); border-color: var(--red); }
.card__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__brand { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.card__name { font-size: 1rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.card__rating { display: flex; align-items: center; gap: .4rem; }
.stars { color: var(--amber); letter-spacing: .05em; font-size: .85rem; }
.card__rating small { color: var(--muted); font-size: .78rem; }
.card__price { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: auto; padding: .3rem 0 .6rem; }
.card__price strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.card__price s { color: var(--muted-2); font-size: .9rem; }
.stock--low { font-size: .72rem; color: var(--amber); font-weight: 600; margin-left: auto; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* ---------- Brands marquee ---------- */
.brands { max-width: none; background: var(--bg-2); }
.brand-marquee { max-width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 32s linear infinite; }
.brand-chip {
  font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 1.3rem;
  color: var(--muted-2); padding: 1rem 2rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: color .2s, border-color .2s; white-space: nowrap;
}
.brand-chip:hover { color: #fff; border-color: var(--red); }

/* ---------- Build guides ---------- */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.guide {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 1rem;
  min-height: 220px; transition: transform .2s, border-color .2s; position: relative; overflow: hidden;
}
.guide::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); }
.guide:hover { transform: translateY(-4px); border-color: var(--accent); }
.guide__tag { font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: .72rem; color: var(--accent); }
.guide h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; }
.guide__read { margin-top: auto; color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, #16070a, #1a0a0e);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.newsletter__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.newsletter h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; }
.newsletter p { color: var(--muted); max-width: 460px; }
.newsletter__form { display: flex; gap: .6rem; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter__form input {
  flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: .85rem 1.1rem; border-radius: 10px; font-family: inherit; font-size: 1rem; outline: none;
}
.newsletter__form input:focus { border-color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer__grid {
  max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.3fr; gap: 2rem;
}
.logo--footer { margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: .9rem; max-width: 280px; margin-bottom: 1.2rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .8rem;
  color: var(--muted); transition: all .2s;
}
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__col h4, .footer__contact h4 {
  font-family: var(--display); letter-spacing: .08em; text-transform: uppercase;
  font-size: .9rem; margin-bottom: 1rem;
}
.footer__col a { display: block; color: var(--muted); font-size: .9rem; padding: .3rem 0; transition: color .15s; }
.footer__col a:hover { color: var(--red-glow); }
.footer__contact p { color: var(--muted); font-size: .9rem; padding: .25rem 0; }
.footer__bottom {
  border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto;
  padding: 1.3rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted-2); font-size: .85rem; flex-wrap: wrap;
}

/* ---------- Overlay ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 200;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ---------- Cart drawer ---------- */
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line); z-index: 300;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,.8);
}
.cart.open { transform: translateX(0); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; }
.cart__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart__empty { text-align: center; margin: auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; color: var(--muted); }
.cart__empty span { font-size: 3rem; }

.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-item img { border-radius: 8px; width: 72px; height: 54px; object-fit: cover; }
.cart-item__brand { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.cart-item__info h4 { font-size: .9rem; font-weight: 600; line-height: 1.3; margin: .1rem 0 .3rem; }
.cart-item__info strong { font-family: var(--display); font-size: 1rem; }
.cart-item__ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.qty { display: flex; align-items: center; gap: .2rem; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 26px; height: 26px; font-size: 1rem; color: var(--muted); transition: background .15s, color .15s; }
.qty button:hover { background: var(--surface-2); color: #fff; }
.qty span { min-width: 22px; text-align: center; font-size: .9rem; }
.cart-item__rm { font-size: .75rem; color: var(--muted-2); text-decoration: underline; transition: color .15s; }
.cart-item__rm:hover { color: var(--red-glow); }

.cart__foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.cart__row { display: flex; justify-content: space-between; align-items: center; }
.cart__row strong { font-family: var(--display); font-size: 1.4rem; }
.cart__note { text-align: center; color: var(--muted-2); font-size: .78rem; }
.cart__progress { font-size: .82rem; }
.ship-msg { color: var(--muted); margin-bottom: .4rem; }
.ship-msg strong { color: var(--amber); }
.ship-track { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ship-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--amber)); transition: width .3s; }
.ship-bar--done { color: #4ade80; font-weight: 600; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: none; }
.modal.open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(880px, 94vw); max-height: 92vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%,-46%); } to { opacity: 1; transform: translate(-50%,-50%); } }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 10px; background: rgba(8,8,11,.6); z-index: 2; transition: background .2s; }
.modal__close:hover { background: var(--red); }
.modal__media { background: #0a0a0d; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 2rem; display: flex; flex-direction: column; gap: .7rem; }
.modal__info h2 { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; text-transform: uppercase; }
.modal__price { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.modal__price strong { font-family: var(--display); font-size: 1.9rem; }
.modal__price s { color: var(--muted-2); }
.save { background: rgba(179,90,52,.15); color: var(--red-glow); font-weight: 700; font-size: .78rem; padding: .2rem .5rem; border-radius: 5px; }
.modal__desc { color: var(--muted); font-size: .92rem; }
.specs { list-style: none; display: flex; flex-direction: column; gap: .3rem; margin: .3rem 0; }
.specs li { display: flex; justify-content: space-between; font-size: .85rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); }
.modal__stock { font-size: .85rem; font-weight: 600; }
.modal__stock.in { color: #4ade80; }
.modal__stock.out { color: var(--red-glow); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--surface-2); border: 1px solid var(--line); color: #fff;
  padding: .9rem 1.4rem; border-radius: 12px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow); z-index: 500; transition: transform .35s cubic-bezier(.4,0,.2,1);
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .build-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .shop { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.2rem; }
  .filters.open .filters__group:last-of-type { grid-column: 1 / -1; }
  .filters.open .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* .nav mobile styling lives in the drawer block below (single source of truth) */
  .nav-toggle { display: flex; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { aspect-ratio: 16/10; }
  .newsletter__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .trust, .build-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  /* keep 2-up product grid on phones — standard for shopping */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 90vh; min-height: 90svh; }
}

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

/* ============================================================
   Vehicle finder · platforms · fitment  (Revline-style)
   ============================================================ */

/* ---------- Hero vehicle finder ---------- */
.finder {
  margin: 2.2rem 0 .5rem; max-width: 720px;
  background: rgba(20,20,27,.72); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.finder__label {
  font-family: var(--display); font-weight: 700; letter-spacing: .04em;
  font-size: .9rem; margin-bottom: .7rem; color: var(--text);
}
.finder__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.finder__row select {
  flex: 1; min-width: 120px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: .75rem .9rem;
  font-family: inherit; font-size: .95rem; outline: none; cursor: pointer;
}
.finder__row select:focus { border-color: var(--red); }
.finder__row select:disabled { opacity: .5; cursor: not-allowed; }
.finder__row .btn { flex: 0 0 auto; }
.finder__garage {
  margin-top: .8rem; font-size: .9rem; color: var(--muted);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.finder__garage strong { color: var(--text); }
.garage-clear {
  color: var(--red-glow); font-weight: 600; text-decoration: underline; font-size: .85rem;
}
.garage-clear:hover { color: #fff; }

/* ---------- Shop by platform ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.platform-card {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column;
  gap: .15rem; position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.platform-card::after {
  content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(179,90,52,.25), transparent 70%); opacity: 0; transition: opacity .25s;
}
.platform-card:hover { transform: translateY(-4px); border-color: var(--red); }
.platform-card:hover::after { opacity: 1; }
.platform-card__code {
  font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  color: var(--red-glow); background: rgba(179,90,52,.12); align-self: flex-start;
  padding: .15rem .5rem; border-radius: 5px; margin-bottom: .5rem;
}
.platform-card__make { color: var(--muted); font-size: .82rem; }
.platform-card__model { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.platform-card__count { color: var(--muted-2); font-size: .78rem; margin-top: .5rem; }

/* ---------- Vehicle banner (in shop) ---------- */
.vehicle-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.2rem; padding: .85rem 1.1rem;
  background: linear-gradient(90deg, rgba(179,90,52,.14), rgba(179,90,52,.04));
  border: 1px solid rgba(179,90,52,.35); border-radius: 10px; font-size: .9rem;
}
.vehicle-banner strong { color: #fff; }
.vehicle-banner__clear { color: var(--red-glow); font-weight: 600; white-space: nowrap; }
.vehicle-banner__clear:hover { color: #fff; }

/* ---------- Fitment badge on cards ---------- */
.fit-badge {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: #4ade80; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3);
  padding: .15rem .5rem; border-radius: 5px; margin-bottom: .15rem;
}

/* ---------- Fitment block in modal ---------- */
.modal__fit-yes { color: #4ade80; font-weight: 600; font-size: .88rem; }
.fitments { margin-top: .2rem; }
.fitments__label {
  display: block; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; color: var(--muted); margin-bottom: .5rem;
}
.fitments__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.fit-pill {
  font-size: .78rem; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); padding: .25rem .6rem; border-radius: 20px;
}
.fit-pill--match { color: #4ade80; border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.1); }
.fit-pill--uni { color: var(--amber); border-color: rgba(255,183,3,.4); background: rgba(255,183,3,.1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .finder { max-width: 100%; }
  .finder__row .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .platform-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Account (auth) + Admin
   ============================================================ */

/* ---------- Header account controls ---------- */
.acct-email {
  font-size: .82rem; color: var(--muted); max-width: 160px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: none;
}
@media (min-width: 760px) { .acct-email { display: inline; } }
.logout-form { display: inline-flex; margin: 0; }
.nav__link--admin { color: var(--amber); }

/* ---------- Auth pages ---------- */
.auth {
  min-height: 72vh; display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
}
.auth__card {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem; box-shadow: var(--shadow);
}
.auth__title {
  font-family: var(--display); font-size: 2rem; text-transform: uppercase;
  margin: .2rem 0 1.4rem;
}
.auth__form { display: flex; flex-direction: column; gap: 1rem; }
.auth__error {
  background: rgba(179,90,52,.12); border: 1px solid rgba(179,90,52,.4);
  color: #ff8a80; padding: .7rem .9rem; border-radius: 9px; font-size: .9rem;
  margin-bottom: .4rem;
}
.auth__error:empty { display: none; }
.auth__alt { margin-top: 1.3rem; color: var(--muted); font-size: .9rem; text-align: center; }
.auth__alt a { color: var(--red-glow); font-weight: 600; }
.auth__alt a:hover { color: #fff; }

/* ---------- Form fields (shared) ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: .75rem .9rem; border-radius: 9px; font-family: inherit; font-size: .95rem; outline: none;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; }

/* ---------- Admin ---------- */
.admin { max-width: 1100px; }
.admin__flash {
  background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.4);
  color: #7ee2a8; padding: .8rem 1rem; border-radius: 9px; margin-bottom: 1rem; font-size: .92rem;
}
.admin__count { color: var(--muted); margin-bottom: 1rem; font-size: .9rem; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td {
  text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle;
}
.admin-table th {
  font-family: var(--display); letter-spacing: .06em; text-transform: uppercase;
  font-size: .75rem; color: var(--muted); background: var(--surface);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface); }
.admin-thumb { border-radius: 6px; object-fit: cover; }
.admin-actions { display: flex; gap: .8rem; align-items: center; white-space: nowrap; }
.admin-inline-form { display: inline; margin: 0; }
.admin-link { color: var(--muted); font-weight: 600; font-size: .85rem; text-decoration: underline; }
.admin-link:hover { color: #fff; }
.admin-link--danger { color: #ff8a80; }
.admin-link--danger:hover { color: var(--red-glow); }
.tag { font-family: var(--display); font-weight: 700; font-size: .65rem; letter-spacing: .08em; padding: .15rem .45rem; border-radius: 4px; margin-right: .3rem; }
.tag--new { background: #fff; color: #08080b; }
.tag--sale { background: var(--red); color: #fff; }

/* ---------- Admin form ---------- */
.admin-form { display: flex; flex-direction: column; gap: 1.2rem; max-width: 820px; }
.admin-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.admin-form__flags { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.admin-fitments { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.admin-fitments legend { padding: 0 .5rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.admin-fitments__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.admin-form__actions { display: flex; gap: .8rem; }
@media (max-width: 620px) { .admin-form__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Conversion polish: card meta, reviews, guarantee, payments
   ============================================================ */

/* ---------- Product card extras ---------- */
.card__save {
  font-size: .72rem; font-weight: 700; color: #4ade80;
  background: rgba(74,222,128,.12); padding: .12rem .45rem; border-radius: 5px;
}
.card__meta { display: flex; align-items: center; gap: .6rem; min-height: 1.1rem; margin: -.1rem 0 .55rem; flex-wrap: wrap; }
.card__ship { font-size: .74rem; color: var(--muted); font-weight: 600; }
.card__meta .stock--low { margin-left: 0; }
.card__quick { text-transform: none; letter-spacing: .01em; }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); max-width: none; }
.reviews > .section__head, .review-grid { max-width: var(--max); margin-left: auto; margin-right: auto; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; padding: 0 1.5rem; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem;
}
.review__stars { color: var(--amber); letter-spacing: .12em; font-size: .95rem; }
.review blockquote { font-size: .92rem; line-height: 1.55; color: var(--text); margin: 0; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: .1rem; }
.review figcaption strong { font-size: .9rem; }
.review figcaption span { font-size: .78rem; color: var(--muted); }

/* ---------- Guarantee band ---------- */
.guarantee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.guarantee__inner {
  max-width: var(--max); margin: 0 auto; padding: 2.2rem 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.guarantee__item { display: flex; gap: 1rem; align-items: flex-start; }
.guarantee__item span { font-size: 1.8rem; line-height: 1; }
.guarantee__item strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: .25rem; }
.guarantee__item p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Footer payment + security ---------- */
.footer__pay {
  border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto;
  padding: 1.3rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer__secure { color: var(--muted); font-size: .85rem; font-weight: 600; }
.pay-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-badge {
  font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: .35rem .6rem; border-radius: 6px;
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--red-glow); }

@media (max-width: 1024px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .guarantee__inner { grid-template-columns: 1fr; }
  .footer__pay { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Admin: sourcing / import UI
   ============================================================ */
.admin__head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-sub { display: block; color: var(--muted-2); font-size: .76rem; margin-top: .15rem; }
.admin-table tr.is-draft { opacity: .72; }
.tag--live { background: rgba(74,222,128,.16); color: #4ade80; }
.tag--draft { background: rgba(255,183,3,.16); color: var(--amber); }
.margin-ok { color: #4ade80; font-weight: 700; }
.margin-low { color: #ff8a80; font-weight: 700; }

.import-rule {
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; background: linear-gradient(120deg, rgba(74,222,128,.08), transparent);
  border: 1px solid rgba(74,222,128,.3); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 1.6rem;
}
.import-rule h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: .3rem; }
.import-rule p { color: var(--muted); font-size: .9rem; max-width: 760px; margin: 0; }
.import-rule code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }
.import-rule__example {
  display: flex; flex-direction: column; text-align: right; white-space: nowrap;
  border-left: 1px solid var(--line); padding-left: 1.5rem;
}
.import-rule__example span { color: var(--muted-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.import-rule__example strong { font-family: var(--display); font-size: 1.3rem; }
.import-rule__example small { color: #4ade80; font-size: .8rem; }

.import-form, .import-suppliers { max-width: 860px; }
.import-h { font-family: var(--display); font-size: 1.2rem; margin: 2rem 0 .3rem; }
.import-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.import-grid { grid-template-columns: 1fr; }
.import-cat { max-width: 320px; }

.import-results { max-width: 860px; margin-top: 1.4rem; }
.import-results .admin__flash a { color: var(--red-glow); font-weight: 600; margin-left: .4rem; }
.import-log { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.import-log li {
  display: flex; gap: .7rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem;
}
.import-log li.ok { border-color: rgba(74,222,128,.3); }
.import-log li.warn { border-color: rgba(255,183,3,.35); }
.import-log li span { font-size: 1rem; }
.import-log li strong { display: block; font-size: .88rem; font-weight: 600; }
.import-log li small { color: var(--muted-2); font-size: .76rem; word-break: break-all; }

.supplier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.supplier-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.supplier-card.is-on { border-color: rgba(74,222,128,.4); }
.supplier-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.supplier-card__head strong { font-family: var(--display); font-size: 1.05rem; }
.supplier-pill { font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 20px; background: var(--surface-2); color: var(--muted); }
.supplier-card.is-on .supplier-pill { background: rgba(74,222,128,.16); color: #4ade80; }
.supplier-card p { color: var(--muted); font-size: .85rem; margin: 0; }

@media (max-width: 760px) {
  .supplier-grid { grid-template-columns: 1fr; }
  .import-rule__example { border-left: none; padding-left: 0; text-align: left; }
}

/* ============================================================
   Product detail page + card links + admin images
   ============================================================ */
.card__imglink { display: block; width: 100%; height: 100%; }
.card__name-link { color: inherit; display: block; }
.card__name-link:hover .card__name { color: var(--red-glow); }

.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

.pd { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.pd-crumbs { color: var(--muted-2); font-size: .85rem; margin: .5rem 0 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pd-crumbs a:hover { color: var(--red-glow); }
.pd-crumbs__cur { color: var(--muted); }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

.pd-gallery { position: sticky; top: 100px; }
.pd-main {
  position: relative; aspect-ratio: 4/3; background: #0a0a0d; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pd-thumb {
  width: 74px; height: 60px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 2px solid var(--line); background: #0a0a0d; transition: border-color .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: var(--muted); }
.pd-thumb.active { border-color: var(--red); }

.pd-info { display: flex; flex-direction: column; gap: .9rem; }
.pd-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.pd-price { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.pd-price strong { font-family: var(--display); font-size: 2rem; }
.pd-price s { color: var(--muted-2); font-size: 1.1rem; }
.pd-stock { font-weight: 600; font-size: .9rem; }
.pd-stock.in { color: #4ade80; }
.pd-stock.out { color: var(--red-glow); }
.pd-actions { display: flex; gap: .8rem; margin: .4rem 0; }
.pd-actions .btn { flex: 1; }
.pd-perks { list-style: none; display: flex; flex-direction: column; gap: .5rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.pd-fitment { margin-top: .3rem; }

.pd-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin-top: 3rem; }
.pd-h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.pd-desc p { color: var(--muted); line-height: 1.7; }
.pd-related { padding-left: 0; padding-right: 0; }

.admin-images { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-images legend { padding: 0 .5rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.admin-images input[type=file] { color: var(--muted); font-size: .9rem; }
.admin-hint { color: var(--muted-2); font-size: .82rem; margin: 0; }

@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .pd-details { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ============================================================
   Checkout
   ============================================================ */
.checkout { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.checkout__inner > .section__title { margin-bottom: 1.5rem; }
.checkout__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.checkout__summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
}
.checkout__summary h3, .checkout__form h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 1rem; }
.co-items { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.co-item { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: baseline; font-size: .92rem; }
.co-qty { color: var(--muted); font-weight: 600; }
.co-name { color: var(--text); }
.co-price { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.co-empty { color: var(--muted); }
.co-empty a { color: var(--red-glow); }
.co-freeship {
  margin-bottom: .8rem; padding: .6rem .8rem; border-radius: 10px;
  background: rgba(132,146,109,.12); border: 1px solid rgba(132,146,109,.35);
  color: var(--muted); font-size: .85rem;
}
.co-freeship strong { color: #fff; }
.co-freeship a { color: var(--sage, #84926d); text-decoration: underline; }
.co-totals { border-top: 1px solid var(--line); padding-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.co-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.co-row strong { color: var(--text); }
.co-row--total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; font-size: 1.1rem; }
.co-row--total strong { font-family: var(--display); font-size: 1.35rem; }
.checkout__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.checkout__note { color: var(--muted-2); font-size: .82rem; margin-top: .9rem; text-align: center; }
.checkout__note code { background: var(--surface-2); padding: .1rem .3rem; border-radius: 4px; }
.checkout__back { display: inline-block; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.checkout__back:hover { color: var(--red-glow); }

.co-success { text-align: center; max-width: 620px; margin: 0 auto; }
.co-success__badge {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(74,222,128,.15);
  color: #4ade80; font-size: 2rem; display: grid; place-items: center; margin: 1rem auto;
  border: 2px solid rgba(74,222,128,.5);
}
.co-success__sub { color: var(--muted); margin-bottom: 1.5rem; }
.co-success__card { text-align: left; margin: 0 auto 1.8rem; max-width: 460px; }

@media (max-width: 760px) {
  .checkout__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Customer "My Orders"
   ============================================================ */
.acct-email:hover { color: #fff; }
.myorders { display: flex; flex-direction: column; gap: 1rem; max-width: 720px; }
.myorder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.myorder__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.myorder__head strong { font-family: var(--display); }
.myorder__items { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 0; }
.myorder__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: .8rem; }
.myorder__foot strong { font-family: var(--display); font-size: 1.2rem; }

/* ============================================================
   Mobile refinements
   ============================================================ */
.filters-toggle { display: none; margin-right: auto; padding: .55rem 1rem; font-size: .85rem; }
.shop__bar { gap: .6rem; }

@media (max-width: 760px) {
  :root { --radius: 12px; }
  .header__inner { gap: .8rem; padding: .7rem 1rem; }
  .logo__text { display: none; }              /* keep the K1 mark, save space */
  .header__actions { gap: .15rem; }
  .icon-btn { width: 40px; height: 40px; }
  .section { padding: 2.6rem 1rem; }
  .section__head { margin-bottom: 1.4rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero__stats { gap: 1.2rem 1.6rem; margin-top: 2rem; }
  .finder__row { gap: .5rem; }
  .finder__row select { min-width: 0; flex: 1 1 30%; }
  .platform-grid { gap: .7rem; }

  /* tighter product cards */
  .card__body { padding: .8rem; gap: .35rem; }
  .card__name { font-size: .9rem; min-height: 2.4em; }
  .card__price strong { font-size: 1.15rem; }
  .card__rating small { font-size: .72rem; }
  .card__quick { display: none; }             /* tap the card to open the product */
  .btn { padding: .8rem 1.2rem; }

  /* comfortable tap targets in the cart */
  .qty button { width: 32px; height: 32px; }
  .cart { width: 100%; }
  .checkout__summary, .checkout__form { padding: 1.1rem; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Coupons · order fulfillment
   ============================================================ */
.co-coupon { display: flex; gap: .5rem; margin: 1rem 0 .3rem; }
.co-coupon input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); padding: .65rem .8rem; border-radius: 9px; font-family: inherit; outline: none; text-transform: uppercase; }
.co-coupon input:focus { border-color: var(--red); }
.co-coupon .btn { padding: .65rem 1.1rem; }
.co-coupon__msg { font-size: .82rem; min-height: 1.1em; margin-bottom: .5rem; }
.co-coupon__msg.ok { color: #4ade80; }
.co-coupon__msg.warn { color: #ff8a80; }
.co-discount { color: #4ade80; }

.tag--info { background: rgba(54,194,255,.16); color: #36c2ff; }

.order-fulfil { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.order-fulfil select, .order-fulfil input {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: .55rem .7rem; border-radius: 8px; font-family: inherit; font-size: .88rem; outline: none;
}
.order-fulfil select:focus, .order-fulfil input:focus { border-color: var(--red); }
.order-fulfil input { flex: 1; min-width: 120px; }
.order-fulfil .btn { padding: .55rem 1.1rem; }
.order-fulfil__hint { color: var(--muted-2); font-size: .76rem; margin-top: .5rem; }
.myorder__track { color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* Admin catalog cleanup */
.admin-cleanup { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin-cleanup .btn { font-size: .82rem; padding: .55rem 1rem; }
.admin-danger-btn { color: #ff8a80; border-color: rgba(179,90,52,.4); }
.admin-danger-btn:hover { background: rgba(179,90,52,.12); border-color: var(--red); color: #fff; }

/* Quick import (paste URL → auto-fill on Add Product) */
.quick-import {
  background: linear-gradient(120deg, rgba(179,90,52,.10), transparent);
  border: 1px solid rgba(179,90,52,.35); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1.6rem; max-width: 820px;
}
.quick-import__head { font-family: var(--display); font-weight: 700; margin-bottom: .7rem; }
.quick-import__row { display: flex; gap: .6rem; }
.quick-import__row input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: .75rem .9rem; border-radius: 9px; font-family: inherit; font-size: .95rem; outline: none;
}
.quick-import__row input:focus { border-color: var(--red); }
.quick-import__msg { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.quick-import__msg.ok { color: #4ade80; }
.quick-import__msg.warn { color: #ff8a80; }
@media (max-width: 620px) { .quick-import__row { flex-direction: column; } }

/* Product page: fitment notes + reviews */
.pd-fitnotes { color: var(--muted); font-size: .9rem; margin-top: .7rem; line-height: 1.5; }
.pd-reviews { max-width: var(--max); }
.pd-reviews__avg { color: var(--amber); font-weight: 600; margin-top: .3rem; }
.pd-reviews__note { color: var(--muted); }
.pd-reviews__note a { color: var(--red-glow); }
.review-form { max-width: 520px; margin: 0 0 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.review-form h3 { font-family: var(--display); margin-bottom: .8rem; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.2rem; }
@media (max-width: 700px) { .review-list { grid-template-columns: 1fr; } }

/* ============================================================
   v2 — visual identity, depth & mobile polish
   ============================================================ */

/* subtle carbon texture so it doesn't read flat/templated.
   z-index:-1 keeps it behind all content WITHOUT lifting elements (which had
   clobbered the sticky header's z-index and hid the mobile menu). */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    radial-gradient(1200px 600px at 100% -10%, rgba(179,90,52,.06), transparent 60%);
}

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: .55rem; }
.logo__emblem { height: 36px; width: auto; flex: none; filter: drop-shadow(0 4px 10px rgba(132,146,109,.35)); }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__k1 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; color: #fff; }
.logo__k1 span { color: var(--red-glow); }
.logo__sub { font-family: var(--display); font-weight: 600; font-size: .6rem; letter-spacing: .34em; color: var(--muted); margin-top: 2px; }
.logo--footer .logo__emblem { height: 32px; }

/* ---------- Buttons (crisper, less gradient-mush) ---------- */
.btn { border-radius: 9px; letter-spacing: .03em; }
.btn--primary {
  background: #b35a34;
  background-image: linear-gradient(180deg, #cd7a4f, #9c4c2a);
  box-shadow: 0 6px 18px -6px rgba(179,90,52,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-2px); }

/* ---------- Section eyebrow tick ---------- */
.section__eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.section__eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); display: inline-block; border-radius: 2px; }
.section__head--center .section__eyebrow { justify-content: center; }

/* ---------- Hero accent ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero::after {
  content: ""; position: absolute; right: -8%; top: 0; bottom: 0; width: 52%;
  background: linear-gradient(115deg, transparent 0, rgba(179,90,52,.07) 42%, transparent 72%);
  transform: skewX(-12deg); pointer-events: none; z-index: 0;
}
.hero__content { z-index: 2; }

/* ---------- Product cards (premium hover) ---------- */
.card { border-radius: 16px; position: relative; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--red), var(--red-glow)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; z-index: 3;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -26px rgba(0,0,0,.95), 0 0 0 1px rgba(179,90,52,.22); }
.card:hover::after { transform: scaleX(1); }

/* ---------- Mobile bottom nav ---------- */
.mobilebar { display: none; }
@media (max-width: 760px) {
  /* Make the document non-scrolling and let .appwrap scroll instead. The bottom
     bar then lives OUTSIDE the scroller as a flex item, so it physically can't
     drift mid-screen the way a document-level position:fixed bar does on iOS. */
  html { height: 100%; }
  body {
    height: 100vh; height: 100dvh;
    margin: 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .appwrap {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: clip;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth; scroll-padding-top: 110px;
  }
  .mobilebar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    flex: 0 0 auto; z-index: 150;
    background: rgba(10,10,14,.97); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom));
  }
  .mobilebar__item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: .4rem 0; color: var(--muted); font-size: .62rem; font-weight: 600;
    letter-spacing: .02em; background: none; border: none; text-transform: none;
  }
  .mobilebar__item:active, .mobilebar__item:focus { color: #fff; }
  .mobilebar__item.is-active { color: #fff; }
  .mobilebar__item.is-active svg { color: var(--red-glow, #cd7a4f); }
  .mobilebar__item.is-active::before {
    content: ""; position: absolute; top: 0; width: 26px; height: 3px;
    border-radius: 0 0 3px 3px; background: var(--red-glow, #cd7a4f);
  }
  .mobilebar__item { position: relative; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* tighten the header now that the bottom bar carries nav */
  .logo__sub { display: none; }
  .logo__emblem { height: 30px; }
  .logo__k1 { font-size: 1.25rem; }
  .hero::after { display: none; }
}

/* ============================================================
   Mobile fixes — iOS button chrome, sticky hover, header declutter
   ============================================================ */
/* Remove iOS Safari's default rounded button box + tap highlight */
.icon-btn, .nav-toggle, .mobilebar__item, .btn, button {
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* On touch devices, don't let :hover backgrounds "stick" after a tap */
@media (hover: none) {
  .icon-btn:hover { background: none; color: var(--text); }
}

@media (max-width: 760px) {
  /* the bottom bar already provides Search/Cart/Account — keep the header lean */
  #searchToggle { display: none; }
  .header__inner { gap: .6rem; }
  .header__actions { gap: .1rem; }
  /* a touch more clearance above the iPhone home indicator */
  .mobilebar { padding-bottom: calc(.45rem + env(safe-area-inset-bottom)); }
}

/* ============================================================
   Fix: empty toast peeking above bottom bar + mobile header align
   ============================================================ */
/* The toast is grey/rounded; relying only on translateY left it visible above
   the bottom nav. Fully hide it unless .show is set. */
.toast {
  opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility .25s ease;
}
.toast.show { opacity: 1; visibility: visible; }

/* ============================================================
   Admin low-stock alert banner
   ============================================================ */
.admin-stockalert {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 0 0 1.2rem; padding: .7rem 1rem;
  background: rgba(255,170,0,.08); border: 1px solid rgba(255,170,0,.35);
  border-left: 3px solid #ffaa00; border-radius: 10px;
  color: #ffd479; font-size: .9rem;
}
.admin-stockalert strong { color: #fff; font-weight: 700; }

/* ============================================================
   Join-the-crew popup (email capture, shown once)
   ============================================================ */
.crewpop {
  position: fixed; inset: 0; z-index: 420;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.crewpop.show { opacity: 1; pointer-events: auto; }
.crewpop__backdrop { position: absolute; inset: 0; background: rgba(12,10,8,.62); backdrop-filter: blur(3px); }
.crewpop__card {
  position: relative; width: min(420px, calc(100vw - 2.2rem));
  background: linear-gradient(165deg, #221d18, #1a1714);
  border: 1px solid rgba(132,146,109,.35); border-radius: 18px;
  padding: 1.9rem 1.7rem 1.6rem; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(14px); transition: transform .25s ease;
}
.crewpop.show .crewpop__card { transform: translateY(0); }
.crewpop__eyebrow { font-size: .72rem; letter-spacing: .18em; color: var(--sage, #84926d); font-weight: 700; margin-bottom: .4rem; }
.crewpop__card h3 { font-family: var(--display); font-size: 1.65rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .45rem; color: #fff; }
.crewpop__card > p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-bottom: 1.1rem; }
.crewpop__form { display: flex; flex-direction: column; gap: .6rem; }
.crewpop__form input {
  width: 100%; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: #fff; font-size: .95rem;
}
.crewpop__form input:focus { outline: none; border-color: var(--sage, #84926d); }
.crewpop__close {
  position: absolute; top: .65rem; right: .75rem;
  background: none; border: none; color: var(--muted); font-size: 1rem;
  cursor: pointer; padding: .35rem; line-height: 1;
}
.crewpop__close:hover { color: #fff; }
.crewpop__no {
  margin-top: .8rem; background: none; border: none;
  color: var(--muted-2); font-size: .8rem; cursor: pointer; text-decoration: underline;
}
.crewpop__no:hover { color: var(--muted); }

/* Size guide link beside the size picker */
.opt__guide {
  margin-left: .6rem; font-size: .78rem; font-weight: 500;
  color: var(--sage, #84926d); text-decoration: underline; text-underline-offset: 3px;
}
.opt__guide:hover { color: #cd7a4f; }

/* ============================================================
   Accessibility: skip-to-content link (visible only on focus)
   ============================================================ */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 500;
  padding: .65rem 1.1rem; border-radius: 10px;
  background: var(--red, #b35a34); color: #fff; font-weight: 600;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: .75rem; }

/* ============================================================
   Back-to-top floating button
   ============================================================ */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.4rem; z-index: 140;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red, #b35a34); color: #fff; border: none;
  box-shadow: 0 8px 26px rgba(179,90,52,.4);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #cd7a4f; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  /* lift above the mobile bottom bar */
  .to-top { bottom: calc(78px + env(safe-area-inset-bottom)); right: .9rem; }
}

@media (max-width: 760px) {
  /* push the header icons to the right edge so the menu isn't floating mid-bar */
  .header__actions { margin-left: auto; }
}

/* ============================================================
   Info/content pages + show MOTORSPORTS on mobile
   ============================================================ */
.info-page { max-width: 820px; }
.info-body { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.info-body p { margin-bottom: 1rem; }
.info-body h3 { font-family: var(--display); color: var(--text); font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.info-body a { color: var(--red-glow); }
.info-body a:hover { color: #fff; }
.info-body strong { color: var(--text); }

/* keep the MOTORSPORTS wordmark on mobile like the web */
@media (max-width: 760px) {
  .logo__sub { display: block; font-size: .56rem; letter-spacing: .26em; }
  .logo__k1 { font-size: 1.3rem; }
}

/* ============================================================
   Show full product photos (no cropping) on detail + modal
   ============================================================ */
.pd-main { background: radial-gradient(circle at 50% 40%, #16161c, #0a0a0d); }
.pd-main img { object-fit: contain; padding: 6px; }
.pd-thumb img { object-fit: contain; background: #0a0a0d; }
.modal__media { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #16161c, #0a0a0d); }
.modal__media img { object-fit: contain; }

/* Guides index */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 700px) { .guides-grid { grid-template-columns: 1fr; } }

/* Auth links in the hamburger menu — mobile only (header icons cover desktop) */
.nav__authform { margin: 0; padding: 0; }
.nav__authform .nav__link { background: none; border: none; cursor: pointer; width: 100%; text-align: left; }
@media (min-width: 761px) { .nav__auth { display: none; } }
@media (max-width: 760px) { .nav__auth { color: var(--amber); } }

/* ============================================================
   Polish: mobile menu dropdown + focus states
   ============================================================ */
@media (max-width: 760px) {
  /* drop the underline hover animation inside the menu */
  .nav__link::after { display: none; }
}

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red-glow); outline-offset: 2px; border-radius: 4px;
}

/* ============================================================
   Mobile menu drawer — a TOP-LEVEL element (outside the header) so the
   header's backdrop-filter can't trap its fixed positioning.
   ============================================================ */
.mobilemenu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--bg-2); border-left: 1px solid var(--line);
  box-shadow: -26px 0 60px -20px rgba(0,0,0,.9);
  transform: translateX(110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 1000; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobilemenu.open { transform: translateX(0); }

.mobilemenu__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mobilemenu__brand { display: inline-flex; align-items: center; gap: .5rem; }
.mobilemenu__brand .logo__k1 { font-size: 1.3rem; }
.mobilemenu__brand svg, .mobilemenu__brand img { height: 28px; width: auto; }
.mobilemenu__close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 1.25rem; border-radius: 10px;
  color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line);
}

.mobilemenu__links { display: flex; flex-direction: column; padding: .35rem 0; }
.mobilemenu .nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .95rem 1.2rem; width: 100%; text-align: left;
  font-size: 1.02rem; font-weight: 600; color: var(--text);
  text-transform: none; letter-spacing: .01em; background: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mobilemenu a.nav__link::after {
  content: "›"; display: inline-block; position: static;
  width: auto; height: auto; background: none;
  color: var(--muted-2); font-size: 1.4rem; line-height: 1; font-weight: 400;
}
.mobilemenu .nav__link:active { background: rgba(255,255,255,.05); }
.mobilemenu .nav__link--admin { color: var(--red-glow, #cd7a4f); }

/* Account section: keep colors consistent (no lone amber row). */
.mobilemenu .nav__auth { display: flex; color: var(--text); }
.mobilemenu .nav__authform { width: 100%; margin: 0; }
.mobilemenu .nav__authform .nav__link { color: var(--muted); }
.mobilemenu .nav__authform .nav__link::after { content: ""; }

.mobilemenu__foot {
  margin-top: auto; padding: 1.1rem 1.2rem;
  border-top: 1px solid var(--line); color: var(--muted);
  font-size: .82rem; line-height: 1.5;
  display: flex; flex-direction: column; gap: .5rem;
}
.mobilemenu__foot a { color: var(--red-glow, #cd7a4f); font-weight: 700; }
.mobilemenu__foot p { margin: 0; }
.mm-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 990; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.mm-backdrop.open { opacity: 1; visibility: visible; }

/* desktop: hide the drawer; mobile: hide the in-header nav row */
@media (min-width: 761px) { .mobilemenu, .mm-backdrop { display: none; } }
@media (max-width: 760px) { .nav { display: none; } }

/* Center the hamburger lines so it lines up with the cart/other icons */
.nav-toggle { align-items: center; justify-content: center; }

/* ============================================================
   SEO listing pages (/shop, /brand, /fitment)
   ============================================================ */
.listing { padding-top: 1.4rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--muted-2); }
.crumbs__here { color: var(--text); font-weight: 600; }

.listing__head { margin-bottom: 1.2rem; }
.listing__intro { color: var(--muted); max-width: 60ch; margin-top: .5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { color: #fff; border-color: var(--red); }
.chip--on { color: #fff; background: rgba(179,90,52,.14); border-color: var(--red); }

.listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.listing__count { color: var(--muted); font-size: .9rem; font-weight: 600; }
.listing__sort { display: flex; align-items: center; gap: .5rem; }
.listing__sort label { color: var(--muted); font-size: .85rem; }
.listing__sort select {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem .7rem; font: inherit; font-size: .85rem;
}

.listing__empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.listing__empty span { font-size: 2.4rem; display: block; margin-bottom: .6rem; }
.listing__empty h3 { font-family: var(--display); text-transform: uppercase; color: var(--text); margin-bottom: .4rem; }
.listing__empty .btn { margin-top: 1rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0 1rem; }
.pager__btn {
  padding: .6rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: .9rem;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
}
.pager__btn:hover { border-color: var(--red); }
.pager__info { color: var(--muted); font-size: .88rem; }

/* ============================================================
   Product page conversion (Chunk 2)
   ============================================================ */
/* Zoomable main image (now a <button>) */
.pd-main { display: block; width: 100%; padding: 0; cursor: zoom-in; color: inherit; }
.pd-zoomhint {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(8,8,11,.72); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .35rem .6rem; border-radius: 999px; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s;
}
.pd-main:hover .pd-zoomhint { opacity: 1; }
@media (hover: none) { .pd-zoomhint { opacity: 1; } }

/* Stock urgency */
.pd-urgency { margin: .2rem 0 .6rem; }
.pd-urgency__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.pd-urgency__bar span { display: block; height: 100%; background: linear-gradient(90deg, #cd7a4f, #b35a34); border-radius: 999px; }
.pd-urgency small { color: #ff8a5c; font-weight: 600; font-size: .78rem; display: inline-block; margin-top: .35rem; }

/* Delivery estimate */
.pd-delivery { color: var(--muted); font-size: .9rem; margin: .2rem 0 1rem; }
.pd-delivery strong { color: var(--text); }

/* Image lightbox */
.pd-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: rgba(4,4,6,.92); backdrop-filter: blur(6px);
}
.pd-lightbox.open { display: flex; }
.pd-lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.pd-lightbox__close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}

/* Frequently bought together */
.pd-fbt { padding-top: 1rem; }
.fbt { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.fbt__items { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.fbt__item { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 120px; text-align: center; }
.fbt__item img { width: 96px; height: 72px; object-fit: contain; background: #0a0a0d; border: 1px solid var(--line); border-radius: 10px; }
.fbt__name { font-size: .78rem; color: var(--muted); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbt__item strong { font-size: .9rem; }
.fbt__plus { color: var(--muted-2); font-size: 1.4rem; font-weight: 700; }
.fbt__buy { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.fbt__total { color: var(--muted); font-size: .95rem; }
.fbt__total strong { color: var(--text); font-size: 1.2rem; }

/* Sticky mobile add-to-cart */
.pd-sticky { display: none; }
@media (max-width: 760px) {
  .pd-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
    display: flex; align-items: center; gap: .8rem;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(10,10,14,.98); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(130%); transition: transform .25s ease;
  }
  .pd-sticky.show { transform: none; }
  .pd-sticky__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .pd-sticky__name { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-sticky__price { font-size: 1.05rem; }
  .pd-sticky .btn { flex: 0 0 auto; padding: .8rem 1.3rem; }
}

/* ============================================================
   Payments + BNPL (Chunk 3)
   ============================================================ */
/* Buy-now-pay-later messaging (product page, cart, checkout) */
.bnpl {
  display: flex; align-items: flex-start; gap: .5rem;
  margin: .2rem 0 1rem; padding: .6rem .8rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 10px; font-size: .85rem; color: var(--muted); line-height: 1.4;
}
.bnpl__icon { font-size: 1rem; line-height: 1.3; }
.bnpl strong { color: var(--text); }
.bnpl__mo { color: var(--muted-2); }
.cart__bnpl { margin: -.2rem 0 .6rem; font-size: .82rem; color: var(--muted); text-align: center; }
.cart__bnpl strong { color: var(--text); }
.co-bnpl { margin: .2rem 0 .8rem; }

/* Accepted payment method badges */
.pay-methods { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .9rem 0 .2rem; }
.pay-method {
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: .35rem .55rem;
}
.pay-method--wallet { color: #cfd6e4; }
.pay-method--bnpl { color: #46e0a0; border-color: rgba(70,224,160,.3); }

/* ============================================================
   Admin orders — shipping address block
   ============================================================ */
.myorder__ship {
  margin: .6rem 0; padding: .8rem 1rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px;
}
.myorder__ship-label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .4rem; }
.myorder__addr { font-style: normal; color: var(--text); font-size: .92rem; line-height: 1.5; }
.myorder__addr strong { color: #fff; }
.myorder__contact { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin-top: .5rem; color: var(--muted); font-size: .85rem; }

/* ============================================================
   Pine & Paddle — home rebrand bits
   ============================================================ */
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.story__lede { max-width: 70ch; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }

/* ============================================================
   Variants — size buttons + color swatches (Chunk B)
   ============================================================ */
.pd-options { display: flex; flex-direction: column; gap: 1rem; margin: 1.1rem 0; }
.opt__label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.opt__label em { font-style: normal; color: var(--text); text-transform: none; letter-spacing: 0; margin-left: .3rem; }
.opt__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-btn {
  min-width: 46px; padding: .55rem .8rem; border-radius: 9px; font-weight: 700; font-size: .9rem;
  background: var(--bg-2); border: 1.5px solid var(--line); color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt-btn:hover { border-color: var(--muted); }
.opt-btn.is-on { border-color: var(--red); background: rgba(179,90,52,.14); }
.swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--sw, #888); border: 2px solid var(--line);
  box-shadow: inset 0 0 0 2px var(--surface); transition: transform .12s, border-color .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { border-color: var(--red); transform: scale(1.08); }
.modal__more { display: inline-block; margin-top: .7rem; color: var(--red-glow); font-weight: 600; font-size: .9rem; }

/* Variant labels in cart / summaries */
.cart-item__variant { display: block; font-size: .78rem; color: var(--muted); margin: 2px 0; }
.co-variant { font-style: normal; color: var(--muted); font-size: .85em; }

/* Admin variants fieldset */
.admin-variants { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.admin-variants legend { padding: 0 .5rem; font-weight: 700; color: var(--text); }

/* ============================================================
   Admin — fast variant builder (size chips + color swatches)
   ============================================================ */
.vb-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .55rem; }
.vb-chips .opt-btn { min-width: 42px; padding: .4rem .65rem; font-size: .82rem; }
.vb-chips .swatch { width: 28px; height: 28px; }
.vb-preset {
  font-size: .72rem; font-weight: 700; padding: .4rem .7rem; border-radius: 999px;
  background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: pointer;
}
.vb-preset:hover { color: var(--text); border-color: var(--muted); }

/* ============================================================
   Animated lake-country hero scene (Pine & Paddle)
   ============================================================ */
.hero::after { display: none; }              /* drop the old red skew glow */
.hero__content { position: relative; z-index: 2; }

.scene {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background: linear-gradient(180deg, #0d1117 0%, #15201d 34%, #26352a 58%, #4c4a37 80%, #6e5a40 100%);
}

/* Stars (upper sky) */
.scene__stars {
  position: absolute; inset: 0 0 50% 0;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 40px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 130px 90px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 230px 50px, #fff, transparent),
    radial-gradient(1.1px 1.1px at 330px 120px, #fff, transparent),
    radial-gradient(1.3px 1.3px at 90px 170px, #fff, transparent),
    radial-gradient(1px 1px at 280px 160px, #fff, transparent);
  background-size: 380px 220px; opacity: .55;
  animation: pp-twinkle 6s ease-in-out infinite;
}

/* Rising sun glow near the horizon */
.scene__sun {
  position: absolute; right: 16%; top: 30%;
  width: clamp(96px, 24vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,212,156,.98), rgba(222,150,90,.5) 44%, transparent 70%);
  filter: blur(1px); animation: pp-sun 16s ease-in-out infinite alternate, pp-glow 7s ease-in-out infinite;
}

/* Drifting clouds */
.scene__clouds {
  position: absolute; left: -50%; width: 200%; height: 150px; top: 20%; pointer-events: none;
  background:
    radial-gradient(130px 26px at 18% 50%, rgba(224,214,194,.16), transparent 70%),
    radial-gradient(180px 30px at 52% 38%, rgba(224,214,194,.13), transparent 70%),
    radial-gradient(150px 24px at 84% 60%, rgba(224,214,194,.11), transparent 70%);
  animation: pp-drift 90s linear infinite;
}
.scene__clouds--2 { top: 31%; opacity: .7; animation-duration: 140s; animation-direction: reverse; }

/* Parallax mountain ranges */
.scene__range {
  position: absolute; left: -5%; width: 110%; background-repeat: repeat-x;
  background-position: bottom center; background-size: auto 100%; will-change: transform;
}
.scene__range--far {
  bottom: 24%; height: 32%; opacity: .55; animation: pp-sway 28s ease-in-out infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 170 L150 80 L320 180 L470 70 L650 190 L840 90 L1030 175 L1200 100 L1200 300 Z' fill='%23556149'/%3E%3C/svg%3E");
}
.scene__range--mid {
  bottom: 17%; height: 40%; opacity: .92; animation: pp-sway 38s ease-in-out infinite alternate-reverse;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 215 L180 110 L360 225 L520 95 L700 225 L900 120 L1080 215 L1200 140 L1200 300 Z' fill='%2330402c'/%3E%3C/svg%3E");
}

/* Mist between mountains and trees */
.scene__fog {
  position: absolute; left: -50%; width: 200%; bottom: 15%; height: 130px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(206,214,204,.12) 50%, transparent);
  filter: blur(7px); animation: pp-drift 70s linear infinite reverse;
}

/* Pine treeline */
.scene__trees {
  position: absolute; left: 0; right: 0; bottom: 15%; height: 17%; opacity: .98;
  background-repeat: repeat-x; background-position: bottom center; background-size: 250px 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 160' preserveAspectRatio='none'%3E%3Cg fill='%23121810'%3E%3Crect x='0' y='148' width='250' height='12'/%3E%3Cpath d='M28 152 L46 96 L64 152 Z'/%3E%3Cpath d='M72 152 L92 66 L112 152 Z'/%3E%3Cpath d='M116 152 L132 108 L148 152 Z'/%3E%3Cpath d='M150 152 L174 56 L198 152 Z'/%3E%3Cpath d='M200 152 L216 100 L232 152 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* A small flock of birds crossing the sky */
.scene__birds { position: absolute; top: 22%; left: 0; width: 100%; height: 40px; animation: pp-fly 46s linear infinite; }
.scene__birds span { position: absolute; width: 12px; height: 8px; }
.scene__birds span::before, .scene__birds span::after {
  content: ""; position: absolute; top: 0; width: 9px; height: 2px; background: rgba(240,232,216,.6); border-radius: 2px;
  transform-origin: right center; animation: pp-flap 1.1s ease-in-out infinite;
}
.scene__birds span::before { left: 0; transform: rotate(22deg); }
.scene__birds span::after { right: 0; transform-origin: left center; transform: rotate(-22deg); }
.scene__birds span:nth-child(1) { left: 0; top: 0; }
.scene__birds span:nth-child(2) { left: 22px; top: 9px; }
.scene__birds span:nth-child(3) { left: 44px; top: 2px; }

/* Lake + shimmer */
.scene__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17%;
  background: linear-gradient(180deg, #2c3c34 0%, #1b2720 55%, #131c17 100%);
}
.scene__water::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(244,232,216,.06) 0 1px, transparent 1px 8px);
  animation: pp-shimmer 7s ease-in-out infinite;
}

/* Darkening veil so the hero text stays legible */
.scene__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,17,20,.88) 0%, rgba(13,17,20,.55) 40%, rgba(13,17,20,.12) 72%, transparent 100%),
    linear-gradient(180deg, transparent 42%, rgba(13,17,20,.45) 100%);
}

@keyframes pp-twinkle { 0%,100% { opacity: .3; } 50% { opacity: .7; } }
@keyframes pp-sun { 0% { transform: translateY(10px); opacity: .85; } 100% { transform: translateY(-8px); opacity: 1; } }
@keyframes pp-drift { from { transform: translateX(0); } to { transform: translateX(-33%); } }
@keyframes pp-sway { from { transform: translateX(-1.6%); } to { transform: translateX(1.6%); } }
@keyframes pp-shimmer { 0%,100% { opacity: .35; transform: translateY(0); } 50% { opacity: .6; transform: translateY(2px); } }
@keyframes pp-fly { from { transform: translate(-12vw, 6vh); } to { transform: translate(112vw, -4vh); } }
@keyframes pp-flap { 0%,100% { transform: rotate(22deg); } 50% { transform: rotate(8deg); } }
.scene__birds span::after { animation-name: pp-flap-r; }
@keyframes pp-flap-r { 0%,100% { transform: rotate(-22deg); } 50% { transform: rotate(-8deg); } }

@media (prefers-reduced-motion: reduce) {
  .scene__stars, .scene__sun, .scene__clouds, .scene__range, .scene__fog,
  .scene__birds, .scene__birds span::before, .scene__birds span::after, .scene__water::before { animation: none; }
  .scene__birds { display: none; }
}

/* Admin — collapsible advanced section + quick-import optional tag */
.admin-advanced { border: 1px dashed var(--line); border-radius: 12px; padding: .4rem 1rem; margin: 1.2rem 0; }
.admin-advanced > summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: .6rem 0; list-style: none; }
.admin-advanced > summary::marker { content: ""; }
.admin-advanced > summary::before { content: "▸ "; color: var(--muted-2); }
.admin-advanced[open] > summary::before { content: "▾ "; }
.admin-advanced[open] > summary { color: var(--text); }
.quick-import__opt { color: var(--muted-2); font-weight: 500; }

/* ============================================================
   Site-wide ambient backdrop (faint, fixed, behind all content)
   ============================================================ */
.sitebg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sitebg__stars {
  position: absolute; inset: 0 0 55% 0; opacity: .16;
  background-image:
    radial-gradient(1.4px 1.4px at 40px 50px, #fff, transparent),
    radial-gradient(1.1px 1.1px at 160px 110px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 300px 60px, #fff, transparent),
    radial-gradient(1px 1px at 380px 140px, #fff, transparent);
  background-size: 420px 240px; animation: pp-twinkle 7s ease-in-out infinite;
}
.sitebg__range {
  position: absolute; left: -5%; width: 110%; bottom: 0; height: 32vh; opacity: .12;
  background-repeat: no-repeat; background-position: bottom; background-size: 100% 100%;
  animation: pp-sway 44s ease-in-out infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 200 L170 110 L340 210 L500 100 L690 215 L880 120 L1060 205 L1200 130 L1200 300 Z' fill='%23667552'/%3E%3C/svg%3E");
}
.sitebg__fog {
  position: absolute; left: -50%; width: 200%; bottom: 16%; height: 120px; opacity: .5;
  background: linear-gradient(180deg, transparent, rgba(206,214,204,.08) 50%, transparent);
  filter: blur(8px); animation: pp-drift 95s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sitebg__stars, .sitebg__range, .sitebg__fog { animation: none; }
}

/* ============================================================
   Scene — extra life (aurora, shooting star, fireflies, canoe)
   ============================================================ */
.scene__aurora {
  position: absolute; top: 6%; left: -20%; width: 140%; height: 32%; pointer-events: none;
  background:
    radial-gradient(60% 100% at 30% 50%, rgba(120,200,150,.16), transparent 70%),
    radial-gradient(55% 100% at 68% 42%, rgba(96,168,206,.13), transparent 70%);
  filter: blur(22px); mix-blend-mode: screen;
  animation: pp-aurora 16s ease-in-out infinite alternate;
}
.scene__shoot {
  position: absolute; top: 12%; left: 6%; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 1px #fff; opacity: 0; animation: pp-shoot 11s ease-in infinite;
}
.scene__shoot::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 90px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.85), transparent); transform: translateY(-50%);
}
/* Fireflies / drifting embers near the treeline */
.scene__flies { position: absolute; inset: 38% 0 12% 0; pointer-events: none; }
.scene__flies i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe6a0;
  box-shadow: 0 0 7px 2px rgba(255,220,140,.55); opacity: 0; animation: pp-firefly 8s ease-in-out infinite;
}
.scene__flies i:nth-child(1) { left: 16%; animation-delay: 0s; }
.scene__flies i:nth-child(2) { left: 33%; animation-delay: 2.4s; animation-duration: 9.5s; }
.scene__flies i:nth-child(3) { left: 52%; animation-delay: 4.1s; }
.scene__flies i:nth-child(4) { left: 68%; animation-delay: 1.3s; animation-duration: 10.5s; }
.scene__flies i:nth-child(5) { left: 82%; animation-delay: 5.6s; }
.scene__flies i:nth-child(6) { left: 44%; animation-delay: 6.8s; animation-duration: 11s; }
/* A canoe drifting across the lake */
.scene__canoe {
  position: absolute; bottom: 6%; left: -16%; width: clamp(64px, 14vw, 96px); aspect-ratio: 100 / 44;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 44'%3E%3Cg fill='%230f140d'%3E%3Cpath d='M10 26 C32 40 68 40 90 26 C68 31 32 31 10 26 Z'/%3E%3Crect x='46' y='12' width='7' height='13' rx='3'/%3E%3Ccircle cx='49.5' cy='9' r='4'/%3E%3Crect x='40' y='10' width='2.5' height='22' rx='1' transform='rotate(28 41 21)'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .92; animation: pp-paddle 54s linear infinite, pp-bob 4.5s ease-in-out infinite;
}

@keyframes pp-glow { 0%,100% { filter: blur(1px) brightness(1); } 50% { filter: blur(2px) brightness(1.12); } }
@keyframes pp-aurora { 0% { opacity: .35; transform: translateX(-3%) skewX(-5deg); } 100% { opacity: .8; transform: translateX(3%) skewX(5deg); } }
@keyframes pp-shoot {
  0%, 92% { opacity: 0; transform: translate(0, 0); }
  93% { opacity: 1; }
  99% { opacity: 1; transform: translate(220px, 120px); }
  100% { opacity: 0; transform: translate(240px, 130px); }
}
@keyframes pp-firefly {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  55% { opacity: .8; transform: translate(14px, -34px); }
  85% { opacity: .25; }
  100% { opacity: 0; transform: translate(-8px, -64px); }
}
@keyframes pp-paddle { from { left: -16%; } to { left: 104%; } }
@keyframes pp-bob { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(3px) rotate(1.2deg); } }

/* Mobile polish — keep the landscape as a tidy band along the bottom, leave
   the upper sky clear for the headline, and darken enough for legibility. */
@media (max-width: 760px) {
  .scene { background: linear-gradient(180deg, #0d1117 0%, #14201d 34%, #223024 60%, #3f4233 82%, #5e5239 100%); }
  .scene__sun { top: 13%; right: 10%; }
  .scene__clouds { top: 14%; }
  .scene__clouds--2 { top: 22%; }
  .scene__range--far { bottom: 22%; height: 15%; opacity: .5; }
  .scene__range--mid { bottom: 12%; height: 21%; }
  .scene__trees { bottom: 11%; height: 11%; }
  .scene__water { height: 13%; }
  .scene__fog { bottom: 11%; }
  .scene__flies { inset: 55% 0 13% 0; }
  /* Stronger bottom veil so the stats/buttons read over the landscape,
     plus a light top wash for the status bar. */
  .scene__veil {
    background:
      linear-gradient(180deg, rgba(13,17,20,.55) 0%, rgba(13,17,20,.15) 22%, transparent 42%, rgba(13,17,20,.62) 78%, rgba(13,17,20,.8) 100%);
  }
}
/* Photo background: anchor a touch above centre so subjects aren't cropped low */
@media (max-width: 760px) {
  .scene__photo { background-position: center 38%; }
}

@media (prefers-reduced-motion: reduce) {
  .scene__aurora, .scene__shoot, .scene__flies i, .scene__canoe { animation: none; }
  .scene__shoot, .scene__flies { display: none; }
}

/* ============================================================
   Hero photo background (admin-uploaded) + Ken Burns motion
   ============================================================ */
.scene__photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: pp-ken 48s ease-in-out infinite alternate; will-change: transform;
}
@keyframes pp-ken {
  0%   { transform: scale(1.03); }
  100% { transform: scale(1.08) translate(0, -1.2%); }
}
/* When a photo is set, drop ALL the hand-drawn elements (they look cheesy over
   a real image) — just the photo with a gentle Ken Burns drift + soft fog. */
.scene--photo .scene__stars,
.scene--photo .scene__aurora,
.scene--photo .scene__shoot,
.scene--photo .scene__sun,
.scene--photo .scene__clouds,
.scene--photo .scene__range,
.scene--photo .scene__trees,
.scene--photo .scene__water,
.scene--photo .scene__canoe,
.scene--photo .scene__flies,
.scene--photo .scene__birds { display: none; }
.scene--photo { background: #0d1117; }
.scene--photo .scene__fog { opacity: .5; }

/* Admin appearance preview */
.appearance-preview { margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.appearance-preview img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.appearance-upload { margin-top: 1.4rem; }

/* ============================================================
   Admin Appearance / branding panel
   ============================================================ */
.appearance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.appearance-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.appearance-card h3 { margin-bottom: .3rem; }
.appearance-card .appearance-upload { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
.appearance-card .appearance-upload input[type=file] { flex: 1; min-width: 0; }
.appearance-preview { margin: .8rem 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0d0f0c; }
.appearance-preview img { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.appearance-preview--logo { background: var(--bg-2); }
.appearance-preview--logo img { object-fit: contain; max-height: 70px; padding: .6rem; }
.appearance-preview--icon { width: 72px; }
.appearance-preview--icon img { height: 72px; object-fit: contain; }

/* Uploaded logo in the header/footer/menu */
.brand-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.logo--footer .brand-logo { height: 34px; }
.mobilemenu__brand .brand-logo { height: 30px; }
@media (max-width: 760px) { .brand-logo { height: 30px; max-width: 160px; } }

/* ============================================================
   Hero text legibility over any background (esp. light photos)
   ============================================================ */
.hero__title, .hero__sub { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero__eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.hero__stats strong, .hero__stats span { text-shadow: 0 1px 10px rgba(0,0,0,.55); }

/* A photo can be bright, so darken more than the (already dark) drawn scene. */
.scene--photo .scene__veil {
  background:
    linear-gradient(90deg, rgba(13,17,20,.82) 0%, rgba(13,17,20,.5) 45%, rgba(13,17,20,.24) 100%),
    linear-gradient(180deg, rgba(13,17,20,.32) 0%, transparent 36%, rgba(13,17,20,.5) 100%);
}
@media (max-width: 760px) {
  /* Centered text on mobile needs an even, all-over scrim (no clear middle). */
  .scene--photo .scene__veil {
    background: linear-gradient(180deg, rgba(13,17,20,.52) 0%, rgba(13,17,20,.5) 42%, rgba(13,17,20,.74) 100%);
  }
}

/* ============================================================
   Empty-store state (no products seeded yet)
   ============================================================ */
.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 3.5rem 1.5rem;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(132,146,109,.10), transparent 70%),
    rgba(255,255,255,.02);
}
.store-empty__icon { font-size: 2.6rem; display: block; margin-bottom: .8rem; }
.store-empty h3 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .6rem;
}
.store-empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.4rem; line-height: 1.6; }

/* ============================================================
   Scroll FX — parallax + reveals
   JS publishes --sy (scroll px), --sp (0..1 page), --hp (0..1 hero)
   on <html>. The `translate` / `scale` properties compose with the
   keyframe `transform` animations on the scene layers, so the ambient
   sway/drift keeps running while everything drifts apart in depth.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* --- Hero scene: layers sink at different rates → deep parallax.
         Far things fall fastest (relative to the page they lag more),
         the treeline & water barely move, the sun sets as you scroll. --- */
  .scene__stars  { translate: 0 calc(var(--sy, 0) * 0.34px); }
  .scene__aurora { translate: 0 calc(var(--sy, 0) * 0.30px); }
  .scene__sun    { translate: 0 calc(var(--sy, 0) * 0.26px); }
  .scene__clouds { translate: 0 calc(var(--sy, 0) * 0.22px); }
  .scene__birds  { translate: 0 calc(var(--sy, 0) * 0.20px); }
  .scene__range--far { translate: 0 calc(var(--sy, 0) * 0.15px); }
  .scene__range--mid { translate: 0 calc(var(--sy, 0) * 0.09px); }
  .scene__fog    { translate: 0 calc(var(--sy, 0) * 0.06px); }
  .scene__trees  { translate: 0 calc(var(--sy, 0) * 0.03px); }

  /* Hero copy drifts down slower than the page and melts away. */
  .hero__content {
    translate: 0 calc(var(--sy, 0) * 0.30px);
    opacity: calc(1 - var(--hp, 0) * 0.9);
  }

  /* --- Site-wide ambient backdrop: the deeper you scroll, the more the
         night creeps in — ridge rises, fog thickens, stars drift. --- */
  .sitebg__stars { translate: 0 calc(var(--sp, 0) * 4vh); }
  .sitebg__range {
    translate: 0 calc(var(--sp, 0) * -9vh);
    opacity: calc(.10 + var(--sp, 0) * .14);
  }
  .sitebg__fog {
    translate: 0 calc(var(--sp, 0) * -12vh);
    opacity: calc(.35 + var(--sp, 0) * .45);
  }

  /* --- Reveal-on-scroll entrances (classes stripped after the
         transition ends so hover transforms work untouched). --- */
  .fx {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.16, 1, .3, 1);
  }
  .fx-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Conversion polish — added-state, tactile presses, cart upsell
   ============================================================ */

/* "✓ Added" button morph (sage = success, on brand) */
.btn.is-added {
  background: #4a5d3a !important; background-image: none !important;
  color: #fff !important; box-shadow: 0 6px 18px -6px rgba(74,93,58,.7) !important;
  animation: addedPop .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes addedPop { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* Mobile bottom-bar cart bounces in sync with the header cart icon */
.mobilebar__item.bump svg { animation: bump .45s ease; }

/* Free-shipping progress — thicker, sage→gold, with a moving shine */
.ship-track { height: 8px; }
.ship-fill {
  position: relative; overflow: hidden; border-radius: 4px;
  background: linear-gradient(90deg, var(--sage), var(--amber));
  transition: width .55s cubic-bezier(.22,1,.36,1);
}
.ship-fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shipShine 2s ease-in-out infinite;
}
@keyframes shipShine { from { transform: translateX(-80px); } to { transform: translateX(440px); } }
.ship-bar--done { animation: addedPop .5s cubic-bezier(.34,1.56,.64,1); }

/* Cart cross-sell ("Pairs well with") */
.cart-suggest { border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: auto; }
.cart-suggest h5 {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .72rem; color: var(--muted); margin: 0 0 .55rem;
}
.cart-suggest__item { display: grid; grid-template-columns: 54px 1fr 36px; gap: .7rem; align-items: center; padding: .3rem 0; }
.cart-suggest__img { width: 54px; height: 40px; object-fit: cover; border-radius: 7px; }
.cart-suggest__info { display: flex; flex-direction: column; min-width: 0; }
.cart-suggest__info span { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-suggest__info strong { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cart-suggest__info:hover span { color: var(--red-glow); }
.cart-suggest__add {
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}
.cart-suggest__add:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.1); }

/* Quick-view becomes a bottom sheet on phones (thumb-friendly) */
@media (max-width: 760px) {
  .modal__panel {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    width: 100%; max-height: 88vh; max-height: 88dvh;
    border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
    animation: sheetUp .32s cubic-bezier(.22,1,.36,1);
    padding-bottom: calc(.8rem + env(safe-area-inset-bottom));
  }
  .modal__panel::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 4px; border-radius: 2px; background: var(--line); z-index: 3;
  }
  .modal__close { top: .7rem; right: .7rem; }
}
@keyframes sheetUp { from { opacity: .4; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }

/* Tactile press feedback (buttons feel physical, esp. on touch) */
@media (prefers-reduced-motion: no-preference) {
  .btn:not(:disabled):active { transform: scale(.96); }
  .opt-btn:active, .swatch:active, .qty button:active, .cart-suggest__add:active,
  .icon-btn:active, .pd-thumb:active { transform: scale(.88); }
  .mobilebar__item:active { transform: scale(.9); transition: transform .1s ease; }
  .cat-card:active, .guide:active, .platform-card:active { transform: scale(.98); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .card:active { transform: scale(.98); }
}
