/* ==========================================================================
   SEA GUNPLA HOBBY — Neo Mecha Commerce
   File giao dien dung chung cho toan bo 8 trang HTML.
   Muc luc:
   01. Token & Reset
   02. Typography & tien ich
   03. Nut bam
   04. Announcement bar + Header + Navbar + Dropdown
   05. Mobile menu
   06. Hero & Page hero + Breadcrumb
   07. Section chung, eyebrow, luoi
   08. Card san pham + badge + quick view
   09. Bo loc / tim kiem / sap xep
   10. Khoi noi dung: danh muc, grade, quy trinh, ly do, banner, CTA
   11. Form (dat hang, lien he) + FAQ
   12. Footer
   13. Nut lien he noi + back to top
   14. Responsive
   ========================================================================== */

/* ============================ 01. TOKEN & RESET ========================== */
:root {
  /* Mau thuong hieu */
  --graphite: #0B0D12;
  --graphite-2: #141822;
  --graphite-3: #1E2431;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #E8EFFE;
  --red: #FF3B30;
  --red-dark: #E02D22;
  --red-soft: #FFE9E7;
  --yellow: #F4C430;
  --yellow-soft: #FFF6DC;
  --ink: #16181D;
  --ink-2: #4A515F;
  --ink-3: #737B8B;
  --border: #DDE1E8;
  --border-strong: #C3CAD6;

  /* Font */
  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Kich thuoc header — dung cho scroll-padding va mobile menu */
  --ann-h: 40px;
  --header-h: 72px;

  /* Khoang cach */
  --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: 88px;

  /* Bo goc & do sau */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 13, 18, .06);
  --shadow-2: 0 6px 20px rgba(11, 13, 18, .08);
  --shadow-3: 0 18px 44px rgba(11, 13, 18, .14);

  --container: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Neo vao anchor van thay tieu de, khong bi header sticky che */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* Chan thanh cuon ngang tren moi thiet bi */
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--graphite);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.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;
}

/* ====================== 02. TYPOGRAPHY & TIEN ICH ======================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 var(--space-3);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 var(--space-4); color: var(--ink-2); }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.lead { font-size: 1.05rem; color: var(--ink-2); }
.text-center { text-align: center; }

/* Duong ke ky thuat — chi tiet Mecha dung lai nhieu noi */
.tech-rule {
  height: 6px;
  border-radius: var(--r-pill);
  background: repeating-linear-gradient(135deg, var(--yellow) 0 10px, transparent 10px 20px);
  opacity: .85;
}

/* ============================== 03. NUT BAM ============================== */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--blue); }
.btn--primary:hover { --btn-bg: var(--blue-dark); }
.btn--accent { --btn-bg: var(--red); }
.btn--accent:hover { --btn-bg: var(--red-dark); }
.btn--dark { --btn-bg: var(--graphite); }
.btn--dark:hover { --btn-bg: var(--graphite-3); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border-strong); }
.btn--outline:hover { --btn-bd: var(--blue); --btn-fg: var(--blue); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --btn-bd: var(--white); --btn-bg: rgba(255, 255, 255, .12); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .87rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============ 04. ANNOUNCEMENT BAR + HEADER + NAVBAR + DROPDOWN ========== */
.announcement {
  background: var(--graphite);
  color: #E7EAF1;
  font-size: .84rem;
  min-height: var(--ann-h);
  display: flex;
  align-items: center;
}
.announcement .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  padding-block: 8px;
  text-align: center;
}
.announcement strong { color: var(--yellow); font-weight: 600; }
.announcement a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.announcement a:hover { color: var(--yellow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 249, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
/* Trang thai sau khi cuon: nen ro hon, co vien va bong nhe */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 18px rgba(11, 13, 18, .07);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 6px 0;
}
.brand__logo {
  width: 46px;
  height: 46px;
  /* Giu dung ty le logo, khong keo gian hay cat */
  object-fit: contain;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand__tagline {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Nav desktop --- */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--blue); background: var(--blue-soft); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__item.is-active > .nav__link,
.nav__link.is-active { color: var(--blue); font-weight: 600; }
.nav__item.is-active > .nav__link::after,
.nav__link.is-active::after { transform: scaleX(1); }

/* Muc "San pham": chu la link, mui ten la nut rieng */
.nav__group { display: flex; align-items: center; position: relative; }
.nav__group .nav__link { padding-right: 6px; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle svg { transition: transform .22s var(--ease); }
.nav__group.is-open .nav__toggle svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 216px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__group.is-open .nav__dropdown,
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: .94rem;
  color: var(--ink);
}
.nav__dropdown a::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--border-strong);
  transform: rotate(45deg);
  transition: background-color .18s var(--ease);
}
.nav__dropdown a:hover { background: var(--blue-soft); color: var(--blue); }
.nav__dropdown a:hover::before { background: var(--blue); }
.nav__dropdown a.is-active { color: var(--blue); font-weight: 600; background: var(--blue-soft); }
.nav__dropdown a.is-active::before { background: var(--red); }

