/* everyday.vn — chăn, ga, gối, nệm (QĐ-088 điểm 7, docs/50 mục 6.2.3): xanh đêm + nền kem + nâu đất; bo góc mềm như gối.
   Tầng nền (bố cục, chữ, trạng thái) ở storefront shop.css. Tương phản kiểm bằng packages/brand/test/sites.test.ts. */
:root {
  --site-primary: #1e3a5f;          /* chữ trắng 11,50:1 */
  --site-primary-hover: #2b4c78;    /* chữ trắng 8,72:1 */
  --site-on-primary: #ffffff;
  --site-on-primary-muted: #c9d4e3;
  --site-accent: #8a5320;           /* nâu đất — chữ trên kem 5,93:1 */
  --site-ink: #1c2433;
  --site-ink-2: #5b6472;           /* chữ phụ — QĐ-131 bản vẽ */
  --site-muted: #5b6472;
  --site-line: #e8e2d8;            /* viền thẻ — QĐ-131 bản vẽ */
  --site-input-border: #857d6c;
  --site-bg: #faf8f4;               /* kem */
  --site-surface: #ffffff;
  --site-soft: #f1ece3;             /* vải lanh */
  --site-header-bg: rgba(250, 248, 244, .96);
  --site-ok: #1b6b3a; --site-ok-line: #b9dfc6; --site-ok-tint: #f0f8f3;
  --site-warn: #8a5a00;
  --site-bad: #b42318; --site-bad-line: #f1c4bf; --site-bad-tint: #fdf2f1;
  --site-todo-bg: #fff3c4; --site-todo-ink: #5c4400;
  --site-focus-on-dark: #ffffff;   /* vòng focus trên nền tối (chân trang) ≥ 3:1 — WCAG 2.4.7 / 1.4.11 */
  --site-radius: 16px;
  --site-card-name-lines: 3; /* thẻ hàng: số dòng tên tối đa — tên nệm dài (0176) */
}

/* ---------------------------------------------------------------------------------------------------------------------------------
   QĐ-131 — trình bày everyday theo bản vẽ đã duyệt (docs/70 mục 8 "Bản vẽ trình bày mới"). Chỉ tệp màu của everyday nạp phần này nên
   cancook.vn / modernhouse.vn không đổi. Tệp này nạp TRƯỚC shop.css ⇒ luật đè lớp của shop.css dùng bộ chọn cụ thể hơn (vd .top.ed-top).
   Màu riêng của bản vẽ là biến --ed-* (không phải --site-*: chỉ everyday có); tương phản kiểm ở apps/server/test/storefront-everyday-qd131.test.ts.
   Phông (QĐ-133): Be Vietnam Pro 400 / 600 tự lưu — storefront nạp fonts-be-vietnam-pro.css (packages/brand/fonts) trước tệp này cho web có selfFont. */
/* :root:root để thắng --font của shop.css (nạp sau, cùng độ ưu tiên :root); thiếu phông ⇒ chữ hệ thống như cũ. */
:root:root { --font: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
/* Phông chỉ đóng gói 400 / 600 ⇒ chữ đậm dùng 600 (không để trình duyệt tự làm đậm giả từ 600 lên 700). */
:root strong, :root b, :root h2, :root h3, :root .price, :root .logo-text { font-weight: 600; }   /* :root — thắng shop.css (nạp sau) */
:root {
  --ed-pre-tint: #f5ede3;     /* nền nhãn / ô đặt trước */
  --ed-pre-ink: #6f4218;      /* chữ nhãn đặt trước trên --ed-pre-tint */
  --ed-pre-box-ink: #4a2c10;  /* chữ ô đặt trước trên --ed-pre-tint */
  --ed-track: #e3ddd2;        /* nấc độ êm chưa tô (không mang nghĩa một mình — luôn có chữ) */
  --ed-chip-line: #d9d2c5;    /* viền ô cỡ / chip lọc (chữ trong ô là nhãn) */
  --ed-icon-tint: #e6ecf5;    /* nền ô nhấn xanh nhạt (trạng thái bảo hành, ô thanh toán đang chọn) */
  --ed-step: #e9c9a6;         /* chữ nhấn trên nền xanh đêm (dải nằm thử, tên ẩn dụ của mục) */
  --ed-on-night: #d7e0ec;     /* chữ phụ trên nền xanh đêm */
  --ed-img-bg: #e8e2d8;       /* nền khung ảnh khi ảnh chưa tải */
}

/* Đầu trang: nền trắng, wordmark "every●day", menu, hotline, nút giỏ tròn 44 px */
.top.ed-top { background: var(--site-surface); }
.top.ed-top .wrap { gap: 24px; min-height: 72px; }
.logo-text.ed-wordmark { display: inline-flex; align-items: center; gap: 2px; font-size: 26px; line-height: 1; font-weight: 600; letter-spacing: -.5px; color: var(--site-primary); }
.ed-moon { fill: var(--site-accent); flex: none; }
.foot-logo .logo-text.ed-wordmark { font-size: 18px; }
.foot-logo .ed-moon { width: 9px; height: 9px; }
.nav.ed-nav { margin-left: 8px; flex: 1 1 auto; }
.nav.ed-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--site-primary); }
.nav.ed-nav a[aria-current="page"] { font-weight: 600; }
.top.ed-top .logo { min-height: 44px; }
.ed-hotline { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--site-primary); white-space: nowrap; }
.ed-hotline svg { display: none; }
/* QĐ-139: ô chọn ngôn ngữ ở đầu trang (chỉ khi web bật > 1 ngôn ngữ) — liên kết thường, vùng chạm 44 px; tên ngôn ngữ viết bằng chính ngôn ngữ đó. */
/* Soát 5 vai vòng 1 (UX/Visual P1): ô gọn "VI EN" (~92 px thay ~146 px) — mã 2 chữ, tên đầy đủ đọc bằng trình đọc màn hình; mục đang chọn
   có nền (không gạch chân), mục kia là liên kết; không co lại (flex: none) để không đẩy nút giỏ. */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.lang-switch > a, .lang-switch > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 22px; color: var(--site-primary); text-decoration: none; }
