/* ==========================================================================
   CHAG Professional — theme stylesheet
   Hệ thống: Clinical Editorial (hướng 1a)
   ========================================================================== */

/* ---------- Fonts (self-host) ---------- */
@font-face { font-family: 'Newsreader'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/fonts/newsreader-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/fonts/newsreader-vi-300.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/newsreader-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/newsreader-vi-400.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Newsreader'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/newsreader-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/newsreader-vi-500.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap; src: url('../assets/fonts/newsreader-latin-400i.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap; src: url('../assets/fonts/newsreader-vi-400i.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-vi-400.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-vi-500.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-vi-600.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/fonts/bvp-vi-700.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Pe-icon-7-stroke'; src: url('../assets/fonts/Pe-icon-7-stroke.woff') format('woff'), url('../assets/fonts/Pe-icon-7-stroke.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --blue: #1481C2;
  --blue-dark: #0E6BA3;
  --navy: #0A2540;
  --navy-soft: #123553;
  --navy-line: #1D4970;
  --light: #EAF3FA;
  --soft: #F4F9FD;
  --soft-2: #F7FBFD;
  --line: #E3EDF5;
  --line-2: #D6E5F0;
  --line-3: #EDF4F9;
  --ink: #0A2540;
  --ink-2: #44607A;
  --ink-3: #55708A;
  --ink-4: #8CA3B6;
  --on-navy: #B9CFE0;
  --on-navy-2: #7FC0EA;
  --gold: #C7A55E;
  --danger: #B0455A;

  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;

  --maxw: 1280px;
  --gutter: 48px;
  --radius: 2px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section--light { background: var(--light); }
.section--soft { background: var(--soft-2); }
.section--navy { background: var(--navy); color: #fff; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.bordered-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 26px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row--between { justify-content: space-between; align-items: center; }
.row--baseline { align-items: baseline; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.split-l { grid-template-columns: 340px minmax(0, 1fr); gap: 64px; }
.split-r { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
.split-pdp { grid-template-columns: 1.25fr minmax(0, 1fr); gap: 56px; }
.split-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; color: var(--blue); text-transform: uppercase;
}
.eyebrow--on-navy { color: var(--on-navy-2); }
.eyebrow--rule { display: flex; align-items: center; gap: 12px; }
.eyebrow--rule::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }

.h-hero { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -.015em; }
.h-page { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; }
.h-1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.h-2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.h-3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.18; }
.h-num { font-family: var(--serif); font-size: 30px; line-height: 1; }
em { font-style: italic; color: var(--blue); }

.lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.body { font-size: 15px; line-height: 1.72; color: var(--ink-2); }
.small { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.tiny { font-size: 12.5px; color: var(--ink-4); }
.muted { color: var(--ink-3); }
.measure { max-width: 62ch; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 34px;
}
.section-head .eyebrow { display: block; margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
  min-height: 48px; text-align: center;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #06192c; color: #fff; }
.btn--light { background: #fff; color: var(--navy); font-weight: 700; }
.btn--blue-outline { border-color: var(--blue); color: var(--blue); }
.btn--blue-outline:hover { background: var(--blue); color: #fff; }
.btn--sm { font-size: 12.5px; padding: 9px 14px; min-height: 38px; }
.btn--block { display: flex; width: 100%; }
.link-arrow { font-family: var(--sans); font-size: 14px; font-weight: 600; }

/* ---------- Tags / chips ---------- */
.tag { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.chip { font-size: 12.5px; color: #33506A; border: 1px solid var(--line-2); padding: 7px 12px; border-radius: 999px; }
.chip--solid { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 0; font-weight: 600; }
.chip--square { border-radius: 0; }
.badge { font-size: 12px; font-weight: 600; color: #fff; background: var(--blue); padding: 5px 10px; }
.screen-id {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em;
  background: var(--navy); color: #fff; padding: 6px 12px; border-radius: 3px;
}

/* ---------- Icon font ---------- */
.pe { font-family: 'Pe-icon-7-stroke'; font-size: 24px; line-height: 1; color: #33506A; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar span { color: var(--on-navy); }
.topbar strong, .topbar a { color: #fff; font-weight: 600; }
.topbar__member { color: var(--on-navy-2) !important; letter-spacing: .14em; font-size: 11px; font-weight: 600; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; }
.brand__text { display: block; border-left: 1px solid var(--line-2); padding-left: 14px; }
.brand__name { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--blue); line-height: 1.4; }
.brand__tag { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3); line-height: 1.4; }
.brand--on-navy { }
.brand__plate { display: flex; align-items: center; }
.brand--on-navy .brand__plate { background: #fff; padding: 8px 10px; display: flex; align-items: center; }
.brand--on-navy .brand__text { border-left-color: rgba(255,255,255,.35); }
.brand--on-navy .brand__name { color: #fff; }
.brand--on-navy .brand__tag { color: #DCE9F3; }

.nav ul { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: #33506A; padding-bottom: 4px; }
.nav a:hover { color: var(--navy); }
.nav a.is-active { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--blue); }

.header__tools { display: flex; align-items: center; gap: 18px; }
.cart-btn { position: relative; display: block; }
.cart-btn__count {
  position: absolute; top: -2px; right: -8px; background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--navy); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); }
.crumb strong { color: var(--ink); font-weight: 500; }

/* ---------- Page head ---------- */
.page-head { background: var(--light); padding: 40px 0; }
.page-head .crumb { margin-bottom: 18px; }
.page-head .h-page { margin-bottom: 12px; }

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero__copy { padding: 76px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero__copy > * + * { margin-top: 26px; }
.hero__media { background: var(--light); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 44px; border-top: 1px solid var(--line); padding-top: 26px; }

.stat__n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink); }
.stat__label { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-strip > * { padding: 34px var(--gutter); border-right: 1px solid var(--line); }
.stats-strip > *:last-child { border-right: 0; }
.stats-strip .stat__n { font-size: 40px; }

.usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 30px 0; }
.usp__t { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.usp__d { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* Ảnh nền + chữ: luôn phủ scrim navy để chữ nhỏ đủ tương phản */
.photo-band { position: relative; background: var(--navy); overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,37,64,.35), rgba(10,37,64,.82));
}
.photo-band > .container { position: relative; z-index: 1; }

/* ---------- Product card ---------- */
.card { border: 1px solid var(--line); background: #fff; }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 20px 22px; }
.card__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin: 8px 0 7px; }
.card__desc { font-size: 13px; line-height: 1.55; color: #5A7183; margin-bottom: 16px; min-height: 40px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-3); padding-top: 14px; }
.price { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.price--lg { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.price--old { font-size: 15px; color: var(--ink-4); text-decoration: line-through; font-weight: 400; }
.price--agency { font-size: 11.5px; color: var(--blue); margin-top: 3px; }

/* ---------- Sidebar filter ---------- */
.layout-aside { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 44px; }
.facet + .facet { margin-top: 34px; }
.facet__title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.facet ul { display: flex; flex-direction: column; gap: 11px; }
.facet__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.facet__row a { font-size: 14px; color: var(--ink-2); }
.facet__row a.is-active { font-weight: 600; color: var(--blue); }
.facet__count { font-size: 12.5px; color: var(--ink-4); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check__box { width: 14px; height: 14px; border: 1px solid #B9CFE0; border-radius: 3px; flex: none; }
.check__dot { width: 16px; height: 16px; border: 1px solid #B9CFE0; border-radius: 50%; flex: none; }
.help-box { background: var(--light); padding: 22px; margin-top: 34px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px;
}
.select-fake {
  font-size: 13.5px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2);
  padding: 9px 14px; display: inline-flex; align-items: center; gap: 26px;
}

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pager > * {
  min-width: 38px; height: 38px; padding: 0 14px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); color: #33506A; font-size: 13.5px;
}
.pager .is-active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.gallery__main { aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gallery__thumbs > * { display: block; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; border: 1px solid var(--line); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.stars { font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { font-size: 13.5px; color: #33506A; border: 1px solid var(--line-2); padding: 11px 18px; }
.opt.is-active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); }
.qty button { width: 44px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink-3); }
.qty span { width: 44px; text-align: center; font-size: 15px; font-weight: 600; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; background: var(--light); padding: 22px 24px; }
.meta__k { font-size: 11.5px; color: #6C8AA3; margin-bottom: 3px; }
.meta__v { font-size: 13.5px; font-weight: 600; }

.tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { font-size: 14.5px; font-weight: 500; color: var(--ink-3); padding: 20px 0 17px; white-space: nowrap; }
.tabs a.is-active { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--blue); }

.steplist { display: flex; flex-direction: column; }
.steplist > * { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steplist > *:last-child { border-bottom: 0; }
.steplist__n { font-family: var(--serif); font-size: 20px; color: var(--blue); }

.spec { border: 1px solid var(--line); padding: 26px; }
.spec__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.spec__row:last-child { border-bottom: 0; }
.note-navy { background: var(--navy); color: #fff; padding: 26px; }
.note-navy p { font-size: 13.5px; line-height: 1.7; color: #C7DBE9; }

.review { background: #fff; padding: 24px 24px 26px; }
.review p { font-size: 14px; line-height: 1.68; color: var(--ink-2); margin: 12px 0 18px; }
.review__name { font-size: 13px; font-weight: 600; }
.review__role { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ---------- Cart / checkout ---------- */
.checkout-steps { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.cstep { display: flex; align-items: center; gap: 12px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.cstep:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.cstep__n {
  width: 26px; height: 26px; border-radius: 50%; background: var(--light); color: var(--ink-4);
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
}
.cstep.is-active .cstep__n { background: var(--blue); color: #fff; }
.cstep__label { font-size: 13.5px; font-weight: 500; color: #33506A; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; }
.cart-head, .cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 120px 130px; gap: 20px; align-items: center; }
.cart-head { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: #6C8AA3; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-row { padding: 22px 0; border-bottom: 1px solid var(--line-3); }
.cart-item { display: flex; align-items: center; gap: 16px; }
.cart-item__media { display: block; width: 96px; height: 64px; background: var(--soft); overflow: hidden; flex: none; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.cart-line-total { font-size: 15.5px; font-weight: 600; text-align: right; }
.cart-remove { font-size: 12.5px; color: var(--danger); }
.qty--sm { width: 104px; }
.qty--sm button { width: 32px; height: 38px; }
.qty--sm span { width: 40px; font-size: 14px; }

.summary { border: 1px solid var(--line); }
.summary__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.summary__body { padding: 20px 24px 24px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.sum-row + .sum-row { margin-top: 12px; }
.sum-row strong { color: var(--ink); font-weight: 500; }
.sum-row .is-cut { color: var(--blue); font-weight: 500; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; margin-bottom: 20px; }
.sum-total__label { font-size: 14px; font-weight: 600; }
.sum-total__value { font-family: var(--serif); font-size: 30px; }
.mini-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.mini-item__media { display: block; width: 60px; height: 42px; background: var(--soft); overflow: hidden; flex: none; }
.mini-item__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: block; }
.field > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.input, .textarea, select.input {
  width: 100%; border: 1px solid var(--line-2); background: #fff;
  min-height: 48px; padding: 12px 14px; font-size: 14px; border-radius: var(--radius);
}
.input::placeholder, .textarea::placeholder { color: #9AB0C2; }
.input:focus, .textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; border-color: var(--blue); }
.textarea { min-height: 120px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.fieldset + .fieldset { margin-top: 34px; }
.fieldset__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue); margin-bottom: 18px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line-2); padding: 16px 18px; cursor: pointer; }
.pick.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pick__main { display: flex; align-items: center; gap: 14px; }
.pick__main > span:last-child { display: block; }
.pick__name { display: block; font-size: 14.5px; font-weight: 600; }
.pick__desc { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }

.form-navy { background: var(--navy); color: #fff; padding: 34px; }
.form-navy .field > span { color: #9DBBD1; }
.form-navy .input, .form-navy .textarea { background: var(--navy-soft); border-color: var(--navy-line); color: #fff; }
.form-navy .input::placeholder, .form-navy .textarea::placeholder { color: #6E8CA6; }
.form-navy p { color: var(--on-navy); }

/* ---------- Ingredients ---------- */
.ing-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 300px; gap: 44px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ing-row__no { font-family: var(--serif); font-size: 44px; line-height: 1; color: #CBDDEA; }
.ing-row__en { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--blue); margin-bottom: 16px; }
.ing-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ing-row__tags span { font-size: 12px; color: #33506A; background: var(--light); padding: 7px 12px; }
.in-products { background: var(--soft-2); border: 1px solid var(--line); padding: 20px 22px; }
.in-products__title { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: #6C8AA3; margin-bottom: 12px; }
.in-products ul { display: flex; flex-direction: column; gap: 9px; }
.in-products a { font-size: 13.5px; }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #D3E4F0; }
.tile { background: var(--light); padding: 28px 30px; }
.tile__no { font-family: var(--serif); font-size: 15px; color: var(--blue); margin-bottom: 14px; }
.tile__t { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tile__d { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid--3 .tile { padding: 32px 34px 36px; }
.tile-grid--3 .tile__t { font-size: 21px; margin-bottom: 10px; }
.tile-grid--3 .tile__d { font-size: 14px; line-height: 1.68; }

/* ---------- Agency ---------- */
.tier { border: 1px solid var(--line); display: flex; flex-direction: column; }
.tier__head { background: var(--soft-2); padding: 26px 26px 24px; border-bottom: 1px solid var(--line); }
.tier__name { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 12px 0 14px; }
.tier__pct { font-size: 32px; font-weight: 600; }
.tier__body { padding: 24px 26px 26px; flex: 1; }
.tier__body ul { display: flex; flex-direction: column; gap: 12px; }
.tier__foot { padding: 0 26px 26px; }
.tick { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.tick::before {
  content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--light); color: var(--blue);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px;
}
.tick--solid::before { background: var(--blue); color: #fff; width: 22px; height: 22px; font-size: 12px; }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.process > * { border-top: 2px solid var(--blue); padding-top: 20px; }
.process__n { font-family: var(--serif); font-size: 15px; color: var(--blue); margin-bottom: 12px; }
.process__t { font-size: 18px; font-weight: 600; margin-bottom: 8px; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--ink-4); flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { font-size: 14px; line-height: 1.7; color: var(--ink-3); padding-bottom: 18px; }

/* ---------- Blog ---------- */
.post { display: block; color: inherit; }
.post:hover { color: inherit; }
.post__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); margin-bottom: 16px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__title { font-family: var(--serif); font-size: 23px; line-height: 1.18; margin: 9px 0; }
.post__excerpt { font-size: 13.5px; line-height: 1.6; color: #5A7183; margin-bottom: 12px; }
.post--feature { display: grid; grid-template-columns: 1.15fr minmax(0, 1fr); gap: 44px; align-items: center; }
.post--feature .post__media { aspect-ratio: 16 / 10; margin-bottom: 0; }
.post--feature .post__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }

.article { max-width: 760px; }
.article__hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); margin-bottom: 34px; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__byline { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--ink-3); padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article__lede { font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--ink); margin-bottom: 30px; }
.article h2 { font-size: 30px; line-height: 1.15; margin-top: 36px; margin-bottom: 14px; }
.article p { font-size: 16px; line-height: 1.8; color: #3C5872; }
.article p + p { margin-top: 20px; }
.callout { background: var(--light); padding: 30px 34px; margin-top: 36px; }
.callout p { font-size: 16px; line-height: 1.72; color: var(--ink); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
.toc { border-left: 2px solid var(--blue); padding-left: 20px; }
.toc__title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; margin-bottom: 14px; }
.toc ul { display: flex; flex-direction: column; gap: 11px; }
.toc a { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.side-box { border: 1px solid var(--line); padding: 22px 22px 24px; }
.side-box__title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; margin-bottom: 16px; }
.mini-prod { display: flex; align-items: center; gap: 12px; color: inherit; }
.mini-prod + .mini-prod { margin-top: 16px; }
.mini-prod__media { display: block; width: 56px; height: 40px; background: var(--soft); overflow: hidden; flex: none; }
.mini-prod__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-navy { background: var(--navy); color: #fff; padding: 24px; }
.cta-navy p { font-size: 13px; line-height: 1.6; color: var(--on-navy); margin: 8px 0 16px; }

/* ---------- Contact / auth ---------- */
.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.info-strip > * { padding: 34px var(--gutter); border-right: 1px solid var(--line); }
.info-strip > *:last-child { border-right: 0; }
.info__label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--blue); margin-bottom: 12px; }
.info__value { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.map-slot {
  height: 340px; background: var(--light); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
}
.hours-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.hours-row + .hours-row { margin-top: 11px; }
.hours-row strong { color: var(--ink); font-weight: 500; }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.auth__aside { position: relative; background: var(--navy); overflow: hidden; }
.auth__aside img.bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .48; }
.auth__aside .inner { position: absolute; inset: 0; padding: 56px var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(to bottom, rgba(10,37,64,.15) 30%, rgba(10,37,64,.86) 72%, rgba(10,37,64,.94) 100%); }
.auth__aside h2 { color: #fff; margin-bottom: 14px; }
.auth__aside p { font-size: 15px; line-height: 1.7; color: #DCE9F3; max-width: 440px; }
.auth__form { padding: 56px var(--gutter) 60px; }
.auth__tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.auth__tabs a { font-size: 16px; font-weight: 500; color: var(--ink-4); padding-bottom: 14px; }
.auth__tabs a.is-active { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--blue); }
.auth__body { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { font-size: 12.5px; color: var(--ink-4); }
.note-light { background: var(--light); padding: 20px 22px; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding: 56px 0 40px; }
.footer__col-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink); margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 13.5px; color: #5A7183; }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 13.5px; line-height: 1.7; color: #5A7183; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 34px; } .mb-5 { margin-bottom: 48px; }
.flex-1 { flex: 1; } .no-shrink { flex: none; }
.ta-r { text-align: right; } .ta-c { text-align: center; }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-1610 { aspect-ratio: 16 / 10; } .ratio-34 { aspect-ratio: 3 / 4; }
.cover { overflow: hidden; background: var(--soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.on-navy { color: var(--on-navy); }
.white { color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
  :root { --gutter: 32px; }
  .split-l { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  .split-r, .split-wide { gap: 40px; }
  .split-pdp { gap: 36px; }
  .cart-layout--pay { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout-aside { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
  .ing-row { grid-template-columns: 90px minmax(0, 1fr) 260px; gap: 28px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .footer__main { gap: 32px; }
}

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 34px rgba(10,37,64,.1); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
  .nav a.is-active { border-bottom: 1px solid var(--blue); }
  .nav-toggle { display: flex; }
  .header .container { min-height: 76px; }
  .brand img { height: 38px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 48px var(--gutter); order: 2; }
  .hero__media { order: 1; aspect-ratio: 16 / 10; }
  .pdp, .g-2, .post--feature, .auth, .article-layout, .cart-layout, .layout-aside,
  .split-l, .split-r, .split-pdp, .split-wide, .cart-layout--pay { grid-template-columns: 1fr; }
  .split-l, .split-r, .split-pdp, .split-wide { gap: 36px; }
  .article-layout { gap: 44px; }
  .layout-aside { gap: 34px; }
  .g-3, .g-4, .process, .usp, .stats-strip, .info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip > *, .info-strip > * { padding: 26px var(--gutter); }
  .stats-strip > *:nth-child(2n), .info-strip > *:nth-child(2n) { border-right: 0; }
  .stats-strip > *, .info-strip > * { border-bottom: 1px solid var(--line); }
  .usp { gap: 24px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .ing-row { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .ing-row__no { font-size: 32px; }
  .in-products { max-width: 420px; }
  .tile-grid, .tile-grid--3 { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .auth__aside { height: auto; aspect-ratio: 16 / 9; min-height: 300px; }
  .auth__aside .inner { padding: 34px var(--gutter); }
  .auth__form { padding: 40px var(--gutter) 48px; }
  .auth__body { max-width: none; }

  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr auto; gap: 12px 16px; align-items: start; }
  .cart-row .cart-item { grid-column: 1 / -1; }
  .cart-line-total { text-align: left; }
  .cart-row > .cart-price::before { content: "Đơn giá: "; color: var(--ink-4); }
  .cart-line-total::before { content: "Tạm tính: "; color: var(--ink-4); font-weight: 400; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 14.5px; }
  .topbar { font-size: 11.5px; }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px var(--gutter); }
  .topbar__left, .topbar__right { gap: 14px; }
  .g-3, .g-4, .process, .usp, .stats-strip, .info-strip, .form-grid, .meta-grid, .gallery__thumbs, .footer__main { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-strip > *, .info-strip > * { border-right: 0; }
  .section { padding: 44px 0; }
  .page-head { padding: 28px 0; }
  .hero__copy { padding: 36px var(--gutter); }
  .hero .stats { gap: 24px; }
  .btn { width: 100%; }
  .btn--sm, .pager > *, .opt, .chip { width: auto; }
  .row .btn { width: auto; flex: 1 1 auto; }
  .price--lg { font-size: 32px; }
  .article__lede { font-size: 19px; }
  .article h2 { font-size: 25px; }
  .article p { font-size: 15.5px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .tabs { gap: 22px; }
  .checkout-steps { gap: 12px 0; }
  .cstep { border-right: 0; padding-right: 0; margin-right: 16px; }
}
