/* ==========================================================================
   LATAM Auto Parts B2B — Industrial Editorial Stylesheet
   South American markets | EN/ES bilingual | PHP-driven
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Brand Colors — EXACT as specified */
  --navy: #0a2540;
  --navy-deep: #061a30;
  --navy-soft: #163a5f;
  --red: #e4002b;
  --red-deep: #b30022;
  --red-soft: #ff3355;
  --bone: #f6f3ee;
  --paper: #ffffff;
  --ink: #0b1220;
  --steel: #5a6675;
  --mist: #e5e9ee;

  /* Legacy aliases for backward compatibility */
  --brand-red: var(--red);
  --brand-red-dark: var(--red-deep);
  --brand-red-darker: #8a0f14;
  --brand-navy: var(--navy);
  --brand-navy-dark: var(--navy-deep);
  --brand-yellow: #ffcc00;
  --brand-yellow-dark: #e6b800;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --bg: var(--paper);
  --bg-soft: var(--bone);
  --bg-soft-2: #eef1f5;
  --text: #333333;
  --muted: var(--steel);
  --muted-light: #9ca3af;
  --line: var(--mist);
  --line-strong: #d1d5db;
  --success: #16a34a;
  --danger: var(--red);
  --warning: #f59e0b;

  /* Typography — NO INTER */
  --font-display: "Archivo Black", "Bebas Neue", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container-max: 1400px;
  --container-padding: clamp(16px, 4vw, 48px);

  /* Border Radius — restrained industrial */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;

  /* Shadows — minimal, sharp */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.08);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bone);
}

body.no-scroll {
  overflow: hidden;
}

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

/* Headings — Display font, uppercase, tight tracking */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--red-deep);
}

ul,
ol {
  list-style: none;
  padding-left: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 10000;
  font-family: var(--font-body);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   3. Layout Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 1010;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-top {
  padding: clamp(12px, 2vw, 16px) 48px clamp(12px, 2vw, 16px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 1;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
}

.site-main {
  min-height: auto;
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .site-main {
    padding-bottom: 100px;
  }
}

.page-header + .section {
  padding-top: clamp(32px, 4vw, 48px);
  min-height: auto;
}

.no-results {
  padding: 48px 24px;
  background: var(--bone);
  border: 1px dashed var(--mist);
  border-radius: var(--radius);
  text-align: center;
  color: var(--steel);
  margin-bottom: 0;
}

.site-footer {
  background: var(--navy-deep);
  color: var(--bone);
  padding-top: clamp(48px, 6vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 10px;
}

.logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-minito,
.logo-accent {
  color: var(--red);
}

.logo-auto {
  color: var(--navy);
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  position: absolute;
  top: clamp(18px, 3vw, 24px);
  right: var(--container-padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--paper);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--paper);
}

.nav-list {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80%, 320px);
  height: 100vh;
  background-color: var(--navy);
  padding: 80px clamp(20px, 4vw, 24px) 40px;
  transition: right var(--transition-base);
  z-index: 1020;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-list.active {
  right: 0;
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(6, 26, 48, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1005;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-list > li {
  list-style: none;
}

.nav-list a {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 20px);
  text-transform: uppercase;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.04em;
}

.nav-list a.active {
  color: var(--red);
}

@media (min-width: 1024px) {
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
  }

  .header-top {
    flex: none;
    padding-right: 0;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
    padding-bottom: clamp(12px, 2vw, 16px);
  }

  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .nav-list {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    gap: clamp(16px, 3vw, 32px);
    transform: none;
    overflow: visible;
  }

  .nav-list a {
    color: var(--navy);
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition:
      border-color var(--transition-fast),
      color var(--transition-fast);
  }

  .nav-list a:hover,
  .nav-list a.active {
    color: var(--red);
    border-bottom-color: var(--red);
  }
}

/* ==========================================================================
   5. Search & Language
   ========================================================================== */
.search-form {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-form input[type="text"],
.search-form input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mist);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition-fast);
}

.search-form input:focus {
  outline: none;
  border-color: var(--navy-soft);
}

.search-form button[type="submit"] {
  background: var(--navy);
  color: var(--paper);
  border: none;
  padding: 0 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition-fast);
}

.search-form button[type="submit"]:hover {
  background: var(--navy-deep);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  height: 40px;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  background: var(--navy);
  color: var(--paper);
}

/* ==========================================================================
   6. Section Headings & Page Headers
   ========================================================================== */
.section-heading {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-heading.left-aligned {
  text-align: left;
}

.section-subtitle {
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1.05;
  overflow-wrap: break-word;
  hyphens: auto;
  word-break: normal;
}

.section-desc {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--steel);
  font-size: clamp(15px, 2vw, 17px);
}

.section-heading.left-aligned .section-desc {
  margin-left: 0;
}

.section-action {
  margin-top: 24px;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  margin: clamp(32px, 4vw, 48px) 0 clamp(20px, 3vw, 28px);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  color: var(--navy);
}

.page-header {
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.55), rgba(6, 26, 48, 0.78)),
    var(--page-header-img);
  background-size: cover;
  background-position: center;
  padding: clamp(60px, 10vw, 120px) 0;
  text-align: center;
  color: var(--paper);
}

.page-header .section-title {
  color: var(--paper);
  font-size: clamp(36px, 7vw, 64px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: var(--paper);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1;
  font-size: 14px;
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--red-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--navy);
  color: var(--paper);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--navy-deep);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--navy);
  color: var(--paper);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--paper);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: var(--whatsapp-dark);
  color: var(--paper);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-inquiry {
  background: var(--red);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-inquiry:hover {
  background: var(--red-deep);
  color: var(--paper);
}

/* ==========================================================================
   8. Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   9. Hero Carousel
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  height: clamp(55vh, 70vw, 70vh);
}

.hero-track {
  display: flex;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 26, 48, 0.92) 0%,
    rgba(10, 37, 64, 0.6) 60%,
    transparent 100%
  );
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-caption {
  position: relative;
  z-index: 10;
  max-width: min(600px, 90%);
  padding: 0 var(--container-padding);
  color: var(--paper);
}

.hero-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 64px);
  color: var(--paper);
  margin-bottom: 16px;
  line-height: 1.05;
}

.hero-caption p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
  z-index: 20;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
  font-size: 20px;
}

.hero-prev:hover,
.hero-next:hover {
  background: var(--red);
  border-color: var(--red);
}

.hero-prev {
  left: var(--container-padding);
}

.hero-next {
  right: var(--container-padding);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.hero-dot.is-active,
.hero-dot:hover {
  background: var(--red);
}

.hero-dot.is-active {
  transform: scale(1.2);
}

/* ==========================================================================
   10. Product Cards
   ========================================================================== */
.product-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--red);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  padding: 20px;
  background: var(--paper);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--mist);
  background: linear-gradient(to bottom, var(--bone), var(--paper));
}

