/* ===== FONTS ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v18-latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-v18-latin-ext-700.woff2') format('woff2');
}

/* ===== VARIABLES ===== */
:root {
  /* AlphaPoint brand colors */
  --color-primary: #0a2463;
  --color-primary-light: #0e2f7a;
  --color-primary-dark: #061a4a;
  --color-accent: #e30613;
  --color-accent-dark: #c00510;
  --color-accent-light: #ff1a28;
  /* Neutral palette */
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-text: #292929;
  --color-text-body: #727272;
  --color-text-muted: #8c8f92;
  --color-border: #e7e7e7;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  /* Typography — matching transport theme */
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --font-body: 'PT Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Layout */
  --radius: 4px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.15);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.15);
  --container: 1200px;
  --header-h: 72px;
  --topbar-h: 36px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety: prevent horizontal scroll on narrow viewports */
}
/* Mobile tap highlight: subtle brand tint instead of default gray flash */
a, button, [role="button"], .btn, .nav-link, .service-card, .product-card-link,
.subcat-chip, .checkbox-item, .pagination-btn {
  -webkit-tap-highlight-color: rgba(227, 6, 19, 0.15);
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}
h1 { font-size: 31px; }
h2 { font-size: 48px; }
h3 { font-size: 42px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }

/* ===== UTILITIES ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
@media (min-width: 1400px) { .container { width: 1370px; } }
.section { padding: 80px 0; }
.latest-section { padding-top: 0; }

/* ===== PAGE HEADER (centered title + breadcrumbs) ===== */
.page-header {
  text-align: center;
  padding: 60px 0 30px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.page-header-title {
  font-size: 48px; font-weight: 700; color: var(--color-text);
  margin: 0 0 14px; line-height: 1.1; letter-spacing: -0.01em;
}
.page-header .breadcrumb {
  padding: 0; justify-content: center; display: flex; gap: 4px; flex-wrap: wrap;
  font-size: 14px; color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .page-header { padding: 40px 0 20px; }
  .page-header-title { font-size: 32px; }
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
  display: inline-block;
  font-family: var(--font-heading); font-size: 19px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-accent); margin-bottom: 8px;
}
.section-title {
  font-size: 36px; font-weight: 700; color: var(--color-text);
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 15px; color: var(--color-text-body); max-width: 600px; margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 40px; }