.lang-switch > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang-switch > [aria-current] { background: var(--site-soft); }
/* Ngôn ngữ có từ ghép rất dài (Đức, Nga…) ⇒ cho phép ngắt từ (docs/10 "Ngôn ngữ của ba website" điểm 5). */
html:not([lang="vi"]) main { hyphens: auto; overflow-wrap: break-word; }
.cart-link.ed-cart { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 22px; background: var(--site-soft); color: var(--site-primary); }
.ed-cart .cart-count { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 12px; }

/* Chữ chung */
main h1, main h2 { color: var(--site-primary); font-weight: 600; }
main .btn { border-radius: 999px; }
main .btn-ghost { border: 1.5px solid var(--site-primary); color: var(--site-primary); }
.ed-kicker { margin: 0; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--site-accent); font-weight: 600; }

/* Trang chủ: khối đầu */
.ed-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 48px 0 32px; }
.ed-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
main .ed-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.ed-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--site-ink-2); }
.ed-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
main .ed-cta .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
.ed-hero-img { flex: 1 1 520px; min-width: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ed-img-bg); }
.ed-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Khối có tiêu đề: chọn theo độ êm, nệm chọn nhiều, thương hiệu */
.ed-sec { padding: 24px 0 40px; }
.ed-sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
main .ed-sec-head h2 { margin: 0; font-size: clamp(24px, 3.5vw, 30px); }
.ed-sec-head p { margin: 0; font-size: 15px; color: var(--site-muted); }
.ed-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--site-primary); }
.ed-brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
/* Thương hiệu: 5 ô (QĐ-138 thêm EVERON) ⇒ 1 cột điện thoại, 3 cột (3 + 2) máy tính bảng, 5 cột một hàng ở máy tính. */
@media (min-width: 640px) { .ed-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ed-brands { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ed-brands a { padding: 20px; } }
.ed-brands a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; text-decoration: none; color: var(--site-ink); }
.ed-brands a:hover { border-color: var(--site-primary); }
.ed-brands strong { font-size: 20px; color: var(--site-primary); }
.ed-brands a > span { font-size: 14px; line-height: 1.5; color: var(--site-muted); }
.ed-brands a > .ed-more { margin-top: auto; font-weight: 600; color: var(--site-accent); }
.ed-meter { display: flex; gap: 6px; }
.ed-meter span { display: block; width: 28px; height: 8px; border-radius: 4px; background: var(--ed-track); }
.ed-meter span.on { background: var(--site-primary); }

/* Thẻ hàng: ảnh 4:3 lấp đầy khung (cắt giữa, không dải trống), hãng in hoa nâu đất, tên, loại · độ êm, giá, nhãn đặt trước */
.grid.ed-grid { gap: 20px; margin-top: 0; }
@media (min-width: 1040px) { .grid.ed-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card.ed-card { background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; overflow: hidden; color: var(--site-ink); }
.ed-card .card-img { aspect-ratio: 4 / 3; border-radius: 0; background: var(--ed-img-bg); }
.ed-card .card-img img { object-fit: cover; }
.ed-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.ed-eyebrow { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--site-accent); font-weight: 600; }
.ed-card .card-name { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--site-primary); }
.ed-spec { font-size: 14px; color: var(--site-muted); }
.ed-card .price { font-size: 18px; font-weight: 600; margin-top: auto; }
.ed-pre { align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: var(--ed-pre-tint); color: var(--ed-pre-ink); font-size: 13px; font-weight: 600; }
.ed-pre svg { flex: none; }
.ed-pre { white-space: nowrap; }

/* Danh sách: bộ lọc (biểu mẫu GET) bên trái, kết quả bên phải */
.ed-list-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 8px 0 20px; }
main .ed-list-head h1 { margin: 0 0 6px; }
.ed-sub { margin: 0; font-size: 15px; color: var(--site-muted); }
.ed-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--site-muted); }
.ed-sort select { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--site-input-border); background: var(--site-surface); font: inherit; font-size: 15px; color: var(--site-ink); }
.ed-list { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-bottom: 40px; }
.ed-filter { flex: 1 1 240px; max-width: 280px; }
.ed-results { flex: 999 1 560px; min-width: 0; }
.ed-filter-box { padding: 20px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; }
.ed-filter-box > summary { display: none; }
.ed-filter-in { display: flex; flex-direction: column; gap: 24px; }
.ed-filter fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-filter legend { font-size: 15px; font-weight: 600; color: var(--site-primary); margin-bottom: 8px; padding: 0; }
.ed-filter label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.ed-filter input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--site-primary); flex: none; }
.ed-c { color: var(--site-muted); }
.ed-filter-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0; }
.ed-filter-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--site-primary); }
.ed-count { margin: 0 0 12px; font-size: 14px; color: var(--site-muted); }
.ed-quick { display: none; }

