/* Dongsheng Alloy Export Official Website Stylesheet */
/* Cross-Browser & iOS/macOS Safari Optimized */

:root {
  --brand-navy: #141414;
  --brand-navy-deep: #000000;
  --brand-copper: #2E7D32;
  --brand-copper-deep: #1B5E20;
  --brand-copper-light: #66BB6A;
  --steel: #6B7280;
  --surface: #F4F5F6;
  --surface-alt: #FFFFFF;
  --ink: #1A1A1A;
  --ink-inverse: #F5F5F5;
  --line: #E3E5E8;
  --success: #2E7D32;
  --danger: #C62828;
  --link-blue: #1976D2;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: #EAEBED;
  background-image: radial-gradient(#D1D5DB 1px, transparent 1px);
  background-size: 20px 20px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 1520px Outer Column Wrapper */
.site-wrapper {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--surface-alt);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

/* 1280px Content Container */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 { font-size: 56px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.25; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }

p {
  color: #374151;
  font-size: 16px;
  line-height: 1.7;
}

.num-tabular {
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  touch-action: manipulation;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Top Notification Banner */
.top-notice-bar {
  background-color: var(--brand-navy-deep);
  color: #9CA3AF;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.top-contact-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #D1D5DB;
}

.top-contact-item:hover {
  color: var(--brand-copper-light);
}

/* Sticky Main Navigation Header with Safari Fallback */
.main-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--brand-navy);
  color: #FFFFFF;
  height: 72px;
  transition: height var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.main-header.scrolled {
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-logo-main {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-copper-light);
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #D1D5DB;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-copper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  touch-action: manipulation;
}

.lang-btn:hover {
  border-color: var(--brand-copper-light);
  color: var(--brand-copper-light);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--brand-navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: none;
  min-width: 140px;
  z-index: 1200;
  overflow: hidden;
}

.lang-dropdown.open {
  display: block;
}

.lang-opt {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #D1D5DB;
  cursor: pointer;
  transition: var(--transition);
}

.lang-opt:hover, .lang-opt.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--brand-copper-light);
}

/* Standard Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand-copper);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary:hover {
  background-color: var(--brand-copper-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--ink);
  border: 1px solid #1A1A1A;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 23px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-outline:hover {
  background-color: var(--brand-navy);
  color: #FFFFFF !important;
  border-color: var(--brand-navy);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 23px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-outline-white:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
}

/* Sections Base */
.section {
  padding: 96px 0;
  position: relative;
}

.section-surface {
  background-color: var(--surface);
}

.section-dark {
  background-color: var(--brand-navy);
  color: #FFFFFF;
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: #9CA3AF;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-copper);
  margin-bottom: 8px;
}

.section-dark .section-tag {
  color: var(--brand-copper-light);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #FAFAFA 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  align-items: center;
  min-width: 0;
}

.hero-text-col {
  min-width: 0;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #4B5563;
  margin-bottom: 32px;
  max-width: 720px;
}

.hero-contact-icons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.hero-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition);
  touch-action: manipulation;
}

.hero-icon-pill.wa { background-color: #25D366; }
.hero-icon-pill.email { background-color: #757575; }
.hero-icon-pill.phone { background-color: #212121; }

.hero-icon-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Search Box Container */
.search-container-box {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-input-group {
  display: flex;
  gap: 12px;
}

.search-input-field {
  flex: 1;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 16px; /* Safari 16px to prevent auto-zoom */
  color: var(--ink);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.search-input-field:focus {
  border-color: var(--brand-copper);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.search-help-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.example-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--steel);
}

.example-link {
  color: var(--link-blue);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

.example-link:hover {
  color: #0D47A1;
}

.search-quick-links {
  display: flex;
  gap: 16px;
}

.search-quick-links a {
  color: var(--link-blue);
  font-weight: 500;
  text-decoration: underline;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--steel);
  font-weight: 500;
  line-height: 1.4;
}

/* Category Tiles with Safari Fallback */
.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-tile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #FFFFFF;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.tile-media-16-8 {
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background-color: #F8FAFC;
}

.tile-media-16-8 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.category-tile-card:hover .tile-media-16-8 img {
  transform: scale(1.04);
}

.tile-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-body h3 {
  margin-bottom: 12px;
}

.tile-body p {
  color: #4B5563;
  margin-bottom: 20px;
  font-size: 15px;
  flex: 1;
}

/* Vehicle Make Tiles */
.vehicle-makes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.make-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  background-color: #FFFFFF;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  touch-action: manipulation;
}

.make-card:hover {
  border-color: var(--brand-copper);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.make-card.dash-card {
  border: 2px dashed #CBD5E1;
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.make-card.dash-card:hover {
  border-color: var(--brand-copper);
  background-color: #FFFFFF;
}

.make-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.make-models {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 14px;
}

.make-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-copper-deep);
  background-color: #E8F5E9;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

/* Product Grid with Safari Protection */
.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--brand-copper);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.product-media-4-3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #F8FAFC;
}

.product-media-4-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.product-card:hover .product-media-4-3 img {
  transform: scale(1.03);
}

.availability-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  z-index: 2;
}

.availability-badge.in-stock {
  color: var(--brand-copper-deep);
  border-color: #C8E6C9;
  background-color: #E8F5E9;
}

.availability-badge.made-to-order {
  color: #B45309;
  border-color: #FDE68A;
  background-color: #FEF3C7;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-part-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
  font-family: monospace;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 10px;
  line-height: 1.35;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 4px;
}

.product-meta-label {
  color: var(--steel);
}

.product-meta-val {
  font-weight: 600;
  color: var(--ink);
}

.product-card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-moq {
  font-size: 12px;
  font-weight: 700;
  color: var(--steel);
}

.product-btn-view {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-copper);
}