.header-cta { display: none; }

/* Nut hamburger */
.hamburger {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
}
.hamburger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ============================ 05. MOBILE MENU =========================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(11, 13, 18, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(86vw, 360px);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .28s var(--ease), visibility .28s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
}
.drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
}
.drawer__nav { padding: 10px 12px 20px; }
.drawer__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.drawer__link {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 8px;
  font-weight: 500;
}
.drawer__row.is-active .drawer__link,
.drawer__link.is-active { color: var(--blue); font-weight: 600; }
.drawer__row.is-active .drawer__link::before,
.drawer__link.is-active::before {
  content: "";
  width: 4px;
  height: 20px;
  margin-right: 10px;
  background: var(--red);
  border-radius: 2px;
}
.drawer__toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
}
.drawer__toggle svg { transition: transform .22s var(--ease); }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.drawer__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s var(--ease);
}
.drawer__sub.is-open { grid-template-rows: 1fr; }
.drawer__sub > div { overflow: hidden; }
.drawer__sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-left: 18px;
  font-size: .95rem;
  color: var(--ink-2);
}
.drawer__sub a::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--border-strong);
  transform: rotate(45deg);
}
.drawer__sub a.is-active { color: var(--blue); font-weight: 600; }
.drawer__sub a.is-active::before { background: var(--red); }

.drawer__foot {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.drawer__meta { font-size: .85rem; color: var(--ink-3); }

/* ==================== 06. HERO / PAGE HERO / BREADCRUMB ================== */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 6vw, 88px);
  background:
    radial-gradient(1100px 460px at 82% 8%, var(--blue-soft) 0%, transparent 62%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--space-4);
}
.hero__tag i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.hero h1 { margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__desc { font-size: 1.06rem; max-width: 56ch; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border-strong);
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}
.hero__stat span { font-size: .82rem; color: var(--ink-3); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero__frame {
  position: absolute;
  inset: 6% 2%;
  border: 2px solid var(--blue);
  border-radius: var(--r-lg);
  opacity: .18;
  pointer-events: none;
}

/* Page hero cho cac trang con */
.page-hero {
  background:
    linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%);
  color: var(--white);
  padding: clamp(28px, 4vw, 52px) 0 clamp(32px, 4.5vw, 60px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 2px solid rgba(244, 196, 48, .25);
  border-radius: 50%;
}
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p { color: #C6CCDA; max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .eyebrow::before { background: var(--red); }

.breadcrumb {
  font-size: .84rem;
  margin-bottom: var(--space-4);
  color: #A8B0C2;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: #DDE3EF; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #6D7689; }
.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 500; }

/* ==================== 07. SECTION CHUNG, LUOI, KHOI ===================== */
.section { padding: clamp(44px, 6vw, 84px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark { background: var(--graphite); color: #D9DEE9; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #B7BFCE; }
.section--dark .eyebrow { color: var(--yellow); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-head p { margin-bottom: 0; max-width: 62ch; }
.section-head__text { max-width: 72ch; }

.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.panel--dark {
  background: var(--graphite-2);
  border-color: #2A3140;
}
.panel h3 { margin-bottom: var(--space-2); }
.panel p:last-child { margin-bottom: 0; }

/* Chi tiet Mecha: goc ky thuat o card */
.corner-frame { position: relative; }
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  opacity: .55;
  transition: opacity .2s var(--ease);
}
.corner-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner-frame::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.corner-frame:hover::before,
.corner-frame:hover::after { opacity: 1; }

/* ================= 08. CARD SAN PHAM + BADGE + QUICK VIEW =============== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF2F7 100%);
  border-bottom: 1px solid var(--border);
  padding: 10px;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  /* Anh mo hinh khong bi cat hay bop meo */
  object-fit: contain;
}

.badge-stack {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--graphite);
  color: var(--white);
}
.badge--new { background: var(--blue); }
.badge--hot { background: var(--red); }
.badge--low { background: var(--yellow); color: var(--ink); }
.badge--grade {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-4);
  flex: 1;
}
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product-card__meta span {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.product-card__code { font-size: .82rem; color: var(--ink-3); }
.product-card__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.02rem;
}
.product-card__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .76rem;
  color: var(--ink-3);
}
.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: var(--space-3);
}