.product-info h3 {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
  text-transform: none;
  line-height: 1.35;
  overflow: visible;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
  word-break: normal;
}

.product-oem {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 8px;
  background: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.product-oem-large {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--navy);
  background: var(--bone);
  padding: 10px 16px;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid var(--mist);
  letter-spacing: 0.02em;
}

.product-car {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 16px;
  flex: 1;
}

.product-fit {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}

.product-category-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.badge-hot,
.badge-new {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.badge-hot {
  background: var(--red);
  color: var(--paper);
}

.badge-new {
  background: var(--navy-soft);
  color: var(--paper);
}

/* ==========================================================================
   11. Products Layout & Listing
   ========================================================================== */
.products-layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(32px, 4vw, 48px) 0;
}

@media (min-width: 1024px) {
  .products-layout {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 1023px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
}

.filter-sidebar {
  background: var(--bone);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--mist);
  height: fit-content;
}

.filter-bar {
  background: var(--navy);
  padding: clamp(20px, 3vw, 24px);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.filter-form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-form > * {
  flex: 1;
  min-width: 200px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.filter-clear {
  padding: 12px 16px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-bar .filter-group label {
  color: var(--paper);
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.products-grid .grid.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

@media (max-width: 767px) {
  .products-grid .grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

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

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mist);
}

.results-count {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.no-results {
  padding: 48px 24px;
  background: var(--bone);
  border: 1px dashed var(--mist);
  border-radius: var(--radius);
  text-align: center;
  color: var(--steel);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--paper);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.page-link:hover,
.page-link:focus {
  border-color: var(--red);
  color: var(--red);
}

.page-link.active {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* ==========================================================================
   12. Category Cards & Home Features
   ========================================================================== */
.featured-cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  transition: transform var(--transition-base);
}

.featured-cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 26, 48, 0.95) 0%,
    rgba(6, 26, 48, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
  transition: opacity var(--transition-base);
}

.featured-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-cat-tile span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 22px);
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.featured-cat-tile:hover {
  transform: translateY(-2px);
}

.featured-cat-tile:hover img {
  transform: scale(1.05);
}

.featured-cat-tile:hover::before {
  opacity: 0.9;
}

.category-card {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition-fast);
}

.category-card:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.category-card-large {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-base);
}

.category-card-large:hover {
  border-bottom-color: var(--red);
  box-shadow: var(--shadow);
}

.category-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 16px;
}

.category-card-large .category-image {
  width: 100%;
  height: 160px;
  margin-right: 0;
  background: var(--bone);
  padding: 20px;
}

.advantage-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 32px);
  text-align: center;
  transition: all var(--transition-base);
}

.advantage-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.advantage-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 32px);
}

.advantage-icon svg,
.advantage-icon img {
  width: 32px;
  height: 32px;
  color: var(--red);
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--navy);
}

.advantage-card p {
  font-size: 14px;
  color: var(--steel);
  margin: 0;
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--navy-soft);
}

.faq-item.active {
  border-color: var(--navy);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background var(--transition-fast);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--red);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--transition-slow),
    padding var(--transition-slow);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--steel);
  font-size: 15px;
}

/* ==========================================================================
   14. Product Detail Page
   ========================================================================== */
.product-detail {
  padding: clamp(32px, 4vw, 48px) 0;
}

.product-layout {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
}

@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 24px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumb {
  width: 64px;
  height: 64px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  background: var(--paper);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

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

.thumb:hover,
.thumb.active {
  border-color: var(--red);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.specs-table th,
.specs-table td {
  padding: 12px 16px;
  border: 1px solid var(--mist);
  text-align: left;
}

.specs-table th {
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.specs-table tbody tr:nth-child(even) {
  background: var(--bone);
}

.specs-table td {
  font-family: var(--font-mono);
  color: var(--steel);
}

.product-contact-quick {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
}

.product-contact-quick .btn-primary {
  background: var(--red);
  color: var(--paper);
}

.product-contact-quick .btn-whatsapp {
  background: var(--whatsapp);
  color: var(--paper);
}

@media (max-width: 767px) {
  .product-contact-quick .btn-whatsapp {
    display: none;
  }
}

.product-description {
  margin-bottom: 32px;
}

.product-description h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--navy);
}

.content-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--steel);
}

.content-body h2 {
  font-size: clamp(20px, 3vw, 24px);
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--navy);
}

.content-body p {
  margin-bottom: 16px;
}

.related-products {
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--mist);
  margin-top: clamp(48px, 6vw, 72px);
}

