/* style.css - HKS Thailand Web Style System */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens & CSS Variables --- */
:root {
  /* Colors */
  --color-bg: #07070A;
  --color-surface: #121213;
  --color-accent: #C70000;
  --color-accent-hover: #9E0000;
  --color-accent-glow: rgba(199, 0, 0, 0.35);
  
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B9BBC2;
  --color-text-muted: #6F737C;
  --color-text-light: #E8E8EA;
  
  --color-border: #2A2A2F;
  --color-divider: #1B1B1F;
  --color-table-stripe: #0F1013;
  --color-disabled: #3A3A3F;
  
  /* Semantics */
  --color-success: #2BAE66;
  --color-warning: #FFB020;
  --color-error: #E5484D;
  --color-info: #3B82F6;

  /* Typography */
  --font-heading: 'IBM Plex Sans Thai', sans-serif;
  --font-body: 'Noto Sans Thai', sans-serif;

  /* Shadows */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-red-glow: 0 0 20px rgba(199, 0, 0, 0.25);
  --shadow-red-glow-strong: 0 0 30px rgba(199, 0, 0, 0.5);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Header Height */
  --header-height-desktop: 100px;
  --header-height-mobile: 72px;
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Typography Scales */
.display-xl { font-family: var(--font-heading); font-size: 64px; line-height: 1.125; font-weight: 700; }
.display-l { font-family: var(--font-heading); font-size: 56px; line-height: 1.14; font-weight: 700; }
h1, .h1 { font-family: var(--font-heading); font-size: 44px; line-height: 1.22; font-weight: 700; }
h2, .h2 { font-family: var(--font-heading); font-size: 36px; line-height: 1.22; font-weight: 700; }
h3, .h3 { font-family: var(--font-heading); font-size: 28px; line-height: 1.28; font-weight: 600; }
h4, .h4 { font-family: var(--font-heading); font-size: 24px; line-height: 1.33; font-weight: 600; }
h5, .h5 { font-family: var(--font-heading); font-size: 20px; line-height: 1.4; font-weight: 600; }
h6, .h6 { font-family: var(--font-heading); font-size: 18px; line-height: 1.44; font-weight: 600; }
.body-l { font-family: var(--font-body); font-size: 18px; line-height: 1.66; font-weight: 400; }
.body-m { font-family: var(--font-body); font-size: 16px; line-height: 1.75; font-weight: 400; }
.body-s { font-family: var(--font-body); font-size: 14px; line-height: 1.71; font-weight: 400; }
.caption { font-family: var(--font-body); font-size: 12px; line-height: 1.5; font-weight: 500; }
.btn-label { font-family: var(--font-heading); font-size: 14px; line-height: 1.42; font-weight: 600; }

@media (max-width: 1023px) {
  h1, .h1 { font-size: 38px; line-height: 1.26; }
  h2, .h2 { font-size: 32px; line-height: 1.25; }
  h3, .h3 { font-size: 26px; line-height: 1.3; }
  .body-m { font-size: 16px; line-height: 1.625; }
}

@media (max-width: 767px) {
  h1, .h1 { font-size: 30px; line-height: 1.33; }
  h2, .h2 { font-size: 26px; line-height: 1.3; }
  h3, .h3 { font-size: 22px; line-height: 1.36; }
  h4, .h4 { font-size: 20px; line-height: 1.4; }
  .body-m { font-size: 16px; line-height: 1.625; }
  .body-s { font-size: 14px; line-height: 1.57; }
}

/* Helper Layout Classes */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }

.section-padding {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-title {
  font-size: 32px;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

/* Grid System */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-family: var(--font-heading);
}
.badge-red {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 8px var(--color-accent-glow);
}
.badge-secondary {
  background-color: var(--color-border);
  color: var(--color-text-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-red-glow);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-red-glow-strong);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-text-primary);
  color: #ffffff;
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-red-glow);
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: translateY(0);
}

.btn-disabled, .btn:disabled {
  background-color: var(--color-disabled);
  color: var(--color-text-muted);
  border: none;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(7, 7, 10, 0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 42, 47, 0.3);
  display: flex;
  flex-direction: column;
}

header.scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--color-border);
}

/* Top Utility Bar */
.topbar {
  height: 36px;
  width: 100%;
  border-bottom: 1px solid rgba(42, 42, 47, 0.3);
  background-color: rgba(11, 11, 13, 0.75);
  transition: all 0.3s ease;
  overflow: hidden;
}