/* ===== BUTTONS (transport theme style) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 17px; border-radius: var(--radius); font-family: var(--font-heading);
  font-weight: 500; font-size: 14px; text-transform: uppercase;
  transition: background-color 0.2s ease; white-space: nowrap;
  border: 0; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline { border: 2px solid var(--color-text); background: transparent; color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-outline-light { border: 2px solid #fff; background: transparent; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-accent); }
.btn-cta-white { background: #fff; color: var(--color-accent); }
.btn-cta-white:hover { background: var(--color-primary); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: none; color: var(--color-text);
  font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  text-transform: uppercase; padding: 0;
}
.btn-link:hover { color: var(--color-accent); }

/* ===== TOP BAR (dark bg for contrast) ===== */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  min-height: var(--topbar-h);
  padding: 4px 0;
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: calc(var(--topbar-h) - 8px);
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); }
.top-bar-item a { color: rgba(255,255,255,0.75); }
.top-bar-item a:hover { color: #fff; }
.top-bar-item svg { opacity: 0.7; }
.top-bar-social { color: rgba(255,255,255,0.75); display: flex; align-items: center; }
.top-bar-social:hover { color: #fff; }

/* ===== HEADER (single component: white bg + color logo, sticky via CSS) ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  height: var(--header-h);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo:hover { color: inherit; }
.logo-media { position: relative; display: block; height: 40px; }
.logo-img { height: 40px; width: auto; display: block; transition: opacity 0.2s ease; }
.logo-img-white { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--color-text);
}
.logo-sub {
  font-family: var(--font-heading); font-size: 10px;
  opacity: 0.6; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text);
}
/* Navigation */
.main-nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 8px 14px; font-family: var(--font-heading); font-weight: 500;
  font-size: 17px; color: var(--color-text); transition: color 0.2s;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.nav-link:hover, .nav-link.active { color: var(--color-accent); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--color-surface); color: var(--color-text);
  border-radius: 0; box-shadow: var(--shadow-lg);
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 8px 20px; font-family: var(--font-heading);
  font-size: 14px; font-weight: 500; color: var(--color-text); transition: color 0.15s;
}
.dropdown-menu a:hover { color: var(--color-accent); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; color: var(--color-accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,26,46,0.55) 0%, rgba(10,26,46,0.35) 50%, rgba(10,26,46,0.7) 100%),
    image-set(
      url('/img/hero-bg-mobile.webp') 1x,
      url('/img/hero-bg.webp') 2x
    ) center/cover no-repeat;
  /* Fallback for browsers that don't support image-set() */
  background-image:
    linear-gradient(135deg, rgba(10,26,46,0.55) 0%, rgba(10,26,46,0.35) 50%, rgba(10,26,46,0.7) 100%),
    url('/img/hero-bg.webp');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  /* Use dynamic viewport units when supported (prevents iOS URL-bar jump) */
  min-height: calc(100dvh - var(--topbar-h) - var(--header-h));
  padding: 40px 0 70px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
/* On mobile, use the smaller hero asset unconditionally for speed */
@media (max-width: 768px) {
  .hero {
    background-image:
      linear-gradient(135deg, rgba(10,26,46,0.55) 0%, rgba(10,26,46,0.35) 50%, rgba(10,26,46,0.7) 100%),
      url('/img/hero-bg-mobile.webp');
  }
}
.hero > .container { width: 100%; }
.hero-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero-features { position: relative; z-index: 2; margin-bottom: 32px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.9); text-decoration: none;
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  padding: 10px 16px;
  transition: color 0.2s, transform 0.2s;
  z-index: 3;
}
.hero-scroll:hover { color: var(--color-accent); transform: translateX(-50%) translateY(2px); }
.hero-scroll svg { animation: heroScrollBounce 2s infinite ease-in-out; }
@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(5px); opacity: 1; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(227,6,19,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0,0,0,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hero-badge {
  display: inline-block;
  background: rgba(227,6,19,0.2); border: 1px solid rgba(227,6,19,0.4);
  color: #fff;
  padding: 8px 24px; border-radius: 0;
  font-family: var(--font-heading); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 110px); font-weight: 700; margin-bottom: 18px;
  line-height: 1.05; color: #fff;
  letter-spacing: -0.02em;
}
.hero-subtitle { font-size: clamp(22px, 2.8vw, 34px); opacity: 0.95; margin-bottom: 14px; font-weight: 500; font-family: var(--font-heading); }
.hero-desc {
  font-size: clamp(16px, 1.4vw, 20px); opacity: 0.9; margin-bottom: 36px;
  max-width: 720px; margin-left: auto; margin-right: auto;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FEATURE CARDS (inside hero, glass over photo) ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: rgba(15, 23, 35, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 5px solid var(--color-accent);
  padding: 28px 24px 22px;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: #fff;
  transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 35, 0.7);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 14px;
  transition: background 0.3s;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card:hover .feature-icon { background: var(--color-primary); }
.feature-card h3 {
  font-size: 18px; font-weight: 600; color: #fff;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em;
}
.feature-card p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.55; margin: 0; }

/* ===== SERVICES / CATEGORIES (transport: portfolio items with overlay) ===== */
.services-section { background: var(--color-bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px;
}
.service-card {
  position: relative; overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-xl); color: inherit; }
.service-card-image {
  aspect-ratio: 4/3; overflow: hidden; background: #f0f2f5;
}
.service-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: rgba(255,255,255,0.3);
}
.service-card-content {
  position: relative;
  padding: 20px 30px;
  border-top: 5px solid var(--color-accent);
  display: flex; align-items: center; justify-content: space-between;
  transition: transform 0.4s ease;
}
.service-card-content h3 {
  font-size: 20px; font-weight: 500; color: var(--color-text);
  margin: 0;
}
.service-card-link {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-heading); font-size: 14px; font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  transition: gap 0.2s;
}
.service-card:hover .service-card-link { gap: 8px; }

/* ===== WHY US ===== */
.why-section { background: var(--color-surface); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.why-text h2 {
  font-size: 36px; font-weight: 700; color: var(--color-text);
  margin-bottom: 20px;
}
.why-text p { color: var(--color-text-body); font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
.why-steps { display: flex; flex-direction: column; gap: 20px; }
.why-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 25px 30px;
  border: 10px solid #f7f7f7;
  background: var(--color-surface);
  transition: border-color 0.3s;
}
.why-step:hover { border-color: var(--color-accent); }
.step-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
}
.step-content h3 { font-size: 20px; font-weight: 500; color: var(--color-text); margin-bottom: 4px; }
.step-content p { font-size: 15px; color: var(--color-text-body); line-height: 1.6; }

