/* ============================================
   Kongdafun - Global Design System
   Premium USA Dietary Supplement Brand Website
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Brand Colors */
  --burgundy: #701A2E;
  --burgundy-light: #9B2D44;
  --burgundy-dark: #4A0F1E;
  --matte-silver: #D0D0D0;
  --matte-silver-light: #E8E8E8;
  --deep-navy: #1A3050;
  --deep-navy-light: #2A4870;
  --off-white: #F8F8F8;
  --pure-white: #FFFFFF;
  --safety-red: #D62828;
  --success-green: #2D8659;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --base-font-size: 16px;

  /* Spacing */
  --container-max: 1280px;
  --gutter: 24px;
  --section-padding: 80px 0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Dark Mode Overrides === */
[data-theme="dark"] {
  --off-white: #121212;
  --pure-white: #1E1E1E;
  --text-primary: #E8E8E8;
  --text-secondary: #AAAAAA;
  --text-muted: #777777;
  --border-color: #333333;
  --matte-silver: #444444;
  --matte-silver-light: #333333;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

/* === Font Size Scale === */
[data-fontsize="small"] { --base-font-size: 14px; }
[data-fontsize="large"] { --base-font-size: 18px; }

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--burgundy-light); }

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

ul, ol { list-style: none; }

/* === Accessibility === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--burgundy);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* === Layout === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-padding); }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.bg-white { background: var(--pure-white); }
.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--deep-navy); color: #fff; }
.bg-burgundy { background: var(--burgundy); color: #fff; }
.bg-silver { background: var(--matte-silver-light); }

.text-center { text-align: center; }
.text-left { text-align: left; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* === Typography Helpers === */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.text-burgundy { color: var(--burgundy); }
.text-navy { color: var(--deep-navy); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-white-outline:hover {
  background: #fff;
  color: var(--burgundy);
  border-color: #fff;
}

.btn-navy {
  background: var(--deep-navy);
  color: #fff;
  border-color: var(--deep-navy);
}
.btn-navy:hover {
  background: var(--deep-navy-light);
  color: #fff;
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* === Header / Navigation === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(30,30,30,0.98);
}

.nav-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--burgundy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-logo span { color: var(--deep-navy); }
[data-theme="dark"] .nav-logo span { color: var(--matte-silver); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--burgundy);
  transition: width var(--transition);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--burgundy); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
  position: relative;
}
.nav-icon-btn:hover {
  background: var(--off-white);
  color: var(--burgundy);
}
[data-theme="dark"] .nav-icon-btn:hover {
  background: var(--pure-white);
}

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--pure-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: 24px;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}
.mobile-menu a:hover { color: var(--burgundy); }

/* Accessibility toolbar */
.a11y-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--off-white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .a11y-toolbar { background: var(--pure-white); }

.a11y-btn {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.a11y-btn:hover, .a11y-btn.active {
  background: var(--burgundy);
  color: #fff;
}

/* Top bar */
.top-bar {
  background: var(--deep-navy);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.3px;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1A3050 0%, #2A4870 40%, #701A2E 100%);
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(112,26,46,0.3), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(26,48,80,0.4), transparent 60%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero-text .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Product Card === */
.product-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--matte-silver);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--matte-silver-light);
  color: var(--deep-navy);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 12px;
}

/* === SVG Product Placeholder === */
.product-svg {
  width: 100%;
  height: 100%;
}

/* === Advantage Cards === */
.advantage-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--burgundy);
}

.advantage-card .icon-wrap {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.advantage-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Certification Wall === */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--pure-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cert-card .cert-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--deep-navy);
  border: 2px solid var(--deep-navy);
}

.cert-card h4 {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === Review Cards === */
.review-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  min-width: 320px;
}

.review-stars {
  color: #F5A623;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy), var(--deep-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.review-author-info strong {
  display: block;
  font-size: 0.9rem;
}

.review-author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* === Forms === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--pure-white);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--burgundy);
}

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23701A2E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  background: var(--off-white);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--burgundy); color: #fff; }

