/* Pandolux LLC — site.css
   Hướng thẩm mỹ: 1a Pantry (Bitter + Karla, nền kem ấm).
   Token trích nguyên văn từ design/screens/2u.html (spec sheet).
   Fonts nạp bằng <link> Google Fonts trong từng trang — không nhúng woff2. */

/* ============================================================
   1 · TOKENS  (2u.html)
   ============================================================ */
:root {
  /* --- Màu: 11 token trong bảng "Màu" của 2u --- */
  --paper:            oklch(0.973 0.012 78);
  --surface:          #ffffff;
  --wash:             oklch(0.94 0.018 78);
  --ink:              oklch(0.26 0.014 62);
  --ink-muted:        oklch(0.55 0.014 62);
  --bark:             oklch(0.30 0.030 45);
  --terracotta:       oklch(0.58 0.115 42);
  --ok:               oklch(0.42 0.09 150);
  --error:            oklch(0.52 0.15 25);
  --star:             oklch(0.62 0.12 68);
  --line:             oklch(0.88 0.016 78);
  --line-soft:        oklch(0.92 0.016 78);
  --line-softer:      oklch(0.95 0.016 78);

  /* --- Biến thể của cùng bộ màu, lấy từ inline style 1a / 2a / 2e / 2f / 2t --- */
  --bark-hover:       oklch(0.24 0.028 45);   /* 2t: hover tối thêm 6% */
  --bark-deep:        oklch(0.26 0.028 45);   /* 1a: dải © chân trang */
  --bark-on:          oklch(0.96 0.010 78);   /* 1a: chữ trên nền bark */
  --bark-on-soft:     oklch(0.93 0.012 78);
  --ink-body:         oklch(0.34 0.014 62);
  --ink-2:            oklch(0.36 0.014 62);
  --ink-3:            oklch(0.40 0.014 62);
  --ink-4:            oklch(0.45 0.014 62);
  --ink-5:            oklch(0.48 0.014 62);
  --ink-6:            oklch(0.50 0.014 62);
  --ink-7:            oklch(0.52 0.014 62);
  --ink-8:            oklch(0.60 0.014 62);
  --ink-9:            oklch(0.62 0.010 62);   /* 2f: giá khi hết hàng */
  --tint:             oklch(0.965 0.012 78);  /* nền khối phụ, hàng dropdown đang chọn */
  --tint-2:           oklch(0.955 0.014 78);
  --tint-3:           oklch(0.968 0.012 78);
  --field-border:     oklch(0.80 0.018 78);
  --field-border-hi:  oklch(0.78 0.018 78);
  --search-border:    oklch(0.82 0.018 78);
  --chip-border:      oklch(0.84 0.018 78);
  --box-border:       oklch(0.86 0.016 78);
  --card-border:      oklch(0.89 0.016 78);
  --card-border-hover:oklch(0.80 0.018 78);   /* 2t: thẻ hover viền đậm lên */
  --line-90:          oklch(0.90 0.016 78);
  --line-93:          oklch(0.93 0.016 78);
  --line-96:          oklch(0.96 0.016 78);
  --checkbox-border:  oklch(0.68 0.02 62);
  --radio-border:     oklch(0.72 0.018 78);
  --disabled-bg:      oklch(0.88 0.014 78);
  --sale-price:       oklch(0.48 0.13 40);
  --sale-amount:      oklch(0.52 0.13 40);
  --star-empty:       oklch(0.84 0.02 68);
  --error-text:       oklch(0.48 0.15 25);
  --error-bg:         oklch(0.98 0.012 25);
  --ok-strong:        oklch(0.38 0.09 150);
  --ok-bg:            oklch(0.955 0.03 150);
  --ok-border:        oklch(0.85 0.05 150);
  --ok-track:         oklch(0.90 0.02 150);
  --ok-fill:          oklch(0.50 0.09 150);
  --ok-note:          oklch(0.42 0.05 150);
  --img-bg:           oklch(0.945 0.010 78); /* 2u: ảnh lỗi/chưa tải giữ ô, nền này */
  --skeleton:         oklch(0.93 0.010 78);
  --skeleton-line:    oklch(0.91 0.014 78);
  --mark:             oklch(0.90 0.09 90);   /* 2g: tô vàng phần khớp tìm kiếm */
  --overlay:          rgba(0, 0, 0, .35);
  --note:             rgba(0, 0, 0, .45);

  /* --- Chữ --- */
  --font-display: Bitter, Georgia, "Times New Roman", serif;
  --font-ui:      Karla, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, Menlo, Consolas, monospace;

  --fs-hero:      49px;   --lh-hero: 1.1;
  --fs-h1:        30px;   /* 30–36 */
  --fs-h1-lg:     34px;
  --fs-pdp-title: 26px;   --lh-pdp-title: 1.35;
  --fs-h2:        21px;   /* 21–26 */
  --fs-h2-lg:     26px;
  --fs-h3:        19px;
  --fs-price:     17px;   /* 17–34 */
  --fs-price-lg:  30px;
  --fs-price-xl:  34px;
  --fs-body:      14.5px; --lh-body: 1.75;   --measure: 66ch;
  --fs-ui:        13.5px; /* 13–13.5 */
  --fs-ui-sm:     13px;
  --fs-card:      13px;   --lh-card: 1.45;   --h-card-title: 38px;
  --fs-eyebrow:   10.5px; --ls-eyebrow: .09em;
  --fs-note:      12.5px;
  --fs-micro:     11.5px;
  --fs-min:       10.5px; /* 2u: không dùng cỡ nào dưới 10.5px */

  /* --- Khoảng cách: thang 4 · 8 · 12 · 16 · 20 · 26 · 32 · 40 · 48 --- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 26px; --s7: 32px; --s8: 40px; --s9: 48px;

  /* --- Khung --- */
  --gutter:        40px;   /* 24px < 900 · 16px < 520 */
  --maxw:          1280px;
  --w-filters:     252px;
  --w-summary:     360px;
  --grid-cols:     4;
  --grid-gap:      20px;
  --radius:        2px;    /* nút + ô nhập; thẻ và khối = 0 */
  --radius-card:   0;
  --radius-pill:   999px;
  --bw:            1px;
  --bw-strong:     1.5px;  /* lỗi + ô đang chọn */
  --sticky-top:    20px;

  /* --- Bóng: chỉ header dính, toast, dropdown (+ hover thẻ, buybar mobile) --- */
  --sh-header:  0 2px 10px rgba(0, 0, 0, .07);
  --sh-toast:   0 6px 20px rgba(0, 0, 0, .10);
  --sh-drop:    0 8px 22px rgba(0, 0, 0, .10);
  --sh-card:    0 3px 12px rgba(0, 0, 0, .07);
  --sh-buybar:  0 -3px 14px rgba(0, 0, 0, .08);

  /* --- Dữ liệu (2u) --- */
  --free-ship-threshold: 49;
}