header.scrolled .topbar {
  height: 0;
  border-bottom: none;
  opacity: 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  height: 100%;
}

.topbar-left ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.topbar-left a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.topbar-left a:hover {
  color: var(--color-accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-socials {
  display: flex;
  gap: 12px;
}

.topbar-social {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.topbar-social:hover {
  color: #ffffff;
}

/* Main Navigation Bar */
.header-main {
  height: 64px;
  width: 100%;
  transition: all 0.3s ease;
}

header.scrolled .header-main {
  height: 60px;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (min-width: 768px) {
  .desktop-hidden-link {
    display: none !important;
  }
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo-text {
  font-family: 'Prompt', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
}
.logo-text span {
  color: var(--color-accent);
  text-shadow: 0 0 10px var(--color-accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  position: relative;
  padding: 8px 0;
}

nav a:hover, nav a.active {
  color: #ffffff;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--color-accent);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Submenu / Dropdown Menu styling */
.has-submenu {
  position: relative;
}

.has-submenu .arrow {
  font-size: 10px;
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.has-submenu:hover .arrow {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px var(--color-accent);
}

.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu li {
  width: 100%;
  padding: 0;
}

.submenu a {
  display: block;
  width: 100%;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  transition: all 0.3s ease !important;
  border-bottom: none !important;
}

.submenu a::after {
  display: none !important; /* hide the slide underline for submenu items */
}

.submenu a:hover {
  background-color: rgba(199, 0, 0, 0.1) !important;
  color: #ffffff !important;
  padding-left: 24px !important; /* subtle slide on hover */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-trigger {
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 20px;
  transition: color 0.3s ease;
}
.search-trigger:hover {
  color: var(--color-accent);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
}

.lang-item {
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-item:hover, .lang-item.active {
  color: var(--color-accent);
}

.lang-divider {
  color: var(--color-border);
  cursor: default;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

/* --- Views Management (SPA Router) --- */
.view-section {
  display: none;
  padding-top: var(--header-height-desktop);
  min-height: 100vh;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

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

/* --- View SC-01: Homepage --- */

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 780px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-height-desktop));
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(7,7,10,0.95) 0%, rgba(7,7,10,0.8) 40%, rgba(7,7,10,0.3) 100%);
  z-index: 1;
}

/* Custom CSS/SVG Canvas Graphic for Hero Background when image is missing */
.hero-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero-bg.png') no-repeat center center;
  background-size: cover;
  z-index: 0;
}

.hero-motorsport-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(199,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  perspective: 500px;
  transform: rotateX(60deg) translateY(-200px);
  transform-origin: top;
  z-index: 1;
  opacity: 0.4;
}

.hero-car-silhouette {
  display: none;
}

@keyframes floatCar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  text-align: left;
  margin: 0;
}

.hero-eyebrow {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.hero-title {
  font-size: 56px;
  color: #ffffff;
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.hero-description {
  color: var(--color-text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

/* Search by Vehicle Panel */
.search-vehicle-section {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  padding-bottom: 40px;
}

.search-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

#home-search-btn {
  background-color: #C70000 !important;
  border-color: #C70000 !important;
  color: #ffffff !important;
}

#home-search-btn:disabled {
  background-color: #C70000 !important;
  border-color: #C70000 !important;
  color: #ffffff !important;
  opacity: 1;
  cursor: not-allowed;
}


.search-panel-title {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-fields-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

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

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  height: 52px;
  background-color: rgba(7, 7, 10, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B9BBC2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(199, 0, 0, 0.2);
}

.form-control:disabled {
  background-color: var(--color-disabled);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Category Card */
.category-card {
  height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7,7,10,0.1) 0%, rgba(7,7,10,0.85) 75%, #07070a 100%);
  z-index: 1;
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card-title {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 8px;
}

.category-card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card:hover .category-card-desc {
  opacity: 1;
  max-height: 60px;
  margin-bottom: 16px;
}

.category-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-card-link::after {
  content: '→';
  transition: transform 0.3s ease;
}
.category-card:hover .category-card-link::after {
  transform: translateX(4px);
}

/* Product Card */
.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  transition: all 0.3s ease;
}

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

.product-image-wrap {
  width: 100%;
  height: 220px;
  background-color: rgba(7, 7, 10, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 42, 47, 0.2);
  margin-bottom: 16px;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.product-card-cat {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-code {
  font-family: monospace;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

#cat-featured-grid .product-card {
  min-height: auto !important;
}

.product-card-link-title:hover {
  color: var(--color-accent) !important;
}

.product-card-compat {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.product-card-compat::before {
  content: '🚗';
  font-size: 12px;
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: auto;
  margin-bottom: 16px;
}

/* Featured Car Models */
.car-model-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.car-model-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-red-glow);
}
.car-model-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #17171e;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-model-card:hover .car-model-card-bg svg {
  transform: scale(1.1);
}
.car-model-card-bg svg {
  width: 90%;
  height: auto;
  opacity: 0.15;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.car-model-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7,7,10,0.2) 0%, rgba(7,7,10,0.9) 80%);
  z-index: 1;
}
.car-model-card-content {
  position: relative;
  z-index: 2;
}
.car-model-card-title {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 4px;
}
.car-model-card-count {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Split Section Manufacturing */
.manufacturing-highlight-section {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.split-wrap {
  display: flex;
  align-items: center;
  gap: 60px;
}
.split-media {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--color-border);
}
.split-content {
  flex: 1;
}
.split-content .bullets {
  list-style: none;
  margin: 24px 0 32px;
}
.split-content .bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}
.split-content .bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* News & Article Card */
.news-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
}
.news-card-img {
  height: 180px;
  background-color: #1a1a24;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-card-link {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-card-link::after {
  content: '→';
}

/* Call to Action Banner */
.cta-banner-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-bottom: 60px;
}
.cta-banner {
  padding: 60px;
  background: radial-gradient(circle at 80% 20%, #4a0000 0%, var(--color-surface) 60%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(45deg, rgba(199,0,0,0.02) 0px, rgba(199,0,0,0.02) 2px, transparent 2px, transparent 10px);
  z-index: -1;
}
.cta-content {
  max-width: 600px;
}
.cta-title {
  font-size: 32px;
  margin-bottom: 12px;
}
.cta-desc {
  color: var(--color-text-secondary);
  font-size: 16px;
}

/* Double column CTA for Dealer & Contact combined */
.double-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 80px;
}
.double-cta-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.double-cta-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.05;
  pointer-events: none;
}
.double-cta-dealer::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}
.double-cta-contact::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --- View SC-02 & SC-03: Catalog & Category Listing --- */

.catalog-layout {
  display: flex;
  gap: 32px;
}

/* Left Filter Panel */
.filter-panel {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-divider);
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Checkbox/Radio */
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.filter-option:hover {
  color: #ffffff;
}
.filter-option input {
  display: none;
}
.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  border-radius: 4px;
  display: inline-block;
  position: relative;
}
.filter-option input:checked + .checkmark {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent-glow);
}
.filter-option input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.catalog-main {
  flex-grow: 1;
}

/* Category Hero Banner inside Listing */
.catalog-category-hero {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.catalog-category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(199,0,0,0.1) 0%, transparent 80%);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
}

