/* =====================================================================
   SweeperParts.au – Single Source Stylesheet
   Architecture: ITCSS-ish layering + BEM-inspired naming
   Layers: 1.Settings 2.Tools 3.Generic 4.Base 5.Objects 6.Components 7.Utilities
   ===================================================================== */

/* 1. SETTINGS --------------------------------------------------------- */
:root {
  /* Typography */
  --font-stack: system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;
  --fs-xs: .7rem;
  --fs-sm: .8rem;
  --fs-base: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.6rem,4vw,2.4rem);

  /* Layout */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --max-width: 1200px;
  --gutter: 1.5rem;

  /* Animation */
  --ease: cubic-bezier(.4,0,.2,1);
  --transition: .28s var(--ease);
}

/* Light Mode (Default) */
:root, :root[data-theme="light"] {
  color-scheme: light;
  
  /* Core colors */
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f3f5;
  --color-surface-elevated: #ffffff;
  --color-border: #dee2e6;
  --color-border-light: #e9ecef;
  
  /* Accent colors */
  --color-accent: #ff8c37;
  --color-accent-alt: #ff9d4f;
  --color-accent-dark: #e67929;
  --color-accent-light: #ffb77a;
  
  /* Text colors */
  --color-text: #212529;
  --color-text-muted: #6c757d;
  --color-text-light: #868e96;
  
  /* Semantic colors */
  --color-danger: #dc3545;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 2px 8px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.1), 0 8px 32px rgba(0,0,0,.08);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Dark Mode */
:root[data-theme="dark"] {
  color-scheme: dark;
  
  /* Core colors */
  --color-bg: #0f1115;
  --color-surface: #1a1d23;
  --color-surface-alt: #1f242b;
  --color-surface-elevated: #242930;
  --color-border: #2d333b;
  --color-border-light: #262c34;
  
  /* Accent colors (slightly adjusted for dark bg) */
  --color-accent: #ff8c37;
  --color-accent-alt: #ffb347;
  --color-accent-dark: #e67929;
  --color-accent-light: #ffa563;
  
  /* Text colors */
  --color-text: #e9ecef;
  --color-text-muted: #9aa4b1;
  --color-text-light: #727d8c;
  
  /* Semantic colors (adjusted for dark bg) */
  --color-danger: #ff5761;
  --color-success: #3ddc84;
  --color-warning: #ffca3a;
  --color-info: #4fc3f7;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
  --shadow: 0 2px 8px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.4), 0 8px 32px rgba(0,0,0,.3);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
  --gradient-card: linear-gradient(145deg, #1f242b 0%, #1a1d23 100%);
}

/* Hero Glow Animation - @property for animatable gradient positions */
@property --hero-glow-x {
  syntax: '<percentage>';
  initial-value: 80%;
  inherits: false;
}
@property --hero-glow-y {
  syntax: '<percentage>';
  initial-value: 20%;
  inherits: false;
}
@property --hero-glow-size {
  syntax: '<percentage>';
  initial-value: 70%;
  inherits: false;
}

@keyframes hero-glow-flow {
  0%   { --hero-glow-x: 85%; --hero-glow-y: 15%; --hero-glow-size: 65%; }
  25%  { --hero-glow-x: 20%; --hero-glow-y: 10%; --hero-glow-size: 75%; }
  50%  { --hero-glow-x: 10%; --hero-glow-y: 80%; --hero-glow-size: 60%; }
  75%  { --hero-glow-x: 75%; --hero-glow-y: 70%; --hero-glow-size: 70%; }
  100% { --hero-glow-x: 85%; --hero-glow-y: 15%; --hero-glow-size: 65%; }
}

/* 2. TOOLS (Mixins via utility classes only) ------------------------- */
/* (Not using preprocessors - utilities provided later) */

/* 3. GENERIC (Reset / Normalize) ------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin:0; padding:0; }
ul, ol { list-style:none; }
img, svg { max-width:100%; height:auto; display:block; }
table { border-collapse: collapse; width:100%; }

/* 4. BASE ------------------------------------------------------------- */
body { 
  font-family: var(--font-stack); 
  background: var(--color-bg); 
  color: var(--color-text); 
  line-height:1.6; 
  font-size: var(--fs-base); 
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden; /* Prevent horizontal scrollbar from 100vw full-bleed sections */
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.cart-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

a { 
  color: var(--color-accent); 
  text-decoration:none; 
  transition: color var(--transition); 
}
a:hover { 
  color: var(--color-accent-dark);
  text-decoration:none; 
}
strong { font-weight:600; }
code { 
  font-family: var(--font-mono); 
  font-size: .85em; 
  padding:.15em .35em; 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  border-radius: var(--radius-sm); 
}

main { 
  padding:2rem var(--gutter) 4rem; 
  max-width: var(--max-width); 
  margin: 0 auto;
  padding-left: calc(var(--gutter) + 60px);
  padding-right: calc(var(--gutter) + 60px);
}

/* Allow full-width content when using category-full-width or product-listing-section-full */
main:has(.category-full-width),
main:has(.product-listing-section-full),
main:has(.staff-review-page),
main:has(.home-section--alt) {
  max-width: 100%;
  padding-left: calc(var(--gutter) + 60px);
  padding-right: calc(var(--gutter) + 60px);
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem 1rem 3rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1rem 0.75rem 2.5rem;
  }
}

/* Typography helpers */
h1, .h1 { font-size: var(--fs-xl); font-weight:700; letter-spacing:-.5px; line-height:1.2; }
h2, .h2 { font-size:1.5rem; font-weight:700; letter-spacing:-.3px; margin-top:2.5rem; margin-bottom:1rem; }

@media (max-width: 768px) {
  h1, .h1 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }
  
  h2, .h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  h2, .h2 {
    font-size: 1.2rem;
    margin-top: 1.75rem;
  }
}
h3, .h3 { font-size:1.15rem; font-weight:600; letter-spacing:-.2px; margin-top:2rem; margin-bottom:.5rem; }
h4, .h4 { font-size:.95rem; font-weight:600; letter-spacing:-.1px; margin-top:1.5rem; margin-bottom:.5rem; }
h5, .h5 { font-size:.8rem; text-transform:uppercase; letter-spacing:1px; font-weight:700; margin-top:1.25rem; margin-bottom:.4rem; }
p { margin:0 0 1rem; line-height: 1.6; }
small, .text-sm { font-size: var(--fs-sm); }
.muted { color: var(--color-text-muted); }

