/* PUCECO — Design Tokens & Core Styles */
:root {
  color-scheme: light;

  /* Color roles */
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-surface-2: #F1F3F5;
  --color-text: #1F2937;
  --color-muted: #596372;
  --color-border: #E5E7EB;
  --color-accent: #D4322D;          /* PUCECO Brand Red */
  --color-accent-strong: #B72622;
  --color-on-accent: #FFFFFF;
  --color-accent-text: #C42621;
  --color-accent-soft: #FDF2F2;
  --color-accent-2: #D97706;        /* amber gold */
  --color-accent-2-ink: #92400E;
  --color-depth: #18181B;           /* deep charcoal depth */
  --color-depth-2: #27272A;
  --color-on-depth: #F4F4F5;
  --color-on-depth-muted: #A1A1AA;
  --color-success: #15803D;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  --color-on-danger: #FFFFFF;
  --color-focus: #E04B46;

  --accent-50: #FEF2F2;
  --accent-100: #FEE2E2;
  --accent-200: #FECACA;
  --accent-300: #FCA5A5;
  --accent-400: #F87171;
  --accent-500: #D4322D;
  --accent-600: #B72622;
  --accent-700: #991B1B;
  --accent-800: #7F1D1D;
  --accent-900: #450A0A;

  /* Typography */
  --font-heading: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --step-n2: 0.78rem;
  --step-n1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.45rem;
  --step-3: 1.8rem;
  --step-4: 2.3rem;
  --step-5: 3rem;
  --step-6: 3.9rem;
  --step-7: 5rem;
  --weight-h1: 600;
  --weight-heading: 600;
  --weight-body: 400;
  --weight-body-medium: 500;
  --tracking-heading: -0.015em;
  --leading-body: 1.65;
  --leading-heading: 1.2;
  --measure: 64ch;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* Shape and Depth */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.14);

  /* Controls */
  --control-sm: 38px;
  --control-md: 44px;
  --control-lg: 52px;

  /* Motion */
  --dur-fast: 180ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-slow: 0ms; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  font-weight: 400;
}

button, input, select, textarea {
  font-family: var(--font-ui);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent-text); text-decoration: none; }

h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--color-text);
}

h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--color-text);
}

h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  margin: 0;
  color: var(--color-text);
}

b, strong {
  font-weight: 600;
}

/* Số liệu lớn: Manrope 600 */
.stat-num,
.hero-badge b,
.cert-badge b,
.kpi-num,
.number-large,
.metric-num {
  font-family: var(--font-heading);
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -60px;
  background: var(--color-accent); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 200; transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-4); }

.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Buttons ===== */
.btn {
  --bg: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--step-0);
  line-height: 1; color: var(--color-on-accent); background: var(--bg);
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  padding: 0 var(--space-5); min-height: var(--control-md); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);
  touch-action: manipulation;
}
.btn.primary { background: var(--color-accent); box-shadow: var(--shadow-2); }
.btn.primary:hover { background: var(--color-accent-strong); transform: translateY(-2px); }
.btn.primary:active { transform: translateY(0); }
.btn.lg { min-height: var(--control-lg); padding: 0 var(--space-6); font-size: var(--step-1); }
.btn.sm { min-height: var(--control-sm); padding: 0 var(--space-4); font-size: var(--step-n1); }
.btn.ghost { background: transparent; color: var(--color-accent-text); border-color: var(--color-border); }
.btn.ghost:hover { background: var(--color-accent-soft); border-color: var(--color-accent-300); }
.btn.ghost.light { color: var(--color-on-depth); border-color: rgba(255,255,255,.35); }
.btn.ghost.light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

/* ===== Header ===== */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.site-head[data-scrolled] {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-1);
}
.head-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px var(--space-5);
  display: flex; align-items: center; gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 38px; width: auto; object-fit: contain; display: block; transition: transform var(--dur-fast) var(--ease); }
