/* ==========================================================
   GearShiftBD — Base Design System v2
   Loaded BEFORE Tailwind CDN via wp_enqueue_style.
   Provides reliable structural foundation independent of
   CDN timing. All critical layout, typography, and
   component styles live here.
========================================================== */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Surface */
  --void:          #080808;
  --surface-0:     #0F0F0F;
  --surface-1:     #141414;
  --surface-2:     #1C1C1C;
  --surface-3:     #252525;

  /* Strokes */
  --stroke-dim:    #1E1E1E;
  --stroke-base:   #2C2C2C;
  --stroke-loud:   #404040;
  --stroke-brand:  #CC0000;

  /* Brand */
  --red-600:       #CC0000;
  --red-500:       #E60000;
  --red-800:       #990000;
  --red-400:       #FF1A1A;
  --gold-500:      #C9A84C;
  --gold-400:      #DDB95E;

  /* Ink */
  --ink-primary:   #F2F2F2;
  --ink-secondary: #A0A0A0;
  --ink-muted:     #606060;
  --ink-inverse:   #0F0F0F;

  /* Typography */
  --font-display:   "Bebas Neue", Impact, sans-serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans:      Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:      "JetBrains Mono", Consolas, monospace;

  /* Spacing rhythm — use for consistent section padding */
  --section-py:    4rem;    /* 64px  — mobile */
  --section-py-lg: 6rem;    /* 96px  — desktop */
  --section-gap:   2.5rem;  /* grid gap mobile */
  --section-gap-lg:1rem;    /* grid gap desktop */

  /* Type scale — fluid sizes via clamp */
  --text-display:   clamp(3.5rem, 9vw, 8.25rem);
  --text-hero:      clamp(2.5rem, 5vw, 5rem);
  --text-h1:        clamp(2rem,   4vw, 3.5rem);
  --text-h2:        clamp(1.75rem, 3vw, 3rem);
  --text-h3:        clamp(1.125rem, 2vw, 1.5rem);

  /* Easing */
  --ease-sharp:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-fast:  cubic-bezier(0, 0, 0.2, 1);
  --ease-snap:      cubic-bezier(0.2, 0, 0, 1);

  /* Transitions */
  --transition-fast: 80ms  var(--ease-sharp);
  --transition-base: 150ms var(--ease-sharp);
  --transition-slow: 300ms var(--ease-sharp);
}

/* ── Global Reset ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

/* Prevent unsized SVG from rendering at browser 300×150 default */
svg:not([width]):not([height]) {
  width:     1.25rem;
  height:    1.25rem;
  max-width: 100%;
}

ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; background: none; border: none; font-family: var(--font-sans); line-height: 1; }
input, select, textarea { font-family: var(--font-sans); }

/* Custom logo (WP uploaded via customizer) */
.custom-logo         { max-height: 44px; width: auto; display: block; }
.custom-logo-link    { display: flex; align-items: center; line-height: 0; }

/* ── Site Logo ───────────────────────────────────────────── */
.gs-logo-link {
  display:         inline-flex;
  align-items:     center;
  line-height:     1;
  text-decoration: none;
  transition:      transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gs-logo-img {
  display:    block;
  height:     clamp(20px, 2vw, 26px);
  width:      auto;
  flex-shrink: 0;
  transition: filter 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: red glow bloom + slight lift */
.gs-logo-link:hover {
  transform: translateY(-1px);
}

.gs-logo-link:hover .gs-logo-img {
  filter:
    drop-shadow(0 0 5px  rgba(204, 0, 0, 0.95))
    drop-shadow(0 0 12px rgba(204, 0, 0, 0.60))
    drop-shadow(0 0 24px rgba(204, 0, 0, 0.30))
    brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .gs-logo-link,
  .gs-logo-img { transition: none; }
  .gs-logo-link:hover { transform: none; }
}

/* ── Notice Bar ──────────────────────────────────────────── */
.gs-notice-bar {
  background: var(--void);
  border-bottom: 1px solid var(--red-600);
  height: 36px;
}

.gs-notice-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
}

.gs-notice-track {
  display: inline-flex;
  white-space: nowrap;
  animation: gs-notice-scroll 36s linear infinite;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  gap: 0;
}

@keyframes gs-notice-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-notice-track { animation: none; }
}