/* 5. OBJECTS (Layout primitives) ------------------------------------- */
.container { max-width: var(--max-width); margin:0 auto; padding:0 var(--gutter); }
.grid { display:grid; gap:1.5rem; }
.grid-auto { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.flex { display:flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.stack > * + * { margin-top: var(--stack-gap,1rem); }
.cluster { display:flex; flex-wrap:wrap; gap:var(--cluster-gap, .75rem); align-items:center; }
.sidebar-layout { display:grid; grid-template-columns: 260px 1fr; gap:2rem; align-items:start; }
@media (max-width: 880px) { .sidebar-layout { grid-template-columns:1fr; } }

/* 6. COMPONENTS ------------------------------------------------------- */
/* HEADER / NAV */
header.site-header { 
  background: var(--color-surface); 
  border-bottom:1px solid var(--color-border); 
  position:sticky; 
  top:0; 
  z-index:50;
  box-shadow: var(--shadow-sm);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

@media (max-width: 768px) {
  header.site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .top-bar {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* Top Bar with Centered Logo */
.top-bar { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 1rem var(--gutter); 
  position: relative;
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: calc(var(--gutter) + 60px);
  padding-right: calc(var(--gutter) + 60px);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  display: block;
  height: 100px;
  width: auto;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.header-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Left Side Navigation */
.left-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  transform: translateX(calc(-100% + 60px));
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease);
  z-index: 100;
  overflow: hidden;
}

.left-nav:hover {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .left-nav {
    width: 100%;
    max-width: 85vw;
    transform: translateX(-100%);
  }
  
  .left-nav.is-open {
    transform: translateX(0);
  }
  
  .left-nav:hover {
    transform: translateX(-100%);
  }
  
  .left-nav.is-open:hover {
    transform: translateX(0);
  }
}

.left-nav__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.left-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  cursor: pointer;
}

.left-nav__brand:hover {
  background: var(--color-accent-dark);
}

.left-nav__brand .icon {
  width: 24px;
  height: 24px;
}

.left-nav__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.left-nav__content::-webkit-scrollbar {
  width: 6px;
}

.left-nav__content::-webkit-scrollbar-track {
  background: transparent;
}

.left-nav__content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.left-nav__content::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

.left-nav__section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.left-nav__section:last-child {
  border-bottom: none;
}

.nav-heading {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
  padding: 0 0.5rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-list a:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent);
  padding-left: 1rem;
}

/* Search in Left Nav */
.search-section {
  padding: 0 0 0.5rem 0;
}

.search-section form {
  position: relative;
}

.search-section input {
  width: 100%;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.6rem 0.85rem;
  font: inherit;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.search-section input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface-elevated);
  box-shadow: 0 0 0 3px rgba(255, 140, 55, 0.1);
}

/* Account Links in Left Nav */
.left-nav__account {
  margin-top: auto;
}

.account-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.account-links a,
.account-links button {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.account-links a:hover,
.account-links button:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.inline-form {
  display: contents;
}

.link-btn {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.link-btn:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Theme Toggle in Left Nav */
.account-links .theme-toggle {
  width: 100%;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--color-text);
  font-size: 1.2rem;
}

.account-links .theme-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: scale(1.02);
}

/* Mobile Nav Toggle */
.nav-toggle { 
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  background: var(--color-surface-alt); 
  border: 1px solid var(--color-border); 
  width: 44px; 
  height: 40px; 
  padding: 0; 
  border-radius: var(--radius); 
  cursor: pointer; 
  align-items: center; 
  justify-content: center; 
  gap: 5px; 
  flex-direction: column; 
  transition: var(--transition); 
  z-index: 101;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}

.nav-toggle:hover {
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow);
}

.nav-toggle .bar { 
  width: 20px; 
  height: 2px; 
  background: var(--color-text); 
  border-radius: 2px; 
  transition: var(--transition); 
}

.nav-toggle[aria-expanded="true"] { 
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-toggle[aria-expanded="true"] .bar {
  background: white;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Content Adjustment */
main {
  margin: 0 auto;
  transition: margin-left 0.3s var(--ease);
}

/* Overlay for mobile */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 99;
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .left-nav {
    width: 260px;
  }
  
  .header-logo {
    height: 70px;
  }
  
  .top-bar {
    padding: 0.875rem var(--gutter);
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 50px;
  }
  
  .top-bar {
    padding: 0.75rem 1rem;
  }
  
  .nav-toggle {
    width: 40px;
    height: 36px;
    left: 1rem;
  }
}

/* HERO - Enhanced Design */
.hero { 
  padding:5rem 2rem 4rem; 
  background: var(--gradient-hero);
  border:1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  position:relative; 
  overflow:hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }
}
.hero:before { 
  content:""; 
  position:absolute; 
  inset:0; 
  background: radial-gradient(circle at var(--hero-glow-x) var(--hero-glow-y), var(--color-accent-light), transparent var(--hero-glow-size));
  opacity:.38; 
  animation: hero-glow-flow 12s ease-in-out infinite;
  transition: --hero-glow-x 0.3s ease, --hero-glow-y 0.3s ease;
}
.hero.is-mouse-tracking:before {
  animation-play-state: paused;
}
[data-theme="dark"] .hero:before {
  opacity: .38;
}
.hero-inner { 
  max-width:820px; 
  margin:0 auto; 
  position:relative; 
  text-align: center;
  width: 100%;
}
.hero h1 { 
  margin:0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}
.hero p { 
  margin:0 0 1.75rem; 
  color: var(--color-text-muted); 
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
}
.cta { 
  display:inline-block; 
  background: var(--gradient-accent);
  color:#fff; 
  font-weight:700; 
  padding:.9rem 1.75rem; 
  font-size: var(--fs-md); 
  border-radius: var(--radius); 
  letter-spacing:-.2px; 
  box-shadow: var(--shadow);
  transition: all var(--transition); 
  border: none;
}

@media (max-width: 768px) {
  .cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
  }
}
.cta:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration:none;
  color: #fff;
}
.cta:active {
  transform: translateY(0);
}

/* Make Hub Hero Section */
.make-hero {
  padding: 3rem 2rem 2rem;
  background: var(--gradient-hero);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  text-align: center;
}

.make-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.make-hero p {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-truck-image {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-truck-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .make-hero {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .hero-truck-image img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .make-hero {
    padding: 2rem 1rem 1rem;
  }
}

/* =====================================================================
   MODEL TOGGLE BUTTONS – Filter by model on make pages
   ===================================================================== */
.model-toggle-section {
  max-width: 100%;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.model-toggle-heading {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.model-toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.model-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.model-toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 140, 55, 0.15);
}

.model-toggle-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 140, 55, 0.3);
}

.model-toggle-btn.active:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.model-toggle-btn.active::after {
  content: "\2713";
  font-size: 0.75rem;
  margin-left: 0.15rem;
}

.model-toggle-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--font-stack);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.model-toggle-clear:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
  background: rgba(220, 53, 69, 0.05);
}

.no-model-filter-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
}

@media (max-width: 640px) {
  .model-toggle-buttons {
    gap: 0.4rem;
  }

  .model-toggle-btn {
    padding: 0.45rem 0.9rem;
    font-size: var(--fs-xs);
  }
}

/* =====================================================================
   HOME PAGE SECTIONS – Visual separation for each block
   ===================================================================== */
.home-section {
  padding: 3.5rem var(--gutter);
  border-bottom: 1px solid var(--color-border-light);
}

.home-section:last-child {
  border-bottom: none;
}

/* Alternate backgrounds for visual rhythm – 100vw full-bleed technique */
.home-section--alt {
  background: var(--color-surface-alt);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding-left: calc(var(--gutter) + 60px);
  padding-right: calc(var(--gutter) + 60px);
  max-width: none;
  box-sizing: border-box;
}

/* Section headings shared style */
.home-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.home-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-pill);
  margin: 0.75rem auto 0;
}

@media (max-width: 768px) {
  .home-section {
    padding: 2.5rem var(--gutter);
  }
  .home-section--alt {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .home-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .home-section {
    padding: 2rem var(--gutter);
  }
  .home-section--alt {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }
}

/* SHOP BY MAKE CARDS - Enhanced Design */
.make-cards {
  max-width: 100%;
}
.make-cards h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .make-cards h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .make-cards h2 {
    font-size: 1.35rem;
  }
}

/* SERVICE KITS & SECTIONS */
.service-kits-carousel,
.most-ordered {
  max-width: 100%;
}

.service-kits-carousel h2,
.most-ordered h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* MOST ORDERED VERTICAL CAROUSEL */
.most-ordered-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  width: 100%;
}

.vertical-carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.carousel-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.vertical-carousel {
  width: 100%;
  max-width: 280px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.vertical-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s ease-in-out;
}

.vertical-carousel .product-card {
  flex-shrink: 0;
  width: 100%;
}

.vertical-carousel-controls {
  display: flex;
  justify-content: center;
  width: 100%;
}

.carousel-btn {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1200px) {
  .most-ordered-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .most-ordered-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .carousel-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .most-ordered-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .vertical-carousel {
    max-width: 100%;
  }
}

/* PRODUCT CARDS */
.product-row, .related-grid { 
  display:grid; 
  gap:1.5rem; 
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); 
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
}

@media (max-width: 768px) {
  .product-row, .cards, .related-grid {
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .cards {
    /* padding handled by parent */
  }
}

@media (max-width: 640px) {
  .product-row, .cards, .related-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .product-row, .cards, .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.product-grid { display:grid; gap:1.5rem; grid-template-columns:repeat(6, 1fr); }

/* Column slider styling */
.column-slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1rem;
}

.slider-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

#column-count {
  display: inline-block;
  min-width: 1.2rem;
  text-align: center;
  font-weight: 600;
  color: #d32f2f;
}