.brand:hover .brand-logo { transform: scale(1.02); }
.brand-mark { color: var(--color-accent); display: inline-flex; }
.brand-text { font-family: var(--font-heading); font-size: 1.35rem; letter-spacing: .02em; color: var(--color-text); }

.site-nav { display: flex; gap: var(--space-5); margin-left: auto; }
.site-nav a {
  color: var(--color-text); font-weight: 500; font-size: var(--step-0);
  padding: 6px 2px; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: var(--space-4); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--control-md); height: var(--control-md); border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.icon-btn:hover { background: var(--color-accent-soft); border-color: var(--color-accent-300); }
.icon-btn:active { transform: scale(.94); }

/* Search bar & Live Dropdown */
.search-bar {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
  position: relative;
}
.search-form {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-muted);
}
.search-form input {
  flex: 1; border: none; background: transparent; font: inherit; color: var(--color-text);
  padding: 8px 4px; outline: none; min-height: var(--control-md); font-size: 1.05rem;
}
.search-results-dropdown {
  max-width: 1240px; margin: 12px auto 0; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-3); max-height: 420px; overflow-y: auto; padding: 12px;
}
.search-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--dur-fast); text-decoration: none; color: inherit;
}
.search-item:hover { background: var(--color-accent-soft); }
.search-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.search-info { flex: 1; }
.search-info h5 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--color-text); }
.search-info p { margin: 2px 0 0; font-size: 0.82rem; color: var(--color-muted); }
.search-badge {
  font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--color-surface-2); color: var(--color-muted); font-family: var(--font-mono);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(16, 49, 34, 0.08);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around; align-items: stretch;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; flex: 1; padding: 6px 4px;
  color: var(--color-muted); text-decoration: none; border: none; background: none;
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer;
  transition: color var(--dur-fast), transform var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bottom-nav-item svg { flex-shrink: 0; }
.bottom-nav-item span { line-height: 1; white-space: nowrap; }
.bottom-nav-item::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 32px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--color-accent); transition: transform var(--dur-fast) var(--ease);
}
.bottom-nav-item.is-active { color: var(--color-accent); }
.bottom-nav-item.is-active::before { transform: translateX(-50%) scaleX(1); }
.bottom-nav-item:active { transform: scale(.92); }

/* ===== Hero slider ===== */
.hero { position: relative; overflow: hidden; background: var(--color-depth); }
.hero-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(520px, 62vh, 620px);
}
.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  position: relative;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: slideFade var(--dur-slow) var(--ease) both;
}
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; }
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--g1) 0%, rgba(24, 24, 27, 0.82) 45%, rgba(24, 24, 27, 0.25) 100%);
}
.hero-grid {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--space-5) clamp(130px, 13vw, 160px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-8); align-items: center;
}
.hero-mobile-badge { display: none; }
.hero-copy { max-width: 36rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step-n1); letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-accent-2-ink); font-weight: 600; margin: 0 0 var(--space-4);
}
.eyebrow.light { color: var(--color-accent-2); }
.eyebrow.center { text-align: center; }
.hero-title {
  color: #fff; font-size: clamp(2rem, 3.9vw, var(--step-5));
  margin-bottom: var(--space-4); text-wrap: balance;
  max-width: 34ch;
}
.hero-lede { color: var(--color-on-depth-muted); font-size: var(--step-1); max-width: 34rem; margin: 0 0 var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-visual { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.hero-art { max-width: 260px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3)); }
.hero-badge {
  position: absolute; bottom: 10%; right: 2%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 104px; height: 104px; justify-content: center; border-radius: 50%;
  background: var(--color-accent-2); color: #1c1402; text-align: center;
  box-shadow: var(--shadow-3);
  animation: floaty 6s var(--ease) infinite;
}
.hero-badge b { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; }
.hero-badge span { font-size: var(--step-n2); font-weight: 600; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: var(--space-5); z-index: 5;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--space-5);
  display: flex; align-items: center; gap: var(--space-4);
  pointer-events: none;
}
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28);
  cursor: pointer; transition: background var(--dur-fast), transform var(--dur-fast);
  pointer-events: auto;
}
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-arrow:active { transform: scale(.92); }
.hero-dots { display: flex; gap: 10px; margin-left: 4px; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid rgba(255,255,255,.5); background: transparent;
  transition: background var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}