/* === FAQ Accordion === */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--pure-white);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--burgundy);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--burgundy); color: #fff; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Footer === */
.site-footer {
  background: #0F0F0F;
  color: #AAAAAA;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #999;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--burgundy-light); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--burgundy);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.8;
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: #555 !important;
  margin-top: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Floating Widgets === */
.float-widgets {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
}

.float-btn:hover { transform: scale(1.1); }

.float-chat { background: var(--burgundy); }
.float-whatsapp { background: #25D366; }
.float-messenger { background: #0084FF; }

.float-btn .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(112,26,46,0.4); }
  70% { box-shadow: 0 0 0 16px rgba(112,26,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(112,26,46,0); }
}

/* === Live Chat Widget === */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 901;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  overflow: hidden;
}
.chat-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: var(--burgundy);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-status-dot {
  width: 10px; height: 10px;
  background: #4ADE80;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.chat-body {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-message.bot {
  background: var(--off-white);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--burgundy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  font-size: 0.88rem;
  background: var(--off-white);
  color: var(--text-primary);
}

.chat-input:focus { outline: none; border-color: var(--burgundy); }

.chat-send {
  width: 40px; height: 40px;
  border: none;
  background: var(--burgundy);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.chat-send:hover { background: var(--burgundy-dark); }

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--deep-navy);
  color: #fff;
  padding: 20px var(--gutter);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
.cookie-banner.active { transform: translateY(0); }

.cookie-banner p {
  font-size: 0.85rem;
  max-width: 700px;
  line-height: 1.5;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}

/* === Mini Cart Dropdown === */
.mini-cart {
  position: absolute;
  top: 72px; right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--pure-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  overflow: hidden;
}
.mini-cart.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mini-cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-cart-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 20px;
}

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.mini-cart-item-img {
  width: 48px; height: 48px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mini-cart-item-info {
  flex: 1;
}

.mini-cart-item-info h5 {
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.mini-cart-item-info .price {
  font-size: 0.8rem;
  color: var(--burgundy);
  font-weight: 600;
}

.mini-cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 12px;
}

.mini-cart-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Toast Notification === */
.toast {
  position: fixed;
  top: 90px; right: 20px;
  background: var(--pure-white);
  border-left: 4px solid var(--success-green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 16px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 360px;
}
.toast.active { transform: translateX(0); }
.toast .toast-icon { color: var(--success-green); font-size: 1.5rem; }
.toast .toast-text { font-size: 0.88rem; }
.toast .toast-text strong { display: block; margin-bottom: 2px; }

/* === Page Hero (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #2A4870 100%);
  color: #fff;
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(112,26,46,0.15), transparent 70%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }

/* === Ingredient Table === */
.ingredient-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ingredient-table thead {
  background: var(--deep-navy);
  color: #fff;
}

.ingredient-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ingredient-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  background: var(--pure-white);
}

.ingredient-table tr:last-child td { border-bottom: none; }
.ingredient-table tr:hover td { background: var(--off-white); }

/* === Verification System === */
.verify-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  transition: border-color var(--transition);
}

.verify-card:hover { border-color: var(--burgundy); }

.verify-input {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.code-input {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--pure-white);
}
.code-input:focus { outline: none; border-color: var(--burgundy); }

.verify-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  display: none;
}
.verify-result.authentic {
  background: rgba(45,134,89,0.1);
  border: 2px solid var(--success-green);
  display: block;
}
.verify-result.counterfeit {
  background: rgba(214,40,40,0.1);
  border: 2px solid var(--safety-red);
  display: block;
}