/* ============================================================
   2 · NỀN TẢNG
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.pdx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pdx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bark); color: #fff; padding: 12px 20px; font-weight: 700;
}
.pdx-skip:focus { left: 0; }

.pdx-wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.pdx-wrap--flush { padding-inline: 0; }
.pdx-measure { max-width: var(--measure); }

/* ============================================================
   3 · CHỮ
   ============================================================ */
.pdx-hero-title { font: 400 var(--fs-hero)/var(--lh-hero) var(--font-display); letter-spacing: -.02em; margin: 0 0 18px; max-width: 15ch; text-wrap: pretty; }
.pdx-h1        { font: 500 var(--fs-h1)/1 var(--font-display); letter-spacing: -.018em; margin: 0 0 var(--s2); }
.pdx-h1--lg    { font-size: var(--fs-h1-lg); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.pdx-pdp-title { font: 400 var(--fs-pdp-title)/var(--lh-pdp-title) var(--font-display); letter-spacing: -.005em; margin: 0 0 14px; text-wrap: pretty; }
.pdx-h2        { font: 500 var(--fs-h2)/1.3 var(--font-display); margin: 0 0 10px; }
.pdx-h2--lg    { font-size: var(--fs-h2-lg); line-height: 1; letter-spacing: -.01em; }
.pdx-h3        { font: 500 var(--fs-h3)/1.3 var(--font-display); margin: 0 0 10px; }
.pdx-body      { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-body); max-width: var(--measure); margin: 0 0 18px; }
.pdx-lead      { font-size: 15.5px; line-height: 1.62; color: var(--ink-3); max-width: 52ch; margin: 0 0 var(--s6); }
.pdx-eyebrow   { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-8); }
.pdx-kicker    { font: 600 11px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pdx-kicker--rule { padding-bottom: 10px; border-bottom: var(--bw) solid var(--line-90); margin-bottom: 14px; }
.pdx-label     { font: 600 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pdx-muted     { color: var(--ink-7); }
.pdx-note      { font-size: var(--fs-note); color: var(--ink-4); }
.pdx-link      { font-weight: 600; color: var(--terracotta); }
.pdx-link:hover{ text-decoration: underline; }
.pdx-clamp2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.pdx-clamp3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  line-clamp: 3; overflow: hidden;
}
mark, .pdx-mark { background: var(--mark); color: inherit; }

/* ============================================================
   4 · NÚT · Ô NHẬP  (2t §3)
   ============================================================ */
.pdx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 14px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; text-align: center;
  min-height: 44px; cursor: pointer; transition: background .12s ease, border-color .12s ease;
}
.pdx-btn--primary   { background: var(--bark); color: #fff; }
.pdx-btn--primary:hover { background: var(--bark-hover); }
.pdx-btn--secondary { border: var(--bw) solid var(--bark); font-weight: 600; background: var(--surface); }
.pdx-btn--secondary:hover { background: oklch(0.945 0.014 78); }
.pdx-btn--ghost     { color: var(--terracotta); font-weight: 600; padding: 8px 0; min-height: 0; }
.pdx-btn--block     { display: flex; width: 100%; }
.pdx-btn--lg        { padding: 16px 28px; font-size: 15px; }
.pdx-btn--sm        { padding: 9px 14px; font-size: var(--fs-note); font-weight: 600; min-height: 0; }
.pdx-btn[disabled], .pdx-btn--disabled {
  background: var(--disabled-bg); color: var(--ink-muted);
  border-color: transparent; cursor: not-allowed;
}
.pdx-btn--secondary[disabled] { background: var(--disabled-bg); }

.pdx-field { display: block; margin-bottom: var(--s4); }
.pdx-field__label { display: block; font-size: var(--fs-note); font-weight: 600; margin-bottom: 6px; }
.pdx-field__req  { color: var(--error); }
.pdx-field__opt  { font-weight: 400; color: oklch(0.58 0.014 62); }
.pdx-input, .pdx-select, .pdx-textarea {
  width: 100%; background: var(--surface);
  border: var(--bw) solid var(--field-border); border-radius: var(--radius);
  padding: 11px 13px; font-size: var(--fs-ui); min-height: 44px;
}
.pdx-textarea { min-height: 76px; resize: vertical; }
.pdx-input::placeholder, .pdx-textarea::placeholder { color: oklch(0.60 0.014 62); }
.pdx-field__hint { font-size: var(--fs-micro); color: var(--ink-7); margin-top: 6px; }
.pdx-field__error { display: none; font-size: var(--fs-micro); color: var(--error-text); margin-top: 6px; font-weight: 600; }
.pdx-field.is-error .pdx-input,
.pdx-field.is-error .pdx-select,
.pdx-field.is-error .pdx-textarea {
  border: var(--bw-strong) solid var(--error); background: var(--error-bg); padding: 10.5px 12.5px;
}
.pdx-field.is-error .pdx-field__error { display: block; }
.pdx-field.is-error .pdx-field__hint  { display: none; }
.pdx-form-status { font-size: var(--fs-note); color: var(--error-text); font-weight: 600; }

.pdx-check, .pdx-radio-row { display: flex; align-items: center; gap: 9px; font-size: var(--fs-ui-sm); cursor: pointer; min-height: 24px; }
.pdx-check input, .pdx-radio-row input { accent-color: var(--bark); width: 15px; height: 15px; flex: none; margin: 0; }
.pdx-check__count { margin-left: auto; opacity: .45; font-size: 12px; }
.pdx-check input:checked ~ .pdx-check__text { font-weight: 600; }

/* ============================================================
   5 · KHUNG ẢNH GIỮ TỈ LỆ (2d · 2u "ảnh lỗi → giữ ô 1:1")
   ============================================================ */
.pdx-frame {
  position: relative; aspect-ratio: 1 / 1; background: var(--img-bg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.pdx-frame--4x3  { aspect-ratio: 4 / 3; }
.pdx-frame--16x10{ aspect-ratio: 16 / 10; }
.pdx-frame img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.pdx-frame__label {
  font: 400 11px/1.5 var(--font-mono); color: var(--ink-8);
  text-align: center; padding: var(--s3); letter-spacing: .02em;
}
.pdx-skel      { background: var(--skeleton); }
.pdx-skel-line { height: 11px; background: var(--skeleton); margin-bottom: 6px; }

/* ============================================================
   6 · HEADER DÍNH · NAV · TÌM KIẾM · NGĂN KÉO  (2t §1–2, 1a, 2g)
   ============================================================ */
.pdx-promo {
  background: var(--bark); color: var(--bark-on);
  padding: var(--s2) var(--gutter); font-size: 12px; letter-spacing: .02em;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
}
.pdx-promo__aside { opacity: .7; }

/* Header dính: `fixed` + thẻ đệm do JS chèn (.pdx-header-spacer) giữ chỗ trong luồng.
   Thẻ đệm cao bằng header lúc CHƯA thu gọn và không đổi, nên lúc header co lại 100px→54px
   (2t) nội dung bên dưới không xê dịch một pixel nào. */
.pdx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--paper); border-bottom: var(--bw) solid var(--line);
}
.pdx-header-spacer { flex: none; }
.pdx-header.is-stuck { box-shadow: var(--sh-header); }
.pdx-header.is-stuck .pdx-promo,
.pdx-header.is-stuck .pdx-deptbar { display: none; }
.pdx-header.is-stuck .pdx-header__bar { padding-block: 11px; }

.pdx-header__bar {
  display: flex; align-items: center; gap: var(--s7);
  padding: 18px var(--gutter);
}
.pdx-logo { font: 700 25px/1 var(--font-display); letter-spacing: -.015em; white-space: nowrap; }
.pdx-logo small { font-weight: 400; font-size: 15px; opacity: .55; }

.pdx-search { flex: 1; max-width: 440px; position: relative; }
.pdx-search__box {
  display: flex; align-items: center; gap: 10px;
  border: var(--bw) solid var(--search-border); background: var(--surface);
  border-radius: var(--radius); padding: 10px 14px;
}
.pdx-search__box:focus-within { border: var(--bw-strong) solid var(--bark); padding: 9.5px 13.5px; }
.pdx-search__icon { width: 13px; height: 13px; border: var(--bw-strong) solid oklch(0.55 0.02 62); border-radius: 50%; flex: none; }
.pdx-search__input { flex: 1; border: 0; background: none; font-size: var(--fs-ui); min-height: 24px; padding: 0; }
.pdx-search__input:focus { outline: none; }
.pdx-search__clear { color: var(--ink-muted); font-size: var(--fs-ui-sm); padding: 4px; }
.pdx-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 2;
  background: var(--surface); border: var(--bw) solid var(--box-border); box-shadow: var(--sh-drop);
}
.pdx-suggest[hidden] { display: none; }
.pdx-suggest__head { padding: 9px 14px; font: 600 var(--fs-min)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: oklch(0.58 0.014 62); border-bottom: var(--bw) solid oklch(0.94 0.016 78); }
.pdx-suggest__item { display: block; width: 100%; text-align: left; padding: 9px 14px; font-size: var(--fs-ui-sm); }
.pdx-suggest__item:hover, .pdx-suggest__item.is-active { background: var(--tint); font-weight: 600; }
.pdx-suggest__count { font-weight: 400; color: var(--ink-muted); }
.pdx-suggest__all { border-top: var(--bw) solid oklch(0.94 0.016 78); color: var(--terracotta); font-weight: 600; }