.hero-dots button[aria-selected="true"] { background: #fff; border-color: #fff; transform: scale(1.15); }

/* ===== Sections ===== */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 90px) var(--space-5); }
.section-head {
  max-width: 52rem;
  margin-top: 0;
  margin-bottom: var(--space-8);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.section-head.center, .certs .section-head, .section-head:has(.center) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-title { font-size: clamp(1.8rem, 3.4vw, var(--step-5)); margin-bottom: var(--space-3); text-wrap: balance; }
.section-title.center { text-align: center; }
.section-sub { color: var(--color-muted); font-size: var(--step-1); margin: 0; }

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.88fr;
  gap: clamp(36px, 5.5vw, 68px);
  align-items: center;
}
.intro-eyebrow {
  color: #C83226;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.intro-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 18px;
  text-wrap: balance;
}
.intro-lead {
  font-size: 1.05rem;
  line-height: 1.74;
  color: #374151;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.intro-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-intro-primary {
  background: #C83226;
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(200, 50, 38, 0.28);
  transition: all var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-intro-primary:hover {
  background: #B0271D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 50, 38, 0.36);
}
.btn-intro-secondary {
  background: #F8FAFC;
  color: #C83226 !important;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-intro-secondary:hover {
  background: #ffffff;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  padding: clamp(36px, 5vw, 48px) clamp(32px, 4vw, 44px);
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05);
}
.stat {
  text-align: left;
}
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.2vw, 3.3rem);
  color: #C83226;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  color: #4B5563;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.benefit-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--color-accent-300); }
.benefit-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-md); margin-bottom: var(--space-4);
  background: var(--color-accent-soft); color: var(--color-accent);
}
.benefit-card h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.benefit-card p { color: var(--color-muted); margin: 0; font-size: var(--step-0); }

/* Certs */
.certs { background: var(--color-surface-2); max-width: none; }
.certs > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.cert-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4);
}
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); min-width: 150px;
  box-shadow: var(--shadow-1); transition: transform var(--dur-fast) var(--ease);
}
.cert-badge:hover { transform: translateY(-4px); }
.cert-badge b { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-accent); }
.cert-badge span { color: var(--color-muted); font-size: var(--step-n1); }