/* Quick view */
.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 13, 18, .58);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  width: min(100%, 880px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transform: translateY(12px);
  transition: transform .22s var(--ease);
}
.modal.is-open .modal__dialog { transform: translateY(0); }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}
.modal__title { font-family: var(--font-display); font-weight: 700; }
.modal__close {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__body {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
}
.modal__media {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF2F7 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.modal__media img { width: 100%; height: 100%; object-fit: contain; }
.spec-list { display: grid; gap: 8px; margin-bottom: var(--space-4); }
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .93rem;
}
.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ================== 09. BO LOC / TIM KIEM / SAP XEP ===================== */
.toolbar {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-1);
}
.toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.toolbar__row--between { justify-content: space-between; }

.search-field { position: relative; flex: 1 1 260px; }
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.search-field input:focus { background: var(--white); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--white);
}
.chip__label {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
  align-self: center;
}

.select-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.select-field select {
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A515F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: inherit;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.result-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  font-size: .92rem;
  color: var(--ink-2);
}
.result-bar b { color: var(--ink); font-family: var(--font-display); }

.empty-state {
  display: none;
  padding: var(--space-7) var(--space-5);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-state.is-visible { display: block; }
.empty-state h3 { margin-bottom: var(--space-2); }
.empty-state p { max-width: 46ch; margin-inline: auto; }

/* ==================== 10. KHOI NOI DUNG CHUYEN BIET ===================== */
/* Danh muc thuong hieu */
.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: var(--space-5);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
  border: 1px solid #232A38;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.brand-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.brand-card__content { position: relative; z-index: 1; }
.brand-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 6px; }
.brand-card p { color: #C6CCDA; margin-bottom: var(--space-4); }
.brand-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--yellow);
}

/* Grade */
.grade-card {
  display: block;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.grade-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.grade-card__code {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.grade-card__name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.grade-card p { font-size: .9rem; margin-bottom: 0; }

/* Quy trinh — day so co y nghia thu tu buoc */
.step-list { counter-reset: step; display: grid; gap: var(--space-4); }
.step {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) 76px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
}
.step::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 58px;
  bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; font-size: .95rem; }

/* Ly do chon cua hang */
.reason {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.reason__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
}
.reason h3 { font-size: 1.05rem; margin-bottom: 4px; }
.reason p { margin-bottom: 0; font-size: .94rem; }

/* Banner tim san pham theo yeu cau */
.request-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-5);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--graphite) 0%, #16203A 60%, #1B2C57 100%);
  color: var(--white);
  align-items: center;
}
.request-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(244, 196, 48, .35), transparent 62%);
}
.request-banner h2 { color: var(--white); }
.request-banner p { color: #C6CCDA; margin-bottom: 0; }
.request-banner__content { position: relative; z-index: 1; }

/* CTA cuoi trang */
.cta-final {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--red);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.cta-final h2 { margin-bottom: 6px; }
.cta-final p { margin-bottom: 0; }

/* Danh sach dau tich */
.check-list { display: grid; gap: 10px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}
.section--dark .check-list li { color: #C6CCDA; }

/* The placeholder can thay the */
.ph {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--yellow-soft);
  border: 1px dashed var(--yellow);
  font-family: var(--font-display);
  font-size: .86em;
  color: #7A5B00;
  white-space: nowrap;
}
.section--dark .ph, .page-hero .ph, .request-banner .ph, .site-footer .ph {
  background: rgba(244, 196, 48, .14);
  color: var(--yellow);
}

/* Bang lich / thong tin */
.info-list { display: grid; gap: var(--space-3); }
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-list__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
}
.info-list b { display: block; font-family: var(--font-display); font-size: .95rem; }
.info-list span { color: var(--ink-2); font-size: .94rem; }

/* Khoi ban do dang placeholder */
.map-block {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  min-height: 280px;
  padding: var(--space-6);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background:
    linear-gradient(90deg, rgba(221, 225, 232, .6) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, rgba(221, 225, 232, .6) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--white);
}