.search-box-wrap {
  position: relative;
  width: 320px;
}
.search-box-input {
  height: 42px;
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 16px 0 40px;
  color: #ffffff;
  font-size: 14px;
}
.search-box-input:focus {
  border-color: var(--color-accent);
}
.search-box-icon {
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.sort-select {
  height: 40px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 32px 0 12px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23B9BBC2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

#catalog-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
}

@media (max-width: 1023px) {
  #catalog-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 575px) {
  #catalog-products-grid {
    grid-template-columns: 1fr !important;
  }
}

#detail-related-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
}

@media (max-width: 1023px) {
  #detail-related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 575px) {
  #detail-related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}
.page-btn:hover, .page-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-red-glow);
}

/* --- View SC-04: Product Detail --- */

.product-detail-hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Image Gallery */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  height: 460px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.thumb-item {
  width: 80px;
  height: 80px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.thumb-item.active, .thumb-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-red-glow);
}

/* Product Info */
.detail-info {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.detail-info-cat {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.detail-info-title {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.detail-info-code {
  font-family: monospace;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-divider);
}

.detail-info-price {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.detail-info-bullets {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-info-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.detail-info-bullets li::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

.detail-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Overview & Specs Tabs */
.detail-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
  gap: 32px;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 16px 0;
  position: relative;
}
.tab-btn.active {
  color: #ffffff;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
}
.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.specs-table tr {
  border-bottom: 1px solid var(--color-divider);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 16px 24px;
  font-size: 15px;
}

.specs-table td:first-child {
  width: 30%;
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}

.specs-table td:last-child {
  background-color: rgba(7, 7, 10, 0.2);
  color: #ffffff;
}

/* Application Chart Table */
.app-chart-section {
  margin-top: 60px;
}

.app-chart-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-search-box {
  width: 260px;
}

.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
}

.app-chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.app-chart-table th {
  background-color: var(--color-divider);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

.app-chart-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-divider);
}

.app-chart-table tr:nth-child(odd) td {
  background-color: var(--color-table-stripe);
}

.app-chart-table tr:nth-child(even) td {
  background-color: var(--color-surface);
}

.app-chart-table tr:hover td {
  background-color: rgba(199, 0, 0, 0.05) !important;
}

/* Downloads section */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.download-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.download-card:hover {
  border-color: var(--color-accent);
}
.download-info-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.download-icon {
  font-size: 28px;
  color: var(--color-accent);
}
.download-filename {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.download-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Inquiry Form */
.inquiry-split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 40px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 80px;
}

.inquiry-form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.inquiry-form-box .form-group-full {
  grid-column: span 2;
}

/* --- View SC-10: Dealer Locator --- */

.dealers-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  height: calc(100vh - var(--header-height-desktop) - 80px);
  margin-top: 20px;
}