/* Products Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.product-grid.two { grid-template-columns: repeat(2, 1fr); }
.product-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-1); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--color-accent-300); }
.product-card:hover h3 { color: var(--color-accent-text); }
.product-card h3 { transition: color var(--dur-fast) var(--ease); }
.product-card:hover .link-arrow span { transform: translateX(4px); }
.product-thumb {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-2);
}
.product-thumb.tall { aspect-ratio: 16/10; }
.product-art {
  width: 100%; height: 100%; max-height: none;
  object-fit: cover; display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-art {
  transform: scale(1.06);
}
.product-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: var(--step-n2); font-weight: 600; letter-spacing: .04em;
  background: var(--color-accent); color: #fff; padding: 5px 12px; border-radius: var(--radius-pill);
}
.product-tag.alt { background: var(--color-accent-2); color: #1c1402; }
.product-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-body h3 { font-size: var(--step-2); }
.product-body p { color: var(--color-muted); margin: 0; flex: 1; font-size: 0.95rem; }
.link-arrow {
  align-self: flex-start; margin-top: var(--space-2); font-weight: 600; color: var(--color-accent-text);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; background: transparent; padding: 0;
  font-family: var(--font-ui); font-size: 0.95rem;
}
.link-arrow span { transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.news-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), border-color var(--dur-fast);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--color-accent-300); }
.news-card:hover h3 { color: var(--color-accent-text); }
.news-card h3 { transition: color var(--dur-fast) var(--ease); }
.news-card:hover .link-arrow span { transform: translateX(4px); }
.news-thumb {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9;
  background: radial-gradient(120% 120% at 30% 20%, var(--c1, #E6F1EA), var(--c2, #C9E3D3));
  cursor: pointer;
}
.news-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-art {
  transform: scale(1.05);
}
.news-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.news-date { font-family: var(--font-mono); font-size: var(--step-n1); color: var(--color-accent-2-ink); margin: 0 0 var(--space-2); }
.news-body h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.news-body p { color: var(--color-muted); margin: 0 0 14px; flex: 1; }

/* Contact / CTA Form */
.cta { max-width: 1240px; }
.cta-card {
  background: linear-gradient(135deg, var(--color-depth-2), var(--color-depth));
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-7); align-items: start;
  color: #fff; box-shadow: var(--shadow-3);
}
.cta-text h2 { color: #fff; font-size: clamp(1.7rem, 3vw, var(--step-4)); margin-bottom: var(--space-3); }
.cta-text p { color: var(--color-on-depth-muted); margin: 0 0 var(--space-5); font-size: var(--step-1); }
.cta-contact-info { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; color: var(--color-on-depth-muted); }
.cta-contact-info b { color: #fff; }
.cta-contact-info a { color: var(--color-on-depth); text-decoration: none; transition: color var(--dur-fast), opacity var(--dur-fast); }
.cta-contact-info a:hover { color: #fff; text-decoration: underline; }
.foot-col p a { display: inline; color: inherit; text-decoration: none; }
.foot-col p a:hover { color: #fff; text-decoration: underline; }

.cta-form { display: flex; flex-direction: column; gap: var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.cta-form input, .cta-form select, .cta-form textarea {
  width: 100%; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; border-radius: var(--radius-md); padding: 12px var(--space-4);
  font: inherit; outline: none; transition: border-color var(--dur-fast);
}
.cta-form select option { background: var(--color-depth-2); color: #fff; }
.cta-form textarea { min-height: 80px; resize: vertical; }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--color-on-depth-muted); }
.cta-form input:focus-visible, .cta-form select:focus-visible, .cta-form textarea:focus-visible { border-color: var(--color-accent); }
.cta-form .btn { width: 100%; margin-top: 4px; }

/* ===== Footer ===== */
.site-foot { background: var(--color-depth); color: var(--color-on-depth); margin-top: var(--space-8); }
.foot-grid {
  max-width: 1240px; margin: 0 auto; padding: var(--space-9) var(--space-5) var(--space-7);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-6);
}
.site-foot .brand { color: #fff; }
.site-foot .brand-logo { height: 36px; width: auto; object-fit: contain; display: block; }
.site-foot .brand-mark { color: var(--color-accent-2); }
.foot-tag { color: var(--color-on-depth-muted); margin: var(--space-3) 0 0; max-width: 22rem; }
.foot-col h4 { color: #fff; font-size: var(--step-1); margin-bottom: var(--space-3); font-family: var(--font-ui); }
.foot-col a, .foot-col p { display: block; color: var(--color-on-depth-muted); margin: 0 0 10px; transition: color var(--dur-fast); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  max-width: 1240px; margin: 0 auto; padding: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  color: var(--color-on-depth-muted); font-size: var(--step-n1);
}
.foot-bottom a { color: var(--color-on-depth-muted); }
.foot-bottom a:hover { color: #fff; }
.admin-badge-link {
  display: inline-flex; align-items: center; gap: 5px; color: var(--color-accent-2) !important;
  font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(217, 119, 6, 0.4);
}
.admin-badge-link:hover { background: rgba(217, 119, 6, 0.15); }

/* ===== Modals ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(24, 24, 27, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; visibility: hidden; transition: opacity var(--dur-fast), visibility var(--dur-fast);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--color-surface); border-radius: var(--radius-lg);
  max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-3); position: relative; border: 1px solid var(--color-border);
  transform: translateY(20px); transition: transform var(--dur-fast) var(--ease);
}
.modal-overlay.is-open .modal-box { transform: translateY(0); }

/* Tăng kích thước chiều ngang trên desktop cho sản phẩm, công thức và bài viết */
.modal-box.modal-box-product {
  max-width: 720px;
  overflow-x: hidden;
}
.modal-box.modal-box-formulation {
  max-width: 760px;
  overflow-x: hidden;
}
.modal-box.modal-box-news {
  max-width: 680px;
  overflow-x: hidden;
}

@media (min-width: 800px) {
  .modal-box.modal-box-product {
    max-width: 980px;
    width: 92vw;
  }
  .modal-box.modal-box-formulation {
    max-width: 980px;
    width: 92vw;
  }
  .modal-box.modal-box-news {
    max-width: 880px;
    width: 92vw;
  }
}

.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--color-depth); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: all var(--dur-fast); z-index: 25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-close:hover { background: #ffffff; color: #dc2626; transform: scale(1.06); }
.modal-header { padding: 24px 28px 16px; border-bottom: 1px solid var(--color-border); display: flex; gap: 16px; align-items: center; }
.modal-header-thumb { width: 80px; height: 80px; border-radius: 12px; background: var(--color-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-1); }
.modal-header-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 1. MODAL CHI TIẾT SẢN PHẨM ===== */
.modal-product-layout {
  display: flex;
  flex-direction: column;
}
.modal-product-hero {
  position: relative;
  width: 100%;
  height: 320px;
  background: radial-gradient(circle at center, #f4f8f5 0%, #dbe8e1 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.modal-product-hero .modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-product-hero:hover .modal-product-img {
  transform: scale(1.04);
}
.modal-product-hero .modal-product-tag {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.modal-img-zoom-btn {
  position: absolute;
  bottom: 16px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-depth);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: all var(--dur-fast) var(--ease);
}
.modal-img-zoom-btn:hover {
  background: #ffffff;
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}
.modal-product-gallery {
  display: flex;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}
.modal-gallery-thumb {
  width: 68px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all var(--dur-fast) var(--ease);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
}
.modal-gallery-thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(212, 50, 45, 0.25);
}
.modal-product-header {
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--color-border);
}
.modal-product-header h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-depth);
  line-height: 1.25;
}
.modal-body { padding: 22px 28px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 11px 16px; border: 1px solid var(--color-border); text-align: left; }
.spec-table th { background: var(--color-surface-2); font-weight: 600; width: 35%; color: var(--color-depth); }
.modal-footer { padding: 16px 28px 24px; display: flex; justify-content: flex-end; gap: 12px; }

@media (min-width: 800px) {
  .modal-product-layout {
    display: grid;
    grid-template-columns: 410px 1fr;
    align-items: stretch;
    min-height: 520px;
  }
  .modal-product-col-media {
    background: var(--color-surface-2);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
  }
  .modal-product-col-media .modal-product-hero {
    height: 100%;
    min-height: 380px;
  }
  .modal-product-col-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .modal-product-col-content .modal-product-header {
    padding: 24px 32px 14px;
    padding-right: 68px; /* chừa khoảng trống cho nút đóng modal */
  }
  .modal-product-col-content .modal-body {
    padding: 20px 32px;
    flex: 1;
  }
  .modal-product-col-content .modal-footer {
    padding: 16px 32px 24px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }
}

/* ===== 2. MODAL CHI TIẾT BÀI VIẾT / TIN TỨC (NÂNG CẤP TOÀN DIỆN) ===== */
.modal-box.modal-box-news {
  max-width: 820px;
  width: 94vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: var(--color-surface);
  position: relative;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-box.modal-box-news::-webkit-scrollbar {
  width: 6px;
}
.modal-box.modal-box-news::-webkit-scrollbar-track {
  background: transparent;
}
.modal-box.modal-box-news::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}
.modal-box.modal-box-news::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.32);
}

/* Hero visual banner */
.news-modal-hero {
  position: relative;
  width: 100%;
  height: 250px;
  background: #edf4ef;
  overflow: hidden;
  cursor: zoom-in;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .news-modal-hero {
    height: 300px;
  }
}
.news-modal-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--c1, #E6F1EA), var(--c2, #C9E3D3));
}
.news-modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-modal-hero:hover .news-modal-hero-img {
  transform: scale(1.03);
}
.news-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.news-modal-badge-wrap {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 2;
}
@media (min-width: 768px) {
  .news-modal-badge-wrap {
    bottom: 20px;
    left: 32px;
  }
}
.news-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-zoom-btn {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 2;
}
@media (min-width: 768px) {
  .news-zoom-btn {
    bottom: 20px;
    right: 32px;
  }
}