.pdx-nav { display: flex; gap: var(--s6); font-size: var(--fs-ui); font-weight: 500; margin-left: auto; align-items: center; }
.pdx-nav a:hover { color: var(--terracotta); }
.pdx-cart-link { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.pdx-cart-badge {
  background: var(--terracotta); color: #fff; border-radius: var(--radius-pill);
  min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.pdx-cart-badge[hidden] { display: none; }

.pdx-deptbar {
  display: flex; gap: var(--s4); flex-wrap: wrap;
  padding: 14px var(--gutter); font-size: var(--fs-ui-sm); font-weight: 500;
  border-top: var(--bw) solid var(--line-90);
}
.pdx-deptbar__sep { opacity: .25; }
.pdx-deptbar a.is-current { font-weight: 700; border-bottom: 2px solid var(--terracotta); padding-bottom: 2px; }

.pdx-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 19px; }
.pdx-back   { font-size: 17px; color: oklch(0.35 0.02 62); width: 24px; }

.pdx-scrim {
  position: fixed; inset: 0; background: var(--overlay); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.pdx-scrim.is-open { opacity: 1; pointer-events: auto; }
.pdx-drawer {
  position: fixed; inset-block: 0; left: 0; width: 300px; max-width: 86vw; z-index: 51;
  background: var(--surface); border-right: var(--bw) solid var(--line);
  transform: translateX(-100%); transition: transform 220ms ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.pdx-drawer.is-open { transform: none; }
.pdx-drawer__head {
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: var(--bw) solid var(--line-soft);
}
.pdx-drawer__title { font: 700 17px/1 var(--font-display); }
.pdx-drawer__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: flex-end; font-size: 18px; color: var(--ink-muted); }
.pdx-drawer__item {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 14px 18px; min-height: 48px;
  border-bottom: var(--bw) solid var(--line-softer); font-size: 14px; font-weight: 500;
}
.pdx-drawer__count { color: oklch(0.58 0.014 62); font-size: var(--fs-note); }
.pdx-drawer__item--strong { font-weight: 600; }
.pdx-drawer__item--meta { color: var(--ink-6); font-weight: 400; border-bottom: 0; }

/* ============================================================
   7 · THẺ SẢN PHẨM · LƯỚI  (1a, 2a, 2d)
   ============================================================ */
.pdx-grid {
  display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  gap: var(--grid-gap);
}
.pdx-grid--3 { --grid-cols: 3; gap: 18px; }
.pdx-grid--2 { --grid-cols: 2; }

.pdx-card {
  position: relative; background: var(--surface); border: var(--bw) solid var(--card-border);
  border-radius: var(--radius-card); display: flex; flex-direction: column;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.pdx-card:hover { border-color: var(--card-border-hover); box-shadow: var(--sh-card); }
.pdx-card[hidden] { display: none; }
.pdx-card__media { border-bottom: var(--bw) solid var(--line-soft); }
.pdx-card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--terracotta); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; letter-spacing: .05em;
}
.pdx-card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.pdx-card__brand { font-size: var(--fs-min); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-8); margin-bottom: 6px; }
.pdx-card__name {
  font-size: var(--fs-card); line-height: var(--lh-card); height: var(--h-card-title);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; text-wrap: pretty;
}
.pdx-card__price { margin-top: 10px; display: flex; align-items: baseline; gap: var(--s2); }
.pdx-card__cta { margin-top: 12px; }
.pdx-card__cta .pdx-btn { width: 100%; padding: 8px; font-size: 12px; font-weight: 600; min-height: 38px; }

