/* Tổng Kho Sỉ Gia Dụng Sunhouse — giao diện trang khách
   Màu lấy trực tiếp từ logo: đỏ #DB2128 và xanh cổ vịt #0C7081. */

:root {
  --red: #db2128;
  --red-deep: #b5151b;
  --teal: #0c7081;
  --teal-deep: #084e5a;
  --teal-night: #06343d;
  --ink: #0b2a31;
  --muted: #4c6770;
  --mist: #eef5f6;
  --mist-2: #dcebee;
  --line: #d2e0e3;
  --white: #fff;
  --amber: #ffc83d;
  --ok: #13795b;

  --font-display: "Lexend", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1240px;

  --art-body: var(--teal);
  --art-accent: var(--red);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.375rem, 2.3vw, 1.875rem); font-weight: 600; }
h3 { font-size: 1.0625rem; font-weight: 600; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden, .trap {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--white); border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }
.sprite { position: absolute; }
.muted { color: var(--muted); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 44px; height: 44px; stroke-width: 2.2; }

/* Hình minh họa sản phẩm */
.tone-teal { --art-body: var(--teal); --art-accent: var(--red); --art-bg: var(--mist); }
.tone-red { --art-body: var(--red); --art-accent: var(--teal); --art-bg: #fbeeee; }
.tone-sand { --art-body: #a9bac0; --art-accent: var(--red); --art-bg: #f1f4f5; }
.art { width: 100%; height: 100%; }
.ab { fill: var(--art-body); }
.ac { fill: var(--art-accent); }
.ak { fill: var(--ink); }
.al { fill: #fff; }
.am { fill: var(--art-body); opacity: 0.55; }
.as { fill: #000; opacity: 0.14; }
.as2 { fill: #fff; opacity: 0.16; }
.ag { fill: var(--art-body); opacity: 0.22; }
.ac2 { fill: var(--art-accent); opacity: 0.7; }
.ar { fill: none; stroke: var(--art-accent); stroke-width: 5; }
.ar2 { fill: none; stroke: #fff; stroke-width: 4; opacity: 0.55; }
.ah { fill: none; stroke: var(--art-accent); stroke-width: 10; stroke-linecap: round; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-deep); color: var(--white); }
.btn--line { background: var(--white); border-color: var(--teal); color: var(--teal); }
.btn--line:hover { background: var(--mist); color: var(--teal-deep); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn--ghost:hover { background: var(--mist); }
.btn--onteal { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--onteal:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--teal-deep); }
.btn--white:hover { background: var(--mist); color: var(--teal-night); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.is-added { background: var(--teal); border-color: var(--teal); color: var(--white); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: var(--r-sm); color: var(--ink);
}
.icon-btn:hover { background: var(--mist); }
.icon-btn .icon { width: 24px; height: 24px; }

.link { font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; color: var(--teal); }
.link--danger { color: var(--red-deep); }

.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--amber); color: var(--ink); border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.flag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  background: var(--amber); color: var(--ink); border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}

/* Thanh trên cùng */
.demo-bar { padding: 8px var(--gutter); background: var(--amber); color: var(--ink); font-size: 0.8125rem; text-align: center; }
.topbar { background: var(--teal-night); color: #d6e8ec; font-size: 0.8125rem; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__claim { display: flex; align-items: center; gap: 6px; }
.topbar__meta { display: flex; gap: 20px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Đầu trang */
.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.header__menu { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 56px; height: auto; }
.brand__text { display: grid; line-height: 1.15; font-family: var(--font-display); }
.brand__line { color: var(--red); font-weight: 500; font-size: 0.8125rem; }
.brand__name { color: var(--teal); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.01em; }
.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.search input {
  width: 100%; height: 46px; padding: 0 52px 0 16px;
  background: var(--mist); border: 1.5px solid transparent; border-radius: var(--r-sm);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--white); border-color: var(--teal); outline: none; }
.search button {
  position: absolute; right: 2px; top: 1px; width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--teal); border-radius: var(--r-sm);
}
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.catnav { border-top: 1px solid var(--line); }
.catnav__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav__row::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; padding: 11px 12px; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.catnav a:first-child { padding-left: 0; }
.catnav a:hover { color: var(--teal); }
.catnav a.is-current { color: var(--teal); border-bottom-color: var(--red); }

/* Danh mục dạng ngăn kéo (di động) */
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(6, 52, 61, 0.55); }
.menu__panel { width: min(88vw, 360px); height: 100%; overflow-y: auto; background: var(--white); padding: 12px 20px 32px; }
.menu__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 1.125rem; }
.menu__list { margin-top: 8px; border-top: 1px solid var(--line); }
.menu__list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.menu__list--pages { margin-top: 24px; }

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--teal-night) 0%, var(--teal-deep) 38%, var(--teal) 100%);
  color: var(--white);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 6vw, 76px); }