/* News Header & Metadata */
.news-modal-header {
  padding: 24px 22px 14px;
}
@media (min-width: 768px) {
  .news-modal-header {
    padding: 28px 36px 16px;
  }
}
.news-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--color-muted);
}
.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.news-meta-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
.news-meta-date {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-depth);
  white-space: nowrap;
}
.news-meta-author {
  font-weight: 600;
  color: var(--color-accent-2-ink);
}
.news-meta-readtime {
  color: var(--color-muted);
}
.news-meta-sep {
  color: #cbd5e1;
  font-size: 0.85rem;
  user-select: none;
}
.news-modal-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--color-depth);
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* News Body */
.news-modal-body {
  padding: 0 22px 24px;
}
@media (min-width: 768px) {
  .news-modal-body {
    padding: 0 36px 28px;
  }
}
.news-modal-lead {
  display: flex;
  gap: 14px;
  background: #f4f8f5;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 6px 0 20px;
}
.news-lead-quote-mark {
  color: var(--color-accent);
  opacity: 0.8;
  flex-shrink: 0;
  margin-top: 2px;
}
.news-lead-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1f2937;
  font-weight: 500;
}
.news-modal-content {
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.8;
}
.news-modal-content p,
.news-modal-p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.8;
}
.news-modal-content p:last-child,
.news-modal-p:last-child {
  margin-bottom: 0;
}
.news-modal-h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-depth);
  margin: 24px 0 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Figures & Images inside Blog Detail Content */