.pdx-price     { font: 600 var(--fs-price)/1 var(--font-display); }
.pdx-price--lg { font-size: var(--fs-price-lg); letter-spacing: -.02em; }
.pdx-price--xl { font-size: var(--fs-price-xl); letter-spacing: -.02em; }
.pdx-price--sale { color: var(--sale-price); }
.pdx-price--out  { color: var(--ink-9); }
.pdx-price__was { font-size: 12px; color: var(--ink-8); text-decoration: line-through; }
.pdx-badge-save {
  background: var(--terracotta); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; letter-spacing: .04em;
}

.pdx-rating { margin-top: 7px; font-size: var(--fs-micro); color: var(--ink-7); }
.pdx-stars      { color: var(--star); letter-spacing: .06em; }
.pdx-stars__off { color: var(--star-empty); }
.pdx-rating__count { opacity: .7; }

.pdx-scroller {
  display: flex; gap: var(--s3); overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdx-scroller::-webkit-scrollbar { display: none; }
.pdx-scroller > * { scroll-snap-align: start; flex: none; }

/* ============================================================
   8 · CỘT LỌC · PANEL LỌC MOBILE · CHIP  (2a, 3c, 3d, 2c)
   ============================================================ */
.pdx-catalog { display: flex; align-items: stretch; }
.pdx-catalog__aside { width: var(--w-filters); flex: none; border-right: var(--bw) solid var(--line-90); padding: 24px 22px var(--s8); }
.pdx-catalog__main  { flex: 1; min-width: 0; padding: 24px var(--gutter) var(--s8); }

.pdx-filters__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.pdx-filters__title { font: 600 var(--fs-ui-sm)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.pdx-filter-group { border-top: var(--bw) solid var(--line-90); padding: var(--s4) 0; }
.pdx-filter-group__title { font: 600 var(--fs-ui)/1 var(--font-ui); margin-bottom: var(--s3); }
.pdx-filter-group__list { display: flex; flex-direction: column; gap: 9px; }
.pdx-price-range { display: flex; align-items: center; gap: var(--s2); margin-top: 14px; }
.pdx-price-range .pdx-input { padding: 8px 10px; font-size: var(--fs-note); min-height: 36px; }
.pdx-price-range__sep { opacity: .4; font-size: 12px; }

.pdx-filterbar { display: none; gap: 10px; padding: var(--s3) 0; }
.pdx-filterbar .pdx-btn { flex: 1; }

.pdx-chips { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: 14px 0 18px; }
.pdx-chips__label { font-size: 12px; color: var(--ink-muted); margin-right: 2px; }
.pdx-chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--surface); border: var(--bw) solid var(--chip-border);
  border-radius: var(--radius-pill); padding: 5px 11px;
  font-size: var(--fs-note); font-weight: 500; min-height: 30px;
}
.pdx-chip__x { opacity: .5; font-size: var(--fs-ui-sm); }
.pdx-chip:hover .pdx-chip__x { opacity: 1; }
.pdx-chip--soft { background: var(--wash); border-color: var(--box-border); font-weight: 600; padding: 7px 13px; }

.pdx-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding-bottom: 14px; border-bottom: var(--bw) solid var(--line-90);
}
.pdx-toolbar__count { font-size: var(--fs-ui-sm); color: var(--ink-5); }
.pdx-toolbar__count strong { color: var(--ink); }
.pdx-sort { display: flex; align-items: center; gap: 10px; font-size: var(--fs-ui-sm); }
.pdx-sort__label { color: var(--ink-muted); }
.pdx-sort select {
  border: var(--bw) solid var(--search-border); background: var(--surface);
  padding: 8px 12px; font-weight: 600; border-radius: var(--radius); min-height: 38px;
}

.pdx-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--surface);
  display: none; flex-direction: column;
}
.pdx-panel.is-open { display: flex; }
.pdx-panel__head { padding: 14px var(--s4); display: flex; align-items: center; justify-content: space-between; border-bottom: var(--bw) solid oklch(0.91 0.016 78); }
.pdx-panel__title { font: 700 18px/1 var(--font-display); }
.pdx-panel__body { padding: var(--s4); flex: 1; overflow-y: auto; }
.pdx-panel__foot {
  position: sticky; bottom: 0; background: var(--surface);
  padding: 14px var(--s4); border-top: var(--bw) solid oklch(0.91 0.016 78);
  display: flex; gap: 10px;
}
.pdx-panel__foot .pdx-btn { flex: 1; }
.pdx-panel__foot .pdx-btn--primary { flex: 1.4; }
.pdx-panel .pdx-check { min-height: 44px; font-size: 14px; gap: 11px; }

/* ============================================================
   9 · PHÂN TRANG · BREADCRUMB
   ============================================================ */
.pdx-breadcrumb { font-size: 12px; color: var(--ink-muted); margin-bottom: var(--s3); }
.pdx-breadcrumb__sep { opacity: .4; margin: 0 4px; }
.pdx-breadcrumb__current { font-weight: 600; color: var(--ink); }