/* ==========================================================================
   15. News / Blog
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  padding: clamp(32px, 4vw, 48px) 0;
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-base);
}

.news-card:hover {
  border-color: var(--navy-soft);
  box-shadow: var(--shadow);
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.03);
}

.news-info {
  padding: 24px;
}

.news-info h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: none;
  line-height: 1.3;
  color: var(--navy);
}

.read-more {
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.read-more::after {
  content: "→";
  transition: transform var(--transition-fast);
}

.read-more:hover::after {
  transform: translateX(4px);
}

.news-detail-grid {
  display: grid;
  gap: 40px;
  padding: clamp(32px, 4vw, 48px) 0;
}

@media (min-width: 1024px) {
  .news-detail-grid {
    grid-template-columns: 1fr 340px;
  }
}

.news-article {
  max-width: 800px;
}

.article-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.article-meta {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.article-title {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 24px;
  color: var(--navy);
  line-height: 1.1;
}

.news-prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
}

.prev-link,
.next-link {
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.prev-link:hover,
.next-link:hover {
  color: var(--red);
}

.prev-link::before {
  content: "←";
}

.next-link::after {
  content: "→";
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-widget {
  background: var(--bone);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--mist);
}

.news-widget h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--navy);
}

.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform var(--transition-fast);
}

.sidebar-post-item:hover {
  transform: translateX(4px);
}

.sidebar-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-copy h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
  text-transform: none;
  color: var(--navy);
}

.sidebar-post-copy time {
  font-size: 12px;
  color: var(--steel);
  font-family: var(--font-mono);
}

.related-posts {
  margin-top: 48px;
}

/* ==========================================================================
   16. About & Contact
   ========================================================================== */
.about-grid {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 20px;
}

.about-images {
  display: grid;
  gap: 16px;
}

.about-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(32px, 4vw, 40px);
  border-radius: var(--radius);
}

.contact-info .section-title {
  color: var(--paper);
  font-size: clamp(24px, 4vw, 32px);
}

.contact-details {
  margin-top: 32px;
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.contact-details strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--paper);
  transition: all var(--transition-fast);
}

.contact-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper {
  padding: clamp(32px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
}

/* ==========================================================================
   17. How-to-Buy / Process
   ========================================================================== */
.process-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.process-steps {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--paper);
  border: 1px solid var(--mist);
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.step:hover {
  border-color: var(--navy-soft);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin: 0 auto 20px;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--navy);
}

.step-content p {
  font-size: 14px;
  color: var(--steel);
  margin: 0;
}

.process-cta {
  text-align: center;
  margin-top: clamp(48px, 6vw, 64px);
  padding: clamp(32px, 5vw, 48px);
  background: var(--bone);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ==========================================================================
   18. Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--steel);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--navy);
}

.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  padding: 16px;
  border: 2px dashed var(--mist);
  border-radius: var(--radius);
  text-align: center;
  color: var(--steel);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.file-upload:hover .file-upload-label {
  border-color: var(--navy-soft);
  color: var(--navy);
}

.batch-inquiry-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--bone);
  margin-top: clamp(48px, 6vw, 72px);
}

.batch-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--paper);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--mist);
}

/* ==========================================================================
   19. Search Page
   ========================================================================== */
.search-page-form {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
}

.search-page-form input[type="search"] {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.search-page-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ==========================================================================
   20. Floating Contact
   ========================================================================== */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

@media (max-width: 767px) {
  .floating-contact {
    bottom: 80px;
  }
  .floating-contact .float-btn:not(.whatsapp) {
    display: none;
  }
  .site-main {
    padding-bottom: 100px;
  }
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  font-size: 24px;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--paper);
}

.float-btn.whatsapp {
  background: var(--whatsapp);
}

.float-btn.email {
  background: var(--navy);
}

.float-btn.facebook {
  background: #1877f2;
}

.float-btn.youtube {
  background: #ff0000;
}

/* ==========================================================================
   21. Modal & Notifications
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 48, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--paper);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--steel);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--red);
}

.notification {
  position: fixed;
  top: 24px;
  right: -400px;
  width: min(320px, 90vw);
  padding: 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--navy);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  z-index: 9999;
  transition: right var(--transition-slow);
  font-weight: 500;
  font-size: 14px;
}

.notification.show {
  right: 24px;
}

.notification-success {
  border-color: var(--success);
}

.notification-error {
  border-color: var(--danger);
}

.notification-info {
  border-color: var(--navy);
}

.notification-warning {
  border-color: var(--warning);
}

/* ==========================================================================
   22. Footer
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(32px, 5vw, 40px);
  margin-bottom: 48px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--steel);
  font-size: 14px;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--paper);
  transform: translateX(4px);
}

.footer-bottom {
  background: var(--navy-deep);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0));
  text-align: center;
  color: var(--steel);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  overflow: visible;
}

.footer-bottom a {
  color: var(--steel);
}

.footer-bottom a:hover {
  color: var(--paper);
}

/* ==========================================================================
   23. Scroll Reveal & Lazy Load
   ========================================================================== */
.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[data-src].loaded,
img:not([data-src]) {
  opacity: 1;
}

/* ==========================================================================
   24. Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .floating-contact,
  .notification,
  .nav-backdrop,
  .nav-list,
  .btn,
  .hero-prev,
  .hero-next,
  .hero-dots,
  .filter-sidebar,
  .float-btn,
  .modal {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .product-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .page-header {
    background: none !important;
    color: #000;
    padding: 20px 0;
  }

  .page-header .section-title {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ==========================================================================
   Product Detail Page — Editorial Refresh (v2)
   Targets the actual class names used in /en/product.php and /es/producto.php
   so the layout finally lands. Coexists with legacy .product-layout above.
   ========================================================================== */
.product-detail {
  padding: clamp(40px, 6vw, 72px) 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 900px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

/* Gallery — sticky on desktop, calm framing */
.product-detail-layout .product-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 1024px) {
  .product-detail-layout .product-gallery {
    position: sticky;
    top: 96px;
  }
}