.news-content-figure {
  margin: 22px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.news-figure-img-wrap {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  cursor: zoom-in;
}
.news-figure-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-figure-img-wrap:hover img {
  transform: scale(1.025);
}
.news-figure-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.news-figure-img-wrap:hover .news-figure-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}
.news-content-figure figcaption {
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.55;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-content-figure figcaption svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Photo Gallery inside Blog Detail */
.news-modal-gallery {
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.news-gallery-heading {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-depth);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-gallery-heading svg {
  color: var(--color-accent);
}
.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.news-gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  cursor: zoom-in;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.news-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.news-gallery-item:hover img {
  transform: scale(1.05);
}
.news-gallery-item .news-gallery-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #fff;
  font-size: 0.78rem;
  padding: 22px 10px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Callout Box */
.news-modal-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f7faf8;
  border: 1px dashed rgba(45, 125, 70, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 22px;
}
.news-callout-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(45, 125, 70, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-callout-text b {
  display: block;
  font-size: 0.94rem;
  color: var(--color-depth);
  margin-bottom: 4px;
}
.news-callout-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* News Footer */
.news-modal-footer {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fbfbfb;
}
@media (min-width: 768px) {
  .news-modal-footer {
    padding: 18px 36px 22px;
  }
}
.news-footer-left,
.news-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  background: #ffffff;
  transition: all var(--dur-fast);
}
.news-btn-share:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(45, 125, 70, 0.06);
}
#modal-n-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== 3. MODAL CHI TIẾT CÔNG THỨC MẪU ===== */
.modal-box-formulation .modal-product-header,
.modal-box-formulation .modal-formulation-header {
  padding: 24px 32px 16px 32px;
  padding-right: 68px;
}
.modal-box-formulation .modal-body,
.modal-box-formulation .modal-formulation-body {
  padding: 20px 32px 24px 32px;
}
.modal-box-formulation .modal-footer {
  padding: 16px 32px 24px 32px;
}
@media (max-width: 640px) {
  .modal-box-formulation .modal-product-header,
  .modal-box-formulation .modal-formulation-header {
    padding: 20px 18px 14px 18px;
    padding-right: 60px;
    flex-direction: column-reverse;
    gap: 14px;
  }
  .modal-box-formulation .modal-header-thumb {
    width: 100%;
    height: 180px;
    max-width: 100%;
  }
  .modal-box-formulation .modal-body,
  .modal-box-formulation .modal-formulation-body {
    padding: 16px 18px 20px 18px;
  }
  .modal-box-formulation .modal-footer {
    padding: 14px 18px 20px 18px;
  }
}
.formulation-specs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 768px) {
  .formulation-specs-split {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Lightbox Modal for Full View */
.modal-lightbox-overlay {
  background: rgba(6, 26, 17, 0.92);
  z-index: 1200;
  padding: 24px;
}
.lightbox-box {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: zoomLightboxIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes zoomLightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-box img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  background: #081d12;
}
.lightbox-caption {
  color: #f0f7f3;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  top: -16px;
  right: -16px;
  background: #ffffff;
  color: var(--color-depth);
}

@media (max-width: 640px) {
  .modal-product-hero { height: 210px; }
  .modal-product-header { padding: 18px 20px 12px; }
  .modal-body { padding: 18px 20px; }
  .modal-footer { padding: 14px 20px 20px; }
  .lightbox-close { top: 8px; right: 8px; }
}

/* ===== Toast Notification ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--color-depth); color: #fff; padding: 14px 20px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-3);
  display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 400px;
  pointer-events: auto; animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  border-left: 5px solid var(--color-accent-2);
}
.toast.success { border-left-color: #22C55E; }
.toast.error { border-left-color: #EF4444; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Animations & Reveals ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-stagger].in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===== 3 Core Values (Chất lượng - Uy tín - Chuyên nghiệp) ===== */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), border-color var(--dur-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--color-accent-300);
}
.value-card:hover::before {
  opacity: 1;
}
.value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.value-card h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-2);
  color: var(--color-depth);
}
.value-card p {
  color: var(--color-muted);
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.6;
}