.pdx-pager {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin-top: 22px; padding-top: 18px; border-top: var(--bw) solid var(--line-90);
}
.pdx-pager__note { font-size: var(--fs-ui-sm); color: var(--ink-muted); }
.pdx-pager__list { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-size: var(--fs-ui-sm); }
.pdx-pager__item {
  border: var(--bw) solid oklch(0.85 0.018 78); background: var(--surface);
  padding: 8px 14px; border-radius: var(--radius); min-height: 38px;
  display: inline-flex; align-items: center;
}
.pdx-pager__item.is-current { background: var(--bark); color: #fff; font-weight: 700; border-color: var(--bark); }
.pdx-pager__item.is-disabled { border-color: var(--line); color: oklch(0.65 0.014 62); pointer-events: none; }

/* ============================================================
   10 · PDP: GALLERY · KHỐI MUA · ACCORDION · THÔNG SỐ · SAO  (2e, 2f, 3e)
   ============================================================ */
.pdx-pdp { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 44px; }
.pdx-pdp--lower { align-items: start; }

.pdx-gallery { display: flex; gap: 14px; }
.pdx-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; flex: none; }
.pdx-gallery__thumb {
  width: 76px; height: 76px; border: var(--bw) solid var(--line); padding: 0;
  background: var(--img-bg); cursor: pointer;
}
.pdx-gallery__thumb.is-active { border: 2px solid var(--bark); }
.pdx-gallery__stage { flex: 1; min-width: 0; }
.pdx-gallery__main { border: var(--bw) solid var(--line); }
.pdx-gallery__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; font-size: 12px; color: var(--ink-muted);
}
.pdx-dots { display: flex; gap: 6px; }
.pdx-dots span { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.85 0.016 78); display: block; }
.pdx-dots span.is-active { background: var(--bark); }
.pdx-gallery__track { display: none; }

.pdx-buybox { background: var(--surface); border: var(--bw) solid var(--card-border); padding: 22px 24px 24px; }
.pdx-buy-row { display: flex; align-items: center; gap: var(--s3); margin-top: 18px; }
.pdx-qty {
  display: flex; align-items: center; border: var(--bw) solid var(--field-border-hi);
  border-radius: var(--radius); background: var(--surface); flex: none;
}
.pdx-qty__btn { padding: 13px 16px; font-size: 16px; color: var(--ink-6); min-height: 44px; }
.pdx-qty__btn:hover { color: var(--ink); }
.pdx-qty__input {
  width: 46px; text-align: center; border: 0; background: none;
  font-size: 15px; font-weight: 700; padding: 13px 0; -moz-appearance: textfield;
}
.pdx-qty__input::-webkit-outer-spin-button,
.pdx-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdx-qty--sm .pdx-qty__btn { padding: 9px 12px; min-height: 38px; font-size: 14px; }
.pdx-qty--sm .pdx-qty__input { width: 34px; padding: 9px 0; font-size: 14px; }

.pdx-stock      { font-size: var(--fs-ui); color: var(--ok); font-weight: 600; }
.pdx-stock--out { color: oklch(0.50 0.15 25); }
.pdx-buybox.is-out .pdx-buy-row { opacity: .55; }
.pdx-eta { margin-top: 14px; font-size: var(--fs-note); color: var(--ink-4); line-height: 1.55; }
.pdx-eta strong { color: var(--ink); }

.pdx-rule    { padding: 18px 0; border-bottom: var(--bw) solid var(--line-90); }
.pdx-rule--top { border-bottom: 0; border-top: var(--bw) solid var(--line); }

.pdx-highlights { margin: 0; padding-left: 18px; font-size: var(--fs-ui); line-height: 1.62; color: var(--ink-body); }
.pdx-highlights li { margin-bottom: var(--s2); }
.pdx-highlights li:last-child { margin-bottom: 0; }

.pdx-acc { border-top: var(--bw) solid var(--line); }
.pdx-acc:last-of-type { border-bottom: var(--bw) solid var(--line); }
.pdx-acc__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 12px; font: 500 var(--fs-h3)/1 var(--font-display); text-align: left;
  min-height: 48px;
}
.pdx-acc__icon { font-size: 16px; color: var(--ink-muted); font-family: var(--font-ui); }
.pdx-acc__trigger[aria-expanded="false"] + .pdx-acc__panel { display: none; }
.pdx-acc__trigger[aria-expanded="false"] { padding-bottom: 18px; }
.pdx-acc__trigger[aria-expanded="false"] .pdx-acc__icon::before { content: "+"; }
.pdx-acc__trigger[aria-expanded="true"]  .pdx-acc__icon::before { content: "\2212"; }
.pdx-acc__panel { padding-bottom: 14px; }
.pdx-acc__panel p { margin: 0 0 var(--s3); font-size: 14px; line-height: 1.7; color: var(--ink-body); }
.pdx-acc__panel p:last-child { margin-bottom: 0; }

.pdx-specs { font-size: var(--fs-ui); }
.pdx-specs__row { display: flex; padding: 9px 0; border-bottom: var(--bw) solid var(--line-93); }
.pdx-specs__row:last-child { border-bottom: 0; }
.pdx-specs__key { width: 180px; flex: none; color: var(--ink-7); }
.pdx-specs__val { font-weight: 500; }

.pdx-ratings { background: var(--surface); border: var(--bw) solid var(--card-border); padding: 22px 24px 24px; }
.pdx-ratings__top { display: flex; align-items: center; gap: var(--s4); padding-bottom: var(--s4); border-bottom: var(--bw) solid var(--line-93); }
.pdx-ratings__score { font: 600 40px/1 var(--font-display); letter-spacing: -.02em; }
.pdx-hist { padding-top: 14px; display: flex; flex-direction: column; gap: 9px; font-size: var(--fs-note); }
.pdx-hist__row { display: flex; align-items: center; gap: 10px; }
.pdx-hist__label { width: 34px; color: var(--ink-7); flex: none; }
.pdx-hist__track { flex: 1; height: 9px; background: var(--line-93); display: block; }
.pdx-hist__fill  { display: block; height: 9px; background: var(--star); }
.pdx-hist__pct { width: 34px; text-align: right; color: var(--ink-7); flex: none; }

.pdx-aside-note { background: var(--wash); border: var(--bw) solid var(--line); padding: 20px 22px; }

.pdx-buybar {
  position: sticky; bottom: 0; z-index: 30; display: none;
  background: var(--surface); border-top: var(--bw) solid var(--line);
  box-shadow: var(--sh-buybar); padding: 12px var(--s4);
  align-items: center; gap: var(--s3);
}
.pdx-buybar .pdx-btn { flex: 1; }

/* ============================================================
   11 · GIỎ HÀNG · TÓM TẮT ĐƠN · MỐC MIỄN PHÍ SHIP  (2i, 2j)
   ============================================================ */
.pdx-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--w-summary); gap: 34px; align-items: start; }