/* Trang chi tiết */
.pdp.ed-pdp { gap: 40px; }
@media (min-width: 860px) { .pdp.ed-pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ed-gallery .gallery-main { aspect-ratio: 4 / 3; border-radius: 20px; background: var(--ed-img-bg); }
.ed-gallery .gallery-main img { object-fit: cover; }
.ed-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ed-thumbs button { padding: 0; min-height: 44px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--ed-img-bg); border: 2px solid transparent; }
.ed-thumbs button[aria-pressed="true"] { border-color: var(--site-primary); }
.ed-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy.ed-buy { display: flex; flex-direction: column; gap: 18px; }
.buy.ed-buy > p, .buy.ed-buy form > p { margin-top: 0; margin-bottom: 0; }
.buy.ed-buy form { display: flex; flex-direction: column; gap: 18px; }
.buy.ed-buy h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.buy.ed-buy p.ed-price { font-size: 32px; font-weight: 600; margin: 0 0 -14px; color: var(--site-ink); }
.ed-summary { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding: 14px 16px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 14px; }
.ed-summary > div { display: flex; flex-direction: column; gap: 6px; }
.ed-k { font-size: 13px; color: var(--site-muted); }
.ed-meter span { width: 30px; }
.ed-summary strong { font-size: 14px; color: var(--site-primary); }
.ed-summary strong.ed-big { font-size: 20px; }
.ed-sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.ed-sizes legend { font-size: 15px; font-weight: 600; color: var(--site-primary); margin-bottom: 10px; padding: 0; }
.ed-chip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ed-chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px; border-radius: 12px; border: 1.5px solid var(--ed-chip-line); background: var(--site-surface); color: var(--site-ink); cursor: pointer; text-align: center; }
.ed-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ed-chip:has(input:checked) { background: var(--site-primary); border-color: var(--site-primary); color: var(--site-on-primary); }
.ed-chip:has(input:focus-visible) { outline: 3px solid var(--site-ink); outline-offset: 2px; }
.ed-chip:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ed-chip-size { font-size: 15px; font-weight: 600; }
.ed-chip-price { font-size: 12px; }
.ed-prebox { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--ed-pre-tint); color: var(--ed-pre-box-ink); font-size: 14px; line-height: 1.6; }
.ed-prebox p { margin: 0; }
.ed-prebox-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.ed-prebox-title svg { width: 18px; height: 18px; flex: none; }
.ed-actions { display: flex; gap: 12px; flex-wrap: wrap; }
main .ed-actions .btn { flex: 2 1 220px; min-height: 54px; font-size: 17px; }
main .ed-actions .btn-ghost { flex: 1 1 160px; font-size: 16px; }
.ed-buy .order-closed { margin: 0; }
.ed-assure { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ed-assure li { padding: 20px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.ed-assure strong { color: var(--site-primary); font-size: 16px; }
.ed-assure span { font-size: 14px; line-height: 1.5; color: var(--site-muted); }
.ed-assure a { color: var(--site-primary); }
.ed-links { font-size: 14px; color: var(--site-muted); margin: 12px 0 24px; }
.ed-buybar { display: none; }
.ed-nav-m { display: none; }

/* Điện thoại (≤ 640 px): 2 cột thẻ, bộ lọc gập vào nút "Lọc" + hàng chip lọc nhanh, thanh mua dính đáy; vùng chạm ≥ 44 px */
@media (max-width: 640px) {
  .top.ed-top .wrap { gap: 4px 10px; min-height: 60px; }
  .logo-text.ed-wordmark { font-size: 22px; }
  .ed-hotline { width: 44px; border-radius: 22px; background: var(--site-soft); margin-left: auto; }
  .ed-hotline span { display: none; }
  .ed-hotline svg { display: block; }
  .ed-top .ed-hotline + .cart-link { margin-left: 0; }
  .nav.ed-nav { display: none; }
  /* Vòng 2: hàng menu riêng dưới đầu trang (không dính), vuốt ngang, mờ dần ở mép phải báo còn mục. */
  .ed-nav-m { display: block; background: var(--site-surface); border-bottom: 1px solid var(--site-line); }
  .ed-nav-m .wrap { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .ed-nav-m a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 0; margin-right: 12px; text-decoration: none; white-space: nowrap; font-size: 15px; color: var(--site-primary); }
  .ed-nav-m a[aria-current="page"] { font-weight: 600; }
  .ed-hero { padding: 24px 0 16px; gap: 24px; }
  .grid.ed-grid { gap: 12px; }
  .card.ed-card { border-radius: 14px; }
  .ed-card-body { padding: 10px; gap: 4px; }
  .ed-eyebrow { font-size: 11px; letter-spacing: 1px; }
  .ed-card .card-name { font-size: 15px; line-height: 1.3; }
  .ed-spec { font-size: 13px; }
  /* QĐ-133 vòng 2 (Visual P2): "Từ" không rơi xuống dòng riêng với phông Be Vietnam Pro — giữ một dòng, chữ co theo khổ màn. */
  .ed-card .price { font-size: clamp(12.5px, 4.2vw, 15px); white-space: nowrap; letter-spacing: -.01em; }
  .ed-pre { font-size: 12px; }
  .ed-pre-long { display: none; }
  .ed-list { gap: 12px; }
  .ed-filter { flex: 1 1 100%; max-width: none; }
  .ed-results { flex-basis: 100%; }
  .ed-filter-box { padding: 0; border: 0; background: none; }
  .ed-filter-box > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--site-primary); color: var(--site-on-primary); font-weight: 600; cursor: pointer; list-style: none; }
  .ed-filter-box > summary::-webkit-details-marker { display: none; }
  .ed-filter-box[open] .ed-filter-in { margin-top: 12px; padding: 16px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; }
  .ed-quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
  .ed-quick a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--ed-chip-line); background: var(--site-surface); color: var(--site-ink); text-decoration: none; font-size: 14px; }
  .ed-quick a[aria-current="true"] { background: var(--site-primary); border-color: var(--site-primary); color: var(--site-on-primary); }
  .ed-sort { width: 100%; }
  .ed-sort select { flex: 1 1 auto; }
  .ed-chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-summary { gap: 16px; }
  .ed-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--site-surface); border-top: 1px solid var(--site-line); }
  .ed-buybar-sel { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
  .ed-buybar-sel span { font-size: 12px; color: var(--site-muted); }
  .ed-buybar-sel strong { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main .ed-buybar .btn { flex: 0 0 auto; min-height: 50px; padding: 0 20px; }
  .ed-call { flex: 0 0 50px; height: 50px; border-radius: 25px; border: 1.5px solid var(--site-primary); color: var(--site-primary); display: grid; place-items: center; }
  body:has(.ed-buybar) { padding-bottom: 84px; }
  body:has(.ed-buybar) .toast { bottom: 96px; }
}
@media (max-width: 360px) {
  .ed-pre { padding: 4px 6px; font-size: 11px; }
  .ed-pre svg { display: none; }
  .ed-buybar { gap: 8px; }
  .ed-buybar-sel strong { font-size: 15px; }
  main .ed-buybar .btn { padding: 0 14px; font-size: 15px; }
}

/* QĐ-135 — điểm nằm thử nệm (Định Quán): dải xanh đầu mọi trang, khối trang chủ, trang /cua-hang, dòng trang nệm. */
.ed-strip { background: var(--site-primary); color: var(--site-bg); font-size: 14px; }
.ed-strip .wrap { display: flex; gap: 6px 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; text-align: center; }
.ed-strip svg { flex: none; }
.ed-strip a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ed-step); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ed-strip :focus-visible { outline-color: var(--site-focus-on-dark); }
.ed-visit-facts { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 12px; font-size: 15px; }
.ed-visit-facts dt { color: var(--site-muted); }
.ed-visit-facts dd { margin: 0; }
.ed-visit-facts a { color: var(--site-primary); }
.ed-visit-cta .btn svg { flex: none; }
.ed-show { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; padding: 32px 0 40px; }
.ed-show-photo { flex: 1 1 420px; min-height: 320px; border-radius: 20px; background: var(--ed-img-bg); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--site-muted); font-size: 15px; }
.ed-show-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
main .ed-show h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; }
.ed-show .ed-visit-facts { padding: 18px; border-radius: 14px; background: var(--site-surface); border: 1px solid var(--site-line); }
.ed-show .hint { margin: 0; }
.ed-tryline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 15px; color: var(--site-ink-2); }
.ed-tryline svg { flex: none; color: var(--site-accent); }
.ed-tryline a { color: var(--site-primary); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.foot .ed-foot-visit a { text-decoration: underline; }
@media (max-width: 640px) {
  .ed-strip { font-size: 13px; }
  .ed-strip-hours, .ed-strip svg { display: none; }
  .ed-strip .wrap { gap: 0 8px; }
  .ed-visit-facts { grid-template-columns: 1fr; gap: 2px; }
  .ed-visit-facts dd { margin-bottom: 8px; }
  .ed-show { padding-top: 16px; gap: 20px; }
  .ed-show-photo { min-height: 200px; }
}
.ed-show-figure { margin: 0; padding: 0; flex-direction: column; gap: 10px; background: none; min-height: 0; align-items: stretch; justify-content: flex-start; }
.ed-show-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--ed-img-bg); }
.ed-show-figure figcaption { font-size: 14px; color: var(--site-muted); text-align: left; }
/* Logo hãng tỉ lệ rất khác nhau ⇒ khung cao cố định 72 px (đoạn giới thiệu bắt đầu cùng một độ cao ở mọi ô), rộng tối đa 150 px. */
.ed-brand-logo { display: block; width: auto; height: 72px; max-width: min(150px, 100%); object-fit: contain; object-position: left center; }
/* EVERON chữ ngang dài (6 : 1) ⇒ cho rộng hơn để chữ không quá nhỏ. */
.ed-brand-logo[src*="/brand-everon."] { max-width: min(170px, 100%); }
/* Ô chọn: ghi chú trong ngoặc của thuộc tính ("ICE (thêm lớp gel làm mát)", "… (Chunky)") xuống dòng nhỏ (soát QĐ-138). */
.ed-chip-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--site-muted); }
/* Ô đang chọn (nền xanh đậm): ghi chú dùng màu chữ của ô, không xám (tương phản ~8 : 1). Ô có ghi chú ⇒ 2 cột để số đo không tách khỏi "cm". */
.ed-chip:has(input:checked) .ed-chip-note { color: inherit; opacity: .85; }
.ed-chip-grid:has(.ed-chip-note) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* QĐ-139 điểm 3 — trang /bao-hanh tra theo mã đơn (bản vẽ màn 5): Bước 1 tra cứu | Bước 2 từng món + gửi yêu cầu; Bước 3 đã nhận.
   Nhãn trạng thái: chữ + nền (không chỉ màu) — tương phản ≥ 4,5 : 1 kiểm ở apps/server/test/storefront-warranty-lookup.test.ts. */
