/* ===================================================================
   G&T Global Trade - Complete Production Stylesheet
   Responsive, accessible, mobile-first design
   =================================================================== */

/* --- CSS Variables --- */
:root {
  --bg: #eef3fa;
  --surface: #ffffff;
  --surface-alt: #f7f9fd;
  --surface-strong: #eef3fa;
  --brand: #0A356D;
  --brand-soft: #2d4e8d;
  --brand-dark: #081f48;
  --accent: #c79d2f;
  --accent-soft: #f5e8c1;
  --text: #0f1f3d;
  --muted: #5f6d87;
  --border: #d7e2f0;
  --shadow: 0 24px 60px rgba(12, 33, 70, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f7f9fd 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(0,0,0,0.05); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* --- Container --- */
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 31, 61, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 60px; width: auto; display: block; }
.brand-copy { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; min-width: 0; }
.brand-name { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--brand-dark); }
.brand-tagline { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

/* Navigation Links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a {
  color: var(--muted);
  padding: 9px 0;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links .active { color: var(--brand-dark); }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 9500;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brand-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 20px 45px rgba(10, 53, 109, 0.16); }
.btn-primary:hover { background: var(--brand-soft); }
.btn-outline { background: transparent; border: 1px solid rgba(10, 53, 109, 0.18); color: var(--brand-dark); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-small { padding: 10px 18px; font-size: 0.88rem; }
.btn-small.btn-primary,
.nav-links .btn-small { background: var(--brand); color: white; border-radius: var(--radius-pill); }
.nav-links .btn.btn-outline { border: 1px solid rgba(10, 53, 109, 0.18); }

/* --- Hero Section --- */
.hero { padding: 64px 0 72px; background: linear-gradient(135deg, #0A356D 0%, #133664 55%, #17376F 100%); color: white; }
.hero-grid { display: grid; grid-template-columns: 1.8fr .95fr; gap: 28px; align-items: center; }
.hero-copy { max-width: 680px; }
.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; margin: 28px 0 20px; }
.hero p { max-width: 640px; color: rgba(255,255,255,0.92); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn-outline { color: white; border-color: rgba(255,255,255,0.38); }
.hero .btn-outline:hover { border-color: rgba(255,255,255,0.7); }
.hero-card {
  display: grid;
  gap: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 28px;
  color: white;
}
.hero-card h2 { margin: 0 0 12px; font-size: 1.35rem; }
.hero-card p { margin: 0; color: rgba(255,255,255,0.88); }

/* Page Hero (light) */
.page-hero { padding: 48px 0 36px; }
.page-hero-light { background: var(--surface-alt); }
.hero-copy-centered { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-copy-centered h1 { margin-top: 16px; }

/* --- Sections --- */
.section { padding: 40px 0 28px; }
.section-alt { background: var(--surface-alt); border-radius: var(--radius); padding: 32px; margin: 24px 0; }
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.section-intro h2 { margin-top: 8px; }
.section-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d6e6e;
  margin-bottom: 8px;
}

/* --- Cards & Surfaces --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.05);
}
.product-card, .category-grid article, .info-card, .order-card, .contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(10, 53, 109, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(10, 53, 109, 0.08);
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card, .market-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(10, 53, 109, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover, .market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(10, 53, 109, 0.12);
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand-dark); }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Feature card palette variants */
.palette-blue, .feature-card.palette-blue { background: linear-gradient(135deg, #e9f4ff 0%, #dbeefe 100%); }
.palette-orange, .feature-card.palette-orange { background: linear-gradient(135deg, #fff4e8 0%, #ffe6c9 100%); }
.palette-green, .feature-card.palette-green { background: linear-gradient(135deg, #edf9ef 0%, #dff2e4 100%); }
.palette-purple, .feature-card.palette-purple { background: linear-gradient(135deg, #f4edff 0%, #e8dcff 100%); }

/* Industry palette variants */
.palette-industry-1 { background: linear-gradient(135deg, #eef7ff 0%, #dceefc 100%); }
.palette-industry-2 { background: linear-gradient(135deg, #fff4e5 0%, #ffe2bc 100%); }
.palette-industry-3 { background: linear-gradient(135deg, #f2f8ee 0%, #def0db 100%); }
.palette-industry-4 { background: linear-gradient(135deg, #f6efff 0%, #e8dcfb 100%); }

/* --- Service Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(10, 53, 109, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(10, 53, 109, 0.12);
}
.service-icon { font-size: 2rem; }
.service-card h3 { margin: 0; font-size: 1.1rem; color: var(--brand-dark); }
.service-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.service-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.service-card li { margin-bottom: 4px; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* --- Reasons Grid --- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.reasons-grid article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(10, 53, 109, 0.06);
}
.reasons-grid h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand-dark); }
.reasons-grid p { margin: 0; color: var(--muted); }

/* --- Testimonials --- */
.section-testimonials { padding: 40px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(10, 53, 109, 0.06);
}
.testimonial-grid p { margin: 0 0 12px; color: var(--text); font-style: italic; line-height: 1.7; }
.testimonial-grid span { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* --- FAQ Grid --- */
.section-faq { padding: 40px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.faq-grid article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(10, 53, 109, 0.06);
}
.faq-grid h3 { margin: 0 0 8px; font-size: 1rem; color: var(--brand-dark); }
.faq-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

/* --- Stats --- */
.section-stats { padding: 40px 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-grid div {
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(10, 53, 109, 0.06);
}
.stat-grid strong { display: block; font-size: 2rem; color: var(--brand); margin-bottom: 4px; }
.stat-grid span { color: var(--muted); font-size: 0.88rem; }

/* --- Contact Panel --- */
.contact-panel { padding: 40px 0; }
.contact-callout {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #0A356D 0%, #17376F 100%);
  color: white;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(10, 53, 109, 0.2);
}
.contact-callout .section-label { color: rgba(255,255,255,0.8); }
.contact-callout h2 { color: white; margin: 8px 0 16px; }
.contact-callout p { color: rgba(255,255,255,0.88); margin-bottom: 20px; }
.contact-callout .btn-primary { background: white; color: var(--brand-dark); }
.contact-callout .btn-outline { border-color: rgba(255,255,255,0.4); color: white; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* Contact Grid (contact page) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.contact-card { padding: 24px; }
.contact-card h3 { margin: 0 0 12px; color: var(--brand-dark); }
.contact-card p { margin: 4px 0; color: var(--muted); }

/* --- Category Grid --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}
.category-grid.corporate-grid article,
.corporate-grid article {
  padding: 22px;
  border-radius: var(--radius);
}
.category-grid article { padding: 18px; }
.category-grid h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand-dark); }
.category-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Category card links */
.category-card {
  min-height: 130px;
  padding: 22px;
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--brand-dark);
  box-shadow: 0 16px 30px rgba(10, 53, 109, 0.08);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(10, 53, 109, 0.12);
}
.category-card h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.category-card.palette-blue { background: linear-gradient(135deg, #e9f4ff 0%, #dbeefe 100%); }
.category-card.palette-green { background: linear-gradient(135deg, #edf9ef 0%, #dff2e4 100%); }
.category-card.palette-orange { background: linear-gradient(135deg, #fff4e8 0%, #ffe6c9 100%); }
.category-card.palette-purple { background: linear-gradient(135deg, #f4edff 0%, #e8dcff 100%); }
.category-card.palette-gray { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); }
.category-card.palette-cream { background: linear-gradient(135deg, #fff9ec 0%, #f8ebd9 100%); }
.category-card.palette-sky { background: linear-gradient(135deg, #eff7ff 0%, #dceeff 100%); }
.category-card.palette-rose { background: linear-gradient(135deg, #fff0f5 0%, #fde3eb 100%); }

/* --- Industry Hero Card --- */
.industry-hero-card {
  background: linear-gradient(135deg, #112f5b 0%, #24508c 100%);
  color: white;
  padding: 24px 26px;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 18px 34px rgba(17, 47, 91, 0.16);
}
.industry-hero-card .section-label { color: rgba(255,255,255,0.7); }
.industry-hero-card h2 { margin: 8px 0 0; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.3; color: white; }

/* --- Products --- */
.products-hero-simple { padding: 28px 0 8px; }
.products-hero-simple h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--brand-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 53, 109, 0.14);
  border-color: rgba(199, 157, 47, 0.5);
}
.product-card-image {
  background: linear-gradient(135deg, #fdf1dc 0%, #f7faff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body { padding: 14px; display: grid; gap: 6px; }
.product-topline {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}
.product-body h3 { margin: 0; font-size: .98rem; line-height: 1.3; }
.product-body p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.product-spec { margin: 0; font-size: .82rem; color: #374151; font-weight: 600; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price { font-weight: 800; color: var(--brand-dark); font-size: .98rem; }
.product-actions { margin-top: 8px; }

/* Product Detail */
.detail-image-card, .detail-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
  min-width: 0;
}
.detail-card-image { border-radius: 16px; }
.detail-image-card img { width: 100%; border-radius: 16px; }
.detail-info-card h1 { margin-top: 6px; margin-bottom: 10px; font-size: 1.6rem; }
.detail-price { font-size: 1.45rem; font-weight: 800; color: var(--brand-dark); margin: 12px 0; }
.detail-spec { color: var(--muted); font-size: 0.92rem; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Full product cards (category pages) */
.product-card.full-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card.full-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card.full-card .product-card-image {
  background: #f8f8f8;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px 8px 0 0;
}
.product-card.full-card .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.product-card.full-card .product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-card.full-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.product-card.full-card .product-price-line {
  font-size: 0.92rem;
  color: var(--brand-dark);
  font-weight: 700;
}
.product-card.full-card .product-price-line span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
.product-card.full-card .product-specs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.product-card.full-card .product-specs li {
  padding: 0;
}
.product-card.full-card .product-specs li strong {
  color: var(--text);
}
.product-card.full-card .card-actions {
  margin-top: auto;
  padding-top: 12px;
}
.product-card.full-card .btn-get-quote {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  background: #0d6e6e;
  color: white;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.product-card.full-card .btn-get-quote:hover {
  background: #095555;
}

/* --- Cart --- */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .muted { color: var(--muted); font-size: 0.85rem; }

/* --- Checkout --- */
.checkout-grid { display: grid; grid-template-columns: 1fr 0.95fr; gap: 24px; align-items: start; }
.checkout-summary, .checkout-form, .checkout-success { padding: 32px; }
.order-summary { display: grid; gap: 12px; margin-top: 24px; }
.order-summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary-total { font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 18px; margin-top: 12px; }
.checkout-message { display: none; margin-top: 16px; padding: 16px; border-radius: 16px; }
.checkout-success { text-align: center; padding: 48px; }
.success-actions { display: flex; justify-content: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }

/* --- Page Head --- */
.page-head { padding: 36px 0 10px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-head p { margin: 0; color: var(--muted); }
.page-head .section-label { margin-bottom: 16px; }
.section-copy { color: var(--muted); margin: 12px 0 24px; }

/* Breadcrumbs */
.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumb a { color: var(--brand-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }
.page-hero .breadcrumb { color: rgba(255,255,255,0.76); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.92); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.6); }

/* --- Forms --- */
.order-form input, .order-form select, .order-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  width: 100%;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 53, 109, 0.1);
}
.order-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.info-card, .order-card, .contact-card { padding: 24px; }
.order-form { display: grid; gap: 12px; }
.order-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.success {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #a7f3d0;
  display: none;
}
.list-check { list-style: none; padding: 0; }
.list-check li { padding: 8px 0 8px 28px; position: relative; color: var(--text); }
.list-check li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* Filter Row */
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; }

/* --- Orders Table --- */
.orders-table { width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }
.orders-table th, .orders-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.orders-table th { background: rgba(200, 155, 44, 0.1); font-size: 0.88rem; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-grid h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 1.05rem; }
.footer-grid p { margin: 2px 0; font-size: 0.9rem; }

/* --- Responsive Design --- */

/* Tablet: <= 900px */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }

/* Extra-safe mobile rules for products listing to avoid overlapping */
@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .category-card {
    display: block !important;
    align-items: stretch !important;
    padding: 12px !important;
    min-height: auto !important;
    text-align: left;
  }
  .category-card h3 {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .category-card p { margin: 6px 0 0; }
}
  .service-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    z-index: 9000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 12px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
    touch-action: manipulation;
    position: relative;
    z-index: 9001;
  }
  .nav-links a:active {
    background: #f0f4f8;
  }
  .nav-links .btn-small,
  .nav-links .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    border-bottom: none;
    padding: 14px 12px;
  }

  /* Overlay behind nav panel */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 8999;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-overlay.visible { display: block; }

  /* Prevent body scroll when menu is open */
  html.menu-open,
  html.menu-open body {
    overflow: hidden;
    position: relative;
    height: 100%;
  }

  .container { width: calc(100% - 32px); }
  .hero { padding: 40px 0 48px; }
  .hero h1 { line-height: 1.15; }
  .section-alt { padding: 24px 16px; border-radius: var(--radius-sm); }
  .service-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 16px; }
}

/* Small Mobile: <= 480px */
@media (max-width: 480px) {
  .nav-wrap { padding: 12px 0; }
  .brand img { height: 44px; }
  .brand-name { font-size: 0.9rem; }
  .brand-tagline { font-size: 0.72rem; }

  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: 1.8rem; line-height: 1.15; }
  .hero p { font-size: 0.95rem; }
  .hero-card { padding: 18px; }
  .eyebrow { font-size: 0.72rem; padding: 8px 12px; }

  .feature-grid,
  .category-grid,
  .reasons-grid,
  .order-form .row { grid-template-columns: 1fr; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-grid strong { font-size: 1.5rem; }

  .page-head h1 { font-size: 1.5rem; line-height: 1.25; }
  .section-intro h2 { font-size: 1.3rem; }

  .category-card { min-height: auto; padding: 16px; }
  .contact-callout { padding: 28px 16px; }
  .contact-callout h2 { font-size: 1.2rem; }

  .product-card-image { aspect-ratio: 3 / 2; }
  .product-body h3 { font-size: 0.92rem; }
  .detail-info-card h1 { font-size: 1.25rem; line-height: 1.3; }
  .detail-price { font-size: 1.1rem; }
  .detail-grid { gap: 16px; }

  .btn { padding: 12px 18px; font-size: 0.9rem; }
  .btn-small { padding: 9px 14px; }

  .checkout-summary, .checkout-form, .checkout-success { padding: 20px; }
  .info-card, .order-card, .contact-card { padding: 18px; }

  /* Prevent horizontal overflow */
  .orders-table { font-size: 0.82rem; }
  .orders-table th, .orders-table td { padding: 8px 6px; }
}

/* Ensure no horizontal scrolling */
body { overflow-x: hidden; }
html { overflow-x: hidden; }
main, section, .container { max-width: 100%; }

/* Word break utilities for content */
.hero-copy, .hero p, .category-card p, .feature-card p,
.product-body h3, .product-body p, .product-spec,
.detail-spec, .detail-info-card p {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* --- Additional Form Styles (labeled inputs) --- */
.order-form .row > div { display: flex; flex-direction: column; }
.order-form label span { color: #dc2626; margin-left: 2px; }
.order-form input:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}
.order-form input:valid:not(:placeholder-shown) {
  border-color: #16a34a;
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
  .order-form input, .order-form select, .order-form textarea {
    padding: 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  .btn { min-height: 48px; } /* Touch target size */
}

/* Print styles */
@media print {
  .site-header, .site-footer, .nav-toggle, .nav-overlay,
  .btn, .hero-actions, .contact-actions, .form-actions { display: none; }
  body { background: white; }
  .container { width: 100%; }
}

/* === Product Image Gallery === */
.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf1dc 0%, #f7faff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-main img:hover {
  transform: scale(1.03);
}
.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-thumb:hover {
  border-color: var(--brand-soft);
}
.gallery-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(10, 53, 109, 0.2);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Lightbox === */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-shrink: 0;
}
.lightbox-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.lightbox-back:hover { background: rgba(255,255,255,0.1); }
.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
}
.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 60px;
  min-height: 0;
}
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: calc(100vh - 100px);
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  padding: 14px;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 10;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* Gallery & Lightbox responsive */
@media (max-width: 768px) {
  .gallery-thumb { width: 56px; height: 56px; }
  .lightbox-body { padding: 0 12px; }
  .lightbox-prev, .lightbox-next { padding: 10px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-header { padding: 10px 12px; }
  .lightbox-back span { display: inline; }
}
@media (max-width: 480px) {
  .gallery-thumb { width: 48px; height: 48px; border-radius: 8px; }
  .gallery-thumbnails { gap: 6px; }
  .lightbox-prev, .lightbox-next { display: none; } /* Use swipe on small screens */
}

/* === Clickable Product Cards === */
a.product-card.full-card,
.product-card.full-card {
  text-decoration: none;
  color: inherit;
}
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  touch-action: manipulation;
  cursor: pointer;
}
.product-card-link:active {
  opacity: 0.85;
}
.product-card.full-card .card-actions {
  padding: 0 16px 16px;
}
.product-card.full-card .btn-get-quote,
.product-card.full-card .card-actions a {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

/* === Global Search Bar === */
.search-wrap {
  position: relative;
  flex: 0 1 280px;
  min-width: 0;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 53, 109, 0.1);
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dark);
  border: none;
  padding: 8px 14px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  cursor: pointer;
  color: white;
  transition: background 0.2s ease;
}
.search-btn:hover { background: var(--brand); }

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  pointer-events: none;
}
.search-results.visible { display: block; pointer-events: auto; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.search-result-item:hover { background: var(--surface-alt); }
.search-result-item:last-of-type { border-bottom: none; }
.search-result-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.search-result-info { min-width: 0; }
.search-result-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-name mark {
  background: var(--accent-soft);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}
.search-result-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.search-view-all:hover { background: var(--surface-alt); }
.search-no-results {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.search-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.search-empty-state p { margin: 0 0 16px; font-size: 1.1rem; }

/* Search responsive */
@media (max-width: 768px) {
  .search-wrap { flex: 0 1 auto; order: 3; max-width: 180px; }
  .search-results { left: 0; right: auto; min-width: 280px; }
}
@media (max-width: 480px) {
  .search-wrap { max-width: 140px; }
  .search-input { padding: 8px 10px; font-size: 0.82rem; }
  .search-btn { padding: 6px 10px; }
}

/* === Enhanced Product Detail Page === */
.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-header-row h1 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-price-row .detail-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
}
.detail-price-unit {
  font-size: 0.9rem;
  color: var(--muted);
}
.detail-get-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d6e6e;
  text-decoration: none;
  margin-left: 8px;
}
.detail-get-price:hover { text-decoration: underline; }

/* Request Callback Button */
.btn-request-callback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #0d6e6e;
  border-radius: 6px;
  color: #0d6e6e;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn-request-callback:hover {
  background: #0d6e6e;
  color: white;
}
.btn-request-callback svg { flex-shrink: 0; }

/* Specs Table */
.specs-section {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.specs-table th,
.specs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }
.specs-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-alt);
}
.specs-table td {
  color: var(--muted);
}

/* Product Description */
.detail-description {
  margin: 24px 0;
}
.detail-description h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.detail-description p {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.7;
}
.detail-additional {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA Buttons */
.detail-cta-section {
  margin-top: 24px;
}
.btn-interested {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  padding: 14px 24px;
  background: #0d6e6e;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-interested:hover { background: #095555; }
.btn-interested svg { flex-shrink: 0; }

/* Get Best Quote button under image */
.btn-get-best-quote {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-get-best-quote:hover {
  border-color: var(--brand);
  background: var(--surface-alt);
}

/* Related Products */
.related-products {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-products h2 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  color: var(--brand-dark);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8f8f8;
  padding: 8px;
}
.related-info {
  padding: 10px 12px;
}
.related-info h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text);
}
.related-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Detail Grid updated for new layout */
.detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px 0 40px;
}

/* Responsive product detail */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-header-row { flex-direction: column; }
  .btn-request-callback { align-self: flex-start; }
}
@media (max-width: 480px) {
  .specs-table th, .specs-table td { padding: 8px 10px; font-size: 0.82rem; }
  .specs-table th { width: 42%; }
  .detail-header-row h1 { font-size: 1.2rem; }
  .btn-interested { max-width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* === Request For Quotation Section === */
.rfq-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: white;
}
.rfq-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.rfq-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 3px solid #c0392b;
  display: inline-block;
}

/* RFQ Form */
.rfq-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.rfq-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.rfq-field svg { flex-shrink: 0; margin-top: 4px; color: var(--muted); }
.rfq-field input,
.rfq-field textarea,
.rfq-field select {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  resize: vertical;
}
.rfq-field input::placeholder,
.rfq-field textarea::placeholder { color: #999; }
.rfq-phone-field { display: flex; align-items: center; }
.rfq-country {
  width: 130px;
  flex: none !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  margin-right: 8px;
  font-size: 0.85rem;
  background: white;
}
.rfq-textarea-field { align-items: flex-start; }
.rfq-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c0392b;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  align-self: flex-start;
}
.rfq-submit:hover { background: #a93226; }
.rfq-submit span { font-size: 1.2rem; }

/* RFQ Location */
.rfq-location-info { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.rfq-loc-row { display: flex; gap: 10px; align-items: flex-start; }
.rfq-loc-row p { margin: 0; font-size: 0.9rem; color: var(--text); }
.rfq-loc-row a { color: var(--brand); text-decoration: none; }
.rfq-loc-row a:hover { text-decoration: underline; }
.rfq-days { display: flex; gap: 4px; margin-bottom: 6px; }
.rfq-days .day {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  background: #ccc; color: white;
}
.rfq-days .day.active { background: #27ae60; }
.rfq-days .day.off { background: #eee; color: #aaa; }
.rfq-open-badge {
  background: #27ae60;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

/* RFQ Contact */
.rfq-contact-info { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.rfq-contact-row { display: flex; align-items: center; gap: 10px; }
.rfq-contact-row a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}
.rfq-contact-row a:hover { color: var(--brand); }

/* RFQ Responsive */
@media (max-width: 900px) {
  .rfq-grid { grid-template-columns: 1fr 1fr; }
  .rfq-contact-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .rfq-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* === Dark Footer === */
.site-footer-dark {
  background: #1a1a2e;
  color: #ccc;
  padding: 48px 0 0;
}
.footer-dark-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 0.8fr;
  gap: 36px;
}
.footer-col-heading {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 3px solid #c0392b;
  display: inline-block;
}
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 12px 0 0;
  color: #aaa;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.footer-links li {
  padding: 5px 0;
}
.footer-links li::before {
  content: '›';
  margin-right: 8px;
  color: #666;
}
.footer-links a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #777;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-dark-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-dark-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* === Fix #1: Mobile text wrapping - prevent awkward word breaks === */
.section-intro h2,
.page-head h1,
.hero h1,
.contact-callout h2 {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 480px) {
  .section-intro h2,
  .page-head h1 {
    font-size: 1.35rem;
    line-height: 1.35;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
  .section-intro {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .section-intro h2,
  .page-head h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* === Fix #4: Larger homepage section headings === */
.section-intro .section-label {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}
.section-intro h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  font-weight: 800;
}

/* === RFQ Form Success Message === */
.rfq-success {
  display: none;
  margin-top: 16px;
  padding: 16px 16px;
  background: #0A356D;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.rfq-success.visible {
  display: block;
}

/* === Contact page icons === */
.contact-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
}
.contact-icon-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}
.contact-icon-row p {
  margin: 0;
}

/* === E-Catalog Modal === */
.ecatalog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.ecatalog-modal.visible {
  display: flex;
}
.ecatalog-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
.ecatalog-dialog {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 36px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  z-index: 1;
}
.ecatalog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.ecatalog-close:hover { color: #111; }
.ecatalog-dialog h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--brand-dark);
}
.ecatalog-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.ecatalog-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ecatalog-form input {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.ecatalog-form input:focus { border-color: var(--brand); }
.ecatalog-submit {
  padding: 14px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.ecatalog-submit:hover { background: var(--brand-soft); }
.ecatalog-success {
  display: none;
  padding: 20px;
  text-align: center;
  color: #166534;
  background: #ecfdf3;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 12px;
}

/* === Fix #4: Improved Mobile Search Bar === */
@media (max-width: 768px) {
  .search-wrap {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    flex: none;
    max-width: none;
    order: unset;
  }
  .search-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
  }
  .search-box .search-btn {
    background: var(--brand-dark);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-input {
    width: 0;
    padding: 0;
    opacity: 0;
    position: absolute;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }
  .search-box.expanded {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    width: auto;
    border-radius: var(--radius-pill);
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 4px;
  }
  .search-box.expanded .search-input {
    width: auto;
    flex: 1;
    position: static;
    padding: 10px 14px;
    opacity: 1;
  }
  .search-box.expanded .search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .search-results {
    position: fixed;
    top: 60px;
    left: 16px;
    right: 16px;
    min-width: auto;
    z-index: 9999;
  }
}
@media (max-width: 480px) {
  .search-wrap {
    right: 48px;
  }
  .search-box .search-btn {
    width: 34px;
    height: 34px;
  }
}

/* === Prevent horizontal overflow globally === */
.hero, .rfq-section, .site-footer-dark, .section-alt,
.contact-panel, .feature-grid, .service-grid,
.testimonial-grid, .faq-grid, .stat-grid,
.reasons-grid, .category-grid, .product-grid,
.rfq-grid, .footer-dark-grid, .related-grid {
  overflow-x: hidden;
}
img, video, iframe, table {
  max-width: 100%;
}

.ecatalog-error {
  display: none;
  padding: 20px;
  text-align: center;
  color: #9b1c1c;
  background: #fce8e8;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 12px;
}

/* === ENTERPRISE AUDIT FIXES === */

/* Fix: RFQ grid overflow on small screens */
@media (max-width: 600px) {
  .rfq-grid { gap: 24px; }
  .rfq-form-col, .rfq-location-col, .rfq-contact-col { min-width: 0; }
  .rfq-phone-field { flex-wrap: wrap; }
  .rfq-country { width: 100%; margin-right: 0; margin-bottom: 8px; }
}

/* Fix: Specs table overflow on mobile */
.specs-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) {
  .specs-table { min-width: 300px; }
}

/* Fix: Hero section text not wrapping properly */
@media (max-width: 480px) {
  .hero-copy { padding-right: 0; }
  .hero h1 { font-size: 1.6rem; }
  .eyebrow { font-size: 0.68rem; padding: 6px 10px; }
}

/* Fix: Contact grid cards equal height */
.contact-grid { align-items: stretch; }
.contact-card { display: flex; flex-direction: column; }

/* Fix: Product card image consistent sizing */
.product-card-image img { width: 100%; height: 100%; object-fit: contain; }

/* Fix: Footer dark grid text overflow */
.footer-dark-grid a, .footer-links a { word-break: break-word; }

/* Fix: Detail page actions wrapping */
@media (max-width: 480px) {
  .detail-cta-section .btn-interested { font-size: 0.88rem; padding: 12px 16px; }
  .btn-request-callback { font-size: 0.8rem; padding: 8px 12px; }
  .detail-price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail-get-price { margin-left: 0; }
}

/* Fix: Ensure all images have proper dimensions for CLS */
.product-card-image { min-height: 120px; }
.gallery-main { min-height: 200px; }

/* Fix: Focus states for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Fix: Search results on mobile not clipping */
@media (max-width: 768px) {
  .search-results { max-height: 60vh; }
}

/* Fix: E-Catalog modal on small screens */
@media (max-width: 400px) {
  .ecatalog-dialog { padding: 24px 16px; }
  .ecatalog-dialog h2 { font-size: 1.2rem; }
}

/* Fix: Admin table responsive */
@media (max-width: 768px) {
  .orders-table { display: block; overflow-x: auto; }
  .orders-table th, .orders-table td { min-width: 80px; font-size: 0.78rem; padding: 6px 8px; }
}

/* Security: Hide sensitive admin elements from print */
@media print {
  .orders-table [data-action], #admin-order-form { display: none !important; }
}