.column-slider {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #f0f0f0, #d32f2f);
  outline: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  cursor: pointer;
}

.column-slider:hover {
  opacity: 1;
}

.column-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d32f2f;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.column-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.column-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d32f2f;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.column-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
  .column-slider-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .column-slider {
    width: 100px;
  }
}

/* Hide column slider on mobile where grid is locked to 1 column */
@media (max-width: 639px) {
  .column-slider-container {
    display: none;
  }
}

@media (min-width: 1400px) { .product-grid { grid-template-columns:repeat(6, 1fr); } }
@media (min-width: 1200px) and (max-width: 1399px) { .product-grid { grid-template-columns:repeat(5, 1fr); } }
@media (min-width: 900px) and (max-width: 1199px) { .product-grid { grid-template-columns:repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .product-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 639px) { 
  .product-grid { 
    grid-template-columns:1fr !important; 
    gap: 1.25rem;
  }
}

.product-card, .make-card { 
  background: var(--gradient-card);
  padding:1rem; 
  border:1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow); 
  position:relative; 
  overflow:hidden; 
  display:flex; 
  flex-direction:column; 
  min-height:340px;
  transition: all .3s var(--ease);
}

.make-card {
  min-height: auto;
}

@media (max-width: 640px) {
  .product-card {
    min-height: 320px;
  }
  
  .make-card {
    min-height: auto;
  }
  
  /* Optimize product cards for single column mobile layout */
  .product-card h3 {
    font-size: 1rem;
  }
  
  .thumb {
    aspect-ratio: 16/9; /* Wider aspect for full-width mobile */
  }
  
  .product-card-actions {
    gap: 0.75rem;
  }
}
.product-card:hover, .make-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.make-card-media { 
  aspect-ratio: 4 / 3; 
  border:1px solid var(--color-border); 
  background: var(--color-surface-alt);
  border-radius: var(--radius); 
  margin:0 0 .75rem; 
  overflow:hidden; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
}
.make-card-media img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
  transition: transform .6s var(--ease); 
}
.make-card:hover .make-card-media img { 
  transform:scale(1.08); 
}

.product-card:before, .make-card:before { 
  content:""; 
  position:absolute; 
  inset:0; 
  background: radial-gradient(ellipse at 120% 0%, var(--color-accent-light), transparent 70%);
  opacity:0; 
  transition:opacity .4s; 
  pointer-events: none;
}
.product-card:hover:before, .make-card:hover:before { 
  opacity:0.1; 
}
[data-theme="dark"] .product-card:hover:before,
[data-theme="dark"] .make-card:hover:before {
  opacity: 0.15;
}

.product-card h3, .make-card h3 { 
  margin:0 0 .4rem; 
  font-size:.95rem; 
  font-weight:600; 
  line-height:1.3; 
  color: var(--color-text);
}
.product-card p, .make-card p { 
  margin:.2rem 0 0; 
  font-size:.75rem; 
  color: var(--color-text-muted); 
  line-height: 1.5;
}
.product-card .sku { 
  font-size: var(--fs-xs); 
  color: var(--color-text-muted); 
  margin-bottom:.4rem; 
}

.thumb { 
  background: var(--color-surface-alt);
  aspect-ratio:4/3; 
  border:1px solid var(--color-border); 
  border-radius: var(--radius); 
  margin-bottom:.65rem; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-size: var(--fs-xs); 
  color: var(--color-text-muted); 
}

.badges { 
  display:flex; 
  gap:.4rem; 
  flex-wrap:wrap; 
  margin:0 0 .5rem; 
}
.badge { 
  display:inline-block; 
  padding:.3rem .55rem; 
  font-size: var(--fs-xs); 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  border-radius: var(--radius-pill); 
  letter-spacing:.3px; 
  font-weight: 500;
}
.badge.quick-ship { 
  background: var(--color-success); 
  border-color: var(--color-success); 
  color:#fff; 
  font-weight:600; 
}