.dealers-list-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dealers-search-filter {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}

.dealers-scroll-wrap {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.dealer-list-card {
  background-color: rgba(7, 7, 10, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dealer-list-card:hover {
  border-color: var(--color-accent);
}

.dealer-list-card.active {
  border-color: var(--color-accent);
  background-color: rgba(199, 0, 0, 0.05);
  box-shadow: var(--shadow-red-glow);
}

.dealer-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.dealer-card-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dealer-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dealer-card-address {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Map Mockup Area */
.dealers-map-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.map-svg-background {
  width: 100%;
  height: 100%;
  background-color: #0b0b0f;
  background-image: 
    radial-gradient(#15151f 1px, transparent 1px),
    radial-gradient(#15151f 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  position: relative;
}

.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.3s ease;
  z-index: 5;
}
.map-pin::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 13px;
  width: 6px;
  height: 6px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
.map-pin svg {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}
.map-pin:hover, .map-pin.active {
  transform: translate(-50%, -100%) scale(1.2);
  z-index: 10;
}
.map-pin.active svg path {
  fill: var(--color-accent) !important;
}

.map-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft), var(--shadow-red-glow-strong);
  z-index: 20;
  display: none;
  animation: slideUp 0.3s ease forwards;
}

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

.map-card-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--color-text-muted);
  cursor: pointer;
}
.map-card-close:hover {
  color: #ffffff;
}

/* Thailand Shape Mockup SVG */
.thai-shape {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 80%;
  opacity: 0.12;
  stroke: var(--color-border);
  stroke-width: 1;
  fill: none;
}

/* --- Global Search Result --- */
.search-results-summary {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 32px;
}

/* --- Thank You & 404 Screens --- */
.utility-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.utility-card {
  max-width: 500px;
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-center: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.utility-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(199, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-accent);
  font-size: 36px;
  box-shadow: 0 0 20px rgba(199, 0, 0, 0.1);
}
.utility-icon-success {
  background-color: rgba(43, 174, 102, 0.1);
  color: var(--color-success);
  box-shadow: 0 0 20px rgba(43, 174, 102, 0.15);
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 7, 10, 0.98);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}
.search-overlay.active {
  display: flex;
}
.search-overlay-close {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 32px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}
.search-overlay-close:hover {
  color: var(--color-accent);
}
.search-overlay-content {
  width: 100%;
  max-width: 600px;
  text-align: center;
}
.search-overlay-title {
  font-size: 24px;
  margin-bottom: 24px;
}
.search-overlay-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.search-overlay-input {
  width: 100%;
  height: 64px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 32px;
  font-size: 20px;
  color: #ffffff;
  text-align: center;
}
.search-overlay-input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-red-glow-strong);
}

