/* ==========================================================================
   GARN — Design System
   Palette inspired by Hill People Gear: brick-red/rust as the primary brand
   accent, khaki tan as the secondary accent, dark neutral ink + cream as the
   base. Sage green is kept defined but no longer used for primary UI so the
   site reads as two disciplined earth-tone families instead of three.
   ========================================================================== */

@font-face {
  font-family: 'Traditio AH';
  src: url('../assets/fonts/traditio.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KG Always A Good Time';
  src: url('../assets/fonts/KGAlwaysAGoodTime.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Raw palette */
  --forest: #131313;       /* deep neutral ink, softened from the raw forest swatch so dark sections read moody rather than saturated-green */
  --forest-deep: #0c0c0c;
  --sage: #4d5947;
  --sage-dim: #1c1d19;
  --sage-light: #9aa88f;
  --tan: #9c2b23;          /* was warm khaki tan, now matches the red brand accent */
  --tan-light: #e2776a;
  --rust: #9c2b23;         /* brick red — the primary brand accent */
  --rust-bright: #b8402f;
  --rust-deep: #6e1f1a;    /* darkest rust, for hover-darken effects */
  --rust-vivid: #c2552b;   /* brighter tint of --rust, for accents on dark backgrounds */
  --tan-vivid: #d4573f;    /* brighter tint of --tan, for accents on dark backgrounds */
  --btn-red: #a0402f;      /* solid fill for redish buttons */
  --btn-red-light: #c15f49; /* hover-sweep tint for redish buttons */
  --title-gold: #c6ac5a;    /* color for eyebrow/title labels */
  --offwhite: #fbf7f3;

  /* Dark theme (default — most of the site) */
  --bg: var(--forest);
  --bg-alt: var(--forest-deep);
  --surface: #262626;
  --surface-2: #2d2d2d;
  --border: rgba(251, 247, 243, 0.14);
  --border-strong: rgba(251, 247, 243, 0.28);

  --text: #fbf7f3;          /* near-white, not true white */
  --text-muted: rgba(251, 247, 243, 0.72);
  --text-faint: rgba(251, 247, 243, 0.5);

  /* Dark sections (header, hero, footer, subscribe) */
  --on-dark: var(--offwhite);
  --on-dark-muted: rgba(251, 247, 243, 0.72);
  --on-dark-faint: rgba(251, 247, 243, 0.5);
  --on-dark-border: rgba(251, 247, 243, 0.16);
  --on-dark-border-strong: rgba(251, 247, 243, 0.32);

  --accent: var(--rust);
  --accent-bright: var(--tan);

  --danger: #a13a2a;

  /* Type */
  --font-display: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing / radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --container: 1240px;

  --shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.0375em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img {
  transform: scale(1.12);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}
img.is-visible { transform: scale(1); opacity: 1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.0375em;
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.3;
}
h1 { font-size: clamp(2.5rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 400; }
p { margin: 0 0 1em; color: var(--text-muted); font-size: 1.0625rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--title-gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
/* On dark sections (hero, subscribe), lighten the eyebrow for contrast */
.hero .eyebrow, .subscribe .eyebrow { color: var(--title-gold); }
.eyebrow-lg::before { width: 28px; }

/* ---- Buttons ----
   Standard, no-gimmick pattern: solid buttons darken slightly on hover,
   outline buttons fill solid on hover. Simple color/background transitions
   only — nothing sliding, growing, or animating. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-ghost { padding: 10px 16px; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.75rem; }

/* Wood-sign image buttons — still just `.btn` underneath, so the lantern
   glow (::after) and light-cast shadow (:hover box-shadow) rules above keep
   working unchanged; this just strips the padding/fill/border so the PNG
   (with its own baked-in shape) is all that shows. */
.hero-sign-btn {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  width: clamp(150px, 16vw, 210px);
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'><defs><mask id='fl2'><rect x='0' y='0' width='24' height='24' fill='white'/><rect x='10.4' y='17' width='3.2' height='3.2' rx='0.3' fill='black'/></mask></defs><g transform='rotate(-45 12 12)'><line x1='12' y1='1.3' x2='12' y2='6.7' stroke='white' stroke-width='1.7' stroke-linecap='round'/><line x1='6.8' y1='3' x2='9.4' y2='6.1' stroke='white' stroke-width='1.7' stroke-linecap='round'/><line x1='17.2' y1='3' x2='14.6' y2='6.1' stroke='white' stroke-width='1.7' stroke-linecap='round'/><g mask='url(%23fl2)'><path d='M8.2 9 L15.8 9 Q16.6 9 16.3 10 L14.7 14.2 Q14.5 15 13.5 15 L10.5 15 Q9.5 15 9.3 14.2 L7.7 10 Q7.4 9 8.2 9 Z' fill='white'/><rect x='9.3' y='14.5' width='5.4' height='8' rx='2.3' fill='white'/></g></g></svg>") 10 10, pointer;
}
.hero-sign-btn img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-sign-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-dark);
  font-size: clamp(0.8rem, 1.7vw, 1.05rem);
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.btn:active { filter: brightness(0.92); }

/* ---- Header ---- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--forest);
}
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 96px;
}
.header-inner .logo { justify-self: start; }
.header-inner .main-nav { justify-self: center; }
.header-inner .header-actions { justify-self: end; }
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 8px rgba(0, 0, 0, 0.3);
}
.logo span { color: var(--tan-light); }
.logo-gear { font-size: 0.5em; vertical-align: middle; letter-spacing: 0.06em; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.0375em;
  color: var(--on-dark);
  padding: 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 8px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 1px;
  width: 100%;
  background: var(--offwhite);
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--on-dark); }
.main-nav a:hover::after, .main-nav a.active::after { opacity: 1; transform: translateY(0); }

/* ---- Store dropdown (hover-based) ---- */
.main-nav .nav-dropdown { position: relative; }
.main-nav .nav-dropdown-trigger { display: flex; align-items: center; gap: 6px; }
.main-nav .nav-dropdown-trigger svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.main-nav .nav-dropdown:hover .nav-dropdown-trigger svg,
.main-nav .nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }

/* invisible bridge so the pointer doesn't lose hover crossing the gap to the menu */
.main-nav .nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--forest);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px;
  min-width: 190px;
  box-shadow: var(--shadow);
  z-index: 150;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, visibility 0.28s;
}
.main-nav .nav-dropdown:hover .nav-dropdown-menu,
.main-nav .nav-dropdown:focus-within .nav-dropdown-menu {
  transform: scaleY(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.88rem;
  color: var(--on-dark-muted);
  text-shadow: none;
  border-bottom: none;
  transition: color 0.2s ease;
}
.nav-dropdown-menu a:hover { background: transparent; color: var(--offwhite); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--on-dark);
  border: 1px solid var(--on-dark-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: border-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--on-dark); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--rust);
  color: var(--offwhite);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--on-dark-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/images/hero-new.jpg') center 40% / cover no-repeat;
  filter: saturate(0.82) contrast(1.08) brightness(0.94) sepia(0.05);
  transform: scale(1.12);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}