.price { 
  display:inline-block; 
  background: transparent;
  color: var(--color-accent); 
  font-size: var(--fs-xl); 
  font-weight: 800; 
  padding: 0; 
  border-radius: 0; 
  letter-spacing: -0.5px; 
  box-shadow: none;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.price-value {
  font-size: 0.5em;
  display: inline-block;
  color: #000;
}

[data-theme="dark"] .price-value {
  color: #fff;
}

.price-obscured {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.price-cta {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  margin-top: 0.35rem;
  opacity: 0.95;
}

.price-cta a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.price-cta a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Product Card Form and Actions */
.product-card-form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: var(--color-accent);
  color: white;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-input {
  width: 45px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
  background: var(--color-surface-elevated);
}

/* Add to Cart Button */
.btn-add-to-cart {
  flex: 1;
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-add-to-cart:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-add-to-cart:active {
  transform: translateY(0);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: auto;
}

/* Legacy add button (deprecated, keeping for backwards compatibility) */
button.add-small { 
  margin-top:auto; 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  color: var(--color-text); 
  font:inherit; 
  font-size: var(--fs-xs); 
  padding:.5rem .8rem; 
  border-radius: var(--radius); 
  cursor:pointer; 
  transition: all var(--transition);
  font-weight: 500;
}
button.add-small:hover { 
  background: var(--color-accent); 
  color:#fff; 
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* PDP (Product Detail) */
.pdp header { margin-bottom:1.5rem; }
.pdp .sku { font-size: var(--fs-xs); color: var(--color-text-muted); }
.oem-refs { display:flex; gap:.45rem; flex-wrap:wrap; margin-top:.7rem; }
.xref { 
  font-size: var(--fs-xs); 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  padding:.3rem .5rem; 
  border-radius: var(--radius-pill); 
  letter-spacing:.3px; 
}
.xref.placeholder { opacity:.5; }

@media (max-width: 640px) {
  .pdp header {
    margin-bottom: 1.25rem;
  }
  
  .pdp h1 {
    font-size: 1.5rem;
  }
  
  .oem-refs {
    gap: 0.35rem;
  }
  
  .xref {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
  }
  
  .pdp section {
    margin-top: 2rem;
  }
  
  .pdp section h2 {
    font-size: 1.25rem;
    margin-top: 0;
  }
}
.pdp-main { display:grid; gap:2rem; grid-template-columns: minmax(0,1fr) 360px; align-items:start; }
@media (max-width: 980px) { .pdp-main { grid-template-columns:1fr; } }
.gallery { 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  min-height:400px; 
  aspect-ratio: 4 / 3;
  display:flex; 
  align-items:center; 
  justify-content:center; 
  color: var(--color-text-muted); 
}

@media (max-width: 980px) {
  .gallery {
    min-height: 300px;
  }
}
.purchase-box { 
  background: var(--color-surface); 
  border:1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  padding:1.5rem; 
  display:flex; 
  flex-direction:column; 
  gap:1rem; 
  position:sticky; 
  top:90px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 980px) {
  .purchase-box {
    position: relative;
    top: 0;
    max-height: none;
  }
}
.purchase-box form.add-to-cart { display:flex; gap:.6rem; }
.purchase-box input[type=number] { 
  width:70px; 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  color: var(--color-text); 
  padding:.55rem .5rem; 
  border-radius: var(--radius); 
  font:inherit; 
}
.purchase-box button, .buy-now { 
  background: var(--gradient-accent);
  border:none;
  color:#fff; 
  padding:.7rem 1rem; 
  font:inherit; 
  font-size: var(--fs-sm); 
  font-weight:700; 
  border-radius: var(--radius); 
  cursor:pointer; 
  transition: all var(--transition); 
  letter-spacing:-.1px; 
}
.purchase-box button:hover, .buy-now:hover { 
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .purchase-box form.add-to-cart {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .purchase-box input[type=number] {
    width: 100%;
    text-align: center;
    padding: 0.65rem 0.75rem;
  }
  
  .purchase-box button,
  .buy-now {
    width: 100%;
    padding: 0.8rem 1.25rem;
  }
}
.buy-now { 
  background: var(--gradient-accent);
}
.usp-bar { margin-top:.3rem; }
.usp-bar-list { display:flex; flex-direction:column; gap:.45rem; padding:0; margin:0; }
.usp-bar-list li { 
  font-size: var(--fs-xs); 
  color: var(--color-text-muted); 
  display:flex; 
  gap:.5rem; 
  align-items:center; 
}

/* Tables & Data */
table th, table td { 
  text-align:left; 
  padding:.6rem .7rem; 
  font-size: var(--fs-sm); 
  border-bottom:1px solid var(--color-border); 
}
table th { 
  font-weight:600; 
  background: var(--color-surface-alt); 
}

@media (max-width: 768px) {
  .tech-specs,
  .cross-ref {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 100%;
    display: block;
    overflow-x: auto;
  }
  
  table th,
  table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* Breadcrumb */
.breadcrumb { 
  font-size: var(--fs-xs); 
  margin-bottom:1rem; 
  color: var(--color-text-muted); 
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .breadcrumb {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }
}

/* Category layout */
.layout-with-filters { 
  display:grid; 
  gap:2rem; 
  grid-template-columns: 250px 1fr; 
  align-items:start; 
}
@media (max-width: 900px) { .layout-with-filters { grid-template-columns:1fr; } }
.filters { 
  background: var(--color-surface); 
  border:1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  padding:1.25rem; 
  min-height:160px; 
  font-size: var(--fs-sm); 
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

/* Full-width category layout */
.category-full-width {
  width: 100%;
  max-width: 100%;
}

.category-full-width .breadcrumb {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-grid-section {
  width: 100%;
}

.product-grid-section h1 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.category-full-width + .seo-text {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-grid h1 { margin-top:0; }
.seo-text { margin-top:3rem; max-width:780px; }

/* Horizontal Product Filtering System */
.product-filters-horizontal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 70px;
  z-index: 10;
}

.filter-form-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.filter-group-horizontal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label-horizontal {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.filter-select-horizontal {
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 150px;
}

.filter-select-horizontal:hover {
  border-color: var(--color-accent-light);
}

.filter-select-horizontal:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 55, 0.1);
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown-trigger {
  position: relative;
}

.filter-dropdown-btn {
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.filter-dropdown-btn:hover {
  border-color: var(--color-accent-light);
  background: var(--color-surface);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.filter-dropdown-trigger:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.filter-dropdown-trigger:focus-within .filter-dropdown-menu {
  display: block;
}

.filter-checkbox-horizontal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.filter-checkbox-horizontal:hover {
  background: var(--color-surface-alt);
}

.filter-checkbox-horizontal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.filter-checkbox-horizontal span {
  color: var(--color-text);
  font-weight: 500;
}

.results-count-horizontal {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.btn-clear-filters-horizontal {
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-clear-filters-horizontal:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface);
}

.btn-all-products-horizontal {
  padding: 0.5rem 1rem;
  background: var(--gradient-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-all-products-horizontal:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.product-listing-section-full {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.product-grid-wrapper-full {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .product-filters-horizontal {
    position: static;
    padding: 1rem;
    margin: 1rem auto;
  }
  
  .filter-form-horizontal {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .filter-bar-left {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .filter-bar-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
  }
  
  .filter-group-horizontal {
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-select-horizontal,
  .filter-dropdown-btn {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .filter-label-horizontal {
    min-width: fit-content;
  }
  
  .filter-dropdown-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    max-width: calc(100vw - 2rem);
    max-height: 60vh;
  }
  
  .filter-checkbox-horizontal {
    padding: 0.625rem 0.75rem;
  }
  
  .filter-checkbox-horizontal input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
  
  .results-count-horizontal,
  .btn-clear-filters-horizontal,
  .btn-all-products-horizontal {
    text-align: center;
    justify-content: center;
    padding: 0.625rem 1rem;
  }
}

/* Old vertical filter (hide) */
.product-listing-section {
  display: none;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  font-size: var(--fs-sm);
}

.pagination a {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 600;
}

.pagination a:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.pagination span {
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .pagination {
    gap: 0.5rem;
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .pagination a {
    padding: 0.4rem 0.75rem;
  }
}

/* Trust strip */
.trust-strip { 
  margin:3rem auto 2rem; 
  max-width: var(--max-width);
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  border-radius: var(--radius); 
  padding:1rem 1.25rem; 
}
.trust-strip ul { 
  display:flex; 
  flex-wrap:wrap; 
  gap:1.25rem; 
  margin:0; 
  padding:0; 
  font-size: var(--fs-xs); 
  letter-spacing:.3px; 
  color: var(--color-text-muted); 
}

@media (max-width: 640px) {
  .trust-strip {
    margin: 2rem 0 1.5rem;
    padding: 0.875rem 1rem;
  }
  
  .trust-strip ul {
    gap: 0.875rem;
    justify-content: center;
  }
  
  .trust-strip ul li {
    flex: 0 0 calc(50% - 0.4375rem);
    text-align: center;
  }
}

/* Case studies / Why choose us */
.case-studies {
  max-width: none; /* Must be none (not 100%) so negative-margin full-bleed on .home-section--alt works */
  text-align: center;
}

.case-studies h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.case-studies .studies { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.study { 
  background: var(--color-surface); 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  padding: 1.5rem; 
  font-size: var(--fs-sm); 
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.study:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.study-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.study-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.study p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .case-studies .studies {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .case-studies .studies {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .study {
    padding: 1.25rem;
  }
}

/* Email capture / Catalogue download */
.email-capture {
  max-width: 100%;
  text-align: center;
}

.email-capture h2 {
  margin-bottom: 1.5rem;
}

.email-capture p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: var(--fs-base);
}

.btn-download-catalogue {
  display: inline-block;
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  padding: 1rem 2rem;
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-download-catalogue:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fff;
}

.btn-download-catalogue:active {
  transform: translateY(0);
}

.email-capture form { 
  display:flex; 
  flex-wrap:wrap; 
  gap:.7rem; 
  margin-top:.85rem; 
}
.email-capture input[type=email] { 
  background: var(--color-surface-alt); 
  border:1px solid var(--color-border); 
  color: var(--color-text); 
  padding:.65rem .75rem; 
  font:inherit; 
  border-radius: var(--radius); 
  min-width:260px; 
  flex: 1;
  transition: all var(--transition);
}
.email-capture input[type=email]:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 55, 0.1);
}
.email-capture button { 
  background: var(--gradient-accent);
  border:none;
  color:#fff; 
  padding:.7rem 1.15rem; 
  font:inherit; 
  font-size: var(--fs-sm); 
  font-weight:700; 
  border-radius: var(--radius); 
  cursor:pointer; 
  transition: all var(--transition); 
}
.email-capture button:hover { 
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .email-capture form {
    flex-direction: column;
  }
  
  .email-capture input[type=email] {
    min-width: 100%;
    width: 100%;
  }
  
  .email-capture button {
    width: 100%;
    padding: 0.8rem 1.25rem;
  }
}

/* Validation states */
.field { position:relative; }
.field-error { 
  margin-top:.4rem; 
  font-size: var(--fs-xs); 
  color: var(--color-danger); 
  line-height:1.4; 
}
.is-invalid input, .is-invalid select, .is-invalid textarea { 
  border-color: var(--color-danger) !important; 
  background: var(--color-surface-alt);
}
.is-valid input, .is-valid select, .is-valid textarea { 
  border-color: var(--color-success) !important; 
}

/* Toast notifications */
.toast-stack { 
  position:fixed; 
  top:12px; 
  right:12px; 
  display:flex; 
  flex-direction:column; 
  gap:.7rem; 
  width:min(340px, calc(100vw - 24px)); 
  z-index:200; 
}

@media (max-width: 640px) {
  .toast-stack {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
  }
}
.toast { 
  background: var(--color-surface-elevated);
  border:1px solid var(--color-border); 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-lg);
  padding:.85rem 1rem; 
  font-size: var(--fs-sm); 
  display:flex; 
  align-items:center; 
  gap:.85rem; 
  animation: fade-in .4s var(--ease); 
  position:relative; 
  overflow:hidden; 
}
.toast:before { 
  content:""; 
  position:absolute; 
  inset:0; 
  background: linear-gradient(120deg, var(--color-accent-light), transparent 70%);
  opacity:.1; 
  pointer-events:none; 
}
.toast--success { border-color: var(--color-success); }
.toast--success:before { background: linear-gradient(120deg, var(--color-success), transparent 70%); }
.toast--error { border-color: var(--color-danger); }
.toast--error:before { background: linear-gradient(120deg, var(--color-danger), transparent 70%); }
.toast__close { 
  margin-left:auto; 
  background:transparent; 
  border:none; 
  color: var(--color-text-muted); 
  font-size:1.2rem; 
  line-height:1; 
  cursor:pointer; 
  padding:.3rem; 
  border-radius: var(--radius-sm); 
  transition: color var(--transition);
}
.toast__close:hover { color: var(--color-text); }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-out { to { opacity:0; transform: translateY(-4px); } }

/* Lists inside footer / columns */
footer.site-footer { 
  margin-top:4rem; 
  background: var(--color-surface); 
  border-top:1px solid var(--color-border); 
  padding:2.5rem var(--gutter) 3rem; 
  font-size: var(--fs-xs); 
  color: var(--color-text-muted); 
}
.footer-columns { 
  display:grid; 
  gap:2rem; 
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); 
  max-width: var(--max-width); 
  margin:0 auto 1.5rem; 
}

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  footer.site-footer {
    padding: 2rem 1rem 2.5rem;
    font-size: 0.8rem;
  }
}
.footer-columns h5 { margin:0 0 .7rem; }
.footer-columns ul li + li { margin-top:.45rem; }
.footer-columns a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-columns a:hover {
  color: var(--color-accent);
}
.badges li + li { margin-top:.35rem; }
.legal { 
  text-align:center; 
  font-size: var(--fs-xs); 
  letter-spacing:.75px; 
  opacity:.8; 
}

/* Forms generic */
input, button, select, textarea { font-family:inherit; }
button { border:none; }
button:focus-visible, input:focus-visible { 
  outline:2px solid var(--color-accent); 
  outline-offset:2px; 
}

/* Utilities */
.u-hide { display:none !important; }
.u-visually-hidden { 
  position:absolute !important; 
  width:1px; 
  height:1px; 
  padding:0; 
  margin:-1px; 
  overflow:hidden; 
  clip:rect(0 0 0 0); 
  white-space:nowrap; 
  border:0; 
}
.visually-hidden { 
  position:absolute !important; 
  width:1px; 
  height:1px; 
  padding:0; 
  margin:-1px; 
  overflow:hidden; 
  clip:rect(0 0 0 0); 
  white-space:nowrap; 
  border:0; 
}
.u-text-center { text-align:center !important; }
.u-mt-0 { margin-top:0 !important; }
.u-mb-0 { margin-bottom:0 !important; }
.u-mt-lg { margin-top:3rem !important; }
.u-gap-sm { --stack-gap:.5rem; }

/* State modifiers */
.is-loading { opacity:.6; pointer-events:none; }
.is-error { border-color: var(--color-danger) !important; }
.is-success { border-color: var(--color-success) !important; }

/* Animations */
@keyframes fade-in { 
  from { opacity:0; transform:translateY(4px);} 
  to { opacity:1; transform:translateY(0);} 
}
.anim-fade-in { animation: fade-in .5s var(--ease); }

/* Smooth transitions for theme switching */
* {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease);
}
/* Exclude specific properties that shouldn't transition */
a, button, input, select, textarea,
.hero-inner, .make-card-media img,
.product-card, .make-card {
  transition-property: all;
}

/* Scrollbars (webkit) */
::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { 
  background: var(--color-surface-alt);
  border:2px solid var(--color-bg);
  border-radius: var(--radius-pill); 
}
::-webkit-scrollbar-thumb:hover { 
  background: var(--color-border);
}

/* Print adjustments */
@media print {
  header.site-header, .primary-nav, .purchase-box button, .buy-now, .email-capture, .trust-strip, .theme-toggle { 
    display:none !important; 
  }
  body { background:#fff; color:#000; }
  a { color:#000; }
}

/* Mobile touch target improvements */
@media (max-width: 768px) {
  button,
  .btn,
  a.btn,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  
  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .account-links a,
  .account-links button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Inline form for logout */
.inline-form {
  display: inline;
}
.link-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color var(--transition);
}
.link-btn:hover {
  color: var(--color-accent-dark);
}

/* Login/Signup links styling */
.login-link, .signup-link, .cart-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--transition);
}

/* Popular Categories Section */
.popular-categories {
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.popular-categories h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.popular-categories .section-intro {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 2rem;
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cat-cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
  }
  
  /* Product card responsive adjustments */
  .product-card-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .qty-selector {
    width: 100%;
    justify-content: space-between;
  }
  
  .qty-input {
    flex: 1;
    width: auto;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }
  
  .btn-add-to-cart {
    width: 100%;
  }
}

.cat-card {
  display: block;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-accent);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--color-accent-light), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cat-card:hover::before {
  opacity: 0.1;
}

[data-theme="dark"] .cat-card:hover::before {
  opacity: 0.15;
}

.cat-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.2px;
}

.cat-arrow {
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 700;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.cat-card:hover .cat-arrow {
  transform: translateX(4px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  padding: 2rem;
}

/* 7. UTILITY CLASSES --------------------------------------------------------- */

/* Hidden SEO Link */
.hidden-seo-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer Styles */
.footer-credit {
  margin-top: 0.5rem;
}

.footer-credit-link {
  color: var(--color-accent);
  font-weight: 600;
}

/* Error Pages */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.error-title {
  margin-bottom: 1rem;
}

.error-description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.error-quick-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.error-quick-links h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.error-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* 500 Error Page */
.error-support-email {
  color: var(--color-accent);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0;
  width: 100%;
}

.contact-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
}

.contact-box h2 {
  margin-top: 0;
}

.contact-box-description {
  margin: 0.4rem 0 0.6rem;
  font-size: var(--fs-sm);
}

.contact-section {
  margin-top: 2rem;
  width: 100%;
}

/* About Page */
.about-page-subtitle {
  max-width: 640px;
  margin: 0 auto;
}

.about-list {
  --stack-gap: 0.6rem;
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}

/* =====================================================================
   CART PAGE LAYOUT
   ===================================================================== */

.cart-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cart-page h1 {
  margin-bottom: 2rem;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 980px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr 140px 100px 80px;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-accent-light);
}

@media (max-width: 900px) {
  .cart-item {
    grid-template-columns: 90px 1fr 120px 90px 70px;
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .item-quantity,
  .item-total,
  .item-remove {
    grid-column: 2;
    margin-top: 0.5rem;
  }
  
  .item-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .item-total,
  .item-remove {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 0.75rem;
    padding: 0.875rem;
  }
  
  .item-details h3 {
    font-size: 0.9rem;
  }
}

.item-image .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.item-details h3 {
  font-size: var(--fs-md);
  margin: 0;
  line-height: 1.3;
}

.item-details h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.item-details h3 a:hover {
  color: var(--color-accent);
}

.item-details .sku {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.item-price {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
}

.item-quantity .quantity-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.item-quantity input[type="number"] {
  width: 70px;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: center;
}

.btn-update {
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-update:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.item-total {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text);
}

.btn-remove {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-danger);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-remove:hover {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

/* Cart Summary */
.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.cart-summary h2 {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
}

@media (max-width: 980px) {
  .cart-summary {
    position: relative;
    top: 0;
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .cart-summary {
    padding: 1.25rem;
  }
  
  .cart-summary h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
  
  .summary-row {
    font-size: 0.9rem;
    padding: 0.65rem 0;
  }
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: var(--fs-base);
  border-bottom: 1px solid var(--color-border-light);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-total {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--color-border);
  font-size: var(--fs-md);
}

.checkout-options {
  margin-top: 1.5rem;
}

.checkout-options h3 {
  font-size: var(--fs-base);
  margin: 0 0 1rem 0;
}

.checkout-form {
  margin-bottom: 0.75rem;
}

.btn-checkout {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  margin-bottom: 0.75rem;
}

.btn-stripe {
  background: var(--gradient-accent);
  color: white;
}

.btn-stripe:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-on-account {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-on-account:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.on-account-form {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.on-account-form.is-visible {
  display: block;
}

.on-account-form h4 {
  margin: 0 0 1rem 0;
  font-size: var(--fs-md);
}

.on-account-form .form-group {
  margin-bottom: 1rem;
}

.on-account-form label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.on-account-form input,
.on-account-form select,
.on-account-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-sm);
  transition: all var(--transition);
}

.on-account-form input:focus,
.on-account-form select:focus,
.on-account-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 55, 0.1);
}

.on-account-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .on-account-form .form-row {
    grid-template-columns: 1fr;
  }
}

.btn-submit-on-account {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all var(--transition);
}

.btn-submit-on-account:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.checkout-message {
  padding: 1.25rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
}

/* Page Containers */
.page-narrow {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.page-extra-narrow {
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

.static-page {
  margin: 0 auto;
  width: 100%;
}

/* =====================================================================
   RIGHT SIDE CART - FULL HEIGHT
   ===================================================================== */

.side-cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 380px;
  transform: translateX(calc(100% - 60px));
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease);
  z-index: 1000;
  overflow: hidden;
}

.side-cart:hover {
  transform: translateX(0);
}

.side-cart__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Cart Brand/Header */
.side-cart__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.side-cart__brand:hover {
  background: var(--color-accent-dark);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-wrapper .icon {
  width: 24px;
  height: 24px;
}

.count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: white;
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  line-height: 1.2;
}

.brand-text {
  font-size: var(--fs-md);
}

/* Thumbnails Preview */
.side-cart__thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  flex-shrink: 0;
}

.side-cart__thumbnails::-webkit-scrollbar {
  height: 4px;
}

.side-cart__thumbnails::-webkit-scrollbar-track {
  background: var(--color-border-light);
}

.side-cart__thumbnails::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-sm);
}

.thumb-preview {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
}

.thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-border-light);
}

/* Cart Menu/Items */
.side-cart__menu {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.side-cart__menu::-webkit-scrollbar {
  width: 6px;
}

.side-cart__menu::-webkit-scrollbar-track {
  background: var(--color-surface-alt);
}

.side-cart__menu::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-sm);
}

.side-cart__menu::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Cart Header */
.cart-header {
  display: grid;
  grid-template-columns: 1fr 50px 70px;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

/* Cart Items */
.cart-item-wrapper {
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item {
  display: grid;
  grid-template-columns: 40px 1fr 50px 70px 32px;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  align-items: center;
  transition: background var(--transition);
  position: relative;
}

.cart-item:hover {
  background: var(--color-surface-alt);
}

.cart-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-border-light);
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-item__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__sku {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.cart-item__qty {
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}

.qty-display {
  display: inline-block;
  background: var(--color-surface-alt);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 30px;
}

.cart-item__price {
  text-align: right;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}

.cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.cart-item__remove:hover {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
  transform: scale(1.05);
}

.cart-item__remove:active {
  transform: scale(0.95);
}

.cart-item__remove svg {
  width: 16px;
  height: 16px;
}

/* Empty Cart State */
.side-cart__empty {
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
}

.side-cart__empty p {
  font-size: var(--fs-base);
  margin: 0;
}

/* Cart Footer */
.side-cart__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  flex-shrink: 0;
}

.side-cart__footer .btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  display: inline-block;
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .side-cart {
    width: 100%;
    max-width: 340px;
    transform: translateX(calc(100% - 55px));
  }
  
  .side-cart:hover {
    transform: translateX(0);
  }
  
  .side-cart.is-open {
    transform: translateX(0);
  }
  
  .side-cart__brand {
    padding: 0.875rem 1.125rem;
  }
  
  .side-cart__thumbnails {
    padding: 0.75rem 1.125rem;
  }
  
  .cart-header {
    padding: 0.5rem 1.125rem;
  }
  
  .cart-item {
    padding: 0.75rem 1.125rem;
    grid-template-columns: 38px 1fr 48px 68px 30px;
    gap: 0.5rem;
  }
  
  .cart-item__icon {
    width: 38px;
    height: 38px;
  }
  
  .side-cart__footer {
    padding: 0.875rem 1.125rem;
  }
}

@media (max-width: 480px) {
  .side-cart {
    max-width: 90vw;
    transform: translateX(100%);
  }
  
  .side-cart:hover {
    transform: translateX(100%);
  }
  
  .side-cart.is-open {
    transform: translateX(0);
  }
  
  .cart-item__name {
    font-size: 0.8rem;
  }
  
  .cart-item__qty,
  .cart-item__price {
    font-size: 0.8rem;
  }
  
  .cart-item {
    grid-template-columns: 36px 1fr 42px 62px;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
  }
  
  .cart-item__icon {
    width: 36px;
    height: 36px;
  }
}

/* Hide side cart on print */
@media print {
  .side-cart {
    display: none;
  }
}

/* =====================================================================
   AUTHENTICATION FORMS (Login, Signup, Password Reset)
   ===================================================================== */

.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
  background: var(--color-bg);
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  margin: 2rem auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.auth-subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.auth-form {
  margin: 0;
}

/* Form Rows and Groups */
.form-row {
  margin-bottom: 1.5rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Labels */
.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: block;
}

.required {
  color: var(--color-error);
  font-weight: 700;
}

/* Form Inputs */
.form-input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 55, 0.1);
}

.form-input::placeholder,
.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* Error States */
.form-group.has-error .form-input,
.form-group.has-error input {
  border-color: var(--color-error);
}

.form-group.has-error .form-input:focus,
.form-group.has-error input:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
  color: var(--color-error);
  font-size: var(--fs-sm);
  margin-top: 0.5rem;
  display: block;
}

.field-help {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-top: 0.5rem;
  display: block;
  line-height: 1.4;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.form-check-label {
  font-size: var(--fs-sm);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

/* Links */
.form-link {
  font-size: var(--fs-sm);
}

.text-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
}

.btn-large {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: var(--fs-md);
  font-weight: 600;
}

/* Auth Notice */
.auth-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.notice-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Auth Footer */
.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.auth-footer p {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin: 0;
}

.auth-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.auth-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* =====================================================================
   TRADE ACCOUNT PAGE
   ===================================================================== */

.trade-account-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}

.trade-benefits {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trade-benefits h2 {
  margin-top: 0;
}

.trade-form-section {
  margin: 2.5rem 0;
}

.trade-form {
  margin-top: 1.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trade-form .form-row,
.trade-form .form-row-two-col {
  margin-bottom: 1.5rem;
}

.trade-form input[type="text"],
.trade-form input[type="email"],
.trade-form input[type="tel"],
.trade-form input[type="number"],
.trade-form textarea {
  width: 100%;
}

.required {
  color: var(--color-danger);
}

@media (max-width: 768px) {
  .trade-account-page {
    padding: 1.5rem 1rem 3rem;
  }
  
  .trade-benefits,
  .trade-form {
    padding: 1.5rem;
  }
}

/* Alert Messages */
.messages-container {
  max-width: var(--max-width);
  margin: 1.5rem auto;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: var(--fs-base);
  line-height: 1.5;
  animation: slideIn 0.3s var(--ease);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert:last-child {
  margin-bottom: 0;
}

.alert strong {
  font-weight: 600;
}

.alert-error,
.alert-danger {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-success {
  background: #efe;
  color: #3a3;
  border: 1px solid #cfc;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #e7f3ff;
  color: #004085;
  border: 1px solid #b8daff;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .form-row-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-row-split {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .form-link {
    width: 100%;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-card {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
  }
}

/* =====================================================================
   TERMS AND CONDITIONS PAGE
   ===================================================================== */

.terms-page {
  padding: 2rem var(--gutter);
  animation: fadeIn 0.4s var(--ease);
}

.terms-page header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.terms-page h1 {
  margin-bottom: 0.5rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
}

.terms-last-updated {
  font-size: var(--fs-sm);
  margin-top: 0.5rem;
}

.terms-intro {
  background: var(--color-surface-alt);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-accent);
}

.terms-intro p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
}

.terms-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 2rem;
}

.terms-section:last-of-type {
  margin-bottom: 1.5rem;
}

.terms-section h2 {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.terms-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-section strong {
  font-weight: 600;
  color: var(--color-text);
}

.terms-section a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color var(--transition);
}

.terms-section a:hover {
  color: var(--color-accent-dark);
}

.terms-subsection {
  margin-bottom: 1.5rem;
}

.terms-subsection:last-child {
  margin-bottom: 0;
}

.terms-subsection h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.terms-list {
  margin: 1rem 0 1rem 1.5rem;
  padding-left: 0.5rem;
  list-style: disc;
}

.terms-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--color-text);
}

.terms-list li:last-child {
  margin-bottom: 0;
}

.terms-contact .contact-details {
  background: var(--color-surface-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.terms-contact .contact-details p {
  margin-bottom: 0.5rem;
}

.terms-contact .contact-details p:last-child {
  margin-bottom: 0;
}

.terms-acknowledgment {
  background: var(--color-surface-alt);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 2.5rem;
  text-align: center;
  border: 1px dashed var(--color-border);
}

.terms-acknowledgment p {
  margin: 0;
  font-style: italic;
}

/* Responsive terms page */
@media (max-width: 768px) {
  .terms-page {
    padding: 1.5rem 1rem;
  }
  
  .terms-page header {
    margin-bottom: 2rem;
  }
  
  .terms-page h1 {
    font-size: 1.75rem;
  }
  
  .terms-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .terms-intro {
    padding: 1rem;
  }
  
  .terms-list {
    margin-left: 1rem;
  }
}
/* =====================================================================
   TESTIMONIALS PAGE
   ===================================================================== */

.testimonials-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}

.testimonials-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--color-text);
}