/* --- Footer --- */
footer {
  background-color: #040406;
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px;
  color: var(--color-text-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 4fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo-text {
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #ffffff;
}
.social-icon:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-red-glow);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* --- Responsive Breakpoints --- */

/* Small Desktop & Laptop (1024px to 1280px) */
@media (max-width: 1279px) {
  .hero-banner {
    height: 680px;
  }
  .hero-title {
    font-size: 44px;
  }
  .search-fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .search-fields-grid .form-group:last-child {
    grid-column: span 3;
    margin-top: 10px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
  body {
    font-size: 15px;
  }
  .topbar {
    display: none !important;
  }
  .header-main {
    height: var(--header-height-mobile) !important;
  }
  header {
    height: var(--header-height-mobile);
  }
  .view-section {
    padding-top: var(--header-height-mobile);
  }
  .hero-banner {
    height: 600px;
  }
  .hero-car-silhouette {
    opacity: 0.4;
    width: 80%;
  }
  .hero-title {
    font-size: 38px;
  }
  .search-vehicle-section {
    margin-top: -40px;
  }
  .search-panel {
    padding: 24px;
  }
  .search-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-fields-grid .form-group:last-child {
    grid-column: span 2;
  }
  .split-wrap {
    flex-direction: column;
    gap: 40px;
  }
  .split-media {
    width: 100%;
    height: 320px;
  }
  .double-cta-grid {
    grid-template-columns: 1fr;
  }
  .catalog-layout {
    flex-direction: column;
  }
  .filter-panel {
    width: 100%;
    position: static;
    margin-bottom: 24px;
  }
  .product-detail-hero {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    height: 360px;
  }
  .dealers-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .dealers-map-panel {
    height: 400px;
    margin-top: 24px;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  /* Navigation mobile menu styles */
  .mobile-menu-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height-mobile));
    background-color: var(--color-bg);
    z-index: 999;
    transition: left 0.4s ease;
    padding: 40px;
    border-top: 1px solid var(--color-border);
  }
  nav.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 24px;
  }
  nav a {
    font-size: 20px;
  }
  .submenu {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 8px 0 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .submenu li {
    width: auto;
  }
  .submenu a {
    font-size: 14px !important;
    padding: 6px 0 !important;
    color: var(--color-text-secondary) !important;
  }
  .submenu a:hover {
    padding-left: 8px !important;
    background-color: transparent !important;
    color: var(--color-accent) !important;
  }
  .has-submenu .arrow {
    display: none;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-accent);
  }
  .hero-banner {
    height: 520px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .search-fields-grid {
    grid-template-columns: 1fr;
  }
  .search-fields-grid .form-group:last-child {
    grid-column: span 1;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-title {
    font-size: 26px;
  }
  .cta-banner {
    padding: 32px;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .inquiry-split {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .inquiry-form-box {
    grid-template-columns: 1fr;
  }
  .inquiry-form-box .form-group-full {
    grid-column: span 1;
  }
  .dealers-search-filter {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* --- Contact Page Customized Styles --- */
.contact-info-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

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

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(199, 0, 0, 0.1);
  border: 1px solid rgba(199, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-content h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.contact-info-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: rgba(7, 7, 10, 0.4);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-social-btn svg {
  width: 18px;
  height: 18px;
}

.contact-social-btn.line-btn:hover {
  border-color: #06C755;
  color: #06C755;
  background-color: rgba(6, 199, 85, 0.05);
}

.contact-social-btn.facebook-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
  background-color: rgba(24, 119, 242, 0.05);
}

.contact-social-btn.instagram-btn:hover {
  border-color: #E1306C;
  color: #E1306C;
  background-color: rgba(225, 48, 108, 0.05);
}

.contact-social-btn.youtube-btn:hover {
  border-color: #FF0000;
  color: #FF0000;
  background-color: rgba(255, 0, 0, 0.05);
}

/* Custom Interactive Mock Map */
.hq-map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: #0b0b0f;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hq-map-radar-pin {
  position: absolute;
  top: 66%;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
}

.hq-map-radar-pin .pin-circle {
  width: 16px;
  height: 16px;
  background-color: var(--color-accent);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
  position: relative;
  z-index: 2;
}

.hq-map-radar-pin .radar-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: radarPulse 2s infinite ease-out;
  z-index: 1;
}

@keyframes radarPulse {
  0% { width: 16px; height: 16px; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

.hq-map-tooltip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background-color: rgba(18, 18, 19, 0.95);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft), var(--shadow-red-glow);
  z-index: 12;
  animation: fadeIn 0.4s ease;
  backdrop-filter: blur(8px);
}

.hq-map-tooltip h5 {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.hq-map-tooltip p {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.hq-map-tooltip a {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Layout styles */
.faq-section-title {
  font-size: 24px;
  margin-top: 60px;
  margin-bottom: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}

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

.faq-question {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.faq-question::before {
  content: 'Q:';
  color: var(--color-accent);
}

.faq-answer {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .hq-map-tooltip {
    position: static;
    width: 100%;
    margin-top: 16px;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--color-border);
    box-shadow: none;
  }
  .hq-map-wrapper {
    height: auto;
  }
  .hq-map-radar-pin {
    display: none;
  }
}

/* --- Desktop Viewport Centering for Homepage Sections --- */
@media (min-width: 992px) {
  .home-viewport-section {
    min-height: calc(100vh - var(--header-height-desktop));
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .hero-banner {
    height: calc(100vh - var(--header-height-desktop) - 100px);
    min-height: 520px;
  }
}

/* --- New Releases Grid Layout (1 Row, 4 Items) --- */
#home-new-releases-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
  #home-new-releases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  #home-new-releases-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Featured Cars Grid Layout (1 Row, 3 Items) --- */
#home-cars-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  #home-cars-grid {
    grid-template-columns: 1fr;
  }
}

/* --- News Grid Layout (1 Row, 4 Items) --- */
#home-news-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
  #home-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  #home-news-grid {
    grid-template-columns: 1fr;
  }
}

/* --- SC-02A Category Landing Page --- */
.cat-hero {
  padding: 100px 0 80px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 2px solid var(--color-accent);
}

.cat-hero .breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.cat-hero .breadcrumb a {
  color: var(--color-text-secondary);
}

.cat-hero .breadcrumb a:hover {
  color: #ffffff;
}

.cat-hero-badge {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.cat-hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cat-hero-desc {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.cat-hero-buttons {
  display: flex;
  gap: 16px;
}

/* 2-Column Overview Layout */
.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.tech-point-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}

.tech-point-check {
  font-weight: bold;
  color: var(--color-accent);
}

.overview-graphics {
  display: flex;
  justify-content: center;
}

/* Blueprint Card Styling */
.blueprint-card {
  width: 100%;
  height: 280px;
  background-color: #0b0f19;
  border: 1px dashed rgba(0, 168, 255, 0.3);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #00a8ff;
  box-shadow: inset 0 0 20px rgba(0, 168, 255, 0.1);
}

.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 168, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.blueprint-label {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(0, 168, 255, 0.5);
}

/* Subcategory chips */
.chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.chip-tab {
  padding: 12px 28px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #ffffff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.chip-tab:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red-glow);
}

/* Vehicle compatibility card */
.compat-vehicle-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.compat-card-bg {
  position: absolute;
  top: 10px;
  right: -10px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -1px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  transition: all 0.3s ease;
}

.compat-vehicle-card:hover .compat-card-bg {
  transform: scale(1.1) translateX(-10px);
  color: rgba(199, 0, 0, 0.06);
}

.compat-vehicle-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  z-index: 1;
}

.compat-vehicle-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  z-index: 1;
}

.compat-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
  transition: all 0.3s ease;
}

.compat-vehicle-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-red-glow);
}