.hero.is-visible::before { transform: scale(1); opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 26, 0.35);
}
.hero-content {
  position: relative;
  padding: 60px 0;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-content h1 {
  /* Vidaloka is a wider serif than the site's old condensed sans — the
     global h1 clamp (up to 4.2rem) is wide enough at large viewports that
     "Handcrafted Gear" wraps inside the 780px hero-content box. Cap it
     lower here so it reliably stays on one line. */
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  white-space: nowrap;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
}
.hero-content h1 .hero-title-sub {
  display: block;
  font-size: 0.5em;
  margin-top: 0.15em;
  white-space: normal;
}
.hero-content p.lead {
  font-size: 1.3rem;
  color: var(--on-dark);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 21px; flex-wrap: wrap; }
.hero-stats {
  position: absolute;
  right: 18px;
  bottom: 30px;
  display: flex;
  gap: 40px;
}
.hero-stat { text-align: right; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--tan-light);
}
.hero-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--on-dark-faint);
}

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-about { background: #202020; }
.home-featured { background: var(--forest); }
.home-videos { background: #151515; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head p { max-width: 480px; margin: 0; }


/* ---- Product grid & cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (min-width: 1025px) {
  [data-featured-grid] { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
}
.product-media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: zoom-in;
  transform: scale(1.12);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}
.product-media-link.is-visible { transform: scale(1); opacity: 1; }
.product-media-link svg { width: 34%; height: 34%; color: var(--text-faint); transition: transform 0.35s ease; }
.product-card:hover .product-media-link svg { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--rust);
  color: var(--offwhite);
}
.product-badge.badge-muted { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border-strong); }
.product-badge.badge-accent { background: var(--forest); color: var(--offwhite); }

/* ---- Quick Add + Quick View: bar that rises up from the bottom of the
   product image on hover, instead of a separate button below the card
   and a circular icon pinned to the corner. ---- */
.product-media-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.product-card:hover .product-media-actions,
.product-card:focus-within .product-media-actions {
  transform: translateY(0);
}
.cart-overlay-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 0;
  background: var(--btn-red);
  color: var(--offwhite);
  border: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
}
.cart-overlay-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-red-light);
  clip-path: polygon(0% 0%, 0% 0%, 0% 0%);
  filter: blur(14px);
  pointer-events: none;
  transition: clip-path 0.35s ease;
}
.cart-overlay-btn:hover::after {
  clip-path: polygon(0% 0%, 250% 0%, 0% 250%);
}
.cart-overlay-btn:hover { color: var(--offwhite); }
.cart-overlay-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cart-overlay-btn span { white-space: nowrap; }