.hero__copy { padding-bottom: clamp(40px, 6vw, 84px); }
.lockup { display: inline-flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--white); border-radius: var(--r-md); }
.lockup img { height: 44px; width: auto; }
.lockup__x { color: var(--muted); font-family: var(--font-display); font-size: 1.25rem; }
.hero h1 { margin-top: 28px; font-size: clamp(2rem, 4.4vw, 3.375rem); line-height: 1.1; letter-spacing: -0.022em; max-width: 15ch; }
.hero__lead { margin-top: 20px; max-width: 54ch; font-size: 1.0625rem; color: #dcecef; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.9375rem; color: #e6f2f4; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }

/* Phiếu báo giá — họa tiết đặc trưng của website */
.slip {
  --behind: var(--white);
  position: relative; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px 4px var(--r-md) var(--r-md);
  padding: 30px clamp(18px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px);
}
.slip::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 9px;
  background: radial-gradient(circle at 9px 0, var(--behind) 5.5px, transparent 6px) 0 0 / 18px 9px repeat-x;
}
.slip--hero { --behind: var(--teal-deep); border-color: transparent; margin-bottom: -72px; box-shadow: 0 18px 40px -18px rgba(6, 52, 61, 0.55); }
.slip__head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px dashed var(--line); }
.slip__head h2 { font-size: 1.375rem; color: var(--teal-deep); }
.slip__head p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.slip__head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slip__done { text-align: center; padding: 28px 8px 12px; }
.slip__done .icon { margin: 0 auto 12px; color: var(--ok); }
.slip__done p { margin-top: 8px; color: var(--muted); }
.slip__done strong { color: var(--ink); font-family: var(--font-display); }
.slip.is-done > :not(.slip__done):not(.slip__head) { display: none; }
.slip__loading, .slip__foot { color: var(--muted); font-size: 0.9375rem; }
.slip__foot { margin-top: 12px; }

