/* SLYCMA China — www.slycma.cn */
:root {
  --primary: #c8102e;
  --primary-dark: #a50d25;
  --primary-soft: rgba(200, 16, 46, 0.08);
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --card: #ffffff;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --header-h: 72px;
  --max-w: 1200px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-lg: 0 8px 30px rgba(24, 24, 27, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 40%, transparent 100%);
  z-index: 100;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo-sub {
  display: none;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
  max-width: 11rem;
}

@media (min-width: 900px) {
  .logo-sub { display: block; }
}

@media (max-width: 480px) {
  .logo-img { height: 32px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  margin-left: 0.25rem;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.25rem;
  padding: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
  visibility: visible;
  opacity: 1;
  z-index: 5;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.lang-switcher-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.lang-switcher-mobile .lang-btn {
  flex: 1 1 calc(33% - 0.35rem);
  min-width: 4.5rem;
  padding: 0.55rem 0.5rem;
  font-size: 0.8rem;
}

.nav-mobile .nav-cta {
  color: var(--primary) !important;
  background: var(--primary-soft) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem !important;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: white;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1e 0%, #2d2d35 50%, #1a1a1e 100%);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(200,16,46,0.25);
  border: 1px solid rgba(200,16,46,0.5);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--primary); }

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-desc-en {
  font-size: 0.95rem;
  opacity: 0.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(200,16,46,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.btn-temp {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-temp:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #1a1a1e 0%, #2d2d35 100%);
  color: white;
  padding: 4rem 0 3rem;
  border-bottom: 3px solid var(--primary);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.8;
  max-width: 600px;
}

.page-hero .en {
  font-size: 0.9rem;
  opacity: 0.55;
  margin-top: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.breadcrumb a:hover { opacity: 1; color: var(--primary); }

/* Sections */
section { padding: 4rem 0; }

section.alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header .en {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label { font-weight: 600; font-size: 0.95rem; }
.stat-en { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover { text-decoration: underline; }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Product detail */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.product-section:last-child { border-bottom: none; }

.product-section.reverse { direction: rtl; }
.product-section.reverse > * { direction: ltr; }

.product-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.product-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.product-info .model {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.product-info .desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.spec-table th,
.spec-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-alt);
  font-weight: 600;
  width: 40%;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.check-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.project-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-card .spec { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; }

.project-card-photo {
  padding: 0;
  overflow: hidden;
}

.project-card-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.project-card-photo h3,
.project-card-photo .spec,
.project-card-photo p {
  padding: 0 1.75rem;
}

.project-card-photo h3 {
  margin-top: 1rem;
}

.project-card-photo p {
  padding-bottom: 1.75rem;
}

.showcase-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.showcase-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.cert-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
}

.coverage-table th,
.coverage-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

.coverage-table thead th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.coverage-table tbody tr:nth-child(even) { background: var(--bg-alt); }

.coverage-table .cert-en { background: rgba(200, 16, 46, 0.08); }
.coverage-table .cert-eac { background: rgba(234, 179, 8, 0.12); }
.coverage-table .cert-gb { background: rgba(200, 16, 46, 0.05); }
.coverage-table .cert-glass { background: rgba(6, 182, 212, 0.1); }
.coverage-table .cert-fire-glass { background: rgba(6, 182, 212, 0.15); }

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.coverage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.coverage-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.coverage-chart-img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.coverage-chart-img img {
  width: 100%;
  height: auto;
}

.coverage-table td:first-child { font-weight: 700; white-space: nowrap; }

.coverage-table .door-landing { font-weight: 600; color: var(--primary); }
.coverage-table .door-car { font-weight: 600; color: var(--text-muted); }

.fire-rule-box {
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(200,16,46,0.03) 100%);
  border: 1px solid rgba(200,16,46,0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.fire-rule-box strong { color: var(--primary); }

/* Glass door page */
.glass-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.glass-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.glass-spec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.glass-spec-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-soft);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-muted); }
.spec-row span:last-child { font-weight: 600; text-align: right; }

.highlight-box {
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(200,16,46,0.03) 100%);
  border: 1px solid rgba(200,16,46,0.15);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.highlight-box h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.content-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content-block ul { margin-left: 1.25rem; }
.content-block ul li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

/* About timeline */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.info-list dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 1rem;
}

.info-list dd {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 0;
}

/* Contact CTA */
.cta-section {
  background: linear-gradient(135deg, #1a1a1e 0%, #2d2d35 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.8; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.contact-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-item h4 { font-size: 0.85rem; opacity: 0.6; margin-bottom: 0.5rem; }
.contact-item p { font-size: 0.95rem; }

/* CIS campaign floating CTA */
.cis-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.cis-float-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  width: min(280px, calc(100vw - 2.5rem));
  display: none;
}
.cis-float.open .cis-float-panel { display: block; }
.cis-float-panel p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.45;
}
.cis-float-panel .btn {
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
}
.cis-float-toggle {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cis-float-toggle:hover { background: var(--primary-dark); }
@media (max-width: 640px) {
  .cis-float { right: 0.75rem; bottom: 0.75rem; }
  .cis-float-toggle { font-size: 0.82rem; padding: 0.65rem 0.9rem; }
}

/* Footer */
.site-footer {
  background: #111114;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  height: 34px;
  width: auto;
  opacity: 0.98;
  margin-bottom: 0.25rem;
}
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.7; }

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Anchor nav for products */
.sub-nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 80;
}

.sub-nav-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
}

.sub-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.sub-nav a:hover,
.sub-nav a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-section,
  .about-grid,
  .two-col { grid-template-columns: 1fr; }
  .product-section.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.photo-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: zoom-in;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
}

.photo-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

/* Redundant English subtitles — translated via data-i18n siblings */
.en,
.hero-desc-en,
.stat-en,
.en-caption,
.photo-item .en-caption {
  display: none !important;
}

.photo-gallery-wide {
  grid-template-columns: 1fr;
}

.photo-gallery-wide .photo-item img {
  aspect-ratio: auto;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.photo-gallery-masonry .photo-item img {
  aspect-ratio: auto;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-tab {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 0.9rem;
  max-width: 600px;
}