.compat-vehicle-card:hover .compat-link {
  color: #ffffff;
  padding-left: 4px;
}

@media (max-width: 1023px) {
  .cat-hero-title {
    font-size: 38px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .cat-hero {
    padding: 60px 0 50px;
    text-align: center;
  }
  .cat-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cat-hero-buttons .btn {
    width: 100%;
  }
  .chip-tab {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* --- SC-02 Categories Landing page --- */
.categories-hero {
  padding: 80px 0 60px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 2px solid var(--color-accent);
}

.categories-hero .breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.categories-hero .breadcrumb a {
  color: var(--color-text-secondary);
}

.categories-hero .breadcrumb a:hover {
  color: #ffffff;
}

.categories-hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.categories-hero-desc {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.featured-cats-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feat-cat-banner-box {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.feat-cat-banner-box:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-red-glow);
}

@media (max-width: 1023px) {
  .featured-cats-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feat-cat-banner-box {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .categories-hero {
    padding: 50px 0 40px;
    text-align: center;
  }
  .categories-hero-title {
    font-size: 32px;
  }
}

/* Utility 4-Column Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Global responsive grid overrides */
@media (max-width: 1023px) {
  .col-4, .col-3 {
    grid-column: span 6 !important;
  }
}

@media (max-width: 575px) {
  .col-4, .col-3, .col-6, .col-8 {
    grid-column: span 12 !important;
  }
}

/* --- STOCK INQUIRY STYLES --- */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

.stock-hero {
  background-color: #0b0b0f;
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.stock-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle, rgba(199, 0, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stock-search-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: -32px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg), 0 0 1px var(--color-accent);
}
.stock-search-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.stock-search-row:last-child {
  margin-bottom: 0;
  align-items: flex-end;
}
.stock-search-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.stock-quick-presets {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stock-preset-chip {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stock-preset-chip:hover {
  background-color: rgba(199, 0, 0, 0.1);
  border-color: var(--color-accent);
  color: #ffffff;
}
.stock-guide-box {
  background: linear-gradient(135deg, rgba(23, 23, 34, 0.8) 0%, rgba(11, 11, 15, 0.8) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 40px;
}
.stock-guide-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-guide-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stock-guide-list li {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}
.stock-guide-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}
.stock-table-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
}
.stock-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.stock-table th {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.stock-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-secondary);
  vertical-align: middle;
}
.stock-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
  color: #ffffff;
}
.stock-table tr:last-child td {
  border-bottom: none;
}
.stock-table-code-badge {
  font-family: monospace;
  font-weight: 700;
  color: var(--color-accent);
  background-color: rgba(199, 0, 0, 0.08);
  border: 1px solid rgba(199, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
}
.stock-table-pdf-link {
  color: var(--color-text-secondary);
  font-size: 18px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stock-table-pdf-link:hover {
  color: var(--color-accent);
}
.stock-table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.stock-table-action-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 8px var(--color-accent-glow);
}
.stock-result-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.stock-filter-chip {
  background-color: rgba(199, 0, 0, 0.08);
  border: 1px solid rgba(199, 0, 0, 0.2);
  color: #ffffff;
  padding: 4px 10px 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stock-filter-chip-remove {
  cursor: pointer;
  color: var(--color-text-secondary);
  font-weight: bold;
}
.stock-filter-chip-remove:hover {
  color: var(--color-accent);
}

/* Mobile results card list styling */
.stock-mobile-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.stock-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.stock-mobile-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}
.stock-mobile-card-row:last-child {
  border-bottom: none;
}
.stock-mobile-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}

@media (max-width: 1023px) {
  .stock-search-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .stock-search-panel {
    margin-top: 0;
  }
  .stock-search-row {
    grid-template-columns: 1fr;
  }
  .stock-guide-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   --- SUPPORT SECTION STYLING (FAQ & PRODUCT WARRANTY) ---
   ========================================================================= */

/* Support Entry Cards */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.support-entry-card {
  background: linear-gradient(135deg, rgba(23, 23, 34, 0.85) 0%, rgba(11, 11, 15, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.support-entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.support-entry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 0, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 1px var(--color-accent);
}
.support-entry-card:hover::before {
  opacity: 1;
}
.support-card-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}
.support-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.support-card-desc {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* FAQ Categories Grid */
.faq-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.faq-cat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.faq-cat-card:hover {
  border-color: var(--color-accent);
  background-color: rgba(199, 0, 0, 0.02);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.faq-cat-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.faq-cat-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.faq-cat-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.faq-cat-count {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

/* Accordion list */
.accordion-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.accordion-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}
.accordion-item.active {
  border-color: rgba(199, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
}
.accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
.accordion-header:hover .accordion-title {
  color: var(--color-accent);
}
.accordion-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  padding-right: 16px;
  line-height: 1.5;
  transition: color 0.2s ease;
}
.accordion-icon {
  font-size: 18px;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  background-color: rgba(0,0,0,0.1);
}
.accordion-item.active .accordion-content {
  max-height: 1000px;
  border-top: 1px solid var(--color-border);
}
.accordion-body {
  padding: 24px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Warnings Policy Callouts */
.policy-warning-block {
  background-color: rgba(199, 0, 0, 0.03);
  border: 1px solid rgba(199, 0, 0, 0.15);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}
.policy-warning-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Step / Process Blocks */
.step-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.step-block-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
}
.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Table Design for Warranty */
.warranty-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.warranty-table th, .warranty-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  text-align: left;
}
.warranty-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.02);
}
.warranty-table td {
  color: var(--color-text-secondary);
}

@media (max-width: 1023px) {
  .support-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .faq-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .faq-cat-grid {
    grid-template-columns: 1fr;
  }
  .step-blocks {
    grid-template-columns: 1fr;
  }
  .support-entry-card {
    padding: 30px 20px;
  }
}