.product-detail-layout .gallery-main {
  background: linear-gradient(180deg, var(--paper) 0%, var(--bone) 100%);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-detail-layout .gallery-main::after {
  /* faint editorial grid behind the product, very subtle */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.product-detail-layout .gallery-main img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-detail-layout .gallery-main:hover img {
  transform: scale(1.03);
}

.product-detail-layout .gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.product-detail-layout .thumb {
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.product-detail-layout .thumb:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.product-detail-layout .thumb.active {
  border-color: var(--red);
  border-width: 2px;
}

/* Info column — editorial typography hierarchy */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.product-detail-info > h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  color: var(--navy);
  margin: 0;
  word-break: break-word;
}

.product-detail-info .product-oem-large {
  margin: 0;
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
}

.product-detail-info .product-oem-large::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* Meta strip: fits + category, side-by-side, calm */
.product-detail-info .product-fit,
.product-detail-info .product-category-tag {
  margin: 0;
}

.product-detail-info .product-fit {
  font-size: 15px;
  color: var(--steel);
  font-weight: 500;
  padding: 12px 16px;
  background: var(--bone);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.product-detail-info .product-fit strong {
  color: var(--navy);
  font-weight: 700;
}

/* Specs table — denser, editorial */
.product-detail-info .specs-table {
  margin: 8px 0 12px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail-info .specs-table th,
.product-detail-info .specs-table td {
  border: none;
  border-bottom: 1px solid var(--mist);
  padding: 14px 18px;
}

.product-detail-info .specs-table tr:last-child th,
.product-detail-info .specs-table tr:last-child td {
  border-bottom: none;
}

.product-detail-info .specs-table th {
  background: var(--bone);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  width: 38%;
  white-space: nowrap;
}

.product-detail-info .specs-table tbody tr:nth-child(even) {
  background: transparent;
}

.product-detail-info .specs-table tbody tr:hover {
  background: var(--bone);
}

.product-detail-info .specs-table td {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* CTA stack */
.product-detail-info .btn-inquiry,
.product-detail-info .btn.btn-primary.btn-lg {
  margin-top: 8px;
  align-self: stretch;
  font-size: 16px;
  padding: 16px 28px;
}

.product-detail-info .product-contact-quick {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-detail-info .product-contact-quick .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: var(--paper);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.product-detail-info .product-contact-quick .btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .product-detail-info .product-contact-quick .btn-whatsapp {
    display: inline-flex; /* keep visible on mobile, override legacy hide */
    width: 100%;
    justify-content: center;
  }
}

/* Description — editorial article block */
.product-detail .product-description {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 2px solid var(--ink);
  max-width: 980px;
}

.product-detail .product-description h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
  padding-left: 18px;
}

.product-detail .product-description h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--red);
}

.product-detail .product-description .content-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--steel);
}

/* Related products — tighter rhythm, clearer separation from detail */
.related-products {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  padding: clamp(48px, 6vw, 80px) 0;
}

.related-products .section-title {
  margin-bottom: clamp(24px, 3vw, 40px);
  text-align: center;
}

/* Schematic-style hero: SVG already has its own dark blueprint background,
   so we use only a faint scrim to keep H1 legible without flattening detail. */
.page-header.page-header--schematic {
  background-image:
    linear-gradient(rgba(6, 26, 48, 0.2), rgba(6, 26, 48, 0.45)),
    var(--page-header-img);
}

/* Schematic hero refinements: tighter vertical, stronger headline contrast */
.page-header.page-header--schematic {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}

.page-header.page-header--schematic .section-title,
.page-header.page-header--schematic h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}
.page-header.page-header--schematic > .container > h1,
.page-header.page-header--schematic h1 {
  font-size: clamp(32px, 5vw, 48px);
  text-transform: uppercase;
}
.page-header.page-header--schematic .breadcrumb {
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   PAGE HEADER V2 (Universal Banner)
   ========================================================================== */
.page-header--v2 {
  position: relative;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(
      to right,
      rgba(3, 16, 31, 0.95) 0%,
      rgba(3, 16, 31, 0.7) 40%,
      rgba(3, 16, 31, 0.2) 100%
    ),
    var(--page-header-img);
  background-size: cover, contain;
  background-position:
    center,
    bottom right;
  background-repeat: no-repeat;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
  border-bottom: 1px solid var(--red);
  color: var(--paper);
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .page-header--v2 {
    background-image:
      linear-gradient(
        to right,
        rgba(3, 16, 31, 0.95) 0%,
        rgba(3, 16, 31, 0.8) 100%
      ),
      var(--page-header-img);
  }
}

.page-header--v2 .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-header--v2__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .page-header--v2__top-left {
    display: none;
  }
}

.page-header--v2__top-right {
  color: var(--bone);
  background: rgba(6, 26, 48, 0.55);
  padding: 4px 8px;
  border-radius: var(--radius);
}

.page-header--v2 h1 {
  font-family: var(--font-display);
  font-size: clamp(
    32px,
    6vw,
    64px
  ) !important; /* Overriding global uppercase/size */
  text-transform: none !important;
  color: var(--paper);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-4);
  line-height: 1.1;
  max-width: 800px;
}

@media (max-width: 767px) {
  .page-header--v2 h1 {
    font-size: 28px !important;
  }
}

.page-header--v2 .breadcrumb {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 26, 48, 0.55);
  padding: 8px 16px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 0;
}

.page-header--v2 .breadcrumb a {
  color: var(--bone);
  text-decoration: none;
}

.page-header--v2 .breadcrumb a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.page-header--v2 .breadcrumb .separator {
  margin: 0 8px;
  color: var(--steel);
}

.page-header--v2 .breadcrumb .current {
  color: var(--paper);
}

@media print {
  .page-header--v2 {
    background: #fff !important;
    color: var(--navy-deep) !important;
    border-bottom: 2px solid #000;
  }
  .page-header--v2 h1 {
    color: var(--navy-deep) !important;
    text-shadow: none !important;
  }
}

/* Ensure bare h1 inside schematic hero is bright (overrides global h1 navy color) */
.page-header.page-header--schematic > .container > h1,
.page-header.page-header--schematic h1 {
  color: var(--paper) !important;
}