/* ===== STATS (transport: counter with border, dark text) ===== */
.stats-section {
  background: var(--color-primary);
  padding: 80px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  text-align: center;
}
.stat-item {
  padding: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
}
.stat-number {
  display: block; font-family: var(--font-heading);
  font-size: 48px; font-weight: 700; line-height: 1.2;
  margin-bottom: 4px;
}
.stat-label {
  font-family: var(--font-heading); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ===== CATEGORIES GRID (legacy pages) ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.category-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 30px; text-align: center; box-shadow: var(--shadow);
  transition: all 0.3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card img { max-width: 120px; margin: 0 auto 16px; }
.category-card h3 { color: var(--color-text); margin-bottom: 8px; font-size: 20px; }
.category-card p { color: var(--color-text-body); font-size: 14px; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-link { display: block; color: inherit; }
.product-card-link:hover { color: inherit; }
.badge-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--color-accent); color: #fff;
  padding: 4px 12px;
  font-family: var(--font-heading); font-size: 12px; font-weight: 500;
  text-transform: uppercase;
}
.product-card-image {
  aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.no-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-card-info { padding: 16px 20px 20px; border-top: 5px solid var(--color-accent); }
.product-card-title {
  font-family: var(--font-heading); font-size: 16px; font-weight: 500;
  margin-bottom: 4px; line-height: 1.4; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-brand { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.product-card-price { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-text); }
.price-old { text-decoration: line-through; color: var(--color-text-muted); font-weight: 400; font-size: 14px; margin-right: 8px; }
.price-current.sale { color: var(--color-accent); }

/* ===== ABOUT PREVIEW ===== */
.about-preview { background: var(--color-surface); }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 36px; font-weight: 700; color: var(--color-text); margin-bottom: 16px; }
.about-text p { color: var(--color-text-body); line-height: 1.8; margin-bottom: 24px; }
.about-brands-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
.brand-pill {
  background: var(--color-surface);
  border: 10px solid #f7f7f7;
  padding: 25px 15px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px;
  transition: border-color 0.3s;
}
.brand-pill:hover { border-color: var(--color-accent); }
.brand-pill img { max-height: 50px; width: auto; max-width: 100%; object-fit: contain; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--color-accent);
  padding: 50px 0;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-banner-text h2 {
  font-size: 36px; font-weight: 700; color: #fff;
  margin-bottom: 4px;
}
.cta-banner-text p { color: rgba(255,255,255,0.85); font-size: 15px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 16px 0; color: var(--color-text-muted); font-size: 14px; }
.breadcrumb a { color: var(--color-text); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ===== FILTERS ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px;
  padding: 20px; background: var(--color-surface);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.filter-group label { font-family: var(--font-heading); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.filter-group select {
  padding: 8px 12px; border: 1px solid var(--color-border);
  border-radius: var(--radius); background: #fff;
}
.subcategories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcat-chip {
  padding: 8px 20px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  font-family: var(--font-heading); font-size: 14px; font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
}
.subcat-chip:hover { background: var(--color-primary-light); color: #fff; border-color: var(--color-primary-light); }
.subcat-chip.active {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(10, 36, 99, 0.25);
}
.subcat-chip.active:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* ===== FILTER BAR (default auto-fit; 6-col when a range slider is present) ===== */
.filter-bar--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: start;
}
.filter-bar--grid:has(.filter-group--range) {
  grid-template-columns: repeat(6, 1fr);
}
.filter-group--range { grid-column: span 2; min-width: 0; }
.filter-group--sort { gap: 8px; }
.filter-group--actions { justify-self: end; align-self: end; }

/* Tablet: 6-col grid is too cramped — collapse to 2 cols, range spans both */
@media (max-width: 1024px) {
  .filter-bar--grid:has(.filter-group--range) {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-group--range { grid-column: span 2; }
  .filter-group--sort { grid-column: span 2; }
}

.filter-hint {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--color-text); margin-left: 6px;
}

/* Checkbox list */
.checkbox-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 180px; overflow-y: auto;
  padding: 4px 2px;
}
.checkbox-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--color-text-body);
  cursor: pointer; user-select: none;
  padding: 4px 6px; border-radius: var(--radius);
  transition: background-color 0.15s;
}
.checkbox-item:hover { background: var(--color-bg); }
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--color-primary);
  cursor: pointer; flex-shrink: 0;
}