/* ---- Quick view: modal ---- */
.quick-view-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 300;
}
.quick-view-backdrop.open { opacity: 1; pointer-events: auto; }

.quick-view-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1060px, 95vw);
  max-height: 90vh;
  overflow: hidden;
  background: #2d2d2d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.quick-view-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.quick-view-close:hover { border-color: var(--on-dark); color: var(--on-dark); }
.quick-view-close svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.quick-view-close:hover svg { transform: scale(1.35); }

.quick-view-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
}
.quick-view-media.is-zoomed { cursor: zoom-out; }
.qv-media-content {
  width: 100%;
  height: 100%;
  transition: transform 0.15s ease-out;
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qv-media-content svg { width: 34%; height: 34%; color: var(--text-faint); }
.quick-view-media.is-zoomed .qv-media-content { transform: scale(2.2); }
.qv-media-content.is-revealing {
  transform: scale(1.12);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}
.qv-media-content.is-revealing.is-visible { transform: scale(1); opacity: 1; }
.qv-media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.qv-media-arrow:hover { border-color: var(--on-dark); color: var(--on-dark); }
.qv-media-arrow svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.qv-media-arrow:hover svg { transform: scale(1.35); }
.qv-media-prev { left: 16px; }
.qv-media-next { right: 16px; }
.qv-media-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* ---- Product detail page image gallery ---- */
.product-detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
}
.product-detail-media.is-zoomed { cursor: zoom-out; }
.product-detail-media-content {
  width: 100%;
  height: 100%;
  transition: transform 0.15s ease-out;
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-media-content svg { width: 34%; height: 34%; color: var(--text-faint); }
.product-detail-media.is-zoomed .product-detail-media-content { transform: scale(2.2); }
.product-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.product-thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.product-thumb svg { width: 55%; height: 55%; color: var(--text-faint); }
.product-thumb:hover { border-color: #ffffff; }
.product-thumb.is-active { border-color: #ffffff; }

.product-color-select { margin: 20px 0; }
.product-color-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-color-label span { color: var(--text); font-weight: 600; }
.product-color-swatches { display: flex; gap: 10px; }
.color-swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 2px var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.is-active { border-color: #ffffff; }

.quick-view-info {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  background: #2d2d2d;
  color: var(--on-dark);
}
.quick-view-info-scroll {
  padding: 48px 44px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-view-info-scroll::-webkit-scrollbar { display: none; }
.quick-view-scroll-cue {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(251, 247, 243, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2;
  animation: qv-scroll-cue-bounce 1.6s ease-in-out infinite;
}
.quick-view-scroll-cue svg { width: 16px; height: 16px; }
.quick-view-info.is-scrollable .quick-view-scroll-cue { opacity: 1; }
@keyframes qv-scroll-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.quick-view-info .product-price { margin: 12px 0 18px; }
.quick-view-info .product-price .price { font-size: 1.4rem; color: var(--on-dark); }
.quick-view-info .product-price .price-was { color: var(--on-dark-faint); }
.quick-view-info .product-cat { color: var(--on-dark-faint); }
.quick-view-info h3 { color: var(--on-dark); }
.quick-view-info p { line-height: 1.65; color: var(--on-dark-muted); }
.quick-view-info ul { margin: 16px 0 6px; padding-left: 20px; list-style: disc; }
.quick-view-info ul li { margin-bottom: 8px; color: var(--on-dark-muted); font-size: 0.92rem; }
.quick-view-info .product-color-label { color: var(--on-dark-muted); }
.quick-view-info .product-color-label span { color: var(--on-dark); }
.quick-view-info .color-swatch { box-shadow: inset 0 0 0 2px #2d2d2d; border-color: #6e6e6e; }
.quick-view-info .color-swatch.is-active { border-color: #ffffff; }
.quick-view-info .quick-view-link { color: var(--on-dark); }
.quick-view-info .quick-view-link:hover { color: var(--tan-light); }
.quick-view-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 14px; }

.quick-view-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 8px;
  color: var(--text);
  transition: color 0.2s ease;
}
.quick-view-link:hover { color: var(--tan-light); }
.quick-view-link svg { width: 16px; height: 16px; transition: transform 0.5s ease; }
.quick-view-link:hover svg { animation: quick-view-link-spin 0.5s ease; }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 8px;
  color: var(--text);
  transition: color 0.2s ease;
}
.link-arrow:hover { color: var(--tan-light); }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.5s ease; }
.link-arrow:hover svg { animation: quick-view-link-spin 0.5s ease; }

@keyframes quick-view-link-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .quick-view-modal { grid-template-columns: 1fr; max-height: 90vh; }
  .quick-view-media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 0; aspect-ratio: 4 / 3; }
  .qv-media-content { min-height: 0; }
  .quick-view-info { max-height: 60vh; }
  .quick-view-info-scroll { padding: 32px 26px; }
}

.product-info { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-faint); }
.product-info h3 { font-size: 1rem; text-transform: none; letter-spacing: 0.0375em; font-family: var(--font-display); font-weight: 400; }
.product-info h3 a { position: relative; display: inline-block; }
.product-info h3 a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: #000000;
  opacity: 0;
  transform: translateY(-6px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.product-info h3 a:hover::after { opacity: 1; transform: translateY(0); }
.product-price { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.product-price .price { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.product-price .price-was { font-size: 0.85rem; color: var(--text-faint); text-decoration: line-through; }
/* Every button on the site shares this same treatment: warm copper/gold
   fill, dark ink text, no border, a diagonal wipe-lighten on hover. */
.btn-cart::before, .btn-tan::before, .btn-primary::before, .btn-outline::before, .btn-ghost::before, .btn-light::before { content: none; }
.btn-cart, .btn-tan, .btn-primary, .btn-outline, .btn-ghost, .btn-light {
  position: relative;
  isolation: isolate;
  background: var(--btn-red);
  color: var(--offwhite);
  border: none;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-cart:hover, .btn-tan:hover, .btn-primary:hover, .btn-outline:hover, .btn-ghost:hover, .btn-light:hover {
  background: var(--btn-red);
  color: var(--offwhite);
  border-color: transparent;
}
/* Solid diagonal wipe, top-left to bottom-right — a triangle that grows
   from the top-left corner, staying anchored to the top and left edges the
   whole time (not a floating streak). Transitions both ways, so it also
   sweeps back out smoothly if the cursor leaves before it finishes. */
.btn-cart::after, .btn-tan::after, .btn-primary::after, .btn-outline::after, .btn-ghost::after, .btn-light::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-red-light);
  clip-path: polygon(0% 0%, 0% 0%, 0% 0%);
  filter: blur(14px);
  pointer-events: none;
  transition: clip-path 0.35s ease;
}
.btn-cart:hover::after, .btn-tan:hover::after, .btn-primary:hover::after, .btn-outline:hover::after, .btn-ghost:hover::after, .btn-light:hover::after {
  clip-path: polygon(0% 0%, 250% 0%, 0% 250%);
  transition: clip-path 0.35s ease;
}

/* Hero button only: same treatment as the other buttons (solid fill,
   diagonal wipe-lighten on hover), just in the gold/yellow accent color
   instead of red. */
.btn-hero {
  position: relative;
  isolation: isolate;
  background: var(--title-gold);
  color: #1a1a1a;
  border: none;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-hero:hover {
  background: var(--title-gold);
  color: #1a1a1a;
  border-color: transparent;
}
.btn-hero::before { content: none; }
.btn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #dcc077;
  clip-path: polygon(0% 0%, 0% 0%, 0% 0%);
  filter: blur(14px);
  pointer-events: none;
  transition: clip-path 0.35s ease;
}
.btn-hero:hover::after {
  clip-path: polygon(0% 0%, 250% 0%, 0% 250%);
  transition: clip-path 0.35s ease;
}

/* ---- About split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .hero-actions { justify-content: flex-start; }
.split-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.35);
  pointer-events: none;
}
.split-media svg { width: 30%; height: 30%; color: var(--rust); }
.split-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.08) brightness(0.94) sepia(0.05); }

.stat-row { display: flex; gap: 30px; margin-top: 24px; }
.stat-row div strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--tan); }
.stat-row div span { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-faint); }

/* ---- Ambassador / Influencer banner ---- */
.ambassador-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--forest);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ambassador-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ambassador-media img { width: 100%; height: 100%; object-fit: cover; }
.ambassador-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.15), rgba(26, 26, 26, 0.55));
}
.ambassador-sign {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}
.ambassador-sign img { width: 100%; height: auto; display: block; }
.ambassador-sign-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
}
.ambassador-sign-text .line1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  color: var(--offwhite);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.ambassador-sign-text .line2 {
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.3vw, 0.85rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan-light);
  margin-top: 4px;
}
.ambassador-content {
  padding: 36px;
  background: #383838;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ambassador-content .eyebrow { color: var(--title-gold); }
.ambassador-content h2 { color: var(--offwhite); }
.ambassador-content p { color: rgba(251, 247, 243, 0.85); }
.ambassador-content .btn-tan {
  align-self: flex-start;
  padding: 14px 22px;
}

.ambassador-subscribe-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.ambassador-subscribe-split::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.subscribe-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.subscribe-col h2 { color: var(--offwhite); margin: 0; }
.subscribe-col .subscribe-stack { max-width: 100%; }

/* ---- Brand strip ---- */
.brand-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  padding: 100px 0;
}
.brand-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/images/brand-strip-canyon.jpg') center 45% / cover no-repeat;
  filter: saturate(0.82) contrast(1.08) brightness(0.94) sepia(0.05);
  transform: scale(1.12);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}