.testimonials-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Statistics Grid */
.testimonials-stats {
  margin: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Testimonials List */
.testimonials-list {
  margin: 4rem 0;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.testimonial-card.featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  position: relative;
  overflow: hidden;
}

.testimonial-card.featured::before {
  content: "Featured Review";
  position: absolute;
  top: 1rem;
  right: -2.5rem;
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 3rem;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.star {
  font-size: 1.25rem;
  color: var(--color-border);
}

.star.filled {
  color: #ffa500;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.customer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.customer-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.testimonial-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: 0;
  font-style: normal;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
  gap: 1rem;
  flex-wrap: wrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-success);
  font-weight: 500;
}

.testimonial-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Trust Section */
.trust-section {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
}

.trust-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.trust-content {
  flex: 1;
}

.trust-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.trust-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* CTA Section */
.testimonials-cta {
  margin: 4rem 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-card h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-card .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.cta-card .btn-primary {
  background: white;
  color: var(--color-accent);
  border-color: white;
}

.cta-card .btn-primary:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent-dark);
}

.cta-card .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Review Prompt */
.review-prompt {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}

.review-prompt h2 {
  margin-bottom: 1rem;
}

.review-prompt p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: white;
}

/* Responsive Testimonials */
@media (max-width: 768px) {
  .testimonials-page {
    padding: 2rem 1rem;
  }

  .testimonials-header {
    margin-bottom: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-card.featured::before {
    font-size: 0.65rem;
    padding: 0.2rem 2.5rem;
  }

  .trust-section {
    padding: 2rem 1rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-card .btn {
    width: 100%;
  }
}

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

  .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-prompt {
    padding: 2rem 1rem;
  }
}

/* =====================================================================
   DASHBOARD STYLES
   ===================================================================== */

/* Dashboard Container */
.dashboard-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.dashboard-header__content {
  flex: 1;
}

.dashboard-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.dashboard-subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 600px;
}