:root {
  --ed-ok-tint: #e3f0e6; --ed-ok-ink: #1d5b2c;        /* Còn bảo hành */
  --ed-wait-tint: #fdf1dc; --ed-wait-ink: #7a4a0c;    /* Chưa giao / Tạm khoá */
  --ed-off-tint: #efeff1; --ed-off-ink: #4b5563;      /* Hết bảo hành / Không tìm thấy */
}
.ed-bh { display: flex; flex-direction: column; gap: 28px; padding: 32px 0 40px; }
.ed-bh-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
main .ed-bh-head h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); }
.ed-bh-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--site-ink-2); }
.ed-bh-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ed-bh-card { background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ed-bh-lookup { flex: 1 1 320px; }
.ed-bh-result { flex: 2 1 560px; }
.ed-bh-card form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ed-bh-card .field { margin: 0; }
.ed-bh-card .field label { color: var(--site-primary); font-size: 14px; }
.ed-bh-card .field input, .ed-bh-card .field textarea { min-height: 48px; border-radius: 10px; border: 1.5px solid var(--site-input-border); font-size: 16px; }
/* Soát 5 vai vòng 1 (P3): ô mã đơn không kéo dài hết khung ở màn rộng; số hotline không gãy giữa số. */
.ed-bh-card .field input[name="code"] { max-width: 480px; }
/* Số điện thoại không gãy giữa số — mọi trang nội dung (bảo hành, 404, 429…). */
main a[href^="tel:"], .ed-bh a[href^="tel:"] { white-space: nowrap; }
/* Soát 5 vai vòng 1 (UX P1): biểu mẫu gửi về #bh-s2 / #bh-gui / #bh-s3 ⇒ đích cuộn nằm DƯỚI đầu trang dính (không bị che); lời báo không tìm thấy /
   tạm khoá: chừa cả nhãn trạng thái phía trên tiêu đề. */
.ed-bh #bh-s2, .ed-bh #bh-gui, .ed-bh #bh-s3 { scroll-margin-top: 96px; }
.ed-bh-msg #bh-s2 { scroll-margin-top: 136px; }
.ed-bh-card .field textarea { min-height: 96px; }
.ed-bh-card .field input.ed-bh-tail { max-width: 160px; letter-spacing: 6px; }
.ed-bh-card .field input[type="tel"] { max-width: 280px; }
.ed-bh-card .field input[type="file"] { min-height: 44px; padding: 8px 0; border: 0; font-size: 14px; }
.ed-bh-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--site-muted); }
.ed-bh-note a, .ed-bh-cond a, .ed-bh-consent a { color: var(--site-primary); }
main .ed-bh .btn { min-height: 52px; font-size: 16px; }
.ed-bh-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-bh-item { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px solid var(--site-line); background: var(--site-bg); }
label.ed-bh-item { cursor: pointer; }
label.ed-bh-item:has(input:checked) { border-color: var(--site-primary); background: var(--site-surface); }
.ed-bh-item input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--site-primary); }
.ed-bh-img { width: 96px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; background: var(--ed-img-bg); }
.ed-bh-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ed-bh-main strong { font-size: 16px; color: var(--site-primary); }
.ed-bh-state { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.ed-bh-state strong { font-size: 15px; }
.ed-bh-state span:not(.ed-pill) { font-size: 13px; color: var(--site-muted); }
.ed-pill { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ed-bh-state .ed-pill { align-self: flex-end; }
.ed-pill-ok { background: var(--ed-ok-tint); color: var(--ed-ok-ink); }
.ed-pill-wait { background: var(--ed-wait-tint); color: var(--ed-wait-ink); }
.ed-pill-off { background: var(--ed-off-tint); color: var(--ed-off-ink); }
.ed-pill-prog { background: var(--ed-icon-tint); color: var(--site-primary); }
.ed-bh-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--site-muted); }
.ed-bh-steps li + li::before { content: "→ "; }
.ed-bh-steps li[aria-current="step"] { color: var(--site-primary); font-weight: 600; }
/* Soát 5 vai vòng 2 (Visual): món không có ô chọn chừa chỗ bằng ô chọn (22 px) ⇒ cột ảnh / tên thẳng hàng với món có ô chọn. */
div.ed-bh-item::before { content: ""; width: 22px; flex: none; }
/* Món "Đang xử lý" (khối có các bước, rộng ~340 px): luôn chiếm cả hàng dưới tên món, căn trái thẳng cột chữ
   (ô chọn 22 + ảnh 96 + hai khoảng 14), thay vì lúc nằm cột phải lúc rơi xuống hàng căn lệch. ≤640 px theo luật chung bên dưới. */