.brand-strip.is-visible::before { transform: scale(1); opacity: 1; }
.brand-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 26, 0.68);
}
.brand-strip .eyebrow-center { justify-content: center; color: var(--title-gold); }
.brand-strip h2 { color: var(--offwhite); font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.brand-strip p { color: var(--on-dark-muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.brand-strip .hero-actions { justify-content: center; }

/* ---- Video tutorials ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.video-card { display: block; }
.video-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.video-card:hover .video-card-media { border-color: #ffffff; }
.video-card-media svg:first-child {
  width: 56px;
  height: 56px;
  color: var(--offwhite);
  opacity: 0;
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}
.video-card-media.is-visible svg:first-child { opacity: 0.92; transform: scale(1); }
.video-card:hover .video-card-media.is-visible svg:first-child { transition: transform 0.35s ease; transform: scale(1.08); }
.video-card-play { position: absolute; width: 22px; height: 22px; }
.video-card-title-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: rgba(19, 19, 19, 0.55);
  color: var(--offwhite);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.video-card h3 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}
.video-card-date { display: block; font-size: 0.8rem; color: var(--text-faint); margin-top: 10px; }
.video-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Videos page: filter sidebar + toolbar ---- */
.videos-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 116px;
  position: sticky;
  top: 24px;
}
.filter-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--btn-red);
  color: var(--offwhite);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-sidebar-head svg { width: 18px; height: 18px; flex-shrink: 0; }
.filter-sidebar-group { padding: 18px; border-bottom: 1px solid var(--border); }
.filter-sidebar-group:last-child { border-bottom: none; }
.filter-sidebar-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
}
.filter-sidebar-group-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.filter-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.filter-sidebar-options { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.filter-sidebar-options[hidden] { display: none; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-check input { width: 15px; height: 15px; accent-color: var(--btn-red); cursor: pointer; }
.filter-check:hover { color: var(--text); }
.filter-count { color: var(--text-faint); }

.videos-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.videos-showing { font-size: 0.9rem; color: var(--text-muted); }
.videos-showing strong { color: var(--text); font-weight: 600; }
.videos-sort-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.videos-count { font-size: 0.8rem; color: var(--text-faint); }

.video-section-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 380px;
  text-align: right;
}
.video-section-side p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.video-link-arrow:hover { color: var(--btn-red-light); }
.video-stack { display: flex; flex-direction: column; gap: 28px; }
.video-row { display: flex; gap: 24px; }
.video-row .video-card { flex: 1; min-width: 0; }
.video-row .video-card-media { aspect-ratio: 16 / 10; }
.video-row .video-card-title-banner {
  padding: 20px 22px;
  font-size: 1.4rem;
  line-height: 1.25;
}
.video-playlist { display: flex; flex-direction: column; gap: 18px; }
.video-playlist-item { display: flex; align-items: center; gap: 16px; }
.video-playlist-thumb {
  position: relative;
  width: 168px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.video-playlist-item:hover .video-playlist-thumb { transform: scale(1.03); }
.video-playlist-thumb svg:first-child { width: 30px; height: 30px; color: var(--offwhite); opacity: 0.92; }
.video-playlist-thumb .video-card-play { position: absolute; width: 13px; height: 13px; }
.video-playlist-info h3 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 400; color: var(--text); }

.video-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1060px, 95vw);
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2d2d2d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.video-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.video-modal-body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(169,136,90,0.06), transparent 70%),
    #5e5e5e;
}
.video-modal-body svg:first-child { width: 72px; height: 72px; color: var(--offwhite); opacity: 0.92; }
.video-modal-body .video-card-play { position: absolute; width: 28px; height: 28px; }
.video-modal .quick-view-close {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, border-color 0.2s ease, color 0.2s ease;
}
.video-modal.show-controls .quick-view-close { opacity: 1; pointer-events: auto; }

