/*
Theme Name: Antenna CMS - Cross-border E-commerce
Theme URI: https://github.com/antenna-cms
Author: Custom
Description: Professional tech-style e-commerce theme. Responsive, multi-language (ZH/EN), product catalog, contact form, visit stats. Reference: yundingantenna.com style.
Requires at least: 5.9
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: antenna-cms
Tags: e-commerce, custom-menu, featured-images, translation-ready, responsive-layout, custom-logo, full-width-template, theme-options, two-columns
*/

:root {
  --color-bg: #020617;
  --color-bg-alt: rgba(15, 23, 42, 0.5);
  --color-surface: #0f172a;
  --color-surface-light: #1e293b;
  --color-border: #334155;
  --color-border-light: rgba(51, 65, 85, 0.5);
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-accent: #0ea5e9;
  --color-accent-hover: #0284c7;
  --color-accent-glow: rgba(14, 165, 233, 0.15);
  --color-secondary: #6366f1;
  --color-secondary-glow: rgba(99, 102, 241, 0.15);
  --color-success: #22c55e;
  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-max: 1280px;
  --header-height: 64px;
  --header-height-md: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== Animated Background Grid ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* ===== Glow Effects ===== */
.glow-accent {
  box-shadow: 0 0 20px var(--color-accent-glow), 0 0 40px var(--color-accent-glow);
}

.glow-secondary {
  box-shadow: 0 0 20px var(--color-secondary-glow), 0 0 40px var(--color-secondary-glow);
}

.text-glow {
  text-shadow: 0 0 20px var(--color-accent-glow);
}

/* ===== Animated Gradient Border ===== */
.gradient-border {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== Scroll Reveal Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Pulse Animation ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--color-accent-glow); }
  50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.4); }
}

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

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

ul, ol { list-style: none; }

.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .site-container { padding: 0 24px; } }
@media (min-width: 1024px) { .site-container { padding: 0 32px; } }

.site-main { flex: 1; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(2, 6, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
@media (min-width: 768px) {
  .header-inner { height: var(--header-height-md); }
}

.site-logo a {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-logo a:hover { color: #fff; }
.site-logo .accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav { display: none; align-items: center; gap: 40px; }
@media (min-width: 768px) { .main-nav { display: flex; } }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: width 0.3s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-accent);
}
.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
  width: 100%;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) { .header-actions { display: flex; } }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 6px 12px;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.lang-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(14, 165, 233, 0.1);
}
.lang-toggle svg { width: 14px; height: 14px; }

.btn-contact-header {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: #fff;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-contact-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
  color: #fff;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .mobile-actions { display: none; } }

.mobile-lang-btn,
.menu-toggle {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.menu-toggle { color: #cbd5e1; }
.menu-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.menu-toggle svg, .mobile-lang-btn svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  padding: 20px 0;
  border-top: 1px solid var(--color-border-light);
  background: rgba(2, 6, 23, 0.95);
}
.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu a {
  color: #cbd5e1;
  font-size: 1rem;
  padding: 8px 0;
}
.mobile-menu a:hover { color: var(--color-accent); }

.mobile-menu .btn-contact-mobile {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-top: 16px;
}

/* Spacer for fixed header */
.header-spacer {
  height: var(--header-height);
}
@media (min-width: 768px) {
  .header-spacer { height: var(--header-height-md); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid rgba(14, 165, 233, 0.5);
}
.btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-accent);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .site-container {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  max-width: 950px;
  margin: 0 auto 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Hero CTA Button Enhanced */
.hero .btn-primary {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  transition: all 0.3s ease;
}
.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
  color: #fff;
}

.hero .btn-outline {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid rgba(14, 165, 233, 0.5);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.hero .btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ===== Stats ===== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
@media (min-width: 768px) { .stats-section { padding: 100px 0; } }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}
.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  display: inline-flex;
  padding: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.2));
  color: var(--color-accent);
  margin-bottom: 20px;
  position: relative;
}
.stat-icon svg { width: 36px; height: 36px; }

.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .stat-value { font-size: 2.75rem; } }

.stat-label {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== Generic sections ===== */
.section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 100px 0; } }