.verify-result .result-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --section-padding: 32px 0; --gutter: 16px; }

  /* Navigation */
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .a11y-toolbar { display: none; }
  .nav-wrapper { height: 60px; }
  .mobile-menu { top: 60px; }
  .nav-logo { font-size: 1.15rem; }
  .nav-actions { gap: 6px; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-icon-btn svg { width: 18px; height: 18px; }

  /* Top bar: smaller text */
  .top-bar { font-size: 0.7rem; padding: 4px 0; }

  /* Language selector: compact */
  .lang-selector { padding: 4px 24px 4px 10px !important; font-size: 0.72rem !important; }

  /* Hide TTS button on mobile to save space */
  .nav-actions .tts-btn { display: none; }

  /* Grids: 2 columns on mobile for compact layout */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2 columns instead of 1 */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .site-footer { padding: 40px 0 0; }

  body { line-height: 1.7; }

  /* Hero section compact */
  .hero { min-height: auto; padding-bottom: 32px; }
  .hero-content {
    padding: 80px var(--gutter) 32px;
    gap: 24px;
  }
  .hero-text h1 { font-size: 1.7rem; margin-bottom: 12px; }
  .hero-text .hero-sub { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-visual svg { max-height: 260px; width: auto; }

  /* Section titles */
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 24px; }

  /* Buttons */
  .btn { padding: 11px 20px; font-size: 0.85rem; }
  .btn-lg { padding: 13px 28px; font-size: 0.9rem; }

  /* Product cards: 4:3 aspect ratio saves vertical space */
  .product-card-img { aspect-ratio: 4 / 3; }
  .product-card-body { padding: 14px; }
  .product-card-body h3 { font-size: 0.9rem; }
  .product-tags { gap: 4px; margin-bottom: 6px; }
  .product-tag { font-size: 0.62rem; padding: 2px 7px; }
  .product-rating { font-size: 0.78rem; margin-bottom: 6px; }
  .product-price { font-size: 1.1rem; margin-bottom: 8px; }
  .product-card-body .btn-sm { padding: 7px 14px; font-size: 0.78rem; }

  /* Advantage cards compact */
  .advantage-card { padding: 20px 14px; }
  .advantage-card .icon-wrap { width: 48px; height: 48px; margin-bottom: 12px; }
  .advantage-card .icon-wrap svg { width: 22px; height: 22px; }
  .advantage-card h3 { font-size: 0.88rem; margin-bottom: 6px; }
  .advantage-card p { font-size: 0.8rem; line-height: 1.5; }

  /* Cert grid: 2 columns minimum */
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-card { padding: 16px 10px; }
  .cert-card .cert-icon { width: 44px; height: 44px; margin-bottom: 8px; }
  .cert-card h4 { font-size: 0.78rem; }
  .cert-card p { font-size: 0.68rem; }

  /* Bestseller section: reduce SVG and stat grid */
  .grid-2[style*="align-items:center"] > div:first-child svg { max-height: 280px; }

  /* Science section SVGs */
  .bg-navy .grid-2 svg { max-height: 220px; }

  /* Review cards */
  .review-card { min-width: 260px; padding: 20px; }
  .review-text { font-size: 0.85rem; margin-bottom: 14px; }
  .review-avatar { width: 38px; height: 38px; font-size: 0.85rem; }

  /* Floating widgets */
  .float-widgets { right: 12px; bottom: 12px; gap: 8px; }
  .float-btn { width: 44px; height: 44px; }
  .float-btn svg { width: 20px; height: 20px; }

  /* Chat widget */
  .chat-widget { right: 12px; bottom: 64px; width: calc(100vw - 24px); }
  .chat-body { height: 260px; }

  /* Cookie banner */
  .cookie-banner { flex-direction: column; text-align: center; gap: 12px; padding: 16px var(--gutter); }

  /* Modal */
  .modal { padding: 20px; }
  .modal-close { width: 32px; height: 32px; }

  /* Page hero (inner pages) */
  .page-hero { padding: 100px 0 36px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p { font-size: 0.95rem; }

  /* Ingredient table */
  .ingredient-table th, .ingredient-table td { padding: 10px 12px; font-size: 0.8rem; }

  /* Verify card */
  .verify-card { padding: 24px 16px; }
  .verify-input { flex-direction: column; }

  /* Mini cart */
  .mini-cart { top: 60px; width: calc(100vw - 24px); }

  /* Hide search and a11y toolbar */
  .nav-actions .nav-icon-btn[title="Search"],
  .nav-actions .a11y-toolbar { display: none; }

  /* Product detail page: reduce inline gaps and padding */
  .grid-2[style*="gap:48px"] { gap: 20px !important; }
  .grid-2[style*="gap:48px"] > div > div[style*="padding:40px"] { padding: 20px !important; }

  /* Product detail thumbnails */
  .grid-2[style*="gap:48px"] > div > div[style*="display:flex"] > div[style*="width:80px"] {
    width: 56px !important; height: 56px !important;
  }
  .grid-2[style*="gap:48px"] > div > div[style*="display:flex"] > div[style*="width:80px"] svg {
    width: 28px; height: 34px;
  }

  /* Product detail: stat grid 2x2 */
  .grid-2[style*="gap:48px"] > div > div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Inline comparison lists: tighter padding */
  ul li[style*="padding:6px"] { padding: 4px 0 !important; }

  /* Any inline gap:32px in sections */
  .section div[style*="gap:32px"] { gap: 16px !important; }

  /* Newsletter form */
  .bg-burgundy form { flex-direction: column; }
  .bg-burgundy form .btn { width: 100%; }

  /* Section spacing */
  .section-sm { padding: 28px 0; }
  .section-lg { padding: 48px 0; }

  /* Toast */
  .toast { top: 70px; right: 12px; left: 12px; max-width: none; }

  /* === Contact page mobile fixes === */
  /* Grid-3 with inline gap:40px → 1 column on mobile */
  .grid-3[style*="gap:40px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Contact form: reduce inline padding 32px → 18px */
  form[style*="padding:32px"] {
    padding: 18px !important;
  }

  /* Contact channel items: compact spacing */
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] {
    gap: 12px !important;
    padding: 12px !important;
  }
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] > div:first-child {
    width: 38px !important;
    height: 38px !important;
  }
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] > div:first-child svg {
    width: 16px !important;
    height: 16px !important;
  }
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] strong {
    font-size: 0.85rem;
  }
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] .text-small {
    font-size: 0.72rem;
  }

  /* Contact map: 16:9 instead of square */
  .grid-3[style*="gap:40px"] div[style*="aspect-ratio:1"] {
    aspect-ratio: 16 / 9 !important;
  }

  /* Contact info box: reduce padding */
  .grid-3[style*="gap:40px"] div[style*="padding:20px"] {
    padding: 14px !important;
  }

  /* Contact channel grid: tighter gap */
  .grid-3[style*="gap:40px"] div[style*="display:grid;gap:12px"] {
    gap: 8px !important;
  }

  /* Contact headings */
  .grid-3[style*="gap:40px"] h3 {
    font-size: 1.05rem;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  :root { --section-padding: 28px 0; --gutter: 14px; }

  /* Hero CTA stacked */
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; }

  /* Hero stats: tighter spacing */
  .hero-text > div[style*="gap:32px"] { gap: 16px !important; }
  .hero-text > div[style*="gap:32px"] > div > div:first-child { font-size: 1.4rem !important; }
  .hero-text > div[style*="gap:32px"] > div > div:last-child { font-size: 0.72rem !important; }

  /* Hero visual even smaller */
  .hero-visual svg { max-height: 220px; }

  /* Section title even smaller */
  .section-title { font-size: 1.25rem; }

  /* Bestseller stat grid: 2x2 */
  .grid-2[style*="align-items:center"] > div:last-child > div[style*="grid-template-columns:1fr 1fr"] {
    gap: 10px;
  }
  .grid-2[style*="align-items:center"] > div:last-child > div[style*="grid-template-columns:1fr 1fr"] > div {
    padding: 12px 10px;
  }
  .grid-2[style*="align-items:center"] > div:last-child > div[style*="grid-template-columns:1fr 1fr"] > div > div:first-child {
    font-size: 1.1rem !important;
  }

  /* Bestseller heading */
  .grid-2[style*="align-items:center"] > div:last-child > h3 { font-size: 1.3rem !important; }

  /* Product cards: still 2 columns but tighter */
  .product-card-body { padding: 10px; }
  .product-card-body h3 { font-size: 0.82rem; line-height: 1.3; }

  /* Advantage cards: tighter */
  .advantage-card { padding: 16px 10px; }
  .advantage-card .icon-wrap { width: 40px; height: 40px; margin-bottom: 8px; }
  .advantage-card h3 { font-size: 0.82rem; }
  .advantage-card p { font-size: 0.75rem; }

  /* Cert cards tighter */
  .cert-card { padding: 12px 8px; }
  .cert-card .cert-icon { width: 38px; height: 38px; font-size: 0.6rem; }
  .cert-card h4 { font-size: 0.72rem; }
  .cert-card p { font-size: 0.62rem; }

  /* Science SVGs even smaller */
  .bg-navy .grid-2 svg { max-height: 180px; }

  /* Review cards full width */
  .review-card { min-width: auto; padding: 16px; }

  /* Footer: single column on very small screens */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* World map and large SVGs */
  .section svg[viewBox*="800"] { max-height: 200px; }

  /* Floating widgets: even smaller */
  .float-btn { width: 40px; height: 40px; }
  .float-btn svg { width: 18px; height: 18px; }

  /* Modal full screen on small devices */
  .modal { padding: 16px; max-height: 90vh; border-radius: var(--radius-md); }

  /* Clinical research cards */
  .section .grid-3 > div[style*="padding:28px"] { padding: 16px; }
  .section .grid-3 > div[style*="padding:28px"] > div:first-child { height: 80px; margin-bottom: 12px; }
  .section .grid-3 > div[style*="padding:28px"] > div:first-child span { font-size: 1.2rem; }

  /* Global footprint cards */
  .section .grid-3 > div[style*="padding:20px"] { padding: 14px 10px; }
  .section .grid-3 > div[style*="padding:20px"] h4 { font-size: 0.85rem; }
  .section .grid-3 > div[style*="padding:20px"] p { font-size: 0.75rem; }
  .section .grid-3 > div[style*="padding:20px"] svg { width: 36px; height: 36px; }

  /* Page hero */
  .page-hero { padding: 80px 0 28px; }
  .page-hero h1 { font-size: 1.4rem; }

  /* Bestseller SVG */
  .grid-2[style*="align-items:center"] > div:first-child svg { max-height: 220px; }

  /* Newsletter heading */
  .bg-burgundy .section-title { font-size: 1.2rem; }

  /* === Contact page: extra compact on small screens === */
  .grid-3[style*="gap:40px"] {
    gap: 20px !important;
  }
  form[style*="padding:32px"] {
    padding: 14px !important;
  }
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] {
    padding: 10px !important;
    gap: 10px !important;
  }
  .grid-3[style*="gap:40px"] a[style*="gap:16px"] > div:first-child {
    width: 34px !important;
    height: 34px !important;
  }
  .grid-3[style*="gap:40px"] div[style*="padding:20px"] {
    padding: 12px !important;
  }
  /* Form inputs: smaller on tiny screens */
  .form-group { margin-bottom: 14px; }
  .form-control { padding: 10px 12px; font-size: 0.85rem; }
  .form-group label { font-size: 0.8rem; }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 380px) {
  :root { --gutter: 12px; }

  .hero-text h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.15rem; }

  /* Hero stats: 2 per row */
  .hero-text > div[style*="gap:32px"] {
    gap: 12px !important;
  }
  .hero-text > div[style*="gap:32px"] > div > div:first-child {
    font-size: 1.2rem !important;
  }

  /* Product card body even tighter */
  .product-card-body { padding: 8px; }
  .product-card-body h3 { font-size: 0.76rem; }
  .product-tag { font-size: 0.58rem; padding: 2px 5px; }

  /* Advantage card */
  .advantage-card { padding: 12px 8px; }
  .advantage-card p { font-size: 0.7rem; }

  /* Cert card */
  .cert-card { padding: 10px 6px; }
  .cert-card .cert-icon { width: 34px; height: 34px; }

  /* Footer bottom */
  .footer-bottom p { font-size: 0.72rem; }
}

