/* ===== Kanapet B2B Website — Global Styles ===== */
:root {
  --primary: #00A0E5;
  --primary-dark: #0077B3;
  --primary-light: #4DB8E8;
  --accent: #F8AC15;
  --accent-dark: #D4900E;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-dark: #0A2540;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(248,172,21,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ===== Header / Nav ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  margin-top: 68px;
  min-height: 560px;
  background: linear-gradient(135deg, #0077B3 0%, #00A0E5 50%, #4DB8E8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(248,172,21,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.hero-visual img { border-radius: 10px; width: 100%; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== Section Common ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
/* Wide header for long single-line titles (desktop only) */
@media (min-width: 768px) {
  .section-header--wide { max-width: 960px; }
  .section-title--single-line { font-size: 30px; white-space: nowrap; }
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Category Cards ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card-img {
  height: 200px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.cat-card-body { padding: 24px; }
.cat-card-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.cat-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.cat-card-body a { font-weight: 600; font-size: 14px; color: var(--primary); }

/* ===== Product Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.product-img {
  height: 220px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-img-link:hover .product-img {
  background: var(--bg-soft);
}
.product-name-link {
  text-decoration: none;
  color: inherit;
}
.product-name-link:hover h3 {
  color: var(--primary);
}
.product-img .placeholder {
  font-size: 48px;
  color: var(--primary-light);
  opacity: 0.4;
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-meta { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.product-moq {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 10px;
}
.product-card .btn {
  margin-top: 12px;
  padding: 10px;
  font-size: 13px;
  width: 100%;
}

/* ===== Factory Section ===== */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.factory-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.factory-text p { color: var(--text-light); margin-bottom: 16px; font-size: 15px; }
.factory-features { list-style: none; margin-top: 24px; }
.factory-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.factory-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}
.factory-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.factory-images img {
  border-radius: var(--radius);
  width: 100%;
  height: 200px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ===== OEM Process ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.step {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 14px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-light); }

/* ===== Why Choose ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.why-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.why-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
footer {
  background: #003D5C;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h2 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { font-size: 14px; margin-bottom: 12px; display: flex; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Page Header (inner pages) ===== */
.page-header {
  margin-top: 68px;
  background: linear-gradient(135deg, #0077B3, #00A0E5);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.page-header p { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
}
.product-gallery {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  gap: 16px;
}
.product-main-image-wrap {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 8px;
}
.product-main-image-wrap img { max-height: 400px; max-width: 100%; object-fit: contain; flex-shrink: 0; }
.product-gallery img { max-height: 400px; max-width: 100%; object-fit: contain; flex-shrink: 0; }
.product-gallery .placeholder { font-size: 80px; color: var(--primary-light); opacity: 0.3; }
.product-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.product-thumb {
  width: 70px;
  height: 70px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.product-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 119, 34, 0.2);
}
.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Compatible Accessories Section */
.compatible-accessories-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.accessory-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}
.accessory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--primary);
}
.accessory-image {
  width: 100%;
  height: 160px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.accessory-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.accessory-image .placeholder {
  font-size: 40px;
  color: var(--primary-light);
  opacity: 0.3;
}
.accessory-info {
  padding: 12px;
}
.accessory-info h3 {
  font-size: 13px;
  margin: 0 0 6px 0;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.accessory-size {
  font-size: 11px;
  color: var(--text-light);
  margin: 0 0 8px 0;
}
.dedicated-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #FFF8E1;
  color: #D4900E;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}
.universal-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}
.product-detail-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.product-sku { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-table th { background: var(--bg-soft); font-weight: 600; width: 40%; color: var(--text); }
.spec-table td { color: var(--text-light); }
.inquiry-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.inquiry-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.inquiry-box p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 60px 0;
}
.contact-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-light); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: #fff;
}
.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(13,115,119,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* Optional Details Toggle */
.optional-details-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  background: #f0f4f8;
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s;
  user-select: none;
}
.optional-details-toggle:hover {
  background: #e2e8f0;
  border-color: var(--primary);
}
.optional-details-toggle span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
#optional-details {
  padding: 16px;
  background: #fafbfc;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 34px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .factory-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 28px; }
  .hero { min-height: 480px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 28px; }
  .factory-images img:first-child { height: 180px; }
  .factory-images img { height: 140px; }
  .page-header h1 { font-size: 28px; }

  /* 手机端：页脚为 WhatsApp 悬浮按钮让位（按钮 56px + 24px 边距） */
  footer { padding-bottom: 96px; }

  /* 手机端：hero 标题的 "Since 1991" 独占一行 */
  .hero-since { display: block; margin-top: 6px; }

  /* 手机端：筛选器单行横滑，不再换行堆叠 */
  .filter-bar,
  .color-filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-bar::-webkit-scrollbar,
  .color-filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn,
  .color-filter-btn { flex: 0 0 auto; white-space: nowrap; }
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}
.lightbox.active { display: flex; align-items: center; justify-content: center; }
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.product-gallery img { cursor: zoom-in; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Color Swatches (一品多色) ===== */
.color-swatches {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.color-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.color-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.color-swatch.transparent {
  background: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}
.color-swatch.multi {
  background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
}
.color-swatch-label {
  font-size: 11px;
  color: var(--text-light);
  margin-left: 4px;
  align-self: center;
}
/* 详情页颜色选择器 */
.product-colors {
  margin: 16px 0;
}
.product-colors h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.product-colors .color-swatch {
  width: 28px;
  height: 28px;
}
.material-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.material-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.material-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.material-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Related Products Section */
.related-products-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.related-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8ecf1;
}

.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.12);
}

.related-product-image {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.related-product-info {
  padding: 16px;
  text-align: center;
}

.related-product-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.related-product-size {
  font-size: 12px;
  color: #6b7c93;
  margin: 0 0 8px 0;
}

.related-product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }
}