.chips legend { font-weight: 600; font-size: 0.9375rem; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips legend { float: left; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.chip input:hover + span { border-color: var(--teal); }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Biểu mẫu */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea, .stepper input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--white); border: 1.5px solid #b9cdd2; border-radius: var(--r-sm);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #7a929a; }
.field input:focus, .field select:focus, .field textarea:focus, .stepper input:focus { border-color: var(--teal); outline: 3px solid rgba(12, 112, 129, 0.2); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error, .form-error { color: var(--red-deep); font-size: 0.875rem; font-weight: 500; }
.form-error { margin-bottom: 12px; padding: 10px 12px; background: #fdecec; border-radius: var(--r-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Khối nội dung */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--shelf { padding-top: clamp(104px, 11vw, 148px); }
.section--mist { background: var(--mist); }
.section--teal { background: var(--teal-deep); color: var(--white); }
.section--flush { padding-bottom: 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.section__head p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.section__head .link { flex: none; }

.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.shelf__item {
  display: grid; justify-items: start; gap: 2px; height: 100%; padding: 16px 16px 18px;
  background: var(--mist); border: 1.5px solid transparent; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; transition: border-color 0.16s ease, background-color 0.16s ease;
}
.shelf__item:hover { border-color: var(--teal); background: var(--white); color: var(--ink); }
.shelf__item .art { width: 84px; height: 84px; margin-bottom: 10px; }
.shelf__name { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.shelf__count { color: var(--muted); font-size: 0.875rem; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.16s ease; }
.card:hover { border-color: var(--teal); }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--art-bg, var(--mist)); }
.card__media .art { width: 62%; height: 82%; }
.card__media img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.card__media.has-photo { aspect-ratio: 1; background: var(--white); border-bottom: 1px solid var(--line); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card__sku { color: var(--muted); font-size: 0.8125rem; }
.card__name { margin-top: 4px; font-size: 1rem; line-height: 1.35; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a:hover { color: var(--teal); text-decoration: underline; }
.card__facts { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: auto; padding-top: 16px; }
.card__facts dt { color: var(--muted); font-size: 0.75rem; }
.card__facts dd { font-weight: 600; font-size: 0.9375rem; }
.card__facts .price { color: var(--red); font-family: var(--font-display); font-size: 1.125rem; }
.card__add { margin-top: 14px; }

/* Quy trình */
.steps-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps-intro p { margin: 14px 0 24px; color: var(--muted); }
.steps { counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 22px 68px; background: var(--white); border-radius: var(--r-md); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px;
  display: grid; place-items: center; background: var(--red); color: var(--white);
  border-radius: 50%; font-family: var(--font-display); font-weight: 700;
}
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.steps--plain { grid-template-columns: repeat(3, 1fr); }
.steps--plain li { background: var(--mist); }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.callout p { margin-top: 8px; color: #d6e8ec; }
.callout__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trang con */
.page { padding-block: 24px clamp(48px, 7vw, 88px); }
.page--narrow { max-width: 960px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink); }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin: 20px 0 28px; }
.page__head p { margin-top: 8px; color: var(--muted); max-width: 64ch; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.sort label { font-weight: 600; }
.sort select { min-height: 44px; padding: 8px 12px; border: 1.5px solid #b9cdd2; border-radius: var(--r-sm); background: var(--white); }

.catalog { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: 132px; }
.filters h2 { font-size: 1rem; margin-bottom: 8px; }
.filters a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.filters a:hover { background: var(--mist); }
.filters a.is-current { background: var(--teal); color: var(--white); font-weight: 600; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; background: var(--mist); border-radius: var(--r-lg); }
.empty .art { width: 120px; height: 120px; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty__actions, .done__actions, .block__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.block__actions { justify-content: flex-start; margin-top: 24px; }
.empty--slip { background: transparent; padding: 24px 0 8px; }
.empty--page { padding-block: 72px; }

/* Chi tiết sản phẩm */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 20px; align-items: start; }
.pdp__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--art-bg, var(--mist)); border-radius: var(--r-lg); overflow: hidden; }
.pdp__media .art { width: 60%; height: 60%; }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.pdp__note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 0.8125rem; }
.pdp__info h1 { margin-top: 6px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.pdp__summary { margin-top: 14px; color: var(--muted); max-width: 58ch; }
.pricebox { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center; margin-top: 24px; padding: 18px 20px; background: var(--mist); border-radius: var(--r-md); }
.pricebox__label { color: var(--muted); font-size: 0.8125rem; }
.pricebox__price { color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1.2; }
.pricebox__si { padding-left: 28px; border-left: 2px dashed #b9cdd2; }
.pricebox__si p:last-child { font-weight: 600; color: var(--teal-deep); }
.pack { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.pack div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pack dt { color: var(--muted); font-size: 0.8125rem; }
.pack dd { font-weight: 600; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: end; margin-top: 24px; }
.buy > a, .buy__alt { grid-column: 1 / -1; }
.buy__alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

.pdp__gallery { display: grid; gap: 12px; min-width: 0; }
.pdp__media:has(img) { aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.thumbs__btn { display: block; width: 100%; aspect-ratio: 1; padding: 0; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; }
.thumbs__btn img { width: 100%; height: 100%; object-fit: contain; }
.thumbs__btn:hover { border-color: var(--teal); }
.thumbs__btn.is-current { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.variants { margin: 20px 0 0; padding: 0; border: 0; }
.variants legend { padding: 0; font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; }
.variants__list { display: flex; flex-wrap: wrap; gap: 8px; }
.variants__opt { position: relative; }
.variants__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variants__opt span { display: inline-grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0 14px; border: 1.5px solid #b9cdd2; border-radius: var(--r-sm); font-weight: 600; color: var(--teal-deep); background: var(--white); }
.variants__opt input:checked + span { border-color: var(--red); color: var(--red); background: #fdf1f1; }
.variants__opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.qty label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.qty__hint { grid-column: 1 / -1; margin-top: -6px; color: var(--muted); font-size: 0.875rem; min-height: 1.4em; }
.stepper { display: inline-grid; grid-template-columns: 48px 84px 48px; }
.stepper button { height: 52px; display: grid; place-items: center; background: var(--mist); border: 1.5px solid #b9cdd2; color: var(--teal-deep); }
.stepper button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 0; }
.stepper button:hover { background: var(--mist-2); }
.stepper input { min-height: 52px; border-radius: 0; text-align: center; font-weight: 600; padding-inline: 4px; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.stepper--sm { grid-template-columns: 40px 64px 40px; }
.stepper--sm button, .stepper--sm input { height: 44px; min-height: 44px; }
.assure { display: grid; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 0.9375rem; }
.assure li { display: flex; gap: 8px; align-items: flex-start; }
.assure .icon { color: var(--teal); margin-top: 3px; }
.pdp__detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.pdp__detail h2 { font-size: 1.375rem; margin-bottom: 14px; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 400; padding-right: 16px; }
.specs td { font-weight: 500; }
.prose { display: grid; gap: 10px; max-width: 68ch; }
.prose h3 { font-size: 1.0625rem; margin-top: 10px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 6px; padding-left: 1.2em; margin: 0; list-style: disc; }
.prose li::marker { color: var(--teal); }

/* Trang phiếu báo giá */
.quote { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 28px; align-items: start; }
.slip--list { --behind: var(--mist); }
.quote { padding: clamp(16px, 3vw, 32px); background: var(--mist); border-radius: var(--r-lg); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(18px, 2.4vw, 28px); }
.panel h2 { font-size: 1.25rem; margin-bottom: 18px; }
.panel__hint { margin-top: 14px; color: var(--muted); font-size: 0.875rem; text-align: center; }
.lines > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.line__media { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--art-bg, var(--mist)); overflow: hidden; }
.line__media .art { width: 46px; height: 46px; }
.line__media img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.line__name:hover { text-decoration: underline; }
.line__meta { color: var(--muted); font-size: 0.8125rem; }
.line__remove { color: var(--muted); }
.line__remove:hover { color: var(--red-deep); background: #fdecec; }
.line__controls { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.line__sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.totals { margin-top: 16px; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--muted); }
.totals dd { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.done { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--white); border-radius: var(--r-md); }
.done .icon { margin: 0 auto 14px; color: var(--ok); }
.done p { margin-top: 10px; color: var(--muted); }
.done strong { color: var(--ink); font-family: var(--font-display); font-size: 1.125rem; }
.done__actions { margin-top: 24px; }

/* Chính sách, giới thiệu, liên hệ */
.block { margin-top: clamp(32px, 5vw, 56px); }
.block > h2 { margin-bottom: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.tiers { width: 100%; min-width: 560px; border-collapse: collapse; }
.tiers th, .tiers td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tiers thead th { background: var(--teal-deep); color: var(--white); font-weight: 600; font-size: 0.9375rem; }
.tiers tbody th { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); }
.tiers tbody tr:last-child > * { border-bottom: 0; }
.tiers + .muted, .table-scroll + .muted { margin-top: 10px; font-size: 0.9375rem; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.policy-grid > div { padding: 22px; background: var(--mist); border-radius: var(--r-md); }
.policy-grid .icon { color: var(--red); margin-bottom: 12px; }
.policy-grid h2 { font-size: 1.125rem; }
.policy-grid p { margin-top: 6px; color: var(--muted); }
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.about__logo { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact__list { display: grid; gap: 4px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list .icon { color: var(--red); margin-top: 2px; }
.contact__list h2 { font-size: 0.875rem; font-family: var(--font-body); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.contact__list a, .contact__list p { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
.contact__list a:hover { color: var(--teal); text-decoration: underline; }

/* Chân trang */
.footer { background: var(--teal-night); color: #c9dde1; padding-top: clamp(40px, 6vw, 64px); font-size: 0.9375rem; }
.footer a { color: #e6f2f4; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.3fr 0.9fr 1.1fr; gap: 32px 40px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; }
.lockup--footer img { height: 38px; }
.footer__title { font-size: 1rem; color: var(--white); margin-bottom: 12px; }
.footer__list { display: grid; gap: 8px; }
.footer__list--two { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 3px; color: #8fc0c9; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 40px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8125rem; color: #9fbcc2; }

/* Thanh liên hệ nhanh (di động) */
.dock { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: var(--r-md);
  font-size: 0.9375rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.2s ease;
}
.toast a { color: var(--amber); font-weight: 600; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Màn hình vừa */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header__zalo { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar__meta span { display: none; }
  .header__menu { display: inline-grid; margin-left: -10px; }
  .header__row { flex-wrap: wrap; gap: 8px 10px; padding-block: 8px 10px; }
  .brand { margin-right: auto; }
  .brand img { width: 44px; }
  .brand__line { font-size: 0.6875rem; }
  .brand__name { font-size: 1.0625rem; }
  .search { order: 3; flex: 0 0 100%; max-width: none; }
  .slip-link__label { display: none; }
  .slip-link { padding-inline: 12px; }
  .catnav { display: none; }

  .hero__grid { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .hero__copy { padding-bottom: 32px; }
  .slip--hero { margin-bottom: -56px; }
  .section--shelf { padding-top: 104px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelf__item { grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; padding: 12px; }
  .shelf__item .art { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
  .shelf__name { align-self: end; font-size: 0.9375rem; }
  .shelf__count { align-self: start; font-size: 0.8125rem; }

  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 12px; }
  .card__name { font-size: 0.9375rem; }
  .card__facts { grid-template-columns: 1fr; gap: 6px; }
  .card__add { padding-inline: 6px; font-size: 0.8125rem; white-space: normal; text-align: center; }
  .card__add .icon { display: none; }
  .header { position: static; }

  .section__head { flex-direction: column; align-items: flex-start; }
  .steps, .steps--plain { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .filters { position: static; min-width: 0; }
  .filters h2 { display: none; }
  .filters ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filters ul::-webkit-scrollbar { display: none; }
  .filters a { white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .filters a.is-current { border-color: var(--teal); }

  .pdp, .pdp__detail, .quote, .contact, .about { grid-template-columns: 1fr; }
  .about__logo { max-width: 220px; }
  .pricebox { grid-template-columns: 1fr; gap: 12px; }
  .pricebox__si { padding: 12px 0 0; border-left: 0; border-top: 2px dashed #b9cdd2; }
  .buy { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .callout__actions .btn { flex: 1 1 100%; }

  body { padding-bottom: 64px; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr;
    background: var(--white); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; color: var(--teal-deep); text-decoration: none; font-weight: 600; font-size: 0.875rem; }
  .dock a + a { border-left: 1px solid var(--line); }
  .dock__slip { background: var(--red); color: var(--white) !important; }
  .toast { bottom: 76px; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .pack { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .topbar__claim { font-size: 0.75rem; }
  .topbar__meta a strong { white-space: nowrap; }
  .lines > li { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .line__media { width: 52px; height: 52px; }
  .line__controls { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .header, .footer, .dock, .demo-bar, .toast { display: none !important; }
}