/* Dual-handle range slider.
   Two overlaid <input type="range"> elements share one visual track. The input
   stack has pointer-events:none except on the thumbs, so clicks near either
   thumb pick up the nearer handle. Thumb sizes/offsets are computed from the
   variables below so the math stays consistent across browsers. */
.range-slider {
  --rs-track-h: 4px;
  --rs-thumb: 27px;
  position: relative;
  height: calc(var(--rs-thumb) + 4px);
  padding: 0;
  margin-top: 8px;
}
/* Shared visible track behind both inputs, so the transparent second track
   never leaves a gap under the thumb. */
.range-slider::before {
  content: "";
  position: absolute; left: 0; right: 0;
  top: calc(50% - var(--rs-track-h) / 2);
  height: var(--rs-track-h);
  background: var(--color-border);
  border-radius: 2px;
  z-index: 1;
}
.range-slider input[type="range"] {
  position: absolute; top: 0; left: 0; width: 100%;
  height: 100%;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  pointer-events: none;      /* track area ignores pointer; thumbs re-enable */
  margin: 0;
  z-index: 3;                /* above the shared track */
}
/* Both inputs must have transparent native tracks — we draw our own in ::before. */
.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: var(--rs-track-h); background: transparent; border: none;
}
.range-slider input[type="range"]::-moz-range-track {
  height: var(--rs-track-h); background: transparent; border: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: var(--rs-thumb); height: var(--rs-thumb);
  background: var(--color-primary);
  border: 2px solid #fff; border-radius: 50%;
  cursor: grab; pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  margin-top: calc((var(--rs-track-h) - var(--rs-thumb)) / 2);
  position: relative; z-index: 4;
}
.range-slider input[type="range"]::-moz-range-thumb {
  width: var(--rs-thumb); height: var(--rs-thumb);
  background: var(--color-primary);
  border: 2px solid #fff; border-radius: 50%;
  cursor: grab; pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  position: relative; z-index: 4;
}
.range-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.range-slider input[type="range"]:active::-moz-range-thumb     { cursor: grabbing; }
/* Min handle sits slightly above max so overlapping thumbs stay grabbable. */
.range-slider .range-min { z-index: 4; }
.range-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-body); font-size: 13px; color: var(--color-text-body);
}

.btn-reset-filters {
  padding: 8px 16px;
  background: transparent; color: var(--color-primary);
  border: 1px solid var(--color-primary); border-radius: var(--radius);
  font-family: var(--font-heading); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.btn-reset-filters:hover { background: var(--color-primary); color: #fff; }

/* Alpine x-cloak: hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 30px; flex-wrap: wrap;
}
.pagination-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-heading); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--color-primary-light); color: #fff; border-color: var(--color-primary-light);
}
.pagination-btn.active {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(10, 36, 99, 0.25);
}
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-nav { font-size: 20px; line-height: 1; }

/* ===== PRODUCT PAGE ===== */
.product-page { padding: 50px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.gallery-main { aspect-ratio: 1; background: #f3f4f6; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button {
  width: 72px; height: 72px;
  overflow: hidden; border: 2px solid transparent; flex-shrink: 0;
}
.gallery-thumbs button.active { border-color: var(--color-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-price { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.stock-badge {
  display: inline-block; padding: 4px 12px;
  font-family: var(--font-heading); font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.stock-badge.in-stock { background: #d1fae5; color: #065f46; }
.stock-badge.out-of-stock { background: #fee2e2; color: #991b1b; }
.product-short-desc { color: var(--color-text-body); margin-bottom: 24px; line-height: 1.7; }
.product-short-desc h1, .product-short-desc h2, .product-short-desc h3 {
  font-size: 22px !important; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; text-align: left !important; margin: 18px 0 12px;
  line-height: 1.3;
}
.product-short-desc h1 span, .product-short-desc h2 span, .product-short-desc h3 span {
  color: var(--color-accent) !important;
}
.product-specs { margin-bottom: 24px; }
.product-specs h2, .product-specs h3 {
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; margin-bottom: 14px; color: var(--color-text);
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 14px; }
.specs-table th { font-weight: 600; width: 40%; color: var(--color-text-muted); }
.product-actions { display: flex; gap: 16px; margin-bottom: 30px; align-items: center; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--color-border); }
.qty-control button { width: 40px; height: 40px; font-size: 18px; display: flex; align-items: center; justify-content: center; background: var(--color-text); color: #fff; }
.qty-control button:hover { background: var(--color-accent); }
.qty-control input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); height: 40px; }
.product-contact { padding: 20px; background: var(--color-bg); }
.product-contact p { font-size: 14px; margin-bottom: 4px; }
.product-contact a { color: var(--color-primary); font-weight: 600; }
.product-description { padding: 30px 0; border-top: 1px solid var(--color-border); }
.product-description h2 {
  margin-bottom: 16px; font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text);
}
.related-products { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--color-border); padding-bottom: 20px; }
.related-products h2 {
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--color-text); margin-bottom: 24px;
}
.desc-content { line-height: 1.8; color: var(--color-text-body); }
.desc-content img { margin: 16px 0; }
.no-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--color-text-muted); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; user-select: none; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: #fff;
  cursor: pointer; font-size: 40px; line-height: 1; padding: 12px;
  opacity: .7; transition: opacity .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 16px; right: 20px; font-size: 48px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 56px; }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 56px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 14px; font-family: var(--font-heading);
}
@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next { font-size: 36px; padding: 8px; }
  .lightbox-close { font-size: 36px; top: 10px; right: 12px; }
}

