/* SY Power Terminals B2B Website - Professional Industrial Design */
/* ============================================ */

:root {
  --primary: #0066CC;
  --primary-dark: #004C99;
  --primary-light: #E6F0FF;
  --accent: #FF6B00;
  --accent-dark: #CC5500;
  --dark: #1a2332;
  --dark-2: #2d3748;
  --gray: #718096;
  --gray-light: #EDF2F7;
  --gray-border: #E2E8F0;
  --white: #ffffff;
  --success: #38A169;
  --warning: #D69E2E;
  --danger: #E53E3E;
  --bg: #F7FAFC;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-h: 70px;
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0F1419;
  --dark: #ffffff;
  --dark-2: #E2E8F0;
  --gray: #A0AEC0;
  --gray-light: #1A202C;
  --gray-border: #2D3748;
  --white: #1A202C;
  --primary-light: #1A2332;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition);
}

[dir="rtl"] { direction: rtl; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--white); box-shadow: var(--shadow);
  z-index: 1000; transition: var(--transition);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; height: 100%;
  padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.logo-img { height: 42px; width: auto; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08)); }
.logo-text-wrap { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15; width: auto; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: 0.8px; white-space: nowrap; }
.logo-sub { font-size: 12px; color: var(--gray); font-weight: 500; white-space: nowrap; letter-spacing: 0.3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--dark-2); font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; }
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--primary); }
.nav a.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.nav a.nav-cta { margin-left: 4px; white-space: nowrap; }
.nav a.nav-cta:hover { color: white; }
.nav.mobile-show a.nav-cta { width: 100%; text-align: center; justify-content: center; margin-left: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--gray-light); border: 1px solid var(--gray-border);
  border-radius: var(--radius); cursor: pointer; font-size: 13px; color: var(--dark-2);
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: var(--transition); z-index: 100;
}
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  cursor: pointer; font-size: 14px; color: var(--dark-2); transition: var(--transition);
}
.lang-option:hover { background: var(--primary-light); color: var(--primary); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* Mobile menu toggle */
.mobile-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--dark); background: none; border: none; }

