/* ==========================================================================
   Win-Win Dental Lab — giao diện 2026
   Mobile-first, hỗ trợ từ 280px (điện thoại gập khi đóng) đến màn hình lớn.
   ========================================================================== */

:root {
  /* Màu thương hiệu (lấy từ logo) */
  --blue-50: #eef4fc;
  --blue-100: #dbe7f8;
  --blue-500: #2f6bd0;
  --blue-600: #1f56b3;
  --blue-700: #18458f;
  --navy-800: #0e2a57;
  --navy-900: #081a38;
  --navy-950: #050f22;
  --green-400: #9bd543;
  --green-500: #84c226;
  --green-700: #4a7a0c;

  /* Ngữ nghĩa */
  --bg: #f5f8fc;
  --surface: #ffffff;
  --text: #0c1a30;
  --text-muted: #4a5a72;
  --border: #dfe6f0;
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --on-primary: #ffffff;
  --accent: var(--green-500);
  --on-accent: #0c1f02;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #2f6b06;
  --success-bg: #f1f9e6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 56, .06), 0 1px 3px rgba(8, 26, 56, .08);
  --shadow: 0 4px 10px rgba(8, 26, 56, .06), 0 12px 28px rgba(8, 26, 56, .08);
  --shadow-lg: 0 10px 24px rgba(8, 26, 56, .10), 0 28px 56px rgba(8, 26, 56, .14);

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(14px, 4vw, 32px);
  --section: clamp(48px, 8vw, 104px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--alt { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent);
}
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.375rem);
  line-height: 1.2; font-weight: 800; letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px rgba(31, 86, 179, .28); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(132, 194, 38, .32); }
.btn--accent:hover { background: var(--green-400); color: var(--on-accent); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--outline { background: var(--surface); color: var(--primary); border-color: var(--blue-100); }
.btn--outline:hover { border-color: var(--primary); background: var(--blue-50); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); min-width: 0; }
.brand:hover { color: var(--navy-800); }
.brand__mark { width: 46px; height: 46px; flex: none; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.125rem; letter-spacing: .01em; color: var(--blue-700); white-space: nowrap; }
.brand__tag { margin-top: 3px; font-weight: 700; font-size: .6875rem; letter-spacing: .22em; color: var(--green-700); white-space: nowrap; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--navy-800);
}
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 8px max(var(--gutter), env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav__list { display: flex; flex-direction: column; gap: 2px; }
.site-nav__link {
  display: flex; align-items: center; min-height: 50px; padding: 10px 14px;
  border-radius: 12px; color: var(--text); font-weight: 600;
  transition: background-color .15s, color .15s;
}
.site-nav__link:hover { background: var(--blue-50); color: var(--primary); }
.site-nav__link[aria-current="page"] { color: var(--primary); background: var(--blue-50); }
.site-nav__cta { margin-top: 10px; }
.site-nav__cta .btn { width: 100%; }

@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; max-height: none; overflow: visible;
    display: flex; align-items: center; gap: 14px;
    padding: 0; background: none; border: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav__link { min-height: 44px; padding: 8px 14px; font-size: .9375rem; position: relative; }
  .site-nav__link[aria-current="page"] { background: transparent; }
  .site-nav__link[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
    border-radius: 3px; background: var(--accent);
  }
  .site-nav__cta { margin: 0; }
  .site-nav__cta .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: #000; color: #fff; isolation: isolate; }
.hero__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #000; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .9s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__body {
  position: relative; z-index: 2;
  padding-block: clamp(24px, 6vw, 40px) clamp(32px, 7vw, 48px);
  background: linear-gradient(180deg, #000 0%, var(--navy-950) 100%);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(132, 194, 38, .16); color: var(--green-400);
  border: 1px solid rgba(155, 213, 67, .35);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero__title {
  margin-top: 16px; max-width: 16ch;
  font-size: clamp(1.75rem, 1rem + 4.4vw, 3.75rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--green-400); }
.hero__lead {
  margin-top: 16px; max-width: 54ch;
  font-size: clamp(1rem, .92rem + .45vw, 1.1875rem);
  color: rgba(255, 255, 255, .82);
}
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__controls {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.hero__arrow {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .45); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.hero__dots { display: flex; align-items: center; }
.hero__dot {
  width: 30px; height: 44px; padding: 0; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .5);
  transition: width .25s var(--ease), background-color .25s;
}
.hero__dot[aria-current="true"]::before { width: 24px; background: var(--green-400); }

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero { display: grid; min-height: clamp(440px, 40vw, 600px); }
  .hero__media, .hero__body { grid-area: 1 / 1; }
  .hero__media { aspect-ratio: auto; height: 100%; width: 66%; justify-self: end; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 22%, rgba(0, 0, 0, 0) 48%);
  }
  .hero__body { background: none; display: flex; align-items: center; padding-block: 64px 84px; pointer-events: none; }
  .hero__body > .container { width: 100%; }
  .hero__copy { max-width: 560px; pointer-events: auto; }
  .hero__controls { right: 24px; bottom: 52px; z-index: 3; }
}