/* ---- Subscribe ---- */
.subscribe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  padding: 48px 0;
}
.subscribe::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/images/subscribe-canyon.jpg') center 55% / cover no-repeat;
  filter: saturate(0.82) contrast(1.08) brightness(0.94) sepia(0.05);
}
.subscribe::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 26, 0.72);
}
.subscribe-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.subscribe-heading { flex-shrink: 0; }
.subscribe-heading h2 { margin: 0; white-space: normal; }
.subscribe-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 460px;
  text-align: left;
}
.subscribe-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subscribe-block-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--title-gold);
}
.subscribe-block-desc {
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.subscribe-form {
  display: flex;
  width: 100%;
}
.subscribe-input-wrap {
  position: relative;
  width: 100%;
}
.subscribe-form input[type="email"], .subscribe-form input[type="tel"] {
  width: 100%;
  padding: 15px 62px 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--on-dark-border);
  background: rgba(251, 247, 243, 0.22);
  color: var(--on-dark);
  transition: border-color 0.2s ease;
}
.subscribe-form input[type="email"]::placeholder, .subscribe-form input[type="tel"]::placeholder { color: var(--on-dark-faint); }
.subscribe-form input[type="email"]:hover, .subscribe-form input[type="tel"]:hover,
.subscribe-form input[type="email"]:focus, .subscribe-form input[type="tel"]:focus { outline: none; border-color: var(--on-dark); }
.subscribe-arrow {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--offwhite);
  cursor: pointer;
}
.subscribe-arrow svg { width: 30px; height: 30px; }
.subscribe-arrow:hover svg { animation: quick-view-link-spin 0.5s ease; }
.subscribe-success { display: none; color: var(--tan-light); font-size: 0.8rem; margin: 0; }