/* ===== FORMS (contact, etc.) ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px; border: 1px solid var(--color-border);
  border-radius: 0; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-text); outline: none; }

/* ===== ABOUT PAGE ===== */
.page-about .about-content { max-width: 860px; margin: 0 auto 60px; font-size: 16px; line-height: 1.8; color: var(--color-text-body); text-align: center; }
.page-about .about-content .lead { font-size: 19px; color: var(--color-text); margin-bottom: 18px; }
.page-subtitle { font-size: 20px; color: var(--color-text-body); margin-bottom: 30px; }

.about-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 70px;
}
.about-stat {
  text-align: center; padding: 30px 20px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
}
.about-stat-number {
  display: block; font-family: var(--font-heading);
  font-size: 42px; font-weight: 700; color: var(--color-text); line-height: 1.1;
}
.about-stat-label {
  display: block; font-size: 13px; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px;
}

.about-pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
  margin-bottom: 70px;
}
.about-pillar {
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 35px 30px; box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.about-pillar:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pillar-icon {
  width: 60px; height: 60px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 18px;
}
.about-pillar h3 { font-size: 20px; color: var(--color-text); margin-bottom: 10px; }
.about-pillar p { color: var(--color-text-body); font-size: 15px; line-height: 1.7; margin: 0; }

.about-brands { margin-top: 30px; }
.about-brands h2 { text-align: center; font-size: 32px; margin-bottom: 12px; color: var(--color-text); }
.brands-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; color: var(--color-text-body); font-size: 15px; line-height: 1.7; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.brand-card-link { display: block; text-decoration: none; color: inherit; }
.brand-card-link:hover { color: inherit; }
.brand-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 30px 25px 25px; box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  border-top: 4px solid var(--color-accent);
  display: flex; flex-direction: column; height: 100%;
}
.brand-card-link:hover .brand-card { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.brand-card-logo {
  height: 50px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: flex-start;
}
.brand-card-logo img { max-height: 50px; max-width: 140px; width: auto; object-fit: contain; }
.brand-card h3 { color: var(--color-text); margin-bottom: 8px; font-size: 22px; }
.brand-card p { color: var(--color-text-body); font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 14px; }
.brand-card-cta {
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ===== MANUFACTURER PAGES ===== */
.manufacturer-hero {
  padding: 50px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.manufacturer-products { padding-top: 0; }
.manufacturer-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.manufacturer-hero-text h2 {
  font-size: 28px; color: var(--color-text); margin: 0 0 18px;
  line-height: 1.3;
}
.manufacturer-hero-text p {
  color: var(--color-text-body); font-size: 16px; line-height: 1.8; margin-bottom: 24px;
}
.manufacturer-logo {
  max-height: 60px; max-width: 200px; width: auto; margin-bottom: 20px;
}
.manufacturer-hero-image {
  border: 1px solid var(--color-border);
  background: #f3f4f6;
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.manufacturer-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.features-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px;
}
.feature-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: 25px 28px;
  box-shadow: var(--shadow);
}
.feature-item h3 { font-size: 18px; color: var(--color-text); margin-bottom: 8px; }
.feature-item p { color: var(--color-text-body); font-size: 15px; line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-pillars { grid-template-columns: 1fr; }
  .manufacturer-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .features-list { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.location-card { background: var(--color-surface); border: 1px solid var(--color-border); padding: 30px; margin-bottom: 20px; box-shadow: var(--shadow); }
.location-card h3 { color: var(--color-text); margin-bottom: 12px; font-size: 24px; }
.location-address { color: var(--color-text-body); margin-bottom: 12px; }
.location-phone, .location-email { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.location-phone a, .location-email a { color: var(--color-text); font-weight: 500; }
.contact-form { background: var(--color-surface); border: 1px solid var(--color-border); padding: 30px; box-shadow: var(--shadow); }

/* ===== FOOTER (transport: #25272a bg, #13171b copyright, #8c8f92 text) ===== */
.site-footer {
  background: #25272a;
  color: var(--color-text-muted);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; justify-items: center; text-align: center;
  max-width: 960px; margin: 0 auto;
}
.footer-about { max-width: 320px; }
.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 16px; text-decoration: none;
}
.footer-logo:hover { color: inherit; }
.footer-logo-img { height: 35px; width: auto; }
.footer-logo .logo-text { color: #fff; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.footer-logo .logo-sub { color: var(--color-text-muted); font-family: var(--font-heading); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; justify-content: center; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); transition: all 0.2s;
}
.footer-social a:hover { background: var(--color-accent); color: #fff; }
.footer-col h4 {
  color: #fff; margin-bottom: 16px; font-size: 16px; font-weight: 500;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--color-text-muted); font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--color-accent); }
.footer-col p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 6px; }
.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-accent); }
.footer-address, .footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--color-text-muted); margin-bottom: 8px;
}
.footer-address svg, .footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: 0.5; }