/* ===== Formulations (Công thức mẫu) ===== */
.formulations {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.formulation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.formulation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
}
.formulation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
  border-color: var(--color-accent-300);
}
.formulation-card:hover h3 {
  color: var(--color-accent-text);
}
.formulation-card h3 {
  transition: color var(--dur-fast) var(--ease);
}
.formulation-card:hover .link-arrow span {
  transform: translateX(4px);
}
.formulation-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.formulation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.formulation-card:hover .formulation-thumb img {
  transform: scale(1.05);
}
.formulation-thumb img[src*=".svg"] {
  width: auto;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.06));
}
.formulation-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: var(--step-n2);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-depth);
  color: #fff;
}
.formulation-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.formulation-body h3 {
  font-size: var(--step-2);
  color: var(--color-depth);
  line-height: 1.3;
}
.formulation-body p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.formulation-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--color-text);
  margin-top: 4px;
}
.formulation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: clamp(36px, 5vw, 60px) var(--space-5) clamp(90px, 10vw, 110px);
  }
  .hero-visual {
    order: -1;
    min-height: 180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-art { max-width: 180px; max-height: 180px; }
  .intro-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .core-values-grid { grid-template-columns: 1fr; }
  .formulation-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav, .head-cta { display: none; }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .benefit-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { text-align: left; }
  .section-title.center { text-align: left; }
  .eyebrow.center { text-align: left; }
  .toast-container { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  /* ===== Hero Slider Mobile Optimization ===== */
  .hero-track {
    min-height: clamp(500px, 78vh, 620px);
  }
  .hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: clamp(500px, 78vh, 620px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(32px, 6vw, 48px) 20px clamp(76px, 12vw, 90px) 20px;
    gap: 0;
  }
  .hero-visual {
    display: none !important; /* Hide large graphic so heading & content sit prominently in the center */
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    z-index: 2;
  }
  .hero-mobile-badge {
    display: inline-flex;
    margin-bottom: 12px;
  }
  .hero-mobile-badge .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(226, 135, 23, 0.22);
    border: 1px solid rgba(226, 135, 23, 0.5);
    color: #FDBA74;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .hero-mobile-badge .badge-pill b {
    background: var(--color-accent-2);
    color: #1c1402;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    line-height: 1.1;
  }
  .hero-copy .eyebrow {
    text-align: center;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--color-accent-2);
  }
  .hero-title {
    text-align: center;
    font-size: clamp(1.6rem, 6.4vw, 2.15rem);
    line-height: 1.25;
    margin: 0 auto 12px auto;
    max-width: 22ch;
    text-wrap: balance;
  }
  .hero-lede {
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 auto 20px auto;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .hero-actions .btn {
    flex: 1;
    min-height: 44px;
    padding: 11px 16px;
    font-size: 0.88rem;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.55) 0%, rgba(24, 24, 27, 0.78) 45%, rgba(24, 24, 27, 0.92) 100%);
  }
  .hero-controls {
    bottom: 16px;
    left: 0;
    right: 0;
    padding: 0 16px;
    justify-content: center;
    gap: 12px;
  }
  .hero-arrow {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    touch-action: manipulation;
  }
  .hero-arrow svg {
    width: 18px;
    height: 18px;
  }
  .hero-arrow:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.25);
  }
  .hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    transition: all 0.25s ease;
    padding: 0;
  }
  .hero-dots button[aria-selected="true"] {
    width: 22px;
    border-radius: 8px;
    background: #fff;
    border-color: #fff;
    transform: none;
  }
}