/* ---- Footer ---- */
.site-footer { color: var(--on-dark); background: var(--forest); border-top: 1px solid var(--on-dark-border); padding: 48px 0 21px; overflow-x: hidden; }
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}
.footer-grid::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--on-dark-border);
}
.footer-brand p { max-width: 280px; color: var(--on-dark-muted); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social .icon-btn:hover { border-color: var(--on-dark); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.footer-col a, .footer-col address {
  position: relative;
  display: block;
  width: fit-content;
  font-style: normal;
  color: var(--on-dark-muted);
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 1px;
  width: 100%;
  background: var(--on-dark);
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-col a:hover { color: var(--on-dark); }
.footer-col a:hover::after { opacity: 1; transform: translateY(0); }
.footer-utility {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--on-dark-faint);
}
.footer-bottom { justify-self: center; text-align: center; white-space: nowrap; }
.region-dropdown { position: relative; justify-self: start; }
.region-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--on-dark-muted);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.region-select svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.region-select:hover { border-color: var(--on-dark); color: var(--on-dark); }
.region-select[aria-expanded="true"] svg { transform: rotate(180deg); }
.region-dropdown-list {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  background: var(--forest);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
}
.region-dropdown-list[hidden] { display: none; }
.region-dropdown-list li {
  position: relative;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.region-dropdown-list li::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--on-dark);
  opacity: 0;
  transform: translateY(-6px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.region-dropdown-list li:hover,
.region-dropdown-list li.is-active {
  background: transparent;
  color: var(--on-dark);
}
.region-dropdown-list li:hover::after,
.region-dropdown-list li.is-active::after { opacity: 1; transform: translateY(0); }
.region-dropdown-list li[aria-selected="true"] { color: var(--on-dark); font-weight: 600; }
.payment-icons { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 26px;
  padding: 0;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.pay-visa { font-style: italic; }
.pay-mastercard svg { width: 22px; height: 14px; display: block; }
.pay-discover { font-size: 0.42rem; letter-spacing: -0.02em; }
.pay-applepay { font-size: 0.46rem; letter-spacing: -0.01em; }
.pay-shoppay { font-size: 0.46rem; letter-spacing: -0.01em; }

/* ---- Page header (interior pages) ---- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(77,89,71,0.08), transparent);
}
.page-header-store, .page-header-about, .page-header-faq, .page-header-contact, .page-header-videos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: none;
  color: var(--on-dark);
}
.page-header-store::before, .page-header-about::before, .page-header-faq::before, .page-header-contact::before, .page-header-videos::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.82) contrast(1.08) brightness(0.94) sepia(0.05);
}
.page-header-store::before { background-image: url('../assets/images/store-header-trail.webp'); background-position: center 45%; }
.page-header-about::before { background-image: url('../assets/images/about-header-trail.jpg'); background-position: center 40%; }
.page-header-faq::before { background-image: url('../assets/images/faq-header-canyon.jpg'); background-position: center 55%; }
.page-header-contact::before { background-image: url('../assets/images/contact-header-canyon.jpg'); background-position: center 35%; }
.page-header-videos::before { background-image: url('../assets/images/videos-header-aspen.jpg'); background-position: center 40%; }
.page-header-store::after, .page-header-about::after, .page-header-faq::after, .page-header-contact::after, .page-header-videos::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 26, 0.55);
}
.page-header-store .breadcrumb, .page-header-about .breadcrumb, .page-header-faq .breadcrumb, .page-header-contact .breadcrumb, .page-header-videos .breadcrumb { color: var(--on-dark-muted); }
.page-header-store .breadcrumb a:hover, .page-header-about .breadcrumb a:hover, .page-header-faq .breadcrumb a:hover, .page-header-contact .breadcrumb a:hover, .page-header-videos .breadcrumb a:hover { color: var(--tan-light); }
.page-header-store h1, .page-header-about h1, .page-header-faq h1, .page-header-contact h1, .page-header-videos h1 { color: var(--on-dark); }
.breadcrumb { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--rust); }

/* ---- Filters (store page) ---- */
.store-toolbar-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.filter-group {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 32px;
}
.filter-group h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--title-gold);
}
.filter-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.filter-option input { position: absolute; width: 0; height: 0; opacity: 0; }
.filter-option:hover { color: var(--text); border-color: var(--text); }
.filter-option:has(input:checked) { color: var(--text); border-color: var(--text); }
.store-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.sort-dropdown { position: relative; }
.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 8px 2px;
  color: var(--text);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}