/* ============ HERO ============ */
.hero {
  margin-top: var(--header-h);
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #003366 100%);
  color: white; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 30c0-8.284 6.716-15 15-15 8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; font-size: 13px;
  margin-bottom: 20px; backdrop-filter: blur(10px);
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; max-width: 700px; }
.hero h2 { font-size: 22px; font-weight: 400; opacity: 0.9; margin-bottom: 24px; }
.hero-desc { font-size: 16px; opacity: 0.85; max-width: 650px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 36px; font-weight: 800; }
.hero-stat-label { font-size: 13px; opacity: 0.8; margin-top: 4px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ============ ADVANTAGES ============ */
.adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.adv-card {
  background: var(--white); padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-border);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.adv-icon {
  width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin-bottom: 20px;
  background: var(--primary-light);
}
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.adv-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ============ PRODUCTS ============ */
.products-toolbar {
  display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; align-items: center;
}
.search-box {
  flex: 1; min-width: 250px; position: relative;
}
.search-box input {
  width: 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--gray-border);
  border-radius: var(--radius); font-size: 14px; background: var(--white); color: var(--dark);
  transition: var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.search-box::before {
  content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px;
}
.filter-select {
  padding: 12px 16px; border: 1px solid var(--gray-border); border-radius: var(--radius);
  font-size: 14px; background: var(--white); color: var(--dark); cursor: pointer; min-width: 180px;
}

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-border);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-card-image {
  width: 100%; height: 160px; overflow: hidden; border-bottom: 1px solid var(--gray-border);
  background: #f8f9fa; display: flex; align-items: center; justify-content: center;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-header {
  padding: 16px 20px; background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-border);
}
.product-cat-icon { font-size: 32px; margin-bottom: 8px; }
.product-cat-name { font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.product-series-code { font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.product-series-name { font-size: 14px; color: var(--dark-2); margin-top: 4px; }

.compatible-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: #FFF3E0; color: var(--accent-dark); border-radius: 12px;
  font-size: 12px; font-weight: 600; margin-top: 10px;
}
.compatible-badge::before { content: '✓'; }

.product-card-body { padding: 20px; flex: 1; }
.product-models {
  font-size: 13px; color: var(--gray); margin-bottom: 12px; line-height: 1.6;
}
.product-models strong { color: var(--dark-2); }
.product-specs-mini {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.spec-tag {
  padding: 3px 8px; background: var(--gray-light); border-radius: 4px;
  font-size: 12px; color: var(--gray);
}
.product-card-footer {
  padding: 16px 20px; border-top: 1px solid var(--gray-border); display: flex; gap: 8px;
}
.product-card-footer .btn { flex: 1; font-size: 13px; padding: 8px 16px; }

/* Product Detail Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg); max-width: 700px;
  width: 100%; max-height: 85vh; overflow-y: auto; padding: 0; box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 24px; background: var(--primary); color: white;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close { font-size: 28px; cursor: pointer; background: none; border: none; color: white; line-height: 1; }
.modal-body { padding: 0; }
.modal-product-image {
  width: 100%; height: 280px; overflow: hidden; border-bottom: 1px solid var(--gray-border);
  background: #f8f9fa; display: flex; align-items: center; justify-content: center;
}
.modal-product-image img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px; display: block;
  transition: transform 0.3s ease;
}
.modal-product-image:hover img {
  transform: scale(1.04);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-border); font-size: 14px;
}
.spec-table th { color: var(--gray); font-weight: 500; width: 40%; }
.spec-table td { color: var(--dark-2); font-weight: 600; }
.modal-models {
  margin-top: 20px; padding: 16px; background: var(--gray-light); border-radius: var(--radius);
}
.modal-models h4 { font-size: 14px; margin-bottom: 10px; color: var(--gray); }
.model-list { display: flex; flex-wrap: wrap; gap: 6px; }
.model-chip {
  padding: 4px 10px; background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 4px; font-size: 12px; color: var(--dark-2); font-family: monospace;
}

/* ============ ABOUT ============ */
.about-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 16px; font-size: 15px; color: var(--dark-2); line-height: 1.8; }
.about-certs {
  background: var(--white); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.about-certs h3 { font-size: 18px; margin-bottom: 20px; color: var(--dark); }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cert-item {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  background: var(--gray-light); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--dark-2);
}
.cert-item::before { content: '✅'; font-size: 18px; }

/* ============ CERTIFICATIONS ============ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}
.certificate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  display: flex;
  gap: 24px;
  padding: 28px;
  transition: var(--transition);
}
.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.certificate-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.certificate-icon svg {
  width: 44px;
  height: 44px;
}
.cert-iso { background: linear-gradient(135deg, #1E88E5, #0D47A1); }
.cert-rohs { background: linear-gradient(135deg, #43A047, #1B5E20); }
.cert-reach { background: linear-gradient(135deg, #FB8C00, #E65100); }
.cert-ce { background: linear-gradient(135deg, #00897B, #004D40); }
.cert-ul { background: linear-gradient(135deg, #F9A825, #F57F17); }
.certificate-content { flex: 1; }
.certificate-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.certificate-content p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}
.certificate-meta {
  list-style: none;
  margin-bottom: 18px;
}
.certificate-meta li {
  font-size: 13px;
  color: var(--dark-2);
  padding: 5px 0;
  border-bottom: 1px dashed var(--gray-border);
}
.certificate-meta li:last-child { border-bottom: none; }
.certificate-meta strong {
  display: inline-block;
  min-width: 90px;
  color: var(--gray);
  font-weight: 500;
}
.certificate-btn {
  padding: 8px 18px;
  font-size: 13px;
}
.certificates-note {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark-2);
  line-height: 1.7;
}

/* CE certificate gallery */
.ce-gallery {
  margin-top: 44px;
  padding-top: 8px;
}
.ce-gallery h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.ce-gallery-sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}
.ce-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.ce-thumb {
  display: block;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  text-decoration: none;
}
.ce-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.ce-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}
.ce-thumb span {
  display: block;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-align: center;
}