.pdx-cart-table { background: var(--surface); border: var(--bw) solid var(--card-border); }
.pdx-cart-head {
  display: flex; padding: 14px var(--s5);
  font: 600 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  color: oklch(0.58 0.014 62); border-bottom: var(--bw) solid var(--line-soft);
}
.pdx-cart-head__qty { width: 120px; text-align: center; }
.pdx-cart-head__total { width: 90px; text-align: right; }
.pdx-cart-line {
  display: flex; gap: 18px; padding: var(--s5);
  border-bottom: var(--bw) solid var(--line-93); align-items: flex-start;
}
.pdx-cart-line__media { width: 96px; height: 96px; flex: none; border: var(--bw) solid var(--line-soft); }
.pdx-cart-line__info { flex: 1; min-width: 0; }
.pdx-cart-line__name { font-size: var(--fs-ui); line-height: 1.5; max-width: 52ch; }
.pdx-cart-line__meta { font-size: var(--fs-ui-sm); color: var(--ink-7); margin-top: 7px; }
.pdx-cart-line__actions { display: flex; gap: var(--s4); margin-top: 9px; font-size: var(--fs-note); font-weight: 600; }
.pdx-cart-line__qty { width: 120px; display: flex; justify-content: center; flex: none; }
.pdx-cart-line__total { width: 90px; text-align: right; font: 600 var(--fs-price)/1 var(--font-display); flex: none; }
.pdx-cart-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); }

.pdx-summary { background: var(--surface); border: var(--bw) solid var(--card-border); padding: 22px 24px 24px; }
.pdx-summary--sticky { position: sticky; top: var(--sticky-top); }
.pdx-summary__title { font: 500 20px/1 var(--font-display); margin-bottom: 18px; }
.pdx-summary__row { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; font-size: var(--fs-ui); }
.pdx-summary__row span:first-child { color: var(--ink-6); }
.pdx-summary__row strong { font-weight: 600; }
.pdx-summary__row--rule { border-bottom: var(--bw) solid var(--line-soft); }
.pdx-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.pdx-summary__total-label { font-weight: 700; font-size: 15px; }
.pdx-summary__total-value { font: 600 24px/1 var(--font-display); }
.pdx-summary__line {
  display: flex; gap: var(--s3); padding: 14px 0; border-bottom: var(--bw) solid var(--line-93);
}
.pdx-summary__line-media { width: 52px; height: 52px; flex: none; border: var(--bw) solid var(--line-soft); }
.pdx-summary__line-name { font-size: var(--fs-note); line-height: 1.4; height: 35px; }
.pdx-free { margin-top: var(--s4); background: var(--tint); border: var(--bw) solid var(--line); padding: 12px 14px; }
.pdx-free__text { font-size: var(--fs-note); font-weight: 700; }
.pdx-free__text em { font-style: normal; color: var(--sale-amount); }
.pdx-free__track { height: 6px; background: var(--skeleton-line); margin-top: 9px; }
.pdx-free__fill { display: block; height: 6px; background: var(--terracotta); width: 0; }
.pdx-free__note { font-size: var(--fs-micro); color: var(--ink-6); margin-top: 7px; }
.pdx-free.is-unlocked { background: var(--ok-bg); border-color: var(--ok-border); }
.pdx-free.is-unlocked .pdx-free__text { color: var(--ok-strong); }
.pdx-free.is-unlocked .pdx-free__track { background: var(--ok-track); }
.pdx-free.is-unlocked .pdx-free__fill { background: var(--ok-fill); }
.pdx-free.is-unlocked .pdx-free__note { color: var(--ok-note); }

/* ============================================================
   12 · CHECKOUT: 3 BƯỚC · VẬN CHUYỂN · THANH TOÁN CHỈ-HIỂN-THỊ  (2k, 2l, 2m)
   ============================================================ */
.pdx-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s8); align-items: start; }
.pdx-checkout__panel { background: var(--surface); border: var(--bw) solid var(--card-border); padding: 26px 28px 28px; }

.pdx-steps { display: flex; align-items: center; margin-bottom: var(--s6); }
.pdx-step { display: flex; align-items: center; gap: 10px; padding: 0 18px; }
.pdx-step:first-child { padding-left: 0; }
.pdx-step:last-child  { padding-right: 0; }
.pdx-step__dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: var(--bw-strong) solid var(--field-border); color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-note); font-weight: 700;
}
.pdx-step__name { font-size: var(--fs-ui); color: var(--ink-muted); }
.pdx-step.is-current .pdx-step__dot { background: var(--bark); border-color: var(--bark); color: #fff; }
.pdx-step.is-current .pdx-step__name { color: var(--ink); font-weight: 700; }
.pdx-step.is-done .pdx-step__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.pdx-step.is-done .pdx-step__name { color: var(--ink-4); font-weight: 600; }
.pdx-steps__bar { flex: 1; height: 1px; background: var(--box-border); }

.pdx-stepview[hidden] { display: none; }
.pdx-fieldset { border: 0; margin: 0; padding: 0; }
.pdx-fieldset__legend {
  font: 600 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); padding-bottom: 12px; width: 100%;
  border-bottom: var(--bw) solid var(--line-93); margin-bottom: 18px;
}
.pdx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) 18px; }
.pdx-form-grid .pdx-field { margin-bottom: 0; }
.pdx-span2 { grid-column: 1 / -1; }
.pdx-form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s6); padding-top: var(--s5); border-top: var(--bw) solid var(--line-93);
}

.pdx-ship-option {
  display: flex; align-items: center; gap: 14px;
  border: var(--bw) solid oklch(0.87 0.016 78); background: var(--surface);
  padding: 16px 18px; cursor: pointer; min-height: 44px;
}
.pdx-ship-option + .pdx-ship-option { margin-top: var(--s3); }
.pdx-ship-option input { accent-color: var(--bark); width: 17px; height: 17px; flex: none; margin: 0; }
.pdx-ship-option__body { flex: 1; }
.pdx-ship-option__name { font-size: var(--fs-body); font-weight: 600; }
.pdx-ship-option__eta  { font-size: var(--fs-note); color: var(--ink-5); margin-top: 4px; }
.pdx-ship-option__cost { text-align: right; flex: none; font-size: var(--fs-body); font-weight: 700; }
.pdx-ship-option:has(input:checked) { border: var(--bw-strong) solid var(--bark); background: var(--tint-3); padding: 15.5px 17.5px; }
.pdx-ship-option__cost--free { color: var(--ok); }