.sort-select:hover, .sort-select[aria-expanded="true"] { color: var(--btn-red-light); }
.sort-select svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.sort-select[aria-expanded="true"] svg { transform: rotate(180deg); }
.sort-dropdown-list {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
}
.sort-dropdown-list[hidden] { display: none; }
.sort-dropdown-list li {
  position: relative;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.sort-dropdown-list li::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateY(-6px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sort-dropdown-list li:hover,
.sort-dropdown-list li.is-active { background: transparent; color: var(--text); }
.sort-dropdown-list li:hover::after,
.sort-dropdown-list li.is-active::after { opacity: 1; transform: translateY(0); }
.sort-dropdown-list li[aria-selected="true"] { font-weight: 600; color: var(--text); }
.result-count { color: var(--text-faint); font-size: 0.85rem; }
@media (min-width: 1025px) {
  [data-store-grid] { grid-template-columns: repeat(4, 1fr); }
}

/* ---- FAQ accordion ---- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
}
.accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--tan); transition: transform 0.2s ease; }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-item.open .accordion-panel { max-height: 400px; }
.accordion-panel p { padding-bottom: 22px; margin: 0; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--rust); }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-info-card h4 { margin-bottom: 6px; }
.contact-info-card p { margin: 0; }

/* ---- Legal pages ---- */
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 2.2em; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 20px; list-style: disc; margin-bottom: 1em; }
.legal-updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 40px; }