.page-header.page-header--schematic .breadcrumb {
  position: relative;
  z-index: 2;
  background: rgba(6, 26, 48, 0.55);
  padding: 8px 16px;
  border-radius: var(--radius);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

/* ===== HOMEPAGE V2 ===== */
.home-v2 {
  background:
    radial-gradient(
      circle at top left,
      rgba(201, 214, 226, 0.18),
      transparent 26%
    ),
    linear-gradient(180deg, #fbf8f1 0%, #f2ece1 100%);
}

.home-v2 .section {
  position: relative;
  overflow: clip;
}

.home-v2 .section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 26, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 26, 48, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.home-v2 .container {
  position: relative;
  z-index: 1;
}

.home-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.home-section-head__eyebrow {
  color: var(--red);
}

.home-section-head__kicker {
  padding: 7px 12px;
  border: 1px solid rgba(90, 104, 119, 0.3);
  border-radius: 999px;
  background: rgba(248, 244, 235, 0.76);
}

.home-section-head--light {
  color: rgba(201, 214, 226, 0.84);
}

.home-section-head--light .home-section-head__kicker {
  border-color: rgba(201, 214, 226, 0.24);
  background: rgba(3, 16, 31, 0.28);
}

.home-section-intro {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 3vw, 42px);
  max-width: 760px;
}

.home-section-intro--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.home-section-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.home-section-intro p {
  margin: 0;
  max-width: 62ch;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.75;
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  box-shadow: 0 16px 36px rgba(215, 38, 61, 0.22);
}

.pill-cta:hover {
  transform: translateY(-2px);
  color: var(--paper);
}

.pill-cta--outline {
  background: transparent;
  color: var(--navy-deep);
  border: 1px solid rgba(6, 26, 48, 0.16);
  box-shadow: none;
}

.pill-cta--outline:hover {
  background: var(--navy-deep);
  color: var(--paper);
}

.home-hero-v2 {
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(38px, 5vw, 64px);
}

.home-hero-v2::before {
  display: none;
}

.home-hero-v2__carousel,
.home-hero-v2__fallback {
  position: relative;
  border: 1px solid rgba(201, 214, 226, 0.2);
  background: var(--navy-deep);
  color: var(--paper);
  min-height: min(84vh, 760px);
  box-shadow: 0 32px 72px rgba(3, 16, 31, 0.28);
}

.home-hero-v2__carousel {
  overflow: hidden;
}

.home-hero-v2__carousel .hero-track,
.home-hero-v2__carousel .hero-slide {
  min-height: min(84vh, 760px);
}

.home-hero-v2__carousel .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-hero-v2__carousel .hero-slide img,
.home-hero-v2__fallback::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-v2__fallback::before {
  content: "";
  background-image: var(--hero-fallback);
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}

.home-hero-v2__scrim,
.home-hero-v2__fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 16, 31, 0.92) 0%,
      rgba(3, 16, 31, 0.78) 48%,
      rgba(3, 16, 31, 0.32) 100%
    ),
    linear-gradient(180deg, rgba(3, 16, 31, 0.08), rgba(3, 16, 31, 0.3));
}

.home-hero-v2__content,
.home-hero-v2__fallback {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 42px);
}

.home-hero-v2__frame {
  position: absolute;
  inset: 24px 24px auto auto;
  z-index: 2;
  display: inline-flex;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 214, 226, 0.25);
  background: rgba(3, 16, 31, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.home-hero-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.62fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: end;
}

.home-hero-v2__copy {
  max-width: 820px;
}

.home-hero-v2__lead {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.home-hero-v2 h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
}

.home-hero-v2__summary {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
  color: rgba(239, 233, 221, 0.86);
}

.home-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 28px;
}

.home-hero-v2__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.home-hero-v2__meta {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.home-hero-v2__meta-card,
.home-hero-v2__meta-box {
  padding: 18px 18px 20px;
  border: 1px solid rgba(201, 214, 226, 0.18);
  background: linear-gradient(
    180deg,
    rgba(6, 26, 48, 0.42),
    rgba(6, 26, 48, 0.72)
  );
  min-height: 126px;
}

.home-hero-v2__meta-box {
  pointer-events: none;
}

.home-hero-v2__meta-card--accent,
.home-hero-v2__meta-box--accent {
  border-color: rgba(215, 38, 61, 0.4);
  box-shadow: inset 0 0 0 1px rgba(215, 38, 61, 0.14);
}

.home-hero-v2__meta-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.home-hero-v2__meta-card strong,
.home-hero-v2__meta-box strong {
  display: block;
  font-size: 18px;
  line-height: 1.55;
  color: var(--paper);
}

.home-hero-v2__controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 214, 226, 0.18);
  background: rgba(3, 16, 31, 0.68);
}

.home-hero-v2__controls .hero-nav,
.home-hero-v2__controls .hero-prev,
.home-hero-v2__controls .hero-next {
  position: static !important;
  width: 42px;
  height: 42px;
  transform: none !important;
  border: 1px solid rgba(201, 214, 226, 0.2);
  background: rgba(6, 26, 48, 0.85);
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
}

.home-hero-v2__controls .hero-dots {
  position: static !important;
  display: inline-flex;
  gap: 10px;
  left: auto !important;
  transform: none !important;
  bottom: auto !important;
}

.home-hero-v2__controls .hero-dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(201, 214, 226, 0.22);
}

.home-hero-v2__controls .hero-dot.is-active {
  background: var(--red);
}

.brands-rail,
.systems-rail,
.editorial-products,
.process-flow,
.faq-editorial {
  padding-top: clamp(54px, 7vw, 90px);
  padding-bottom: clamp(54px, 7vw, 90px);
}

.brands-rail__track,
.systems-rail__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.brands-rail__item,
.systems-rail__item {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(6, 26, 48, 0.12);
  background: linear-gradient(
    180deg,
    rgba(248, 244, 235, 0.96),
    rgba(239, 233, 221, 0.88)
  );
  text-decoration: none;
  color: var(--navy-deep);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.brands-rail__item::before,
.systems-rail__item::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(90, 104, 119, 0.12);
  pointer-events: none;
}

.brands-rail__item:hover,
.systems-rail__item:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 38, 61, 0.34);
  box-shadow: 0 18px 40px rgba(6, 26, 48, 0.12);
}

.brands-rail__index,
.systems-rail__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.brands-rail__name,
.systems-rail__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  text-transform: uppercase;
}