.dashboard-header__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.dashboard-header__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Dashboard Alert */
.dashboard-alert {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  border: 1px solid;
  background: var(--color-surface);
}

.dashboard-alert--warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: var(--color-warning);
  color: #856404;
}

:root[data-theme="dark"] .dashboard-alert--warning {
  background: rgba(255, 202, 58, 0.15);
  color: var(--color-warning);
}

.dashboard-alert__icon {
  flex-shrink: 0;
  color: var(--color-warning);
}

.dashboard-alert__content h4 {
  margin: 0 0 0.5rem 0;
  font-size: var(--fs-md);
  font-weight: 600;
}

.dashboard-alert__content p {
  margin: 0;
  font-size: var(--fs-sm);
  opacity: 0.9;
}

/* Dashboard Stats Grid */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Stat Card */
.stat-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.stat-card:hover .stat-card__icon {
  transform: scale(1.1);
}

.stat-card__icon--orders {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-card__icon--spent {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.stat-card__icon--pending {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.stat-card__icon--cart {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.stat-card__content {
  flex: 1;
  min-width: 0;
}

.stat-card__value {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Dashboard Section */
.dashboard-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.dashboard-section:hover {
  box-shadow: var(--shadow);
}

.dashboard-section--full {
  grid-column: 1 / -1;
}

.dashboard-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.dashboard-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.dashboard-section__link {
  color: var(--color-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-section__link:hover {
  color: var(--color-accent-dark);
  gap: 0.5rem;
}

.dashboard-section__content {
  padding: 1.5rem;
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item {
  padding: 1.25rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.order-item:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.order-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.order-item__info {
  flex: 1;
  min-width: 0;
}

.order-item__number {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-item__number a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

.order-item__number a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.order-item__date {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.order-item__status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge--pending {
  background: rgba(255, 193, 7, 0.15);
  color: #856404;
  border: 1px solid var(--color-warning);
}

.status-badge--processing {
  background: rgba(23, 162, 184, 0.15);
  color: #0c5460;
  border: 1px solid var(--color-info);
}

.status-badge--shipped {
  background: rgba(40, 167, 69, 0.15);
  color: #155724;
  border: 1px solid var(--color-success);
}

.status-badge--delivered {
  background: rgba(40, 167, 69, 0.25);
  color: #155724;
  border: 1px solid var(--color-success);
}

.status-badge--cancelled {
  background: rgba(220, 53, 69, 0.15);
  color: #721c24;
  border: 1px solid var(--color-danger);
}

:root[data-theme="dark"] .status-badge--pending {
  background: rgba(255, 202, 58, 0.2);
  color: var(--color-warning);
}

:root[data-theme="dark"] .status-badge--processing {
  background: rgba(79, 195, 247, 0.2);
  color: var(--color-info);
}

:root[data-theme="dark"] .status-badge--shipped,
:root[data-theme="dark"] .status-badge--delivered {
  background: rgba(61, 220, 132, 0.2);
  color: var(--color-success);
}

:root[data-theme="dark"] .status-badge--cancelled {
  background: rgba(255, 87, 97, 0.2);
  color: var(--color-danger);
}

.order-item__details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
}

.order-item__items {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.order-item__total {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state__icon {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
}

.empty-state__text {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin: 0 0 1.5rem 0;
}

/* Quick Actions Grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.quick-action-card:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quick-action-card:hover::before {
  transform: scaleX(1);
}

.quick-action-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.quick-action-card:hover .quick-action-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.quick-action-card__content {
  flex: 1;
}

.quick-action-card__title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--color-text);
}

.quick-action-card__description {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Account Information Grid */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.account-info-item {
  padding: 1.25rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.account-info-item:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.account-info-item__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.account-info-item__value {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(40, 167, 69, 0.15);
  color: var(--color-success);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

:root[data-theme="dark"] .verified-badge {
  background: rgba(61, 220, 132, 0.2);
}

.unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(220, 53, 69, 0.15);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

:root[data-theme="dark"] .unverified-badge {
  background: rgba(255, 87, 97, 0.2);
}

/* Responsive Dashboard Styles */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 1.5rem var(--gutter);
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .dashboard-header__actions {
    width: 100%;
  }

  .dashboard-header__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .stat-card__icon {
    width: 48px;
    height: 48px;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-section__content {
    padding: 1rem;
  }

  .order-item {
    padding: 1rem;
  }

  .order-item__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .stat-card__value {
    font-size: 1.75rem;
  }

  .dashboard-alert {
    flex-direction: column;
    padding: 1rem;
  }

  .empty-state {
    padding: 2rem 1rem;
  }
}

/* =====================================================================
   SWEEPER HIRE PAGES
   ===================================================================== */

/* Hire List Page */
.hire-hero {
  background: var(--gradient-accent);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hire-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.hire-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.type-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.type-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.type-card h2 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.type-card p {
  color: var(--color-text-muted);
}

.type-card ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.type-card li {
  padding: 0.5rem 0;
  color: var(--color-text);
}

.hire-search {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 1rem 2rem;
}

.hire-search h2 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.search-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 0;
}

.search-form .form-group button {
  padding: 0.75rem 2rem;
  width: 100%;
  font-size: var(--fs-base);
  font-weight: 600;
  margin-top: auto;
}

.hire-trucks {
  padding: 0 1rem 3rem;
}

.hire-trucks h2 {
  margin-bottom: 2rem;
  color: var(--color-text);
}

.trucks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.truck-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.truck-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.truck-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.truck-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truck-placeholder svg {
  opacity: 0.3;
  stroke: var(--color-text-muted);
}

.truck-info {
  padding: 1.5rem;
}

.truck-info h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.truck-details {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.truck-location {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.truck-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.rate {
  text-align: center;
}

.rate-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.rate-price {
  display: block;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-accent);
}

.truck-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 1rem 0;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
}

.general-inquiry-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius);
}

.general-inquiry-cta p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.no-results-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-large-cta {
  display: inline-block;
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  min-width: 280px;
}

.help-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.how-it-works {
  padding: 3rem 1rem;
  background: var(--color-surface-alt);
  margin-top: 3rem;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.step p {
  color: var(--color-text-muted);
}

/* Hire Detail Page */
.truck-detail {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  padding: 0 1rem 3rem;
}

.truck-main {
  min-width: 0;
}

.truck-image-large {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  background: var(--color-surface-alt);
}

.truck-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truck-header h1 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.truck-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.location {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.truck-description {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.truck-description h2 {
  color: var(--color-text);
}

.truck-description p {
  color: var(--color-text-muted);
}

.pricing-info {
  margin: 2rem 0;
}

.pricing-info h2 {
  color: var(--color-text);
}

.rates-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.rate-box {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.rate-box:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.rate-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.rate-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-text);
}

.rate-description {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.rate-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-accent);
}

.rate-amount span {
  font-size: 1rem;
  font-weight: normal;
  color: var(--color-text-muted);
}

.truck-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.booking-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-text);
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text);
}

.radio-group label:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-alt);
}

.radio-group input[type="radio"] {
  margin-right: 0.75rem;
  width: auto;
}

.form-section-header {
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.form-section-header h3 {
  font-size: 1.1rem;
  color: var(--color-text);
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(61, 220, 132, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.alert-error {
  background: rgba(255, 87, 97, 0.1);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.form-actions {
  margin-top: 2rem;
}

.btn-large {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Hire Inquiry Page */
.inquiry-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 3rem;
}

.inquiry-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.inquiry-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--color-text);
}

.inquiry-form-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.form-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="date"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Responsive Design for Hire Pages */
@media (max-width: 968px) {
  .truck-detail {
    grid-template-columns: 1fr;
  }
  
  .truck-sidebar {
    position: static;
  }
  
  .rates-display {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hire-hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .trucks-grid {
    grid-template-columns: 1fr;
  }
  
  .inquiry-header h1 {
    font-size: 2rem;
  }
  
  .inquiry-subtitle {
    font-size: 1rem;
  }
  
  .inquiry-form-container {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .info-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* =====================================================================
   STAFF MARKETING PAGE
   ===================================================================== */
.marketing-page {
  max-width: 100%;
  padding: 2rem;
  background: var(--color-bg);
  min-height: 100vh;
}

.marketing-header {
  margin-bottom: 2rem;
}

.marketing-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.marketing-header p {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
}

/* Controls row */
.marketing-controls {
  display: grid;
  grid-template-columns: 1fr 200px 200px auto;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-group select,
.control-group input {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--fs-base);
  transition: border-color var(--transition);
}

.control-group select:focus,
.control-group input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn-generate {
  padding: 0.6rem 1.5rem;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  height: fit-content;
  align-self: end;
}

.btn-generate:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Platform tabs */
.platform-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}

.platform-tab {
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-tab:hover {
  color: var(--color-text);
}

.platform-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.platform-tab .tab-icon {
  font-size: 1.1em;
}

/* Product preview card */
.product-preview {
  display: none;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.product-preview.visible {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.product-preview__image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.product-preview__image-placeholder {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.product-preview__info {
  flex: 1;
}

.product-preview__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.product-preview__meta {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.product-preview__url {
  font-size: var(--fs-xs);
  color: var(--color-accent);
  word-break: break-all;
}

/* Snippets grid */
.snippets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.snippet-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.snippet-card:hover {
  box-shadow: var(--shadow);
}

.snippet-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.snippet-card__title {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-text);
}

.snippet-card__platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-linkedin { background: #0a66c2; color: #fff; }
.badge-facebook { background: #1877f2; color: #fff; }
.badge-google { background: #ea4335; color: #fff; }

.snippet-card__body {
  padding: 1.25rem;
}

.snippet-card__content {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 350px;
  overflow-y: auto;
  font-family: var(--font-stack);
}

.snippet-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.snippet-card__char-count {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.char-ok { color: var(--color-success); }
.char-warn { color: var(--color-warning); }
.char-over { color: var(--color-danger); }

.snippet-card__actions {
  display: flex;
  gap: 0.5rem;
}

.btn-copy, .btn-edit-snippet {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-copy:hover, .btn-edit-snippet:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-copy.copied {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

/* Empty state */
.snippets-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.snippets-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.snippets-empty__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.snippets-empty__text {
  font-size: var(--fs-base);
  max-width: 400px;
  margin: 0 auto;
}

/* Loading spinner */
.generating-spinner {
  display: none;
  text-align: center;
  padding: 3rem;
}

.generating-spinner.visible {
  display: block;
}

.generating-spinner__text {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.spinner-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: 0 4px;
  animation: spinnerBounce 1.2s infinite ease-in-out;
}
.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes spinnerBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Editable textarea overlay */
.snippet-edit-area {
  display: none;
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.6;
  font-family: var(--font-stack);
  resize: vertical;
}

.snippet-edit-area.active {
  display: block;
}

.snippet-card__content.editing {
  display: none;
}

/* Marketing snippet error message */
.snippet-error {
  color: var(--color-danger);
  padding: 2rem;
}

/* Responsive – marketing */
@media (max-width: 768px) {
  .marketing-controls {
    grid-template-columns: 1fr;
  }
  .snippets-container {
    grid-template-columns: 1fr;
  }
  .product-preview.visible {
    flex-direction: column;
    text-align: center;
  }
  .platform-tabs {
    overflow-x: auto;
  }
}

/* =====================================================================
   ANNOUNCEMENT BANNER
   ===================================================================== */
.announcement-banner {
  background: linear-gradient(135deg, #ff8c37 0%, #ff6b00 100%);
  color: #fff;
  padding: 0.75rem 1rem;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.announcement-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.announcement-banner__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.announcement-banner__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  font-weight: 500;
}

.announcement-banner__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.announcement-banner__link:hover {
  opacity: 0.85;
}

.announcement-banner__close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  line-height: 1;
}

.announcement-banner__close:hover {
  background: rgba(255,255,255,0.35);
}

/* Dark mode adjustment */
:root[data-theme="dark"] .announcement-banner {
  background: linear-gradient(135deg, #e67929 0%, #cc5f00 100%);
  box-shadow: 0 2px 8px rgba(204, 95, 0, 0.4);
}

@media (max-width: 600px) {
  .announcement-banner__inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .announcement-banner__text {
    font-size: var(--fs-xs);
  }
  .announcement-banner__icon {
    display: none;
  }
}