/* ====================== 11. FORM + FAQ + THONG BAO ====================== */
.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--red); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A515F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
  outline: none;
}
.field .error-text {
  display: none;
  font-size: .85rem;
  color: var(--red);
  font-weight: 500;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); background: var(--red-soft); }
.field.has-error .error-text { display: block; }

.form-note {
  display: flex;
  gap: 12px;
  padding: var(--space-4);
  border-radius: var(--r-md);
  background: var(--blue-soft);
  border: 1px solid #C9DAFB;
  font-size: .92rem;
  color: #1E3A8A;
}
.form-note svg { flex: none; }

.form-status {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: .94rem;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: var(--red-soft); border-color: #FFC5C0; color: #8B1D16; }
.form-status.is-ok { background: var(--yellow-soft); border-color: #F0D98A; color: #6B5000; }
.form-status pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: var(--space-3) 0 0;
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: .86rem;
  color: var(--ink);
}

.faq { display: grid; gap: var(--space-3); }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 var(--space-4); font-size: .95rem; }

/* Toast nho khi sao chep */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 160;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--graphite);
  color: var(--white);
  font-size: .9rem;
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================== 12. FOOTER ============================== */
.site-footer {
  background: var(--graphite);
  color: #B7BFCE;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 4px solid var(--blue);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: var(--space-6);
}
.footer-brand { max-width: 34ch; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__tagline { color: #8A93A6; }
.footer-brand p { color: #A4ADBE; font-size: .93rem; margin-top: var(--space-4); }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: .84rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 var(--space-4);
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .93rem;
  color: #B7BFCE;
  transition: color .18s var(--ease);
}
.footer-links a:hover { color: var(--yellow); }
.footer-links small { display: block; color: #7B8497; font-size: .78rem; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-4); }
.footer-social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #2A3140;
  border-radius: var(--r-md);
  color: #D5DBE7;
  transition: all .18s var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.footer-bottom {
  border-top: 1px solid #232A38;
  padding: var(--space-4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .85rem;
  color: #8A93A6;
}

/* ==================== 13. NUT LIEN HE NOI + BACK TO TOP ================= */
.floating {
  position: fixed;
  right: 14px;
  bottom: 14px;
  /* Thap hon drawer (120) va modal (140) de khong de len menu dang mo */
  z-index: 105;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.fab {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), opacity .22s var(--ease);
}
.fab:hover { transform: translateY(-3px); }
.fab--call { background: var(--red); }
.fab--zalo { background: var(--blue); font-family: var(--font-display); font-weight: 700; font-size: .82rem; }
.fab--fb { background: #1877F2; }
.fab--top { background: var(--graphite); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab__tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--graphite);
  color: var(--white);
  font-size: .8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
@media (hover: hover) and (min-width: 1024px) {
  .fab:hover .fab__tip,
  .fab:focus-visible .fab__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

/* Man hinh nho: nut noi gon lai, o sap xep chiem tron chieu ngang */
@media (max-width: 639px) {
  .fab { width: 44px; height: 44px; }
  .floating { gap: 8px; right: 10px; bottom: 10px; }
  .select-field { width: 100%; }
  .select-field select { flex: 1; }
  .result-bar { align-items: flex-start; flex-direction: column; }
}

/* ============================ 14. RESPONSIVE ============================ */
@media (min-width: 640px) {
  .hero__grid { gap: var(--space-6); }
  .modal__body { grid-template-columns: 1fr 1fr; }
  .request-banner { grid-template-columns: 1.5fr auto; }
  .cta-final { grid-template-columns: 1fr auto; }
  .floating { right: 18px; bottom: 18px; }
  .fab { width: 52px; height: 52px; }
}

@media (min-width: 768px) {
  .toolbar__row--between > * { flex: 0 1 auto; }
  .footer-bottom { padding: var(--space-5) 0; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .nav { display: block; }
  .hamburger { display: none; }
  .header-cta { display: inline-flex; }
  .brand__logo { width: 52px; height: 52px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .page-hero { padding-block: 56px 68px; }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step::after { display: none; }
}

/* Ton trong lua chon giam chuyen dong cua nguoi dung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .product-card:hover,
  .brand-card:hover,
  .grade-card:hover,
  .fab:hover { transform: none; }
}

@media print {
  .site-header, .drawer, .floating, .announcement { display: none; }
}

/* ====================== 15. TIEN ICH KHOANG CACH ======================== */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-2 { margin-bottom: var(--space-2); }
.btn-row--center { justify-content: center; }

.form-status p:last-child { margin-bottom: 0; }