@media (max-width: 420px) {
  .head-inner { padding: 10px var(--space-4); }
  .section { padding-left: var(--space-4); padding-right: var(--space-4); }
  .intro-stats { grid-template-columns: 1fr; }

  /* Extra compact for narrow mobile */
  .hero-title { font-size: 1.45rem; }
  .hero-actions { gap: 8px; max-width: 320px; }
  .hero-actions .btn { font-size: 0.82rem; padding: 10px 10px; }
}

/* ===== Floating Chat Buttons (Zalo & Facebook) ===== */
.floating-chat {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
}
.floating-chat-btn {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.floating-chat-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12);
}
.floating-chat-btn:active {
  transform: scale(0.95);
}
.floating-chat-btn.btn-zalo {
  background: #0068FF;
}
.floating-chat-btn.btn-facebook {
  background: #ffffff;
  border: 1px solid rgba(0, 132, 255, 0.15);
}
.floating-chat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}
.floating-chat-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.floating-chat-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(24, 24, 27, 0.92);
}
.floating-chat-btn:hover .floating-chat-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.floating-chat-ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #0068FF;
  opacity: 0.75;
  animation: chatPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes chatPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  60% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-chat {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    gap: 10px;
    z-index: 95;
  }
  .floating-chat-btn {
    width: 44px;
    height: 44px;
  }
  .floating-chat-btn svg {
    width: 24px;
    height: 24px;
  }
  .floating-chat-tooltip {
    display: none;
  }
}