.section-alt { background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%); }

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.section-text {
  color: #cbd5e1;
  max-width: 768px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.section-text-muted {
  color: var(--color-text-muted);
  max-width: 768px;
  line-height: 1.7;
}

/* Feature/Advantage Cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--color-border-light);
  text-align: center;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15);
}
.feature-card .icon {
  display: inline-flex;
  padding: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
  color: var(--color-accent);
  margin-bottom: 20px;
}
.feature-card .icon svg { width: 32px; height: 32px; }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Advantage list */
.advantage-list {
  max-width: 768px;
}

.advantage-item {
  display: flex;
  gap: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.6;
}
.advantage-bullet {
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1.25rem;
}

/* Timeline / info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  text-align: center;
}

.info-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.info-card-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.info-card-label {
  color: #cbd5e1;
  margin-top: 8px;
}

/* Factory grid - 3 项居中显示 */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;
}
@media (max-width: 767px) {
  .factory-grid { grid-template-columns: 1fr; }
}

.factory-item {
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
  text-align: center;
  overflow: hidden;
}

/* 工厂/办事处图片建议尺寸：600×400 像素（3:2 横图）或 500×500 像素（1:1 方图） */
.factory-item-thumb {
  aspect-ratio: 3 / 2;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.factory-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.factory-item-no-img {
  color: var(--color-text-dim);
  font-size: 2.5rem;
}
.factory-item-name {
  padding: 16px;
  font-weight: 500;
}

/* Testing section - carousel */
.testing-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}
.testing-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
@media (max-width: 767px) {
  .testing-carousel-track { aspect-ratio: 4 / 3; }
}
.testing-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
}
.testing-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.testing-carousel-img-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
@media (min-width: 768px) {
  .testing-carousel-img-wrap { padding: 20px; }
}
.testing-carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}
.testing-carousel-caption {
  padding: 12px 16px;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  background: rgba(30, 41, 59, 0.5);
  border-top: 1px solid var(--color-border-light);
}
@media (min-width: 768px) {
  .testing-carousel-caption { padding: 16px 20px; font-size: 1rem; }
}
.testing-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}
.testing-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.testing-carousel-dot:hover {
  border-color: var(--color-accent);
  background: rgba(14, 165, 233, 0.3);
}
.testing-carousel-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Certificates section */
.certificates-desc {
  max-width: 720px;
  margin: 0 auto 24px;
}
.certificates-img-wrap {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.5);
}
.certificates-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Blog section */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  transition: border-color var(--transition);
}
.blog-card:hover { border-color: rgba(14, 165, 233, 0.3); }

.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 8px;
}

.blog-card .read-more {
  color: var(--color-accent);
  font-size: 0.875rem;
}

/* ===== Top sellers header ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
}
.section-header a {
  color: var(--color-accent);
  font-weight: 500;
}
.section-header a:hover { color: #38bdf8; }

/* ===== Product grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(99, 102, 241, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.15);
  transform: translateY(-5px);
}
.product-card:hover::before {
  opacity: 1;
}

/* NEW Tag */
.product-card .new-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card .thumb {
  background: var(--color-surface-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.product-card:hover .thumb img {
  transform: scale(1.02);
}

.product-card .thumb .no-img {
  color: var(--color-text-dim);
  font-size: 2.5rem;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.product-card:hover h3 { color: var(--color-accent); }
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--color-accent); }

.product-card .description {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-top: 8px;
  font-weight: 500;
}
.product-card .read-more svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.product-card:hover .read-more svg { transform: translateX(4px); }

.product-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ===== Products toolbar ===== */
.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .products-toolbar { flex-direction: row; }
}

.search-form {
  position: relative;
  flex: 1;
}

.search-form .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-dim);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
}
.search-form input[type="search"]::placeholder { color: var(--color-text-dim); }
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-categories a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  background: var(--color-surface-light);
  transition: all var(--transition);
}
.filter-categories a:hover {
  background: var(--color-border);
  color: #fff;
}
.filter-categories a.active {
  background: var(--color-accent);
  color: #fff;
}

/* Pagination */
.pagination-wrap {
  margin-top: 48px;
  text-align: center;
}
.pagination-wrap .page-numbers {
  display: inline-flex;
  gap: 4px;
}
.pagination-wrap .page-numbers li { list-style: none; }
.pagination-wrap a,
.pagination-wrap span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
}
.pagination-wrap .current,
.pagination-wrap a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ===== Single product ===== */
.single-product-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
@media (min-width: 768px) { .single-product-wrap { padding: 56px 0 80px; } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.back-link:hover { color: var(--color-accent); }
.back-link svg { width: 16px; height: 16px; }

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .single-product-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.single-product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-light);
  aspect-ratio: 4/3;
}

.single-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.single-product-info h1 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.single-product-info .entry-content {
  color: #cbd5e1;
  line-height: 1.7;
  padding: 0;
}