/* ============================================
   Chinese Language Typography
   ============================================ */
html[lang="zh-CN"] body,
body.lang-zh {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", Roboto, sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4,
html[lang="zh-CN"] h5,
html[lang="zh-CN"] h6,
html[lang="zh-CN"] .section-title,
html[lang="zh-CN"] .nav-logo,
body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3,
body.lang-zh h4,
body.lang-zh h5,
body.lang-zh h6,
body.lang-zh .section-title,
body.lang-zh .nav-logo {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", Montserrat, sans-serif;
  letter-spacing: 0.02em;
}

html[lang="zh-CN"] body,
body.lang-zh {
  line-height: 1.8;
}

html[lang="zh-CN"] .hero h1,
body.lang-zh .hero h1 {
  letter-spacing: 0.05em;
  line-height: 1.4;
}

html[lang="zh-CN"] .btn,
body.lang-zh .btn {
  font-family: "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  letter-spacing: 0.03em;
}

html[lang="zh-CN"] .nav-menu a,
html[lang="zh-CN"] .top-bar,
body.lang-zh .nav-menu a,
body.lang-zh .top-bar {
  letter-spacing: 0.04em;
}

html[lang="zh-CN"] .product-card h3,
html[lang="zh-CN"] .advantage-card h3,
body.lang-zh .product-card h3,
body.lang-zh .advantage-card h3 {
  letter-spacing: 0.02em;
}

html[lang="zh-CN"] .footer-bottom p,
body.lang-zh .footer-bottom p {
  letter-spacing: 0.05em;
}

/* Chinese font-size adjustment: slightly larger for readability */
html[lang="zh-CN"] .text-small,
html[lang="zh-CN"] .text-xs,
body.lang-zh .text-small,
body.lang-zh .text-xs {
  font-size: 0.85rem;
}

/* Print */
@media print {
  .site-header, .site-footer, .float-widgets, .cookie-banner, .chat-widget { display: none; }
  body { color: #000; background: #fff; }
}