.brands-rail__count,
.systems-rail__count {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 26, 48, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.systems-rail {
  background: linear-gradient(
    180deg,
    rgba(201, 214, 226, 0.14),
    rgba(248, 244, 235, 0)
  );
}

.stats-band {
  padding-top: clamp(58px, 8vw, 100px);
  padding-bottom: clamp(58px, 8vw, 100px);
  background:
    linear-gradient(180deg, rgba(3, 16, 31, 0.94), rgba(6, 26, 48, 0.98)),
    linear-gradient(90deg, rgba(215, 38, 61, 0.12), transparent 28%);
  color: var(--paper);
}

.stats-band::before {
  opacity: 0.12;
  background-size: 44px 44px;
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-band__item {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(201, 214, 226, 0.12);
  background: linear-gradient(
    180deg,
    rgba(201, 214, 226, 0.04),
    rgba(3, 16, 31, 0.02)
  );
  min-width: 0;
}

.stats-band__value {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 0.9;
  color: var(--paper);
}

.stats-band__item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.stats-band__item p {
  margin: 0;
  color: rgba(201, 214, 226, 0.8);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.editorial-products .product-grid--editorial {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card--editorial {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(6, 26, 48, 0.12);
  background: rgba(248, 244, 235, 0.94);
  box-shadow: 0 20px 40px rgba(6, 26, 48, 0.06);
}

.product-card--editorial::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(90, 104, 119, 0.12);
  pointer-events: none;
}

.product-card__index,
.product-card__status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card__index {
  justify-self: start;
  margin-bottom: 14px;
  color: var(--red);
  background: rgba(215, 38, 61, 0.08);
}

.product-card__status {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--paper);
}

.product-card__status--hot {
  background: var(--red);
}

.product-card__status--new {
  background: var(--navy-deep);
}

.product-card__image {
  position: relative;
  display: block;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(201, 214, 226, 0.28),
    rgba(201, 214, 226, 0.08)
  );
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card--editorial:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.product-card--editorial h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.product-card--editorial h3 a {
  color: var(--navy-deep);
  text-decoration: none;
}

.product-card__meta {
  margin: 0;
  color: var(--steel);
  line-height: 1.65;
}

.product-card__actions {
  margin-top: auto;
  padding-top: 8px;
}

.product-card__actions .btn {
  width: 100%;
}

.process-flow {
  background: linear-gradient(
    180deg,
    rgba(6, 26, 48, 0.02),
    rgba(201, 214, 226, 0.18)
  );
}

.process-flow__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-flow__grid::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  border-top: 1px dashed rgba(6, 26, 48, 0.24);
}

.process-flow__step {
  position: relative;
  padding: 24px 24px 28px;
  border: 1px solid rgba(6, 26, 48, 0.12);
  background: rgba(248, 244, 235, 0.95);
  min-height: 260px;
  min-width: 0;
}

.process-flow__number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid rgba(215, 38, 61, 0.34);
  background: var(--navy-deep);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 28px;
}

.process-flow__step h3 {
  margin: 0 0 12px;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--navy-deep);
  overflow-wrap: anywhere;
}

.process-flow__step p {
  margin: 0;
  color: var(--steel);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.faq-editorial__list {
  display: grid;
  gap: 14px;
}

.faq-editorial__item {
  border: 1px solid rgba(6, 26, 48, 0.12);
  background: rgba(248, 244, 235, 0.92);
}

.faq-editorial .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy-deep);
  cursor: pointer;
}

.faq-editorial .faq-question::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--red);
}

.faq-editorial .faq-item.active .faq-question::after {
  content: "−";
}

.faq-editorial .faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
}

.faq-editorial .faq-item.active .faq-answer {
  max-height: 420px;
  padding: 0 24px 24px;
}

.faq-editorial .faq-answer p {
  margin: 0;
  max-width: 72ch;
  color: var(--steel);
  line-height: 1.85;
}

@media (max-width: 1199px) {
  .brands-rail__track,
  .systems-rail__track,
  .stats-band__grid,
  .editorial-products .product-grid--editorial,
  .process-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-v2__grid {
    grid-template-columns: 1fr;
  }

  .home-hero-v2 h1 {
    max-width: 10ch;
  }

  .process-flow__grid::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .home-v2 .section::before {
    background-size: 24px 24px;
  }

  .home-section-head,
  .home-section-intro--split,
  .home-hero-v2__actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-v2__carousel,
  .home-hero-v2__fallback,
  .home-hero-v2__carousel .hero-track,
  .home-hero-v2__carousel .hero-slide {
    min-height: 700px;
  }

  .home-hero-v2__frame,
  .home-hero-v2__controls {
    position: static;
    margin-top: 18px;
    justify-self: start;
  }

  .brands-rail__track,
  .systems-rail__track,
  .stats-band__grid,
  .editorial-products .product-grid--editorial,
  .process-flow__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brands-rail__item,
  .systems-rail__item,
  .stats-band__item,
  .process-flow__step {
    min-height: 0;
    padding: 18px;
  }

  .brands-rail__name,
  .systems-rail__name {
    font-size: 20px;
  }

  .faq-editorial .faq-question {
    padding: 18px;
    font-size: 18px;
  }

  .faq-editorial .faq-answer {
    padding: 0 18px 18px;
  }

  /* Improve section spacing on mobile */
  .brands-rail,
  .systems-rail,
  .editorial-products,
  .process-flow,
  .faq-editorial {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Better product card spacing on mobile */
  .product-card--editorial {
    padding: 14px;
  }

  .product-card__image {
    aspect-ratio: 16 / 10;
  }
}

/* ===== CASCADE V2 ===== */
.cascade-page {
  background:
    radial-gradient(
      circle at top right,
      rgba(215, 38, 61, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(248, 244, 235, 0.94),
      rgba(239, 233, 221, 0.78)
    );
}

.cascade-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.cascade-flow__step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid rgba(6, 26, 48, 0.16);
  background: rgba(248, 244, 235, 0.9);
  box-shadow: 0 20px 50px rgba(3, 16, 31, 0.08);
}

.cascade-flow__number,
.cascade-flow__label,
.cascade-filter-strip__field label,
.cascade-callout__eyebrow,
.cascade-selected-heading p,
.empty-state__eyebrow,
.cascade-results-bar__sort label,
.entity-tile__meta {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cascade-flow__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  font-size: 12px;
}

.cascade-flow__label {
  font-size: 14px;
}

.cascade-flow__arrow {
  color: rgba(6, 26, 48, 0.45);
  font-size: 28px;
  line-height: 1;
}

.cascade-flow__step.is-active {
  border-color: var(--red);
  color: var(--red);
  background: linear-gradient(
    135deg,
    rgba(215, 38, 61, 0.1),
    rgba(248, 244, 235, 0.98)
  );
}

.cascade-flow__step.is-complete {
  color: var(--steel);
}

.cascade-flow__step.is-future {
  color: rgba(6, 26, 48, 0.38);
  background: rgba(248, 244, 235, 0.68);
}

.cascade-filter-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(6, 26, 48, 0.16);
  background: rgba(248, 244, 235, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(3, 16, 31, 0.08);
}

.cascade-filter-strip__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cascade-filter-strip__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cascade-filter-strip__field label,
.cascade-results-bar__sort label {
  font-size: 11px;
  color: var(--steel);
}

.cascade-filter-strip__field select,
.cascade-results-bar__sort select {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(6, 26, 48, 0.18);
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 244, 235, 0.98),
    rgba(239, 233, 221, 0.92)
  );
  color: var(--navy);
  padding: 0 16px;
}