@media (max-width: 768px) {
  .certificates-grid { grid-template-columns: 1fr; }
  .certificate-card { flex-direction: column; gap: 16px; }
}

/* ============ CONTACT / RFQ ============ */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rfq-form {
  background: var(--white); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-border); border-radius: var(--radius);
  font-size: 14px; background: var(--white); color: var(--dark); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-card {
  background: var(--white); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-info-label { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.contact-info-value { font-size: 14px; color: var(--dark-2); font-weight: 600; }
.contact-info-value a { color: var(--primary); text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

.contact-qr-section {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-border);
}
.contact-qr-section h4 {
  font-size: 14px; color: var(--dark); margin-bottom: 16px; font-weight: 600;
}
.contact-qr-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.contact-qr-item {
  text-align: center; background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.contact-qr-item img {
  width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain;
  border-radius: 16px; margin-bottom: 8px; background: #fff;
  padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.contact-qr-item span {
  display: block; font-size: 12px; color: var(--gray); font-weight: 500;
}
.contact-qr-id { margin-top: 4px; }
.contact-qr-label {
  display: block; font-size: 11px; color: var(--gray); margin-bottom: 2px;
}
.contact-qr-value {
  display: block; font-size: 13px; color: var(--dark-2); font-weight: 600;
  word-break: break-all;
}
.contact-qr-value a { color: var(--primary); text-decoration: none; }
.contact-qr-value a:hover { text-decoration: underline; }

/* RFQ Steps */
.rfq-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px;
}
.rfq-step {
  text-align: center; padding: 24px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); position: relative;
}
.rfq-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px;
}

/* ============ CHAT WIDGET ============ */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
}
.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent);
  color: white; border: none; cursor: pointer; font-size: 28px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.chat-toggle:hover { transform: scale(1.05); }
.chat-box {
  position: absolute; bottom: 75px; right: 0; width: 360px; height: 480px;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-box.show { display: flex; }
.chat-header {
  padding: 16px; background: var(--primary); color: white;
  display: flex; align-items: center; gap: 10px;
}
.chat-header-info h4 { font-size: 15px; }
.chat-header-info p { font-size: 12px; opacity: 0.8; }
.chat-messages {
  flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}
.chat-msg {
  max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5;
}
.chat-msg.bot { background: var(--gray-light); color: var(--dark); align-self: flex-start; }
.chat-msg.user { background: var(--primary); color: white; align-self: flex-end; }
.chat-actions {
  padding: 8px 12px; border-top: 1px solid var(--gray-border);
  display: flex; gap: 8px; justify-content: space-between; background: var(--gray-light);
}
.chat-action-btn {
  flex: 1; padding: 6px 10px; border: 1px solid var(--gray-border); border-radius: 20px;
  background: var(--white); color: var(--dark-2); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: var(--transition);
}
.chat-action-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.chat-input-area {
  padding: 12px; border-top: 1px solid var(--gray-border); display: flex; gap: 8px;
}
.chat-input-area input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--gray-border); border-radius: 20px;
  font-size: 14px; background: var(--white); color: var(--dark);
}
.chat-input-area input:focus { outline: none; border-color: var(--primary); }
.chat-input-area button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white;
  border: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 20px; margin-top: 80px;
}
[data-theme="dark"] .footer { background: #000; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { color: white; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 350px; }
.footer-col h4 { color: white; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .nav.mobile-show {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 20px; gap: 16px;
    box-shadow: var(--shadow-md); border-top: 1px solid var(--gray-border);
  }
  .hero h1 { font-size: 32px; }
  .hero h2 { font-size: 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .rfq-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .chat-box { width: calc(100vw - 48px); height: calc(100vh - 150px); }
}
@media (max-width: 480px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat-num { font-size: 28px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rfq-form, .contact-info-card { padding: 20px; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.pulse { animation: pulse 2s infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-2); }