.single-product-info .entry-content p { margin: 8px 0; }
.single-product-info .entry-content ul { list-style: disc; padding-left: 24px; margin: 8px 0; }
.single-product-info .entry-content ol { list-style: decimal; padding-left: 24px; margin: 8px 0; }
.single-product-info .entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.single-product-info .entry-content th,
.single-product-info .entry-content td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
}
.single-product-info .entry-content th { background: var(--color-surface); color: #cbd5e1; }
.single-product-info .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.inquiry-btn { margin-top: 24px; }

/* ===== Product gallery thumbnails ===== */
.single-product-gallery-col { }
.sp-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.sp-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-surface-light);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.sp-thumb:hover { opacity: 0.9; }
.sp-thumb.sp-thumb-active {
  border-color: var(--color-accent);
  opacity: 1;
}
.sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Product highlights ===== */
.sp-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.95em;
  line-height: 1.5;
}
.sp-highlights li svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* ===== Specs table ===== */
.sp-specs-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-light);
}
.sp-specs-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.sp-specs-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sp-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--color-border-light);
}
.sp-spec-row:last-child { border-bottom: none; }
.sp-spec-alt { background: var(--color-bg-alt); }
.sp-spec-label {
  padding: 12px 16px;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.9em;
  border-right: 1px solid var(--color-border-light);
}
.sp-spec-value {
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 0.9em;
}
@media (max-width: 600px) {
  .sp-spec-row { grid-template-columns: 140px 1fr; }
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--color-surface) 0%, #0a0f1a 100%);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer-inner {
  padding: 40px 0 32px;
}
@media (min-width: 768px) { .footer-inner { padding: 48px 0 36px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-no-cats { color: var(--color-text-dim); font-size: 0.85rem; margin: 0; }

.footer-col h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.footer-col ul { padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 6px; }

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--color-accent); transform: translateX(4px); }

.footer-col .contact-info {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.footer-col .contact-info li { margin-bottom: 14px; }
.footer-col .contact-info .label {
  color: var(--color-text-dim);
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}
.social-links svg,
.social-link svg { width: 16px !important; height: 16px !important; }

/* Footer Logo */
.footer-logo {
  margin-bottom: 10px;
}
.footer-logo a {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-logo a:hover { color: #fff; }
.footer-logo .accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 280px;
}

/* Footer Brand Column */
.footer-col-brand {
  padding-right: 20px;
}

/* Newsletter */
.newsletter-form {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.newsletter-form button {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.8rem;
}

/* ===== Page content ===== */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0 56px;
}
@media (min-width: 768px) { .page-wrap { padding: 40px 0 56px; } }

.page-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 32px;
}

.page-text {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 32px;
}

.page-text-muted {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* About: main products list */
.products-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.products-list .chevron {
  color: var(--color-accent);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* About: philosophy cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (min-width: 640px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}

.philosophy-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.philosophy-card .icon {
  color: var(--color-accent);
  margin-bottom: 8px;
}
.philosophy-card .icon svg { width: 32px; height: 32px; }
.philosophy-card h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}
.philosophy-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* FAQ */
.faq-intro {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.faq-list { margin-bottom: 32px; }

.faq-item {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.3);
  margin-bottom: 16px;
}

.faq-item h4 {
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.faq-item p {
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* ===== Contact page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-item .icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item .label {
  color: var(--color-text-dim);
  font-size: 0.875rem;
  margin-bottom: 4px;
}
.contact-info-item .value {
  color: #cbd5e1;
}
.contact-info-item a {
  color: var(--color-accent);
}
.contact-info-item a:hover { color: #38bdf8; }

.contact-form-wrap {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-row { margin-bottom: 16px; }

.form-row label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--color-text-dim); }

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.form-feedback {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}
.form-feedback.success {
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-accent);
  display: block;
}
.form-feedback.error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Contact popup modal ===== */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.contact-modal-overlay.active {
  display: flex;
}

.contact-modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  max-width: 448px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
}

.contact-modal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.contact-modal .modal-btns {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.contact-modal .modal-btns .btn-submit { flex: 1; }

.contact-modal .btn-cancel {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: none;
  color: #cbd5e1;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: background var(--transition);
}
.contact-modal .btn-cancel:hover { background: var(--color-surface-light); }

/* ===== Search page ===== */
.search-results-wrap {
  padding: 40px 0 80px;
}

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 80px 0;
}
.error-404 h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}
.error-404 p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}