.cascade-filter-strip__field select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cascade-callout {
  margin-bottom: 26px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.98), rgba(6, 26, 48, 0.92)),
    repeating-linear-gradient(
      90deg,
      transparent 0 24px,
      rgba(201, 214, 226, 0.06) 24px 25px
    );
  border-left: 4px solid var(--red);
  color: var(--paper);
}

.cascade-callout__eyebrow,
.empty-state__eyebrow,
.cascade-selected-heading p {
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--mist);
}

.cascade-callout h2,
.cascade-selected-heading h2,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.entity-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(6, 26, 48, 0.14);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(3, 16, 31, 0.08);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.entity-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 48, 0.02),
    rgba(6, 26, 48, 0.18)
  );
  pointer-events: none;
}

.entity-tile:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 24px 60px rgba(3, 16, 31, 0.16);
}

.entity-tile__index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(3, 16, 31, 0.88);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.entity-tile__media {
  position: relative;
  background:
    linear-gradient(180deg, rgba(3, 16, 31, 0.06), rgba(3, 16, 31, 0.72)),
    linear-gradient(135deg, rgba(201, 214, 226, 0.65), rgba(6, 26, 48, 0.22));
}

.entity-tile__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition:
    transform var(--transition-base),
    filter var(--transition-base);
}

.entity-tile:hover .entity-tile__media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.entity-tile__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 20px 20px 22px;
}

.entity-tile__meta {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  background: rgba(215, 38, 61, 0.1);
  color: var(--red);
  font-size: 11px;
}

.entity-tile__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  text-transform: uppercase;
}

.entity-tile__arrow {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--paper);
  font-size: 20px;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px dashed rgba(6, 26, 48, 0.22);
  background: rgba(248, 244, 235, 0.86);
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 26, 48, 0.06);
  color: var(--navy);
}

.empty-state__icon svg {
  width: 40px;
  height: 40px;
}

.cascade-results-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(6, 26, 48, 0.14);
}

.cascade-results-bar__count {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  color: var(--navy);
  text-transform: uppercase;
}

.cascade-results-bar__sort {
  display: grid;
  gap: 8px;
  min-width: min(100%, 240px);
}

.cascade-selected-heading {
  margin-bottom: 22px;
}

.cascade-selected-heading h2 {
  color: var(--navy);
}

