/* ============================================
   Guantuo Yongxin - B2B Website Stylesheet
   Theme: Light Blue + Orange Accent
   ============================================ */

:root {
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #e3f2fd;
  --accent: #ff7a00;
  --accent-dark: #e66a00;
  --accent-light: #fff3e0;
  --dark: #1a2332;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-300: #dee2e6;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --success: #28a745;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============ Header / Nav ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }
.top-bar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar-info span { display: inline-flex; align-items: center; gap: 6px; }

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
  display: none;
  z-index: 100;
}
.lang-dropdown.show { display: block; }
.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
}
.lang-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.lang-dropdown a.active-lang { color: var(--primary); font-weight: 600; background: var(--primary-light); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--gray-700);
  transition: var(--transition);
}

/* ============ Hero / Carousel ============ */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.5) 60%, rgba(26,35,50,0.2) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 640px;
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active { background: var(--accent); width: 32px; border-radius: 6px; }

/* ============ Section Common ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-header .tag {
  display: inline-block;
  padding: 4px 16px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============ Advantages ============ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.advantage-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.advantage-card:nth-child(2) { border-top-color: var(--accent); }
.advantage-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.advantage-card:nth-child(2) .advantage-icon { background: var(--accent-light); }
.advantage-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.advantage-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ============ Product Categories ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card .cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.category-card:hover .cat-bg { transform: scale(1.08); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.9) 0%, rgba(26,35,50,0.3) 60%, transparent 100%);
}
.category-card .cat-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 2;
  color: var(--white);
}
.category-card .cat-info h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.category-card .cat-info p { font-size: 13px; opacity: 0.85; }
.category-card .cat-arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; z-index: 2;
  transition: var(--transition);
}
.category-card:hover .cat-arrow { background: var(--white); color: var(--accent); }

/* ============ Why Choose Us ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 440px;
  background: var(--primary-light);
  position: relative;
}
.why-image-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 18px;
  gap: 12px;
}
.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-item-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.why-item h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.why-item p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ============ Testimonials ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: #ffc107; font-size: 16px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--gray-700); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 18px;
}
.testimonial-author-info h5 { font-size: 15px; font-weight: 700; color: var(--dark); }
.testimonial-author-info p { font-size: 12px; color: var(--gray-500); }

/* ============ Quote Form Section ============ */
.quote-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.quote-info h2 { font-size: 36px; font-weight: 700; margin-bottom: 18px; }
.quote-info p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; line-height: 1.7; }
.quote-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.quote-feature { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.quote-feature .check {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.quote-form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}
.quote-form-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.quote-form-box .subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

/* ============ Forms ============ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--accent); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-900);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-success {
  background: #d4edda;
  color: #155724;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  display: none;
}
.form-success.show { display: block; }

/* ============ Products Page ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: 0.9; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.85;
}
.breadcrumb a:hover { color: var(--accent); }

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 50px 0;
}
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filter-sidebar h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.filter-group { margin-bottom: 22px; }
.filter-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.filter-check:hover { color: var(--primary); }
.filter-check input { accent-color: var(--primary); cursor: pointer; }
.filter-check .count { margin-left: auto; font-size: 12px; color: var(--gray-500); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image-placeholder {
  color: var(--gray-500);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.product-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.product-specs {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  flex: 1;
}
.product-specs li {
  padding: 3px 0;
  display: flex;
  gap: 6px;
}
.product-specs li::before { content: '▸'; color: var(--primary); flex-shrink: 0; }
.product-footer {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.product-footer .btn { flex: 1; padding: 9px 12px; font-size: 13px; }

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.products-count { font-size: 14px; color: var(--gray-500); }
.products-sort select {
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
}
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

/* ============ About Page ============ */
.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.stat-card:nth-child(2) .stat-number { color: var(--accent); }
.stat-card:nth-child(4) .stat-number { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--gray-500); font-weight: 500; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary-light);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item:nth-child(even)::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.timeline-item:nth-child(even) .timeline-year { color: var(--accent); }
.timeline-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.timeline-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.factory-img {
  height: 220px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  transition: var(--transition);
}
.factory-img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.quality-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.quality-step {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quality-step-num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.quality-step:nth-child(odd) .quality-step-num { background: var(--accent); }
.quality-step h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.quality-step p { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}
.cert-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.cert-card h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.cert-card p { font-size: 12px; color: var(--gray-500); }

.oem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.oem-content h3 { font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.oem-content p { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; }
.oem-capabilities { display: flex; flex-direction: column; gap: 12px; }
.oem-cap { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray-700); }
.oem-cap .icon { color: var(--accent); font-size: 18px; }

/* ============ Contact Page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding: 50px 0;
}
.contact-info-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.contact-info-box > p { font-size: 14px; opacity: 0.9; margin-bottom: 30px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 14px; opacity: 0.9; line-height: 1.5; }
.contact-promise {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  text-align: center;
}
.contact-promise .clock { font-size: 32px; margin-bottom: 8px; }
.contact-promise h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.contact-promise p { font-size: 13px; opacity: 0.9; }

.contact-form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-box h3 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.contact-form-box .subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-100);
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.file-upload-area .icon { font-size: 32px; color: var(--gray-500); margin-bottom: 8px; }
.file-upload-area p { font-size: 14px; color: var(--gray-700); }
.file-upload-area .hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.file-list { margin-top: 10px; }
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--primary-light);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 6px;
}
.file-item .remove { color: var(--accent); cursor: pointer; font-weight: 700; }

.map-section { padding: 0 0 60px; }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  background: var(--gray-100);
  position: relative;
}
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray-500);
  gap: 12px;
}
.map-placeholder .icon { font-size: 48px; color: var(--primary); }

/* ============ Admin Dashboard ============ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-nav { padding: 16px 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left-color: var(--accent);
}
.admin-nav a .icon { width: 20px; text-align: center; font-size: 16px; }
.admin-main {
  background: var(--gray-100);
  padding: 30px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.admin-header h1 { font-size: 24px; font-weight: 700; color: var(--dark); }
.admin-header .actions { display: flex; gap: 10px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-box-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-box-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-box-icon.orange { background: var(--accent-light); color: var(--accent); }
.stat-box-icon.green { background: #d4edda; color: var(--success); }
.stat-box-icon.purple { background: #e8daef; color: #8e44ad; }
.stat-box-info h3 { font-size: 26px; font-weight: 800; color: var(--dark); }
.stat-box-info p { font-size: 13px; color: var(--gray-500); }

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-card-header h3 { font-size: 17px; font-weight: 700; color: var(--dark); }
.admin-card-body { padding: 24px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
}
.admin-table tr:hover td { background: var(--gray-100); }
.admin-table .product-thumb {
  width: 50px; height: 50px;
  background: var(--gray-100);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray-500);
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }

.action-btns { display: flex; gap: 6px; }
.action-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.action-btn.edit { background: var(--primary-light); color: var(--primary); }
.action-btn.edit:hover { background: var(--primary); color: white; }
.action-btn.delete { background: #f8d7da; color: #721c24; }
.action-btn.delete:hover { background: #dc3545; color: white; }
.action-btn.view { background: #d4edda; color: #155724; }
.action-btn.view:hover { background: var(--success); color: white; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============ Footer ============ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  align-items: flex-start;
}
.footer-contact-item .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: 16px;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============ WhatsApp Float ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.whatsapp-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  cursor: pointer;
  animation: pulse 2s infinite;
}
.whatsapp-btn:hover { transform: scale(1.1); background: #1ebe5d; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.7); }
}
.whatsapp-tooltip {
  background: var(--dark);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* ============ Cookie Banner ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 18px 24px;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 14px; max-width: 700px; line-height: 1.6; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 8px 20px; font-size: 13px; }

/* ============ Back to Top ============ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  font-size: 18px;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============ Privacy Page ============ */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}
.privacy-content h2 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 30px 0 12px; }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p { font-size: 15px; color: var(--gray-700); line-height: 1.8; margin-bottom: 14px; }
.privacy-content ul { margin-bottom: 14px; padding-left: 24px; }
.privacy-content ul li { font-size: 15px; color: var(--gray-700); line-height: 1.8; margin-bottom: 6px; list-style: disc; }