.product-card:hover .product-btn-view {
  color: var(--brand-copper-deep);
}

/* Workshop & QC Section */
.workshop-qc-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: flex-start;
}

.carousel-box {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.carousel-img-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.carousel-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-footer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-caption h4 {
  margin-bottom: 6px;
}

.carousel-caption p {
  font-size: 14px;
  color: var(--steel);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background-color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.carousel-btn:hover {
  border-color: var(--brand-copper);
  color: var(--brand-copper);
}

.carousel-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
}

/* QC Steps */
.qc-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qc-step-card {
  display: flex;
  gap: 20px;
  padding: 18px 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.qc-step-card:hover {
  border-color: var(--brand-copper);
  transform: translateX(4px);
}

.qc-step-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-copper);
  font-family: monospace;
  line-height: 1;
  padding-top: 2px;
}

.qc-step-body h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.qc-step-body p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
}

/* Export Markets */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.market-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  background-color: #FFFFFF;
}

.market-region {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-copper-deep);
}

.market-countries {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.market-note {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.5;
}

/* News Cards with Safari Aspect Ratio Fallback */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--brand-copper);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.news-media-16-9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background-color: #F8FAFC;
}

.news-media-16-9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.news-card:hover .news-media-16-9 img {
  transform: scale(1.04);
}

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-category-badge {
  color: var(--brand-copper-deep);
  text-transform: uppercase;
}

.news-date {
  color: var(--steel);
}

.news-title {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-summary {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* RFQ Form Area (7 + 5) */
.rfq-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
}

.rfq-card {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

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

.form-control {
  border: 1px solid var(--line);
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px; /* iOS Safari 16px to prevent auto-zooming */
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--brand-copper);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.form-error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.privacy-notice {
  font-size: 13px;
  color: var(--steel);
  margin-top: 14px;
  line-height: 1.5;
}

/* Contact Info Column (Right 5 cols) */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-direct-card {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.contact-direct-card:hover {
  border-color: var(--brand-copper);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--brand-navy);
  color: var(--brand-copper-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 4px;
}

.contact-card-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* Cross Reference Page */
.cross-ref-control-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.segmented-btn {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background-color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.segmented-btn.active {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.data-table tr:hover td {
  background-color: #F8FAFC;
}

.table-btn-inquire {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background-color: #E8F5E9;
  color: var(--brand-copper-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  touch-action: manipulation;
}

.table-btn-inquire:hover {
  background-color: var(--brand-copper);
  color: #FFFFFF;
}

/* FAQ Accordion */
.faq-group-block {
  margin-bottom: 48px;
}

.faq-group-title {
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.faq-group-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--brand-copper);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.faq-question-btn:hover {
  color: var(--brand-copper-deep);
}

.faq-icon-cross {
  font-size: 20px;
  color: var(--steel);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon-cross {
  transform: rotate(45deg);
  color: var(--brand-copper);
}

.faq-answer-body {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #4B5563;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer-body {
  display: block;
}

/* Product Details Page */
.breadcrumb-row {
  padding: 24px 0 12px;
  font-size: 13px;
  color: var(--steel);
}

.breadcrumb-row a:hover {
  color: var(--brand-copper);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  padding: 24px 0 60px;
}

.gallery-box {
  display: flex;
  gap: 20px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90px;
  flex-shrink: 0;
}

.gallery-thumb-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 60px;
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.gallery-thumb-item.active {
  border-color: var(--brand-copper);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main-view {
  flex: 1;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #F8FAFC;
}

.gallery-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-specs-table th {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  padding: 12px 18px;
  font-size: 13px;
  text-align: left;
}

.detail-specs-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

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

.detail-specs-table td:first-child {
  font-weight: 600;
  color: var(--steel);
  width: 35%;
}

.detail-specs-table td:last-child {
  font-weight: 700;
  color: var(--ink);
}

/* Sticky RFQ Sidebar in Product Detail */
.sticky-rfq-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Floating Actions Pill with iOS Safe Area Insets */
.floating-contact-group {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-action-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--brand-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  touch-action: manipulation;
}

.floating-action-btn:hover {
  transform: translateY(-3px);
  background-color: var(--brand-copper);
}

.floating-action-btn.wa {
  background-color: #25D366;
  border: none;
}

.floating-action-btn.wa:hover {
  background-color: #1EBE5D;
}

/* Footer (Pure Black Background) */
.site-footer {
  background-color: var(--brand-navy-deep);
  color: #9CA3AF;
  padding: 80px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

.footer-links-list a {
  color: #9CA3AF;
  font-size: 14px;
}

.footer-links-list a:hover {
  color: var(--brand-copper-light);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  padding-bottom: env(safe-area-inset-bottom, 10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.btn-back-to-top {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-back-to-top:hover {
  background-color: var(--brand-copper);
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .top-notice-inner,
[dir="rtl"] .header-inner,
[dir="rtl"] .footer-bottom-bar {
  flex-direction: row-reverse;
}

[dir="rtl"] .data-table {
  text-align: right;
}

/* Responsive Media Queries */
@media (max-width: 1279px) {
  .header-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .vehicle-makes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid-3 { grid-template-columns: repeat(1, 1fr); }
  .workshop-qc-grid { grid-template-columns: 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .footer-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  h1 { font-size: 34px; line-height: 1.2; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .section { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-contact-icons { justify-content: flex-start; }
  .category-tiles-grid { grid-template-columns: 1fr; }
  .vehicle-makes-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .markets-grid { grid-template-columns: 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr; }
  .gallery-box { flex-direction: column-reverse; }
  .gallery-thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
  .gallery-thumb-item { width: 70px; }
  .search-input-group { flex-direction: column; }
  .search-input-field, .form-control { font-size: 16px !important; }
}