.pdx-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 18px; border-bottom: var(--bw) solid var(--line-93); }
.pdx-review-box { border: var(--bw) solid var(--line-soft); padding: 14px 16px; }
.pdx-review-box__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s2); }
.pdx-review-box__body { font-size: var(--fs-ui-sm); line-height: 1.6; }

.pdx-payment { background: var(--tint); border: var(--bw) solid var(--line-90); padding: 16px 18px; }
.pdx-payment__note { margin: 0 0 14px; font-size: var(--fs-ui); line-height: 1.6; color: var(--ink-2); }
.pdx-payment__marks { display: flex; gap: 10px; flex-wrap: wrap; }
.pdx-paymark {
  border: var(--bw) solid var(--box-border); background: var(--surface);
  padding: 9px 14px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .04em;
}

.pdx-confirm { background: var(--surface); border: var(--bw) solid var(--card-border); border-top: 3px solid var(--ok); padding: 30px 32px 32px; }
.pdx-confirm__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.pdx-confirm__tick { width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex: none; }
.pdx-confirm__title { font: 500 var(--fs-h2-lg)/1.2 var(--font-display); }
.pdx-confirm__facts { display: flex; gap: 28px; flex-wrap: wrap; padding: var(--s4) 18px; background: var(--tint); border: var(--bw) solid oklch(0.91 0.016 78); }
.pdx-confirm__code { font: 600 21px/1 var(--font-display); letter-spacing: .02em; }

/* ============================================================
   13 · TRẠNG THÁI RỖNG · 404 · TRANG VĂN BẢN DÀI  (2c, 2h, 2j, 2s, 2r)
   ============================================================ */
.pdx-empty {
  border: var(--bw) dashed var(--search-border); background: var(--surface);
  padding: 44px 40px; text-align: center;
}
.pdx-empty__text { margin: 0 auto 22px; font-size: 14px; line-height: 1.6; max-width: 46ch; color: var(--ink-4); }
.pdx-empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pdx-empty--solid { border-style: solid; border-color: var(--card-border); }
.pdx-empty--left  { text-align: left; }
.pdx-empty--left .pdx-empty__text, .pdx-empty--left .pdx-empty__actions { margin-inline: 0; justify-content: flex-start; }

.pdx-404 { background: var(--surface); border: var(--bw) solid var(--card-border); padding: 44px 38px; }
.pdx-404__code { font: 400 64px/1 var(--font-display); letter-spacing: -.04em; color: var(--terracotta); margin-bottom: 14px; }

.pdx-doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; margin-top: var(--s6); align-items: start; }
.pdx-doc__toc { position: sticky; top: var(--sticky-top); }
.pdx-doc__toc-list { display: flex; flex-direction: column; gap: 9px; font-size: var(--fs-ui-sm); border-left: var(--bw) solid var(--line); padding-left: 14px; }
.pdx-doc__toc-list a.is-current { font-weight: 700; color: var(--terracotta); border-left: 2px solid var(--terracotta); margin-left: -15px; padding-left: 13px; }
.pdx-doc__body { max-width: var(--measure); }
.pdx-doc__body h2 { font: 500 var(--fs-h2)/1.3 var(--font-display); margin: 0 0 10px; }
.pdx-doc__body p  { margin: 0 0 18px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-body); }
.pdx-doc__meta { font-size: var(--fs-note); color: var(--ink-7); padding-bottom: 22px; border-bottom: var(--bw) solid var(--line-90); }

.pdx-table { border: var(--bw) solid var(--card-border); background: var(--surface); font-size: var(--fs-ui); margin: 0 0 18px; }
.pdx-table__row { display: flex; padding: 11px var(--s4); border-bottom: var(--bw) solid oklch(0.94 0.016 78); }
.pdx-table__row:last-child { border-bottom: 0; }
.pdx-table__row--head { font-weight: 700; background: var(--tint); border-bottom-color: var(--line-93); }

.pdx-callout { background: var(--wash); border: var(--bw) solid var(--line); padding: 18px 20px; }
.pdx-band { background: var(--wash); border: var(--bw) solid var(--line); padding: 34px 38px; }

/* ============================================================
   14 · TOAST  (2f)
   ============================================================ */
.pdx-toast-area { position: fixed; top: 24px; right: 24px; z-index: 70; display: flex; flex-direction: column; gap: var(--s3); }
.pdx-toast {
  width: 380px; max-width: calc(100vw - 32px);
  background: var(--surface); border: var(--bw) solid var(--line); box-shadow: var(--sh-toast);
  padding: 16px 18px;
  transform: translateX(16px); opacity: 0; transition: transform 180ms ease-out, opacity 180ms ease-out;
}
.pdx-toast.is-in { transform: none; opacity: 1; }
.pdx-toast__top { display: flex; gap: 14px; }
.pdx-toast__media { width: 64px; height: 64px; flex: none; border: var(--bw) solid var(--line-soft); }
.pdx-toast__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pdx-toast__ok { font-size: var(--fs-ui-sm); font-weight: 700; color: var(--ok); }
.pdx-toast__close { font-size: 14px; color: var(--ink-8); width: 24px; height: 24px; }
.pdx-toast__name { font-size: var(--fs-note); line-height: 1.4; height: 35px; margin-top: 6px; }
.pdx-toast__meta { font-size: var(--fs-note); color: var(--ink-7); margin-top: 5px; }
.pdx-toast__actions { display: flex; gap: 9px; margin-top: 14px; }
.pdx-toast__actions .pdx-btn { flex: 1; padding: 10px; font-size: var(--fs-note); min-height: 40px; }
.pdx-toast__foot { margin-top: var(--s3); padding-top: 11px; border-top: var(--bw) solid var(--line-93); font-size: 12px; color: var(--ok); font-weight: 600; }

/* ============================================================
   15 · CHÂN TRANG  (1a)
   ============================================================ */
.pdx-footer {
  margin-top: var(--s9); background: var(--bark); color: var(--bark-on-soft);
  padding: 36px var(--gutter) var(--s6);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s7);
  font-size: var(--fs-ui-sm); line-height: 1.75;
}
.pdx-footer__brand { font: 600 19px/1 var(--font-display); margin-bottom: var(--s3); }
.pdx-footer__addr, .pdx-footer__links { opacity: .75; }
.pdx-footer__links { display: flex; flex-direction: column; }
.pdx-footer__links a:hover { opacity: 1; text-decoration: underline; }
.pdx-footer__title { font-weight: 700; margin-bottom: var(--s2); }
.pdx-footer-bottom {
  background: var(--bark-deep); color: oklch(0.80 0.012 78);
  padding: var(--s3) var(--gutter); font-size: var(--fs-micro);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
}