/* Collapse notice on scroll — desktop only (mobile stays stable) */
.gs-notice-bar {
  max-height: var(--gs-notice-h, 36px);
  opacity: 1;
  transition: max-height 300ms ease, opacity 300ms ease;
}

@media (min-width: 1024px) {
  .gs-notice-bar--collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }
}

/* ── Header spacer — keeps content below fixed header ─────── */
.gs-header-spacer {
  height: var(--gs-header-offset, 136px);
}

@media (min-width: 1024px) {
  .gs-header-spacer {
    height: var(--gs-header-offset, 88px);
  }
}

/* ── Header icon buttons ─────────────────────────────────── */
.gs-icon-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  min-width:       44px;
  height:          44px;
  color:           var(--ink-secondary);
  transition:      color 80ms var(--ease-sharp), transform 150ms var(--ease-sharp);
  cursor:          pointer;
  background:      none;
  border:          none;
  padding:         0;
}

.gs-icon-btn:hover {
  color:     var(--ink-primary);
  transform: scale(1.1);
}

/* ── Nav bar links ───────────────────────────────────────── */
.gs-nav-link {
  position:        relative;
  display:         inline-flex;
  align-items:     center;
  gap:             4px;
  padding:         0 8px;
  height:          52px;
  font-size:       11px;
  font-weight:     600;
  text-transform:  uppercase;
  letter-spacing:  0.09em;
  color:           var(--ink-secondary);
  text-decoration: none;
  transition:      color 80ms var(--ease-sharp);
  white-space:     nowrap;
}

@media (min-width: 1280px) {
  .gs-nav-link { padding: 0 13px; font-size: 11.5px; }
}

.gs-nav-link::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             8px;
  right:            8px;
  height:           2px;
  background:       var(--red-600);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 200ms var(--ease-sharp);
}

@media (min-width: 1280px) {
  .gs-nav-link::after { left: 13px; right: 13px; }
}

.gs-nav-link:hover,
.gs-nav-link--active {
  color: var(--ink-primary);
}

.gs-nav-link:hover::after,
.gs-nav-link--active::after {
  transform: scaleX(1);
}

/* SALE nav item overrides color */
.gs-nav-sale {
  color: var(--red-500);
}

.gs-nav-sale:hover {
  color: var(--red-400);
}

/* ── Header search bar ───────────────────────────────────── */
.gs-search-bar {
  background:    var(--surface-2);
  border:        1px solid var(--stroke-base);
  border-radius: 9999px;
  color:         var(--ink-primary);
  padding:       9px 50px 9px 38px;
  font-size:     13px;
  font-family:   var(--font-sans);
  width:         100%;
  outline:       none;
  -webkit-appearance: none;
  appearance:    none;
  transition:
    border-color 150ms var(--ease-sharp),
    background   150ms var(--ease-sharp),
    box-shadow   150ms var(--ease-sharp);
}

.gs-search-bar::placeholder { color: var(--ink-muted); }

.gs-search-bar:focus {
  border-color: var(--stroke-brand);
  background:   var(--surface-1);
  box-shadow:   0 0 0 3px rgba(204, 0, 0, 0.12);
}

/* Compact inline variant — used in the single nav row and mobile drawer */
.gs-search-compact {
  background:    #ffffff;
  border:        1.5px solid var(--gold-400);
  border-radius: 9999px;
  color:         #111111;
  padding:       7px 14px;
  text-align:    center;
  font-size:     12px;
  font-family:   var(--font-sans);
  width:         100%;
  outline:       none;
  -webkit-appearance: none;
  appearance:    none;
  transition:
    border-color 150ms var(--ease-sharp),
    box-shadow   150ms var(--ease-sharp);
}