/* ============ RTL Support (Arabic) ============ */
body[dir="rtl"] { text-align: right; }
body[dir="rtl"] .nav-menu { flex-direction: row-reverse; }
body[dir="rtl"] .hero-slide::before { background: linear-gradient(270deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.5) 60%, rgba(26,35,50,0.2) 100%); }
body[dir="rtl"] .hero-content { margin-left: auto; }
body[dir="rtl"] .whatsapp-float { right: auto; left: 28px; align-items: flex-start; }
body[dir="rtl"] .back-to-top { right: auto; left: 28px; }
body[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
body[dir="rtl"] .filter-sidebar { position: sticky; }
body[dir="rtl"] .timeline { padding-left: 0; padding-right: 40px; }
body[dir="rtl"] .timeline::before { left: auto; right: 12px; }
body[dir="rtl"] .timeline-item::before { left: auto; right: -34px; }
body[dir="rtl"] .product-specs li::before { content: '◂'; }
body[dir="rtl"] .footer-col ul li a:hover { padding-left: 0; padding-right: 4px; }
body[dir="rtl"] .form-row { direction: rtl; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-process { grid-template-columns: repeat(3, 1fr); }
  .certifications-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 28px; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-image { height: 300px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; gap: 30px; }
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .products-grid { grid-template-columns: 1fr; }
  .about-hero-content { grid-template-columns: 1fr; gap: 30px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: 1fr; }
  .quality-process { grid-template-columns: 1fr; }
  .oem-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero h1 { font-size: 28px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-main { padding: 20px; }
  .stats-row { grid-template-columns: 1fr; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 4px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    align-items: stretch;
  }
  body[dir="rtl"] .nav-menu { right: auto; left: -100%; }
  .nav-menu.open { right: 0; }
  body[dir="rtl"] .nav-menu.open { left: 0; }
  .nav-menu a { padding: 12px 16px; }
  .mobile-toggle { display: flex; z-index: 1001; }
  .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
  }
  .nav-overlay.show { display: block; }
  .top-bar-info { gap: 12px; font-size: 12px; }
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner p { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero { height: 420px; }
  .hero-content h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .categories-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .certifications-grid { grid-template-columns: 1fr; }
  .quote-form-box, .contact-form-box, .contact-info-box { padding: 24px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-btn { width: 52px; height: 52px; font-size: 24px; }
}