@media (min-width: 641px) {
  .ed-bh-state:has(.ed-bh-steps) { flex-basis: 100%; align-items: flex-start; text-align: left; padding-left: 146px; }
  .ed-bh-state:has(.ed-bh-steps) .ed-pill { align-self: flex-start; }
}
.ed-bh-cond { margin: 0; font-size: 14px; line-height: 1.6; color: var(--site-ink-2); }
.ed-bh-send { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--site-line); }
main .ed-bh-send h2 { margin: 0; font-size: 18px; }
.ed-bh-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.ed-bh-consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--site-primary); }
main .ed-bh-send .btn { align-self: flex-start; }
.ed-bh-msg { display: flex; flex-direction: column; gap: 8px; }
.ed-bh-msg strong { color: var(--site-primary); font-size: 15px; }
.ed-bh-msg p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--site-ink-2); }
.ed-bh-done { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: 16px; background: var(--ed-icon-tint); color: var(--site-primary); max-width: 860px; }
.ed-bh-done svg { flex: none; }
.ed-bh-done div { display: flex; flex-direction: column; gap: 6px; }
.ed-bh-done strong { font-size: 18px; }
.ed-bh-done span { font-size: 15px; line-height: 1.6; }
@media (max-width: 640px) {
  .ed-bh { padding-top: 16px; gap: 20px; }
  .ed-bh-card { padding: 14px; }
  .ed-bh-img { display: none; }
  .ed-bh-main { flex-basis: 180px; }
  .ed-bh-state { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; flex-basis: 100%; }
  .ed-bh-state .ed-pill { align-self: center; }
  main .ed-bh-send .btn, main .ed-bh-lookup .btn { align-self: stretch; width: 100%; }
}
/* QĐ-139 + soát 5 vai vòng 1 (UX/Visual P1): 6 mục menu + hotline + ô ngôn ngữ + giỏ KHÔNG vừa một hàng dưới ~1280 px (menu bị cắt mục cuối
   "Bảo hành"). Khổ 641–1279 px: đầu trang chỉ còn logo + hotline + ngôn ngữ + giỏ; menu là hàng riêng ngay dưới (như điện thoại, không dính),
   xuống dòng khi chật — không vuốt, không cắt mục nào. ≥ 1280 px: một hàng như bản vẽ. */