/* ---------- Feature cards ---------- */
.features { margin-top: clamp(-36px, -3vw, -20px); position: relative; z-index: 5; }
.features__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .features__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); color: var(--text); }
.feature__icon {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--blue-50); color: var(--blue-600);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature:nth-child(2) .feature__icon { background: #eef8de; color: var(--green-700); }
.feature__title { margin-top: 6px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.feature__text { color: var(--text-muted); font-size: .9688rem; }
.feature__more {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .9375rem; color: var(--primary);
}
.feature__more .icon { transition: transform .2s var(--ease); }
.feature:hover .feature__more .icon { transform: translateX(4px); }
@media (min-width: 480px) and (max-width: 859px) {
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 4px; }
  .feature__icon { grid-row: span 3; }
  .feature__title { margin-top: 0; }
}

/* ---------- Product cards ---------- */
.grid-products {
  display: grid; gap: clamp(14px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-950); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__zoom {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: background-color .2s, transform .2s var(--ease);
}
.card__zoom:hover { background: #fff; color: var(--primary); transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 18px 18px 20px; }
.card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.card__title a { color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--primary); }
.card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .9375rem; color: var(--primary);
}
.card__cta .icon { transition: transform .2s var(--ease); }
.card:hover .card__cta .icon { transform: translateX(4px); }

/* ---------- Tabs ---------- */
.tabs__list {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 20px;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 18px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: 1 0 auto; min-height: 48px; padding: 10px 18px;
  border: 0; border-radius: 13px; background: transparent;
  font-weight: 600; font-size: .9375rem; color: var(--text-muted); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tabs__tab:hover { color: var(--primary); }
.tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--blue-700); box-shadow: var(--shadow-sm); }
.tabs__panel { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-950); box-shadow: var(--shadow); }
.tabs__panel[hidden] { display: none; }
.tabs__panel img { width: 100%; max-height: 640px; object-fit: cover; }
@media (max-width: 599px) {
  .tabs__list { flex-direction: column; overflow: visible; }
  .tabs__tab { white-space: normal; text-align: left; }
}

/* ---------- Page header ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 320px at 88% -10%, rgba(132, 194, 38, .28), transparent 60%),
    radial-gradient(700px 360px at 0% 120%, rgba(47, 107, 208, .45), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--blue-700));
  padding-block: clamp(30px, 6vw, 64px);
}
.page-head h1 {
  font-size: clamp(1.625rem, 1.1rem + 2.6vw, 2.75rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
}
.page-head p { margin-top: 10px; max-width: 62ch; color: rgba(255, 255, 255, .82); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 12px; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb li { display: inline-flex; align-items: center; }

/* ---------- About ---------- */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.prose > * + * { margin-top: 1em; }
.prose p { color: var(--text-muted); }
.prose strong, .prose b { color: var(--text); }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; z-index: -1; right: -14px; bottom: -14px; width: 60%; height: 60%;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--green-400), var(--blue-500)); opacity: .25;
}