.cascade-page .product-grid--editorial {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cascade-page .product-grid--editorial .product-card {
  height: 100%;
  border: 1px solid rgba(6, 26, 48, 0.14);
  background: rgba(248, 244, 235, 0.96);
  box-shadow: 0 18px 45px rgba(3, 16, 31, 0.08);
}

.cascade-page .product-grid--editorial .product-card:hover {
  transform: translateY(-6px);
}

.cascade-results-cta {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 1100px) {
  .entity-grid,
  .cascade-page .product-grid--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cascade-flow {
    grid-template-columns: 1fr;
  }

  .cascade-flow__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .cascade-filter-strip {
    padding: 16px;
  }

  .cascade-filter-strip__form,
  .cascade-results-bar,
  .entity-grid,
  .cascade-page .product-grid--editorial {
    grid-template-columns: 1fr;
  }

  .cascade-results-bar {
    display: grid;
    align-items: stretch;
  }

  .entity-tile {
    min-height: 320px;
  }
}

/* ===== MOBILE/TABLET RESPONSIVE FIXES ===== */
@media (max-width: 1023px) {
  /* Prevent horizontal scroll */
  body,
  html {
    overflow-x: hidden;
  }

  /* Text overflow / wrapping for eyebrows and labels */
  .cascade-flow__number,
  .cascade-flow__label,
  .cascade-filter-strip__field label,
  .cascade-callout__eyebrow,
  .cascade-selected-heading p,
  .empty-state__eyebrow,
  .cascade-results-bar__sort label,
  .entity-tile__meta,
  h1,
  h2,
  h3,
  h4 {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
  }

  /* Increase touch targets for mobile/tablet */
  .nav-list a,
  .breadcrumb a,
  .footer-col a,
  .btn,
  .modal-close,
  .cascade-filter-strip__field select,
  .cascade-results-bar__sort select {
    min-height: 48px;
  }

  .nav-list a,
  .breadcrumb a,
  .footer-col a {
    display: inline-flex;
    align-items: center;
  }

  /* Fix sticky filter strip overlap */
  .cascade-filter-strip {
    top: 124px !important;
  }

  /* Fix selected-vehicle eyebrow readability on light background */
  .cascade-selected-heading p {
    color: var(--steel) !important;
  }

  /* Cascade flow step indicator stacking */
  .cascade-flow {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .cascade-flow__arrow {
    display: none !important;
  }
  .cascade-flow__step {
    min-height: auto !important;
    padding: 12px 16px !important;
  }
}

@media (max-width: 767px) {
  /* Stat band 4-col to 1-col */
  .stats-band__grid {
    grid-template-columns: 1fr !important;
  }

  /* Cascade filter strip stacking */
  .cascade-filter-strip__form {
    grid-template-columns: 1fr !important;
  }

  /* Entity tile grid 1-col */
  .entity-grid,
  .grid-3,
  .grid-4,
  .products-grid .grid.grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Footer collapse */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* Modal fixes */
  .modal {
    padding: 16px !important;
  }
  .modal-content {
    padding: 20px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    width: 100% !important;
    margin: auto !important;
  }

  /* Hero image/SVG alignment */
  .home-hero-v2__carousel .hero-slide img,
  .home-hero-v2__fallback::before {
    object-position: center top !important;
    background-position: center top !important;
  }

  .home-hero-v2 h1 {
    font-size: clamp(32px, 8vw, 48px) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet 2-3 col entity grid */
  .entity-grid,
  .grid-3,
  .grid-4,
  .products-grid .grid.grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================
   Cross-Device Consistency Patches (v=20260514-1)
   ============================================ */

/* Mobile/tablet nav toggle: enforce 44x44 touch target */
@media (max-width: 1023px) {
  .site-header .container {
    position: relative;
  }
  .main-nav {
    position: absolute;
    top: 16px;
    right: var(--container-padding);
  }
  .nav-toggle {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: transparent;
    border: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    z-index: 1025;
  }
  .nav-toggle span {
    display: block !important;
    width: 24px !important;
    height: 3px !important;
    min-height: 3px !important;
    border-radius: 999px !important;
    background: var(--navy) !important;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
    background: var(--paper) !important;
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
    background: var(--paper) !important;
  }
  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    pointer-events: none;
  }
  .header-top {
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 56px;
  }
  .header-actions .search-form,
  .search-form {
    width: 100%;
    max-width: 100%;
  }
}

/* Floating contact buttons: lock SVG sizing across devices */
.floating-contact {
  right: 16px !important;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 999;
}
.float-btn {
  overflow: hidden;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.float-btn svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 24px;
  display: block;
  fill: currentColor;
}

/* Homepage banner: MINITO industrial style */
.home-hero-v3 {
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(42px, 5vw, 70px);
}

.home-hero-v3__carousel,
.home-hero-v3__fallback {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 720px);
  background: #03101f;
  color: #fff;
  box-shadow: 0 28px 70px rgba(3, 16, 31, 0.32);
}

.home-hero-v3__carousel .hero-track,
.home-hero-v3__carousel .hero-slide {
  min-height: clamp(520px, 72vh, 720px);
}

.home-hero-v3__carousel .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
}

.home-hero-v3__carousel .hero-slide img,
.home-hero-v3__fallback::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-v3__fallback::before {
  content: "";
  background-image: var(--hero-fallback);
  background-size: cover;
  background-position: center;
}

.home-hero-v3__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 58% 34%, rgba(215, 38, 61, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(3, 16, 31, 0.96) 0%, rgba(3, 16, 31, 0.8) 44%, rgba(3, 16, 31, 0.26) 100%),
    linear-gradient(180deg, rgba(3, 16, 31, 0.18), rgba(3, 16, 31, 0.5));
}

.home-hero-v3__number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  min-width: 52px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px 5px 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  border-bottom-right-radius: 12px;
}

.home-hero-v3__content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  align-content: space-between;
  gap: clamp(30px, 5vw, 64px);
  padding: clamp(46px, 5vw, 72px) clamp(24px, 5vw, 64px) clamp(26px, 4vw, 42px);
}

.home-hero-v3__copy {
  max-width: 620px;
}

.home-hero-v3__copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

.home-hero-v3__copy p {
  max-width: 46ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
}

.home-hero-v3__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(215, 38, 61, 0.92);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-hero-v3__features {
  display: grid;
  grid-template-columns: repeat(var(--feature-count), minmax(0, 1fr));
  border: 1px solid rgba(215, 38, 61, 0.34);
  background: rgba(3, 16, 31, 0.78);
  backdrop-filter: blur(10px);
}

.home-hero-v3__feature {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 14px 16px;
  border-right: 1px solid rgba(215, 38, 61, 0.32);
}

.home-hero-v3__feature:last-child {
  border-right: 0;
}

.home-hero-v3__feature-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.home-hero-v3__feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.home-hero-v3__feature strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.28;
}

.home-hero-v3__controls {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(3, 16, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero-v3__controls .hero-nav {
  position: static !important;
  width: 36px;
  height: 36px;
  transform: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero-v3__controls .hero-dots {
  position: static !important;
  display: inline-flex;
  gap: 8px;
  transform: none !important;
}

.home-hero-v3__controls .hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.home-hero-v3__controls .hero-dot.is-active {
  width: 28px;
  background: var(--red);
}

@media (max-width: 1023px) {
  .logo-img {
    width: 46px;
    height: 46px;
  }
  .home-hero-v3__carousel,
  .home-hero-v3__fallback,
  .home-hero-v3__carousel .hero-track,
  .home-hero-v3__carousel .hero-slide {
    min-height: 620px;
  }
  .home-hero-v3__scrim {
    background:
      linear-gradient(180deg, rgba(3, 16, 31, 0.94) 0%, rgba(3, 16, 31, 0.78) 55%, rgba(3, 16, 31, 0.42) 100%);
  }
  .home-hero-v3__content {
    padding: 54px 22px 24px;
  }
  .home-hero-v3__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hero-v3__feature:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .home-hero-v3__carousel,
  .home-hero-v3__fallback,
  .home-hero-v3__carousel .hero-track,
  .home-hero-v3__carousel .hero-slide {
    min-height: 690px;
  }
  .home-hero-v3__copy h1 {
    font-size: clamp(34px, 11vw, 54px);
  }
  .home-hero-v3__features {
    grid-template-columns: 1fr;
  }
  .home-hero-v3__feature,
  .home-hero-v3__feature:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(215, 38, 61, 0.32);
  }
  .home-hero-v3__feature:last-child {
    border-bottom: 0;
  }
  .home-hero-v3__controls {
    left: 18px;
    right: auto;
    top: auto;
    bottom: 18px;
  }
}