/* ---- Cart page layout ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* ---- Cart drawer ---- */
.cart-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(33, 31, 26, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 200;
}
.cart-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s ease; z-index: 201;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.cart-drawer-head .icon-btn { color: var(--text); border-color: var(--border-strong); }
.cart-drawer-head .icon-btn:hover { border-color: var(--on-dark); }
.cart-drawer-head .icon-btn svg { transition: transform 0.2s ease; }
.cart-drawer-head .icon-btn:hover svg { transform: scale(1.35); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line-media { width: 68px; height: 68px; border-radius: var(--radius-sm); background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-line-media svg { width: 50%; height: 50%; color: var(--text-faint); }
.cart-line-info { flex: 1; }
.cart-line-info h4 { font-size: 0.92rem; margin: 0 0 4px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.cart-line-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); border-radius: 4px; }
.cart-line-remove { font-size: 0.78rem; color: var(--text-faint); margin-top: 6px; display: inline-block; }
.cart-line-remove:hover { color: var(--danger); }
.cart-drawer-foot { padding: 22px 24px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 16px; font-family: var(--font-display); }
.cart-empty { color: var(--text-faint); text-align: center; padding: 60px 0; }

/* ---- Search overlay ---- */
.search-overlay-backdrop {
  position: fixed; inset: 0; background: rgba(33, 31, 26, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 200;
}
.search-overlay-backdrop.open { opacity: 1; pointer-events: auto; }
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 201;
  padding: 28px 0;
  max-height: 80vh;
  overflow-y: auto;
}
.search-overlay.open { transform: translateY(0); }
.search-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 16px;
}
.search-input-icon { width: 22px; height: 22px; color: var(--text-faint); flex-shrink: 0; }
.search-input-row .icon-btn svg { transition: transform 0.2s ease; }
.search-input-row .icon-btn:hover svg { transform: scale(1.35); }
.search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
}
.search-input-row input::placeholder { color: var(--text-faint); }
.search-results {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.search-result-item { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.search-result-media {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-result-media svg { width: 40%; height: 40%; color: var(--text-faint); }
.search-result-item h4 { margin: 0; font-size: 0.92rem; font-weight: 400; font-family: var(--font-display); }
.search-result-item .price { font-size: 0.85rem; color: var(--text-muted); }
.search-empty { color: var(--text-faint); padding: 12px 0; font-size: 0.9rem; }

/* ---- Account drawer ---- */
.account-drawer-body { padding: 24px; }
.account-alt { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); text-align: center; }
.account-alt a { color: var(--text-faint); text-decoration: underline; transition: color 0.2s ease; }
.account-alt a:hover { color: var(--on-dark); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--offwhite);
  border: 1px solid var(--on-dark-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
  z-index: 150;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--on-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-grid-page { grid-template-columns: 1fr 1fr; }
  .video-section-split { grid-template-columns: 1fr; gap: 32px; }
  .videos-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; margin-top: 0; }
}

@media (max-width: 640px) {
  .video-grid, .video-grid-page { grid-template-columns: 1fr; }
  .video-row { flex-wrap: wrap; }
  .video-row .video-card { flex: 1 1 100%; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--forest);
    border-bottom: 1px solid var(--on-dark-border);
    padding: 8px 24px 20px;
  }
  .main-nav.nav-open a { border-bottom: 1px solid var(--on-dark-border); padding: 14px 0; }
  .main-nav.nav-open .nav-dropdown-trigger { border-bottom: 1px solid var(--on-dark-border); padding: 14px 0; }
  .main-nav.nav-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 4px 16px;
    min-width: 0;
  }
  .main-nav.nav-open .nav-dropdown-menu a { color: var(--on-dark-muted); padding: 10px 0; }
  .main-nav.nav-open .nav-dropdown-menu a:hover { color: var(--on-dark); background: transparent; }
  .nav-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .ambassador-banner { grid-template-columns: 1fr; }
  .ambassador-subscribe-split { grid-template-columns: 1fr; gap: 32px; }
  .ambassador-subscribe-split::before { display: none; }
  .ambassador-content { padding: 30px 21px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { position: static; margin-top: 30px; justify-content: center; }
  .hero-content { padding: 42px 0; }
}

@media (max-width: 640px) {
  .header-inner { height: 66px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .subscribe { padding: 28px 0; }
  .subscribe-row { gap: 20px; }
  .subscribe-stack { max-width: 100%; }
  .subscribe-heading h2 { white-space: normal; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .video-section-side { align-items: flex-start; text-align: left; max-width: 100%; }
  .footer-utility { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .footer-bottom { justify-self: start; text-align: left; white-space: normal; order: 2; }
  .payment-icons { justify-self: start; order: 3; }
  .region-dropdown { order: 1; }
}