.accordion { display: grid; gap: 12px; }
.accordion__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.accordion__item[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 14px clamp(16px, 3vw, 24px);
  font-weight: 700; font-size: 1.0313rem; cursor: pointer; list-style: none;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { color: var(--primary); }
.accordion__summary .icon { color: var(--primary); transition: transform .25s var(--ease); }
.accordion__item[open] .accordion__summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 clamp(16px, 3vw, 24px) 20px; color: var(--text-muted); }
.accordion__body > * + * { margin-top: .6em; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li + li { margin-top: .5em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: #eef8de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7a0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.accordion__body a { font-weight: 600; }

.certs { display: grid; gap: clamp(14px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cert {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: clamp(8px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
}
.gallery__item {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); background: var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 56, 0) 55%, rgba(8, 26, 56, .55) 100%);
  opacity: 0; transition: opacity .25s;
}
.gallery__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--navy-800);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery__zoom { opacity: 1; transform: none; width: 34px; height: 34px; right: 8px; bottom: 8px; } }
.gallery-count { margin-bottom: 18px; color: var(--text-muted); font-size: .9375rem; }
.empty-state {
  padding: 40px 20px; text-align: center; color: var(--text-muted);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- Warranty check ---------- */
.warranty { display: grid; gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (min-width: 900px) { .warranty { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.warranty--single { max-width: 620px; margin-inline: auto; grid-template-columns: 1fr; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(18px, 4vw, 36px); box-shadow: var(--shadow);
}
.panel__icon {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 16px;
}
.panel__icon .icon { width: 28px; height: 28px; }
.panel h2 { font-size: clamp(1.25rem, 1.1rem + .9vw, 1.625rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.panel__lead { margin-top: 8px; color: var(--text-muted); }
.field { margin-top: 22px; }
.field__label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .9375rem; }
.field__input {
  width: 100%; min-height: 54px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 14px; background: #fff;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: .04em;
  transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: #8493a8; font-weight: 400; letter-spacing: 0; }
.field__input:hover { border-color: #c2cedf; }
.field__input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 107, 208, .18); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { margin-top: 8px; font-size: .875rem; color: var(--text-muted); }
.panel .btn { margin-top: 18px; }
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: .9688rem;
}
.alert .icon { margin-top: 2px; width: 22px; height: 22px; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdca; }
.alert--error a { color: var(--danger); font-weight: 700; text-decoration: underline; }
.result__status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--success-bg); color: var(--success); border: 1px solid #cfe8a9;
  font-weight: 700; font-size: 1rem;
}
.result__status .icon { width: 24px; height: 24px; }
.result__code { margin-top: 12px; color: var(--text-muted); font-size: .9375rem; }
.result__code strong { color: var(--text); letter-spacing: .04em; }
.result__card {
  position: relative; display: block; margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg);
}
.result__card img { width: 100%; }
.result__card .gallery__zoom { opacity: 1; transform: none; }
.help-list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.help-list a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; color: var(--text);
}
.help-list a:hover { color: var(--primary); }
.help-list .icon { color: var(--primary); }
.help-list span { color: var(--text-muted); font-weight: 400; }
.help-list a { flex-wrap: wrap; row-gap: 0; white-space: nowrap; }

/* ---------- Product detail ---------- */
.detail { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; } }
.article {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.article__media { background: var(--navy-950); }
.article__media img { width: 100%; max-height: 520px; object-fit: cover; }
.article__body { padding: clamp(18px, 4vw, 44px); }
.article__title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.article__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 16px; border-radius: 4px; background: var(--accent); }
/* Nội dung nhập từ trình soạn thảo: chuẩn hoá font/cỡ chữ để đồng bộ giao diện */
.rte { font-size: 1.0313rem; line-height: 1.75; color: #24344d; }
.rte, .rte * { font-family: var(--font) !important; max-width: 100%; }
.rte > div { display: block !important; margin-top: 0 !important; }
.rte p, .rte li, .rte div, .rte span { font-size: inherit !important; line-height: inherit !important; }
.rte p { margin: 0 0 1em; color: inherit !important; }
.rte p:empty { display: none; }
.rte h1, .rte h2, .rte h3, .rte h4 { margin: 1.4em 0 .6em; line-height: 1.3; font-weight: 700; color: var(--navy-800) !important; }
.rte h1, .rte h1 span { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem) !important; color: var(--blue-700) !important; }
.rte h2 { font-size: 1.25rem; }
.rte h3 { font-size: 1.125rem; }
.rte > :first-child, .rte > div > :first-child { margin-top: 0; }
.rte ul, .rte ol { margin: 0 0 1em; padding-left: 1.4em; }
.rte ul { list-style: disc; }
.rte ol { list-style: decimal; }
.rte a { color: var(--primary) !important; text-decoration: underline; text-underline-offset: 2px; }
.rte img { height: auto !important; border-radius: var(--radius-sm); margin-block: 1em; }
.rte table { display: block; width: 100% !important; overflow-x: auto; border-collapse: collapse; }
.rte td, .rte th { padding: 8px 10px; border: 1px solid var(--border); }
.rte iframe { width: 100%; }
.rte b, .rte strong, .rte span[style*="font-weight: 700"], .rte span[style*="font-weight:700"] { color: var(--text); }

.aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow-sm); }
@media (min-width: 960px) { .aside { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.aside__title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; margin-bottom: 12px; }
.aside__title::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--accent); }
.aside__list { display: grid; gap: 4px; }
@media (min-width: 560px) and (max-width: 959px) { .aside__list { grid-template-columns: 1fr 1fr; gap: 4px 16px; } }
.aside__link {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px;
  border-radius: 14px; color: var(--text); font-weight: 600; font-size: .9688rem; line-height: 1.35;
  transition: background-color .15s, color .15s;
}
.aside__link:hover { background: var(--blue-50); color: var(--primary); }
.aside__link[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); }
.aside__link img { width: 64px; height: 48px; flex: none; object-fit: cover; border-radius: 10px; background: var(--navy-950); }

/* ---------- Embedded warranty admin ---------- */
.embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.embed iframe { width: 100%; height: clamp(520px, 82vh, 900px); border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); }
.site-footer__grid { display: grid; gap: clamp(24px, 4vw, 48px); padding-block: clamp(36px, 6vw, 68px); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: var(--green-400); }
.site-footer .brand__mark { background: #fff; }
.site-footer__about { margin-top: 16px; max-width: 46ch; font-size: .9688rem; }
.contact-list { margin-top: 22px; display: grid; gap: 6px; }
.contact-list li { min-width: 0; }
.contact-list a, .contact-list .contact-list__row {
  display: flex; align-items: flex-start; gap: 14px; min-height: 48px; padding: 6px 0; color: #fff;
}
.contact-list a:hover .contact-list__value { color: var(--green-400); }
.contact-list__icon {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--green-400);
}
.contact-list__text { min-width: 0; }
.contact-list__label { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contact-list__value { display: block; font-weight: 600; overflow-wrap: anywhere; transition: color .15s; }
.site-footer__map { border-radius: var(--radius); overflow: hidden; min-height: 300px; background: var(--navy-800); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.site-footer__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-block: 16px calc(16px + env(safe-area-inset-bottom));
  font-size: .875rem; color: rgba(255, 255, 255, .65);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .8); }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; z-index: 90;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--primary-hover); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(56px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(3, 9, 20, .93);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s;
  touch-action: pan-y pinch-zoom;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transition: opacity .2s;
}
.lightbox.is-loading .lightbox__img { opacity: .25; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  background: rgba(20, 30, 50, .7); color: #fff;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
.lightbox__prev { left: max(8px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: max(8px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom));
  padding: 4px 14px; border-radius: 999px; background: rgba(20, 30, 50, .7);
  color: #fff; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.lightbox[data-single="true"] .lightbox__prev,
.lightbox[data-single="true"] .lightbox__next,
.lightbox[data-single="true"] .lightbox__count { display: none; }
@media (max-width: 599px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(6px, env(safe-area-inset-bottom)); transform: none; }
}
body.is-locked { overflow: hidden; }

/* ---------- Scroll reveal (chỉ khi có JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Màn hình rất hẹp: điện thoại gập khi đóng (≈280px) ---------- */
@media (max-width: 359px) {
  :root { --gutter: 12px; --header-h: 60px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: .9375rem; }
  .brand__tag { font-size: .5625rem; letter-spacing: .16em; }
  .btn { padding-inline: 16px; }
  .hero__arrow { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .aside__link img { width: 52px; height: 40px; }
  .contact-list__icon { width: 36px; height: 36px; }
}

/* ---------- Điện thoại gập mở / tablet hai màn hình: tránh nội dung nằm trên bản lề ---------- */
@media (horizontal-viewport-segments: 2) {
  .split, .warranty:not(.warranty--single), .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(env(viewport-segment-left 1 0, 50%) - env(viewport-segment-right 0 0, 50%) + var(--gutter) * 2);
  }
  .detail { grid-template-columns: 1fr 1fr; }
}

/* ---------- Màn hình thấp nằm ngang (điện thoại xoay ngang) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero__media { aspect-ratio: 16 / 5; }
  .site-header { position: relative; }
  html { scroll-padding-top: 16px; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer__map, .to-top, .hero__controls, .lightbox { display: none !important; }
  body { background: #fff; }
}