@media (min-width: 641px) and (max-width: 1279px) {
  .nav.ed-nav { display: none; }
  .ed-top .ed-hotline { margin-left: auto; }
  .ed-nav-m { display: block; background: var(--site-surface); border-bottom: 1px solid var(--site-line); }
  .ed-nav-m .wrap { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .ed-nav-m a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; text-decoration: none; white-space: nowrap; font-size: 15px; color: var(--site-primary); }
  .ed-nav-m a:first-child { margin-left: -10px; }
  .ed-nav-m a:hover { background: var(--site-soft); }
  .ed-nav-m a[aria-current="page"] { font-weight: 600; background: var(--site-soft); }
}
@media (min-width: 641px) and (max-width: 1099px) {
  /* Hotline thành nút tròn có biểu tượng (như điện thoại); số vẫn ở dải đầu / chân trang / aria-label. */
  .ed-hotline { width: 44px; border-radius: 22px; background: var(--site-soft); }
  .ed-hotline span { display: none; }
  .ed-hotline svg { display: block; }
}
@media (min-width: 1280px) {
  .top.ed-top .wrap { gap: 20px; }
  .nav.ed-nav { gap: 2px; }
  .nav.ed-nav a { padding: 10px 8px; }
}

/* Soát 5 vai vòng 1 — ô chọn đơn vị vận chuyển / cách thanh toán ở everyday: viền thẻ đủ tương phản (--site-input-border ≥ 3 : 1 trên nền
   trắng) + trạng thái đang chọn rõ như .ed-chip (viền xanh đêm dày + nền nhạt), không chỉ dựa vào chấm tròn. */
#checkout .pay label { border: 1px solid var(--site-input-border); border-radius: 12px; background: var(--site-surface); }
#checkout .pay label:has(input:checked) { border-color: var(--site-primary); box-shadow: inset 0 0 0 1px var(--site-primary); background: var(--ed-icon-tint); }
#checkout .pay label:has(input:focus-visible) { outline: 3px solid var(--site-ink); outline-offset: 2px; }
#checkout .pay input { accent-color: var(--site-primary); }

/* Soát 5 vai vòng 1 (UX P2) — giỏ hàng: nút "−1 / +1 / Bỏ" xuống dòng theo cả nút (không vỡ chữ trong nút), vùng chạm 44 px. */
.line-actions { flex-wrap: wrap; gap: 0 16px; }
.line-actions .link-btn { white-space: nowrap; min-height: 44px; min-width: 44px; }

/* QĐ-145 — bộ câu hỏi chọn nệm (/chon-nem). Mỗi lựa chọn là một nút gửi biểu mẫu (không cần JavaScript), cao ≥ 64 px.
   Soát 5 vai: câu hỏi căn trái như trang kết quả; nút cùng hàng cao bằng nhau; chấm tiến độ thấy được (viền 3,85:1) + đánh dấu câu đang làm;
   lời báo nới dùng nền vải lanh + vạch nâu đất (không dùng màu "chỗ chờ điền"). */