.footer-locations {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px;
  margin: 40px auto 0; padding-top: 30px;
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,0.08);
  justify-items: center; text-align: center;
}
.footer-location { max-width: 280px; }
.footer-location h4 {
  color: #fff; margin-bottom: 16px; font-size: 16px; font-weight: 500;
}
.footer-location .footer-address,
.footer-location .footer-contact-item { justify-content: center; }

/* Copyright footer bar (transport: #13171b bg, #505357 color) */
.copyright-footer {
  background: #13171b;
  color: #505357;
  margin-top: 50px;
  padding: 20px 0;
}
.copyright-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.footer-powered { display: flex; align-items: center; gap: 6px; }
.footer-powered a { color: #505357; display: inline-flex; align-items: center; }
.footer-powered a:hover { color: var(--color-accent); }
.arcsoft-logo { height: 18px; width: auto; display: block; opacity: 0.8; transition: opacity 0.2s; }
.footer-powered a:hover .arcsoft-logo { opacity: 1; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px;
  /* Respect iOS home-bar safe area */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px;
  background: var(--color-accent);
  color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  z-index: 98;
}
.scroll-top:hover { background: var(--color-primary); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 768px) {
  .scroll-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 44px; height: 44px; /* keep at touch-target minimum */
  }
}

/* ===== RESPONSIVE ===== */

/* iOS zoom fix — inputs below 16px trigger zoom on focus */
@supports (font-size: max(1px, 2px)) {
  input, select, textarea { font-size: max(16px, 1em); }
}

/* Safe grid min for narrow viewports */
.products-grid,
.services-grid,
.categories-grid,
.brands-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