.gs-search-compact::placeholder { color: #9ca3af; }

.gs-search-compact:focus {
  border-color: var(--gold-500);
  box-shadow:   0 0 0 3px rgba(201, 168, 76, 0.22);
}

/* Dark override for mobile drawer context */
.bg-void .gs-search-compact,
#site-header .gs-search-compact {
  background: #ffffff;
  color:      #111111;
}

/* Remove browser default search clear button */
.gs-search-compact::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── Product Variation Form ─────────────────────────────── */
.gs-variations {
  margin-bottom: 1.25rem;
}

.gs-var-row {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         10px 12px;
  margin-bottom: 10px;
}

.gs-var-label {
  width:          min(88px, 22vw);
  flex-shrink:    0;
  font-size:      11px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--ink-muted);
  line-height:    1;
}

@media (min-width: 480px) {
  .gs-var-label { width: 88px; }
}

.gs-var-select-wrap {
  flex:     1;
  position: relative;
  display:  flex;
  align-items: center;
  gap: 8px;
}

.gs-var-select {
  flex:               1;
  min-width:          0;
  background:         var(--surface-1);
  border:             1.5px solid var(--stroke-base);
  color:              var(--ink-primary);
  font-size:          13px;
  font-family:        var(--font-sans);
  padding:            10px 36px 10px 14px;
  appearance:         none;
  -webkit-appearance: none;
  outline:            none;
  cursor:             pointer;
  border-radius:      0;
  transition:         border-color 150ms ease, box-shadow 150ms ease;
  height:             44px;
  min-height:         44px;
}

.gs-var-select:hover  { border-color: var(--stroke-loud); }
.gs-var-select:focus  {
  border-color: var(--red-600);
  box-shadow:   0 0 0 3px rgba(204, 0, 0, 0.12);
}

.gs-var-chevron {
  position:       absolute;
  right:          11px;
  top:            50%;
  transform:      translateY(-50%);
  pointer-events: none;
  color:          var(--ink-muted);
  display:        flex;
  align-items:    center;
}

/* Reset link */
.gs-var-clear {
  flex-shrink:    0;
  font-size:      10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--ink-muted);
  text-decoration: none;
  white-space:    nowrap;
  transition:     color 150ms;
  visibility:     hidden; /* WC makes visible when a value is selected */
}
.gs-var-clear:hover { color: var(--red-500); }

/* WC adds .reset_variations visible class */
.variations_form .reset_variations {
  visibility: hidden;
  font-size:      10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--ink-muted);
  text-decoration: none;
  transition:     color 150ms;
}
.variations_form .reset_variations:hover { color: var(--red-500); }

/* WooCommerce variation output styling */
.single_variation_wrap .woocommerce-variation-price {
  margin-bottom: 0.75rem;
}
.single_variation_wrap .woocommerce-variation-price .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red-500);
}
.single_variation_wrap .woocommerce-variation-availability {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ── SALE link ───────────────────────────────────────────── */
.gs-sale-link {
  color:           var(--red-500);
  text-decoration: none;
  transition:      color 150ms var(--ease-sharp), transform 150ms var(--ease-sharp);
}

.gs-sale-link:hover {
  color:     var(--red-400);
  transform: scale(1.03);
}

.gs-sale-dot {
  display:       inline-block;
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    var(--red-500);
  flex-shrink:   0;
  animation:     gs-sale-pulse 1.6s ease-in-out infinite;
}

@keyframes gs-sale-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-sale-dot { animation: none; }
}

/* ── Focus Visible System ────────────────────────────────── */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Buttons and links get a more prominent focus ring */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 2px;
}

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

  .gs-card { transform: none !important; }
}

/* ── Container ───────────────────────────────────────────── */
.gs-container {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 480px)  { .gs-container { padding-inline: 1.5rem; } }
@media (min-width: 640px)  { .gs-container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .gs-container { padding-inline: 3.5rem; } }
@media (min-width: 1280px) { .gs-container { padding-inline: 4rem; } }