.quiz { max-width: 720px; margin: 20px 0 48px; }
.quiz.quiz-result { max-width: none; }
.quiz-steps { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; color: var(--site-muted); }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots span { width: 28px; height: 6px; border-radius: 3px; background: var(--site-surface); box-shadow: inset 0 0 0 1px var(--site-input-border); }
.quiz-dots span.on { background: var(--site-primary); box-shadow: none; }
.quiz-dots span.now { background: var(--site-accent); box-shadow: none; }
main .quiz h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); }
.quiz-hint { margin: 0 0 24px; color: var(--site-muted); }
.quiz-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .quiz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quiz-opts li { display: flex; }
.quiz-opts button { flex: 1 1 auto; width: 100%; min-height: 64px; padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; text-align: left; font: inherit; color: var(--site-ink); background: var(--site-surface); border: 1px solid var(--site-input-border); border-radius: 16px; cursor: pointer; }
.quiz-opts button:hover { border-color: var(--site-primary); box-shadow: inset 0 0 0 1px var(--site-primary); background: var(--site-soft); }
.quiz-opts button:active { border-color: var(--site-primary); box-shadow: inset 0 0 0 1px var(--site-primary); background: var(--site-soft); }
.quiz-opts button:focus-visible, .quiz-actions .link-btn:focus-visible { outline: 3px solid var(--site-ink); outline-offset: 2px; }
.quiz-opts strong { font-size: 17px; color: var(--site-primary); }
.quiz-opts span { font-size: 14px; line-height: 1.4; color: var(--site-muted); }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 720px; margin: 24px 0 0; }
.quiz-actions a, .quiz-actions .link-btn { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--site-primary); }
.quiz-chips { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-chips li { padding: 6px 12px; font-size: 14px; color: var(--site-ink); background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 999px; }
main .quiz-why-h { margin: 16px 0 8px; font-size: 18px; }
.quiz-why { max-width: 720px; margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }
.quiz-relax { max-width: 720px; margin: 0 0 16px; padding: 12px 16px; background: var(--site-soft); color: var(--site-ink); border-left: 4px solid var(--site-accent); border-radius: 0 12px 12px 0; }
.quiz-relax p { margin: 0; }
.quiz-relax p + p { margin-top: 6px; }
.quiz-cta { margin-top: 8px; }
.quiz-note { max-width: 720px; margin: 24px 0 0; font-size: 14px; color: var(--site-muted); }
/* Thẻ kết quả chọn nệm: giá kèm "· cỡ 1m6 × 2m" được xuống dòng ở thẻ hẹp (375 px, hai cột) thay vì bị cắt. */
.quiz-result .ed-card .price { white-space: normal; }
/* QĐ-146 (soát 5 vai, Visual P1): trang danh sách cũng hiện giá kèm "· cỡ 1m6 × 2m" ⇒ lưới 3 cột (danh sách + kết quả chọn nệm) cho xuống dòng,
   thắng luật giữ một dòng ở ≤ 640 px (QĐ-133). Điều chỉnh 2026-11-17: trang chủ cũng dùng giá cỡ 1m6 × 2m ⇒ mọi lưới thẻ + ray cong. */
/* Soát 5 vai (Visual P2): giới hạn 14ch ⇒ "cỡ 1m6 × 2m" LUÔN xuống dòng riêng ở mọi khổ — thẻ cùng hàng có giá thẳng hàng (không thẻ một dòng,
   thẻ hai dòng). Giá "Từ …" ngắn (gối, ghế) vẫn một dòng. */
.ed-grid .ed-card .price, .rail .price { white-space: normal; max-width: 14ch; }
/* Vòng 2 (soát 5 vai): neo #quiz chừa chỗ cho thanh đầu trang dính (UX P1-A); 3 nút kết quả rộng đều ở điện thoại (Visual P3-N2); "Bỏ qua"
   luôn nằm bên phải (P3-N3); hàng "Câu trước / Làm lại" ở kết quả theo độ rộng lưới thẻ (P3-N5). */
.quiz { scroll-margin-top: 96px; }
.quiz-actions .link-btn { margin-left: auto; }
.quiz-result .quiz-actions { max-width: none; }
@media (max-width: 599px) { .quiz-cta .btn { flex: 1 1 100%; justify-content: center; } }
/* QĐ-153: hỏi đáp + khối mời khách sỉ trên trang sản phẩm; ô lọc Kích thước xếp 2 cột */
.lp-sec.lp-faq, .ed-b2b { max-width: 70ch; }
.lp-faq details { padding: 0; }
.lp-faq summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 0; }
.lp-faq summary::before { content: "+"; flex: none; width: 16px; font-weight: 600; color: var(--site-primary); }
.lp-faq details[open] > summary::before { content: "–"; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary { list-style: none; }
.lp-faq details p { margin: 0 0 12px; padding-left: 24px; color: var(--site-muted); }
.ed-b2b { margin: 32px 0; padding: 20px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.ed-b2b p { margin: 0; color: var(--site-muted); }
.ed-b2b .ed-b2b-title { margin: 0 0 4px; font-size: 16px; color: inherit; }
.ed-b2b-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-b2b-actions .btn { margin: 0; }
/* Ô lọc Kích thước: điện thoại (bảng lọc rộng cả màn hình) xếp 2 cột cho ngắn; máy tính cột lọc hẹp ⇒ một cột như các ô khác. */
@media (max-width: 640px) {
  .ed-filter fieldset.ed-f-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 2px; }
  .ed-filter fieldset.ed-f-grid legend { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------------------------------------------------------------
   QĐ-155 — trang chủ "Bản giao hưởng mỗi đêm, nâng giấc say nồng" (bản vẽ docs/ban-ve/2026-11-18-everyday-giao-huong.html, anh Trí duyệt
   2026-11-18). Màu giữ bộ đã chốt (QĐ-088 Q7) — không nền đen chữ vàng. Phông tiêu đề Lora (tự lưu, fonts-lora.css) chỉ cho ngôn ngữ chữ Latin
   (bộ phông chỉ gói tiếng Việt / Latin / Latin mở rộng); ngôn ngữ khác giữ Be Vietnam Pro / phông hệ thống như cũ. */
:root {
  --ed-head: var(--font);
  --ed-night-em: #f3e6d2;     /* dòng nghiêng khẩu hiệu trên nền xanh đêm (9,9:1) */
  --ed-staff-line: #c8bfae;   /* dòng khuông nhạc (trang trí — không mang nghĩa) */
  --ed-night-line: rgba(255, 255, 255, .6);    /* viền nút trên xanh đêm (≥ 3:1) */
  --ed-night-rule: rgba(255, 255, 255, .3);    /* kẻ trên dải con số, viền khung ảnh (trang trí) */
}
html:is(:lang(vi), :lang(en), :lang(es), :lang(pt), :lang(fr), :lang(de), :lang(tr), :lang(it)) { --ed-head: 'Lora', Georgia, 'Times New Roman', serif; }
main h1, main h2, .ed-mv, .ed-ch-list h3, .ed-numbers strong, .ed-notes strong { font-family: var(--ed-head); }
main h1, main h2 { letter-spacing: -.01em; }

/* Tên ẩn dụ của mục (Lora nghiêng, nâu đất) ngay trên tiêu đề rõ nghĩa */
.ed-mv { margin: 0 0 4px; font-size: 17px; line-height: 1.4; font-style: italic; font-weight: 500; color: var(--site-accent); }
html:not(:is(:lang(vi), :lang(en), :lang(es), :lang(pt), :lang(fr), :lang(de), :lang(tr), :lang(it))) .ed-mv { font-style: normal; }

/* Màn đầu xanh đêm tràn ngang (bóng + cắt: không tạo thanh cuộn ngang); sao + khuông nhạc cong trang trí */
.ed-night { background: var(--site-primary); color: var(--site-on-primary); box-shadow: 0 0 0 100vmax var(--site-primary); clip-path: inset(0 -100vmax); }
.ed-hero.ed-night { position: relative; padding: 56px 0 96px; }
.ed-hero.ed-night > :not(svg) { position: relative; z-index: 1; }
.ed-stars, .ed-staff { position: absolute; left: 0; width: 100%; pointer-events: none; }
.ed-stars { top: 0; height: 100%; fill: var(--site-on-primary); opacity: .5; }
.ed-staff { bottom: 12px; height: 64px; fill: none; stroke: var(--site-on-primary); stroke-width: 1; opacity: .22; }
.ed-staff path, .ed-staff-score line { vector-effect: non-scaling-stroke; }
/* Soát Visual vòng 1 (P2): hai cột chữ 1,1 / ảnh 0,9 như bản vẽ từ 900 px (flex cũ 420 + 520 px rơi xuống một cột ở 1024 px). */
@media (min-width: 900px) { .ed-hero.ed-night:has(.ed-hero-img) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; } }
main .ed-night h1, main .ed-night h2 { color: var(--site-on-primary); }
main .ed-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; text-wrap: balance; }
.ed-hero h1 em { display: block; font-style: normal; font-weight: 500; color: var(--ed-night-em); }
html:is(:lang(vi), :lang(en), :lang(es), :lang(pt), :lang(fr), :lang(de), :lang(tr), :lang(it)) .ed-hero h1 em { font-style: italic; }
.ed-night .ed-kicker { color: var(--ed-step); }
.ed-night .ed-lead { color: var(--ed-on-night); }
.ed-hours { margin: -8px 0 0; font-size: 14px; color: var(--ed-on-night); }
main .ed-cta .ed-btn-cream { background: var(--site-bg); color: var(--site-primary); border: 1.5px solid var(--site-bg); }
main .ed-cta .ed-btn-cream:hover { background: var(--site-surface); }
main .ed-cta .ed-btn-line { background: transparent; color: var(--site-on-primary); border: 1.5px solid var(--ed-night-line); }
main .ed-cta .ed-btn-line:hover { border-color: var(--site-on-primary); }
.ed-night :focus-visible { outline-color: var(--site-focus-on-dark); }
.ed-night .ed-hero-img { border: 1px solid var(--ed-night-rule); background: var(--site-primary-hover); }

/* Bốn chương của một đêm ngon (neo #cach-mua của menu "Cách mua & giao hàng") */
.ed-chapters { padding-top: 48px; }
/* Soát UX vòng 1 (P2): menu nhảy tới #cach-mua / #chon-do-em — chừa chỗ cho thanh đầu trang dính (như .quiz). */
#cach-mua, #chon-do-em { scroll-margin-top: 96px; }
.ed-ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .ed-ch-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ed-ch-list li { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; min-width: 0; }
.ed-ch-no { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--site-accent); }
.ed-ch-list h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--site-primary); }
.ed-ch-list p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--site-muted); }
.ed-ch-list .ed-ch-what { font-size: 15px; font-weight: 600; color: var(--site-ink); }
.ed-ch-list a { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--site-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Những nốt nhạc biết nói — dải xanh đêm thứ hai, chỉ số đọc từ dữ liệu */
.ed-numbers { padding: 48px 0 56px; margin: 24px 0; }
.ed-numbers .ed-mv { color: var(--ed-step); }
main .ed-numbers h2 { margin: 0 0 28px; font-size: clamp(24px, 3.5vw, 30px); }
.ed-numbers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ed-numbers li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ed-night-rule); }
.ed-numbers strong { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; font-weight: 600; white-space: nowrap; }
.ed-numbers span { font-size: 14px; line-height: 1.5; color: var(--ed-on-night); }