@media (max-width: 992px) {
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
  h2 { font-size: 36px; }
  h3 { font-size: 28px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 16px; gap: 0; transform: translateX(100%);
    opacity: 0; transition: transform 0.3s, opacity 0.3s; z-index: 99;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { transform: translateX(0); opacity: 1; }
  body.nav-open { overflow: hidden; }
  .nav-link { padding: 14px 16px; color: var(--color-text); font-size: 16px; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; background: var(--color-bg);
    box-shadow: none; margin: 0 0 8px;
  }
  .dropdown-menu a {
    color: var(--color-text-body);
    padding: 12px 20px; /* 44px+ touch target */
    min-height: 44px;
    display: flex; align-items: center;
  }
  .dropdown-menu a:hover { color: var(--color-accent); }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px;
  }

  .hero { padding: 100px 0 40px; min-height: auto; gap: 30px; }
  .hero h1 { line-height: 1.1; }
  .hero-scroll { display: none; }
  .hero-subtitle { font-size: 18px; }
  .hero-badge { font-size: 11px; }

  .section { padding: 50px 0; }
  .section-title { font-size: 28px; }

  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .order-form .form-row { grid-template-columns: 1fr; }
  .filter-bar {
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }
  .filter-bar--grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filter-bar--grid:has(.filter-group--range) {
    grid-template-columns: 1fr;
  }
  /* Visual separators between stacked filter groups on mobile */
  .filter-bar--grid .filter-group {
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    min-width: 0;
  }
  .filter-bar--grid .filter-group:first-child {
    padding-top: 4px;
    border-top: none;
  }
  .filter-bar--grid .filter-group:last-child {
    padding-bottom: 4px;
  }
  .filter-group--range,
  .filter-group--sort { grid-column: span 1; }
  .filter-group--actions { justify-self: start; }
  .filter-group select {
    padding: 12px; min-height: 44px;
    width: 100%;
  }
  /* Sort group: select full width, button full width below */
  .filter-group--sort .btn-reset-filters { width: 100%; }
  /* Trim checkbox lists so 4 stacked groups don't dominate the screen */
  .checkbox-list {
    max-height: 168px;
    border: 1px solid var(--color-border);
    padding: 6px 8px;
    background: #fff;
  }
  /* Mobile checkbox items must clear 44px touch target */
  .checkbox-item { padding: 10px 8px; min-height: 44px; font-size: 15px; }
  .checkbox-item input[type="checkbox"] { width: 20px; height: 20px; }
  /* Range slider needs breathing room from the new top border */
  .filter-group--range .range-slider { margin-top: 12px; }

  .why-step { padding: 16px 20px; border-width: 6px; }

  .subcat-chip { padding: 10px 20px; min-height: 44px; display: inline-flex; align-items: center; }
  .subcategories { gap: 10px; }

  /* Primary/secondary buttons — clear 44px minimum */
  .btn { padding: 13px 20px; min-height: 44px; }
  .btn-lg { padding: 14px 28px; min-height: 48px; }
  .btn-reset-filters { padding: 12px 18px; min-height: 44px; font-size: 14px; }

  /* Pagination — clear 44px minimum, prevent cramped spacing */
  .pagination { gap: 8px; }
  .pagination-btn { min-width: 44px; height: 44px; padding: 0 14px; }

  /* Product page quantity control */
  .qty-control button { width: 44px; height: 44px; }
  .qty-control input { height: 44px; width: 54px; }

  /* Gallery thumbnails — 72×72 is fine, but enforce tap spacing */
  .gallery-thumbs { gap: 10px; }

  /* Lightbox controls on mobile — bump to 44px tap targets */
  .lightbox-prev, .lightbox-next, .lightbox-close {
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
  }

  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-text h2 { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-locations { grid-template-columns: 1fr; gap: 24px; }
  .copyright-footer .container { flex-direction: column; gap: 4px; text-align: center; }
  .footer-powered { justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .about-brands-mini { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-pill { padding: 15px 10px; border-width: 6px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { width: 100%; }
  .about-stats { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
  /* Tighter section spacing on very narrow screens */
  .section { padding: 40px 0; }
  .section-title { font-size: 26px; }
  .service-card-content { padding: 16px 18px; }
  .service-card-content h3 { font-size: 18px; }
  .specs-table th, .specs-table td { padding: 10px 8px; font-size: 13px; }

  /* Filters on very narrow screens — tighter padding, smaller labels */
  .filter-bar { padding: 12px; }
  .filter-group label { font-size: 11px; }
  .checkbox-list { max-height: 152px; }
  .filter-group--range { padding-top: 10px; }
  .range-labels { font-size: 12px; }
}

/* Landscape phones: shrink hero top padding so content fits above fold */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 10px) 0 30px;
    gap: 16px;
  }
  .hero h1 { font-size: clamp(28px, 5vw, 40px); }
  .hero-desc { margin-bottom: 18px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .feature-card { padding: 14px 14px 12px; }
  .feature-card h3 { font-size: 14px; }
  .feature-card p { display: none; }
}