/* ============================================================
   16 · ĐÁP ỨNG  (2t §2: 4 cột → 2 cột <900 → 1 cột <520)
   ============================================================ */
@media (max-width: 1100px) {
  .pdx-pdp { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s7); }
  .pdx-gallery__thumb { width: 64px; height: 64px; }
  .pdx-checkout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --grid-cols: 2; }
  .pdx-burger { display: flex; }
  .pdx-header__bar { gap: var(--s4); flex-wrap: wrap; }
  .pdx-search { order: 3; flex-basis: 100%; max-width: none; }
  .pdx-deptbar { display: none; }
  .pdx-nav { gap: var(--s4); }
  .pdx-nav__desktop { display: none; }
  .pdx-catalog { display: block; }
  .pdx-catalog__aside { display: none; }
  .pdx-catalog__main { padding: var(--s5) var(--gutter) var(--s8); }
  .pdx-filterbar { display: flex; }
  .pdx-pdp { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .pdx-cart-layout, .pdx-checkout { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .pdx-cart-layout .pdx-summary, .pdx-checkout .pdx-summary--sticky { position: static; order: -1; }
  .pdx-doc { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .pdx-doc__toc { position: static; }
  .pdx-footer { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .pdx-grid--3 { --grid-cols: 2; }
  /* PDP mobile: ảnh vuốt ngang, thanh mua dính đáy (3e) */
  .pdx-gallery { display: block; }
  .pdx-gallery__thumbs { display: none; }
  .pdx-gallery__main { display: none; }
  .pdx-gallery__track {
    display: flex; gap: var(--s2); overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pdx-gallery__track::-webkit-scrollbar { display: none; }
  .pdx-gallery__track > * {
    flex: none; width: calc(100% - 44px); scroll-snap-align: start;
    border: var(--bw) solid var(--line);
  }
  .pdx-gallery__meta { justify-content: center; }
  .pdx-gallery__meta > [data-gallery-counter] { display: none; }
  .pdx-buybar { display: flex; }
  .pdx-buybar.is-idle { display: none; }   /* 3e: chỉ hiện khi khối giá cuộn khỏi màn hình */
  .pdx-pdp__buybox-desktop { display: none; }
}

@media (max-width: 720px) {
  .pdx-form-grid { grid-template-columns: 1fr; }
  .pdx-review-grid { grid-template-columns: 1fr; }
  .pdx-steps { gap: var(--s2); }
  .pdx-step { padding: 0 var(--s2); }
  .pdx-step__name { display: none; }
  .pdx-cart-head { display: none; }
  .pdx-cart-line { flex-wrap: wrap; gap: var(--s3); }
  .pdx-cart-line__media { width: 72px; height: 72px; }
  .pdx-cart-line__qty { width: auto; justify-content: flex-start; }
  .pdx-cart-line__total { width: auto; margin-left: auto; }
  .pdx-confirm__facts { gap: var(--s4); }
}

@media (max-width: 520px) {
  /* 3a · 3c · 3i: khung 375 giữ lưới 2 cột, gap 12px, lề 16px — KHÔNG hạ về 1 cột */
  :root { --gutter: 16px; --grid-cols: 2; --grid-gap: 12px; --fs-hero: 30px; --fs-h1: 24px; --fs-h1-lg: 26px; --fs-pdp-title: 20px; --fs-h2: 19px; --fs-h2-lg: 20px; --fs-price-lg: 28px; --fs-price-xl: 28px; }
  .pdx-promo { flex-direction: column; align-items: flex-start; gap: 2px; font-size: var(--fs-micro); }
  .pdx-promo__aside { display: none; }
  .pdx-logo { font-size: 19px; }
  .pdx-logo small { display: none; }
  .pdx-grid--3 { --grid-cols: 2; gap: var(--grid-gap); }
  /* thẻ trong cột ~168px — đo chữ theo 3c, vùng bấm vẫn ≥44px */
  .pdx-card__body { padding: 11px 12px 13px; }
  .pdx-card__brand { font-size: 10.5px; margin-bottom: 5px; }
  .pdx-card__name { font-size: 12.5px; line-height: 1.4; height: 35px; }
  .pdx-card__price { margin-top: 9px; gap: 6px; }
  .pdx-card__price .pdx-price { font-size: 15px; }
  .pdx-card__price .pdx-price__was { font-size: 11px; }
  .pdx-card .pdx-rating { margin-top: 6px; font-size: 11px; }
  .pdx-card__cta { margin-top: 10px; }
  .pdx-card__cta .pdx-btn { padding: 11px 6px; min-height: 44px; }
  /* Phân trang dài (7 trang) không vừa 375px — bản design chỉ vẽ tới 2 trang.
     Bù trong cùng ngôn ngữ 2a/3c: xếp dọc, giấu dãy số giữa, giữ ← Prev · trang hiện tại · Next →,
     số trang đầy đủ đã nằm sẵn ở dòng "Page n of m" ngay trên. */
  .pdx-pager { flex-direction: column; align-items: center; gap: var(--s3); }
  .pdx-pager__note { text-align: center; }
  .pdx-pager__list { justify-content: center; width: 100%; }
  .pdx-pager__item { min-height: 44px; padding: 11px 16px; }
  .pdx-pager__item:not(:first-child):not(:last-child):not([aria-current]) { display: none; }

  .pdx-empty, .pdx-404 { padding: var(--s6) var(--s5); }
  .pdx-band { padding: var(--s5); }
  .pdx-buybox, .pdx-summary, .pdx-ratings, .pdx-checkout__panel, .pdx-confirm { padding: 18px var(--s5) var(--s5); }
  .pdx-toast-area { top: auto; bottom: var(--s4); right: var(--s4); left: var(--s4); }
  .pdx-toast { width: auto; }
  .pdx-footer { grid-template-columns: 1fr; }
  .pdx-footer-bottom { flex-direction: column; gap: 4px; }
  .pdx-pdp-title { line-height: 1.4; }
}

@media print {
  .pdx-header, .pdx-footer, .pdx-footer-bottom, .pdx-toast-area, .pdx-buybar, .pdx-promo { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
