@font-face {
  font-family: Archivo;
  src: url("assets/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Archivo;
  src: url("assets/archivo-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  color-scheme: light;
  --ink: #212027;
  --charcoal: #212027;
  --muted: #565259;
  --accent: #bb211f;
  --accent-hover: #981b19;
  --paper: #faf8f6;
  --line: #ddd7d2;
  --white: #fff;
  --measure: 76rem;
  --ease: cubic-bezier(.22, .68, .32, 1);
  font-family: Archivo, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 4.7rem; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, dl, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3.05rem); font-weight: 750; letter-spacing: -.043em; }
h3 { font-size: 1.28rem; font-weight: 750; letter-spacing: -.018em; }
:focus-visible { outline: 3px solid #185cb6; outline-offset: 4px; }
.wrap { width: min(calc(100% - 4rem), var(--measure)); margin-inline: auto; }

.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.zalo-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 10; top: .8rem; left: 1rem; padding: .65rem 1rem; transform: translateY(-180%); color: var(--white); background: var(--charcoal); }
.skip-link:focus { transform: translateY(0); }

.header-inner { display: flex; min-height: 4.45rem; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.06rem; font-weight: 750; text-decoration: none; }
.brand img { width: 2.65rem; height: 2.65rem; border-radius: 50%; object-fit: cover; }
.header-contact { display: flex; align-items: center; gap: 1.25rem; }
.header-contact a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .46rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-contact a:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-phone .icon { color: var(--accent); }
.header-zalo .zalo-icon { width: 1.28rem; height: 1.28rem; }

.hero { position: relative; background: var(--charcoal); color: var(--white); overflow: hidden; }
.hero-inner { position: relative; display: flex; min-height: clamp(28rem, 38vw, 37rem); align-items: center; pointer-events: none; }
.hero-copy { position: relative; width: 49%; padding: 4.35rem 2rem 4.35rem 0; pointer-events: auto; }
.hero h1 { font-size: clamp(2.75rem, 5.72vw, 5.4rem); font-weight: 780; line-height: 1; letter-spacing: -.045em; }
.hero p { max-width: 28rem; margin-top: 1.4rem; color: #ebdfdf; font-size: clamp(1rem, 1.5vw, 1.21rem); }
.hero .actions { margin-top: 1.65rem; }
.hero-media { position: absolute; inset: 0 0 0 51%; overflow: hidden; background: #b4a397; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-caption { position: absolute; right: max(1rem, calc((100vw - var(--measure)) / 2)); bottom: 1.2rem; padding: .55rem .86rem; border-bottom: 2px solid var(--accent); background: var(--white); color: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; }
.hero-caption:hover { text-decoration: underline; text-underline-offset: .2em; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.05rem; padding: .63rem 1.15rem; border: 1px solid transparent; border-radius: .2rem; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.2; transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, translate 170ms var(--ease); }
.button:active { translate: 0 1px; }
.primary { background: var(--accent); color: var(--white); }
.primary:hover { background: var(--accent-hover); }
.on-dark { border-color: #a29aa0; color: var(--white); }
.on-dark:hover { background: var(--white); color: var(--ink); }
.zalo-button { border-color: #c9d6e7; background: var(--white); color: #1455a0; }
.zalo-button:hover { border-color: #176bce; background: #edf5ff; }

.section-nav { position: sticky; z-index: 4; top: 0; background: var(--white); border-bottom: 1px solid var(--line); }
.section-nav-inner { display: flex; overflow-x: auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-height: 3.45rem; scrollbar-width: thin; }
.section-nav a { flex: 0 0 auto; display: flex; align-items: center; min-height: 3.45rem; padding-block: .4rem; border-bottom: 2px solid transparent; color: var(--muted); font-size: .95rem; font-weight: 700; text-decoration: none; }
.section-nav a:hover, .section-nav a[aria-current] { border-bottom-color: var(--accent); color: var(--accent); }

.product-section { padding-block: clamp(2.65rem, 5vw, 4.6rem); }
.product-section + .product-section { border-top: 1px solid var(--line); }
.product-header { margin-bottom: clamp(1.4rem, 2.5vw, 2rem); }
.category { margin-bottom: .6rem; color: var(--accent); font-size: .9rem; font-weight: 750; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.8rem); align-items: start; }

.gallery { min-width: 0; }
.gallery-stage { position: relative; background: #ede9e6; border: 1px solid var(--line); }
.product-photo { display: grid; width: 100%; height: clamp(20rem, 38vw, 34rem); place-items: center; overflow: hidden; cursor: zoom-in; }
.product-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-control, .dialog-control { display: grid; position: absolute; z-index: 1; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #d9d3d1; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; transition: border-color 170ms ease, color 170ms ease; }
.gallery-control:hover, .dialog-control:hover { border-color: var(--accent); color: var(--accent); }
.gallery-control { top: 50%; transform: translateY(-50%); }
.gallery-control.prev { left: .75rem; }
.gallery-control.next { right: .75rem; }
.gallery-count, .gallery-zoom { position: absolute; bottom: .7rem; display: inline-grid; height: 2rem; place-items: center; padding: 0 .55rem; background: var(--charcoal); color: var(--white); pointer-events: none; font-size: .82rem; font-weight: 650; }
.gallery-count { left: .7rem; }
.gallery-zoom { right: .7rem; width: 2rem; padding: 0; }
.gallery-zoom .icon { width: 1rem; height: 1rem; }

.thumbnails { display: flex; gap: .45rem; margin-top: .65rem; padding: .2rem .2rem .45rem; overflow-x: auto; scrollbar-width: thin; }
.thumbnails a { flex: 0 0 clamp(3.4rem, 5.2vw, 4.7rem); padding: 2px; border: 1px solid var(--line); border-radius: .15rem; background: var(--paper); transition: border-color 160ms ease, box-shadow 160ms ease; }
.thumbnails a:hover, .thumbnails a[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thumbnails img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { min-height: 1.4em; margin-top: .2rem; color: var(--muted); font-size: .87rem; }

.product-summary > p { color: var(--muted); font-size: 1.03rem; }
.variant-picker { min-inline-size: 0; padding: 0; margin: 1.35rem 0 0; border: 0; }
.variant-picker legend { margin-bottom: .55rem; padding: 0; font-size: 1rem; font-weight: 750; }
.variant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.variant-grid label { display: grid; grid-template-columns: auto 1fr; gap: .45rem; align-items: start; padding: .68rem .68rem .62rem; min-height: 4.65rem; border: 1px solid var(--line); border-radius: .2rem; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease; }
.variant-grid label:hover { border-color: #af8a85; }
.variant-grid label:has(:checked) { border-color: var(--accent); background: #fcf0ed; }
.variant-grid input { width: 1rem; height: 1rem; margin: .12rem 0 0; accent-color: var(--accent); }
.variant-grid strong { display: block; font-size: .92rem; line-height: 1.3; font-weight: 750; }
.variant-grid small { display: block; margin-top: .2rem; color: var(--muted); font-size: .83rem; line-height: 1.3; }
.price-box { display: grid; gap: .19rem; min-height: 5.07rem; margin: 1.25rem 0 1rem; padding: .7rem .85rem .75rem; border-left: 3px solid var(--accent); background: var(--paper); }
.price-box span { color: var(--muted); font-size: .91rem; }
.price-box strong { color: var(--accent); font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 750; line-height: 1.1; }
.text-link { display: inline-block; margin-top: .95rem; color: var(--ink); font-weight: 650; text-underline-offset: .22em; font-size: .93rem; }
.text-link:hover { color: var(--accent); }
.quick-specs { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.quick-specs div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.quick-specs dt { color: var(--muted); }
.quick-specs dd { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 750; line-height: 1.25; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); margin-top: 2.2rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.product-detail h3 { margin-bottom: .75rem; }
.product-detail p { color: var(--muted); }
.detail-copy p + p { margin-top: .68rem; }
.detail-copy p + h3 { margin-top: 1.4rem; }
.detail-copy strong { color: var(--ink); }
.variant-detail div { margin-top: .74rem; }
.variant-detail dt { margin-bottom: .15rem; font-weight: 750; }
.variant-detail dd { margin: 0; color: var(--muted); }
.spec-table { border: 1px solid var(--line); }
.spec-table div { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); gap: .7rem; padding: .59rem .8rem; }
.spec-table div + div { border-top: 1px solid var(--line); }
.spec-table div:nth-child(odd) { background: var(--paper); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 650; }
.spec-note { margin-top: .65rem; font-size: .87rem; }

.compare { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(2.75rem, 5vw, 4.2rem); }
.compare-table { width: 100%; margin-top: 1.28rem; border-collapse: collapse; background: var(--white); table-layout: fixed; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: .82rem 1rem; text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--white); background: var(--charcoal); }
.compare-table thead th:first-child { width: 25%; }
.compare-table th[scope="row"] { font-weight: 750; }
.compare-table a { text-underline-offset: .2em; }
.compare-table small { display: block; margin-top: .2rem; color: var(--muted); font-size: .83rem; }
.faq { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1.8rem; padding-block: clamp(2.75rem, 5vw, 4.2rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.2rem; padding: .65rem 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform 180ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin-bottom: .8rem; color: var(--muted); }

.contact { border-top: 4px solid var(--accent); background: var(--charcoal); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem 2rem; padding-block: 2.7rem; }
.contact p { margin-top: .55rem; color: #e7dede; }
.contact-status { grid-column: 1 / -1; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-block: 1.2rem; }
.footer-inner .brand img { width: 2.2rem; height: 2.2rem; }
.sources { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; color: var(--muted); font-size: .85rem; }
.sources a { text-underline-offset: .2em; }
.mobile-actions { display: none; }

.image-dialog { width: min(55rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; margin: auto; border: 0; border-radius: .2rem; background: var(--charcoal); color: var(--white); }
.image-dialog::backdrop { background: #161419e3; }
.dialog-stage { position: relative; display: grid; min-height: 12rem; place-items: center; }
.dialog-stage img { width: auto; height: auto; max-height: min(75dvh, 50rem); object-fit: contain; }
.dialog-control { top: 50%; transform: translateY(-50%); }
.dialog-prev { left: .6rem; }
.dialog-next { right: .6rem; }
.dialog-close { right: .6rem; top: .6rem; transform: none; }
.dialog-caption { min-height: 2.75rem; padding: .7rem 3rem; text-align: center; line-height: 1.35; }

@keyframes enter { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes focus-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: enter 460ms var(--ease) both; }
  .hero-media > img { animation: focus-in 620ms var(--ease) both; }
  .image-dialog[open] { animation: focus-in 160ms var(--ease) both; }
  .product-header.in-view { animation: enter 350ms var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 950px) {
  .hero-copy { padding-block: 3.25rem; }
  .hero-inner { min-height: 24rem; }
  .product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-photo { height: clamp(16rem, 43vw, 29rem); }
}

@media (max-width: 725px) {
  :root { scroll-padding-top: 3.95rem; }
  .wrap { width: calc(100% - 2rem); }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 3.7rem; }
  .brand { font-size: .99rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .header-contact { gap: .65rem; font-size: .88rem; }
  .header-zalo span { display: none; }
  .header-zalo { min-width: 2rem; justify-content: center; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: -1; min-height: 0; }
  .hero-copy { width: 100%; padding: 1.9rem 0 1.55rem; }
  .hero h1 { font-size: clamp(2.4rem, 9.35vw, 4.2rem); max-width: 32rem; }
  .hero p { margin-top: .9rem; }
  .hero .actions { margin-top: 1rem; }
  .hero-media { position: relative; inset: auto; height: clamp(12.9rem, 59vw, 19rem); }
  .hero-caption { bottom: .65rem; }
  .section-nav-inner { display: grid; width: 100%; grid-template-columns: 1.25fr 1.15fr .82fr .68fr; gap: 0; min-height: 3rem; overflow: visible; }
  .section-nav a { justify-content: center; min-height: 3rem; padding-inline: .18rem; font-size: .83rem; line-height: 1.2; text-align: center; }
  .product-grid, .product-detail, .faq, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .product-grid, .product-detail { gap: 1.4rem; }
  .product-photo { height: clamp(16.5rem, 79vw, 25rem); }
  .thumbnails { scrollbar-width: none; }
  .compare-table th, .compare-table td { padding: .6rem .45rem; font-size: .9rem; overflow-wrap: anywhere; }
  .compare-table thead th:first-child { width: 23%; }
  .faq { gap: 1rem; }
  .footer-inner { align-items: start; flex-direction: column; }
  .mobile-actions { display: grid; position: fixed; z-index: 5; inset: auto 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
  .mobile-actions .button { min-height: 2.9rem; }
}

@media (max-width: 370px) {
  .header-contact { gap: .4rem; }
  .brand { font-size: .9rem; gap: .4rem; }
  .header-phone .icon { display: none; }
  .hero .actions .button { padding-inline: .75rem; }
  .variant-grid { grid-template-columns: 1fr; }
  .variant-grid label { min-height: 0; }
  .dialog-caption { padding-inline: 1rem; }
}