/* Năm nốt độ êm — khuông nhạc (nốt càng cao càng cứng); nốt có hàng là đường dẫn tới danh sách lọc, nốt chưa có hàng chỉ là chữ */
/* Soát Visual vòng 1 (P3): nền vải lanh tràn ngang như bản vẽ — tách nhịp với mục trên / dưới. */
.ed-score { background: var(--site-soft); box-shadow: 0 0 0 100vmax var(--site-soft); clip-path: inset(0 -100vmax); padding-top: 40px; margin-bottom: 24px; }
.ed-score-in { padding: 24px 20px 16px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; }
.ed-staff-score { display: block; width: 100%; height: auto; }
.ed-staff-lines line { stroke: var(--ed-staff-line); stroke-width: 1.2; }
.ed-staff-score .on ellipse { fill: var(--site-primary); }
.ed-staff-score .on line { stroke: var(--site-primary); stroke-width: 2.4; }
.ed-staff-score .off ellipse { fill: var(--site-surface); stroke: var(--site-muted); stroke-width: 2; }
.ed-staff-score .off line { stroke: var(--site-muted); stroke-width: 2; }
.ed-notes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: center; }
.ed-notes a, .ed-note-off { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-height: 44px; padding: 10px 6px; border-radius: 12px; text-decoration: none; color: var(--site-ink); }
.ed-notes a:hover { background: var(--site-soft); }
.ed-notes strong { font-size: 18px; line-height: 1.25; color: var(--site-primary); }
.ed-notes span { font-size: 13px; line-height: 1.45; color: var(--site-muted); }
.ed-notes .ed-more { margin-top: auto; font-weight: 600; color: var(--site-accent); }
.ed-note-off strong { color: var(--site-muted); }
.ed-note-off .ed-more { color: var(--site-muted); font-weight: 400; }

@media (max-width: 640px) {
  .ed-hero.ed-night { padding: 32px 0 72px; gap: 24px; }
  .ed-staff { bottom: 10px; height: 44px; }
  main .ed-hero h1 { font-size: clamp(30px, 9vw, 38px); }
  main .ed-cta .btn { flex: 1 1 100%; justify-content: center; }
  .ed-chapters { padding-top: 32px; }
  .ed-ch-list { gap: 10px; }
  .ed-ch-list li { padding: 14px 12px; }
  .ed-ch-list h3 { font-size: 18px; }
  .ed-ch-no { font-size: 12px; letter-spacing: .04em; }   /* tên chương không ngắt giữa (dấu cách không ngắt trong mã) */
  .ed-numbers li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ed-ch-list li:not(.ed-ch-keep):has(.ed-ch-what) > p:not(.ed-ch-what) { display: none; }   /* chương không có dòng đậm thì giữ câu mô tả */   /* bản vẽ mục B: điện thoại chỉ giữ tên việc + dòng đậm */
  .ed-ch-list .ed-ch-what { font-size: 14px; }
  .ed-numbers { padding: 36px 0 40px; }
  .ed-numbers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-score-in { padding: 16px 10px 10px; }
  /* Soát vòng 1 (Visual / UX / Dev P3): giữ 5 cột để chữ thẳng cột với nốt trên khuông (bản vẽ: khuông thu gọn). */
  .ed-notes { gap: 2px; }
  .ed-notes a, .ed-note-off { padding: 8px 2px; }
  .ed-notes strong { font-size: 14px; }
  .ed-notes span { font-size: 12px; line-height: 1.35; }
  .ed-notes .ed-more { font-size: 12px; }
}