/* ── Homepage widget areas (front-page.php) ── */
.hp-widget-area {
  padding-block: 2.5rem;
  background: var(--void);
  border-top: 1px solid var(--stroke-dim);
}
.hp-widget-area--top    { border-top: none; padding-top: 2rem; }
.hp-widget-area--bottom { border-bottom: 1px solid var(--stroke-dim); }
.hp-widget-area .hp-widget + .hp-widget { margin-top: 1.5rem; }
.hp-widget-area .widget-title {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink-primary);
}
@media (min-width: 768px) {
  .hp-widget-area { padding-block: 3.5rem; }
}

/* ── Typography Scale ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-condensed);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-primary);
}

/* Prevent long headlines from breaking awkwardly */
h1, h2 {
  text-wrap: balance;
}

/* ── Site Header ─────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* Transition defined in animations.css (motion system owns timing) */
}

/* Parallax layer — GPU compositing hint */
[data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}

/* ── Hero Section ────────────────────────────────────────── */
#hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--void);
}

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollBar {
  from { transform: translateY(-100%); }
  to   { transform: translateY(200%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

/* For live-availability badges and "New" label pulsing */
@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Counter entrance — used by why-choose-us stats */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-base),
              color            var(--transition-base),
              border-color     var(--transition-base),
              transform        var(--transition-fast);
  user-select: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  will-change: transform;
}

.btn:active { transform: scale(0.97); }

.btn-primary  { background: var(--red-600); color: #fff; }
.btn-primary:hover  { background: var(--red-500); }
.btn-primary:active { background: var(--red-800); }

.btn-secondary { background: transparent; color: var(--red-600); border: 1px solid var(--red-600); }
.btn-secondary:hover  { background: var(--red-600); color: #fff; }
.btn-secondary:active { background: var(--red-800); }

.btn-ghost { background: transparent; color: var(--ink-primary); border: 1px solid var(--stroke-base); }
.btn-ghost:hover { border-color: var(--stroke-brand); color: var(--red-600); }

.btn-gold { background: var(--gold-500); color: var(--ink-inverse); }
.btn-gold:hover { background: var(--gold-400); }

/* Size modifiers */
.btn-sm { padding: 0.5rem 1.25rem;  font-size: 0.6875rem; }
.btn-lg { padding: 1.125rem 2.5rem; font-size: 0.875rem; }

/* Disable active-scale for btn groups (avoids shift within nav) */
.btn-group .btn:active { transform: none; }

/* ── Eyebrow Label ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-500);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1;
}

.eyebrow::before {
  content: '';
  display: block;
  width:  1.75rem;
  height: 1px;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* Centered eyebrow — used in section-header align:center */
.eyebrow-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.eyebrow-center::before,
.eyebrow-center::after {
  content: '';
  display: block;
  width:  1.5rem;
  height: 1px;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* ── Section Headline ────────────────────────────────────── */
.section-headline {
  font-family: var(--font-condensed);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.1;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

/* ── Divider ─────────────────────────────────────────────── */
.gs-divider {
  width: 100%;
  height: 1px;
  background: var(--stroke-dim);
  border: none;
  margin: 0;
}

/* ── Product Card ────────────────────────────────────────── */
.gs-card {
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--stroke-dim);
  overflow: hidden;
  transition: transform      200ms var(--ease-sharp),
              border-color   200ms var(--ease-sharp),
              box-shadow     200ms var(--ease-sharp);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.gs-card:hover {
  transform:    translateY(-3px);
  border-color: var(--stroke-brand);
  box-shadow:   0 8px 32px rgba(204, 0, 0, 0.12);
}

/* Slightly less lift on mobile to avoid accidental hover states */
@media (hover: none) {
  .gs-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── Product Gallery ─────────────────────────────────────── */
.gs-thumb-active {
  box-shadow: 0 0 0 1px var(--red-600), 0 0 10px rgba(232, 0, 28, 0.22);
}

/* Arrow buttons: 44px touch targets on mobile, 32px on desktop */
.product-gallery [aria-label="Previous image"],
.product-gallery [aria-label="Next image"] {
  width: 44px !important;
  height: 44px !important;
}
@media (min-width: 640px) {
  .product-gallery [aria-label="Previous image"],
  .product-gallery [aria-label="Next image"] {
    width: 32px !important;
    height: 32px !important;
  }
}

@keyframes gs-img-enter {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gs-img-leave {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.97); }
}
.gs-img-enter { animation: gs-img-enter 350ms ease-out both; }
.gs-img-leave { animation: gs-img-leave 220ms ease-in  both; }
.gs-var-enter { animation: gs-img-enter 300ms ease-out both; }
.gs-var-leave { animation: gs-img-leave 180ms ease-in  both; }

/* ── Badges ──────────────────────────────────────────────── */
.gs-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
}

.gs-badge-sale { background: var(--red-600);   color: #fff; }
.gs-badge-new  { background: var(--gold-500);  color: var(--ink-inverse); }
.gs-badge-out  { background: #7f1d1d; color: #fca5a5; }

/* ── Blog Prose ──────────────────────────────────────────── */
.gs-prose {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 72ch;
}

.gs-prose h2, .gs-prose h3, .gs-prose h4 {
  color: var(--ink-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.gs-prose p { margin-bottom: 1.25em; }

.gs-prose a {
  color: var(--red-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gs-prose a:hover { color: var(--red-400); }

.gs-prose ul, .gs-prose ol {
  list-style: initial;
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}

.gs-prose strong { color: var(--ink-primary); font-weight: 600; }

.gs-prose blockquote {
  border-left: 3px solid var(--red-600);
  padding-left: 1.25rem;
  color: var(--ink-secondary);
  font-style: italic;
  margin: 1.5em 0;
}

/* ── WooCommerce Structural Resets ───────────────────────── */
.woocommerce-notices-wrapper:empty           { display: none; }
.woocommerce ul.products                     { float: none; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products li.product         { float: none; width: auto; margin: 0; padding: 0; }
.woocommerce .col2-set, .woocommerce-page .col2-set { display: block; }
.woocommerce form .form-row                  { float: none; width: 100%; }

/* WC price HTML — override default green/dark colors */
.woocommerce-Price-amount.amount             { color: var(--red-500); font-weight: 600; }
del .woocommerce-Price-amount.amount         { color: var(--ink-muted); font-weight: 400; font-size: 0.85em; }
ins                                          { text-decoration: none; }
ins .woocommerce-Price-amount.amount         { color: var(--red-500); }
.price del + ins                             { margin-left: 0.4em; }

/* ── Utilities ───────────────────────────────────────────── */
.scrollbar-none                    { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.tabular-nums                      { font-variant-numeric: tabular-nums; }

/* line-clamp fallback (for environments where Tailwind CDN hasn't processed yet) */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

/* ── Skeleton Loader ─────────────────────────────────────── */
.gs-skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

/* ── Stat Counter ────────────────────────────────────────── */
[data-count] {
  animation: countUp 0.4s var(--ease-out-fast) both;
}

/* ═══════════════════════════════════════════════════════════
   BRAND STRIP MARQUEE
══════════════════════════════════════════════════════════ */

.gs-brand-strip {
  background: var(--surface-0);
  border-top:    1px solid var(--stroke-dim);
  border-bottom: 1px solid var(--stroke-dim);
}

.gs-brand-marquee-wrap {
  position:   relative;
  overflow:   hidden;
  padding:    20px 0 24px;
}

/* Pause animation on section hover */
.gs-brand-strip:hover .gs-brand-track {
  animation-play-state: paused;
}

/* Gradient edge fades */
.gs-brand-fade {
  position:       absolute;
  top:            0;
  bottom:         0;
  width:          clamp(40px, 12vw, 120px);
  z-index:        2;
  pointer-events: none;
}

.gs-brand-fade--left  { left:  0; background: linear-gradient(to right, var(--surface-0) 30%, transparent); }
.gs-brand-fade--right { right: 0; background: linear-gradient(to left,  var(--surface-0) 30%, transparent); }

/* Scrolling track — 4 copies of 4 brands, scroll by 25% = 1 set */
.gs-brand-track {
  display:          inline-flex;
  align-items:      center;
  white-space:      nowrap;
  animation:        gs-brand-scroll 32s linear infinite;
  will-change:      transform;
}

@keyframes gs-brand-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-brand-track { animation: none; }
}

/* Individual brand link */
.gs-brand-item {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  padding:         0 48px;
  text-decoration: none;
}

/* Brand logo image — full color always, scale+glow on hover */
.gs-brand-logo {
  display:          block;
  height:           clamp(28px, 3vw, 40px);
  width:            auto;
  max-width:        140px;
  object-fit:       contain;
  object-position:  center;
  opacity:          1;
  transition:       transform 300ms ease, filter 300ms ease;
  image-rendering:  -webkit-optimize-contrast;
  image-rendering:  crisp-edges;
}

.gs-brand-item:hover .gs-brand-logo {
  transform: scale(1.10);
  filter:    brightness(1.15) drop-shadow(0 0 10px rgba(255,255,255,0.18));
}

/* Thin separator dot between brands */
.gs-brand-sep {
  display:       inline-block;
  width:         4px;
  height:        4px;
  border-radius: 50%;
  background:    var(--stroke-loud);
  flex-shrink:   0;
  opacity:       0.4;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER COMPONENTS
══════════════════════════════════════════════════════════ */

/* Footer column heading */
.gs-footer-heading {
  font-size:       10px;
  font-weight:     700;
  text-transform:  uppercase;
  letter-spacing:  0.22em;
  color:           var(--gold-500);
  margin-bottom:   14px;
}

/* Footer links with slide-underline */
.gs-footer-link {
  position:        relative;
  display:         inline-block;
  font-size:       13px;
  color:           var(--ink-secondary);
  text-decoration: none;
  transition:      color 80ms var(--ease-sharp);
  padding-bottom:  1px;
}

.gs-footer-link::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             0;
  width:            100%;
  height:           1px;
  background:       var(--red-600);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 180ms var(--ease-sharp);
}

.gs-footer-link:hover {
  color: var(--ink-primary);
}

.gs-footer-link:hover::after {
  transform: scaleX(1);
}

/* Footer email/newsletter input */
.gs-footer-input {
  background:    var(--surface-2);
  border:        1px solid var(--stroke-base);
  color:         var(--ink-primary);
  padding:       11px 16px;
  font-size:     13px;
  font-family:   var(--font-sans);
  width:         100%;
  outline:       none;
  -webkit-appearance: none;
  appearance:    none;
  transition:    border-color 150ms var(--ease-sharp), box-shadow 150ms var(--ease-sharp);
}

.gs-footer-input::placeholder { color: var(--ink-muted); }

.gs-footer-input:focus {
  border-color: var(--stroke-brand);
  box-shadow:   0 0 0 3px rgba(204, 0, 0, 0.10);
}

/* Brand badge chips */
.gs-brand-badge {
  display:        inline-block;
  padding:        3px 8px;
  font-size:      9px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color:          var(--ink-muted);
  border:         1px solid var(--stroke-dim);
  background:     var(--surface-1);
  transition:     border-color 150ms var(--ease-sharp), color 150ms var(--ease-sharp);
}

.gs-brand-badge:hover {
  border-color: rgba(204, 0, 0, 0.3);
  color:        var(--ink-secondary);
}

/* ── Mobile header row — search | logo | cart ───────────── */

@media (max-width: 1023px) {
  .gs-mobile-header-row {
    display:               grid;
    grid-template-columns: 44px 1fr 44px;
    align-items:           center;
    gap:                   0;
  }

  .gs-mobile-header-row > .gs-logo-center {
    grid-column: 2;
    justify-self: center;
    position:     static;
    left:         auto;
    transform:    none;
    z-index:      1;
    max-width:    min(52vw, 200px);
  }

  .gs-mobile-header-row > .gs-mobile-search-btn {
    grid-column: 1;
    justify-self: start;
  }

  .gs-mobile-header-row > .gs-mobile-header-actions {
    grid-column: 3;
    justify-self: end;
  }

  .gs-logo-img {
    height: clamp(16px, 4vw, 22px);
    width:  auto;
    margin-inline: auto;
  }
}

/* Desktop: logo back in normal flow, header row is flex again */
@media (min-width: 1024px) {
  .gs-mobile-header-row {
    display: flex;
    align-items: center;
  }

  .gs-logo-center {
    position:  static;
    left:      auto;
    transform: none;
    max-width: none;
  }
}

/* ── Mobile Search Dropdown ──────────────────────────────── */

.gs-search-dropdown {
  background:    rgba(8, 8, 8, 0.98);
  border-bottom: 1px solid var(--stroke-dim);
  padding:       10px 20px 14px;
  position:      relative;
  z-index:       2;
}

@supports (padding-left: env(safe-area-inset-left)) {
  .gs-search-dropdown {
    padding-left:  max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

.gs-search-dropdown__icon {
  position:       absolute;
  left:           34px;
  top:            50%;
  transform:      translateY(-50%);
  pointer-events: none;
  color:          var(--red-500);
  z-index:        1;
}

@supports (padding-left: env(safe-area-inset-left)) {
  .gs-search-dropdown__icon {
    left: max(34px, calc(env(safe-area-inset-left) + 14px));
  }
}

.gs-search-dropdown__input {
  width:               100%;
  background:          var(--surface-1);
  border:              1.5px solid var(--stroke-base);
  color:               var(--ink-primary);
  padding:             10px 14px 10px 42px;
  font-size:           15px;
  font-family:         var(--font-sans);
  border-radius:       6px;
  outline:             none;
  -webkit-appearance:  none;
  appearance:          none;
  height:              44px;
  transition:          border-color 150ms ease, box-shadow 150ms ease;
}

.gs-search-dropdown__input::placeholder { color: var(--ink-muted); }

.gs-search-dropdown__input:focus {
  border-color: var(--red-600);
  box-shadow:   0 0 0 3px rgba(204, 0, 0, 0.14);
}

.gs-search-dropdown__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

@keyframes gs-search-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gs-search-slide-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}
.gs-search-enter { animation: gs-search-slide-in 180ms ease-out both; }
.gs-search-leave { animation: gs-search-slide-out 130ms ease-in  both; }

/* ── Mobile Nav Pills ────────────────────────────────────── */

.gs-pills-nav {
  background:        var(--void);
  border-bottom:     1px solid var(--stroke-dim);
  overflow-x:        auto;
  width:             100%;   /* stay viewport-bound; scroll pills internally */
  max-width:         100%;
  min-width:         0;
  -ms-overflow-style: none;
  scrollbar-width:   none;
}

.gs-pills-nav::-webkit-scrollbar { display: none; }

.gs-pills-track {
  display:     flex;
  align-items: center;
  gap:         6px;
  padding:     9px 20px;
  white-space: nowrap;
}

@supports (padding-left: env(safe-area-inset-left)) {
  .gs-pills-track {
    padding-left:  max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

.gs-pill {
  display:                    inline-flex;
  align-items:                center;
  gap:                        4px;
  padding:                    8px 14px;
  font-size:                  11px;
  font-weight:                600;
  text-transform:             uppercase;
  letter-spacing:             0.07em;
  color:                      var(--ink-secondary);
  background:                 var(--surface-1);
  border:                     1px solid var(--stroke-dim);
  border-radius:              9999px;
  text-decoration:            none;
  white-space:                nowrap;
  flex-shrink:                0;
  min-height:                 36px;
  transition:                 color 80ms ease, border-color 80ms ease, background 80ms ease;
  -webkit-tap-highlight-color: transparent;
}

.gs-pill:active {
  color:        var(--ink-primary);
  border-color: var(--stroke-loud);
  background:   var(--surface-2);
}

.gs-pill--active {
  color:        var(--ink-primary);
  border-color: var(--red-600);
  background:   rgba(204, 0, 0, 0.08);
}

.gs-pill--sale {
  color:        var(--red-500);
  border-color: rgba(204, 0, 0, 0.28);
}

.gs-pill--sale:active {
  color:        var(--red-400);
  border-color: var(--red-600);
  background:   rgba(204, 0, 0, 0.12);
}

/* Pills row height tracks touch-friendly pill size */
@media (max-width: 1023px) {
  :root {
    --gs-header-pills-h: 52px;
  }
}

/* ── Homepage hero (mobile-first) ────────────────────────── */

.gs-hero {
  min-height: 90vh;
  min-height: 90svh;
  min-height: 90dvh;
}

.gs-hero__media-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
}

.gs-hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 639px) {
  .gs-hero__media {
    object-fit: contain;
    object-position: center top;
  }

  .gs-hero__overlay--mobile {
    background: linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.72) 0%,
      rgba(8, 8, 8, 0.45) 38%,
      rgba(8, 8, 8, 0.25) 100%
    ) !important;
  }
}

.gs-hero__content {
  padding-top: calc(var(--gs-header-offset, 136px) + clamp(1.25rem, 4vh, 2.5rem));
  padding-bottom: clamp(3rem, 10vh, 5.5rem);
}

@media (min-width: 1024px) {
  .gs-product-gallery-sticky {
    top: calc(var(--gs-header-offset, 88px) + 1rem);
  }
}

/* ── Mobile layout hardening ─────────────────────────────── */

@media (max-width: 1023px) {
  #main-content,
  .gs-footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .gs-stagger.grid {
    gap: 0.75rem;
  }

  .btn,
  .gs-icon-btn,
  .add_to_cart_button {
    min-height: 44px;
  }
}

/* ── Mobile Header System ────────────────────────────────── */

/* Safe-area insets — notched iPhones (Dynamic Island / Face ID) */
@supports (padding-left: env(safe-area-inset-left)) {
  #site-header .gs-container {
    padding-left:  max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

/* Remove iOS tap flash; replace with custom active state */
#site-header a,
#site-header button {
  -webkit-tap-highlight-color: transparent;
}

/* Icon button touch press feedback */
@media (hover: none) {
  .gs-icon-btn:active {
    opacity:   0.55;
    transform: scale(0.86);
  }
}

/* Social icon buttons */
.gs-social-icon {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           40px;
  height:          40px;
  border:          1px solid var(--stroke-dim);
  color:           var(--ink-muted);
  transition:      color 150ms var(--ease-sharp), border-color 150ms var(--ease-sharp), filter 150ms var(--ease-sharp);
  flex-shrink:     0;
}

.gs-social-icon--sm {
  width:  34px;
  height: 34px;
}

/* Brand color hovers */
.gs-social-fb:hover { color: #1877F2; border-color: rgba(24, 119, 242, 0.35); filter: drop-shadow(0 0 6px rgba(24,119,242,0.25)); }
.gs-social-ig:hover { color: #E1306C; border-color: rgba(225,  48, 108, 0.35); filter: drop-shadow(0 0 6px rgba(225, 48,108,0.25)); }
.gs-social-tt:hover { color: #69C9D0; border-color: rgba(105, 201, 208, 0.35); filter: drop-shadow(0 0 6px rgba(105,201,208,0.25)); }
.gs-social-yt:hover { color: #FF0000; border-color: rgba(255,   0,   0, 0.35); filter: drop-shadow(0 0 6px rgba(255,  0,  0,0.25)); }

/* Product grid items are <li> inside a DIV grid — kill leftover list bullets */
.gs-stagger.grid, .gs-product-item { list-style: none !important; }
.gs-product-item { margin-left: 0 !important; padding-left: 0 !important; }
.gs-product-item::marker { content: "" !important; }

/* Product archive grid must span the full container width so the 1fr columns
   resolve to equal widths (was shrinking to content width → left blank gap). */
ul.products.gs-stagger.grid,
.gs-container > .gs-stagger.grid { width: 100% !important; }
.gs-product-item { min-width: 0 !important; }

/* Unpriced product → bold yellow TBA (all product cards + single product) */
.gs-tba { color: #EAB308 !important; font-weight: 700 !important; letter-spacing: .02em; }
