/* Web bán hàng (QĐ-065) — TẦNG NỀN dùng chung mọi web (QĐ-088 điểm 4, docs/50 mục 6.2): bố cục, lưới, cỡ chữ, trạng thái.
   Màu theo web nằm ở packages/brand/sites/<web>.css (biến --site-*), máy chủ nạp đúng tệp theo tên miền — tệp này KHÔNG có mã màu
   (test chặn). Ưu tiên điện thoại (375 px), chữ hệ thống (tải nhanh, đủ dấu tiếng Việt), nút ≥ 44 px, vòng focus rõ, tôn trọng giảm
   chuyển động. */
/* Thuộc tính hidden thắng display của lớp (vd .variants là flex) — soát Visual QĐ-089. */
[hidden] { display: none !important; }
:root {
  --ink: var(--site-ink); --ink-2: var(--site-ink-2); --muted: var(--site-muted); --line: var(--site-line); --soft: var(--site-soft);
  --bg: var(--site-bg); --surface: var(--site-surface); --primary: var(--site-primary); --on-primary: var(--site-on-primary);
  --ok: var(--site-ok); --warn: var(--site-warn); --bad: var(--site-bad); --radius: var(--site-radius); --max: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.foot :focus-visible { outline-color: var(--site-focus-on-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Đầu trang */
.top { position: sticky; top: 0; z-index: 5; background: var(--site-header-bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { height: 26px; width: auto; }
/* Web chưa có logo (everyday — QĐ-088 Q8 chờ vẽ): tên web bằng chữ. */
.logo-text { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--primary); }
.foot-logo .logo-text { font-size: 16px; line-height: 22px; color: var(--primary); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 10px 10px; border-radius: 8px; white-space: nowrap; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 10px 12px;
  border: 1px solid var(--primary); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--primary); color: var(--on-primary); font-size: 13px;
  display: inline-grid; place-items: center; padding: 0 6px; }
.notice-test { background: var(--primary); color: var(--on-primary); text-align: center; font-size: 13px; padding: 6px 16px; }

/* Nội dung */
main { min-height: 60vh; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 5vw, 40px); margin: 24px 0 8px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.muted { color: var(--muted); }
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-bleed { margin: 0 -16px; padding: 0 16px; }
.hero-in { padding-top: 32px; padding-bottom: 40px; }
.hero h1 { margin-top: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.hero-badges li::before { content: "✓ "; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--site-primary-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 15px; }   /* ≥ 44 px chạm (cổng Visual docs/50 mục 6.6 — đo 41 px ở 375 px) */
.chips a[aria-current="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 40px; padding: 0; list-style: none; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img .noimg { color: var(--muted); font-size: 13px; padding: 12px; text-align: center; }
.card-name { margin: 10px 0 4px; font-size: 15px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: var(--site-card-name-lines, 2); line-clamp: var(--site-card-name-lines, 2); -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-name { text-decoration: underline; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock { font-size: 13px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--bad); }
/* Đặt trước (hàng đặt từ hãng — QĐ-089): trạng thái "cảnh báo" có chữ, không chỉ màu. */
.stock.pre { color: var(--warn); }
.opt-off { color: var(--muted); }
.sum .muted td { color: var(--muted); }

/* Trang sản phẩm */
.crumbs { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; gap: 24px; margin: 16px 0 40px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.gallery-main { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.buy h1 { margin-top: 0; font-size: clamp(22px, 4vw, 30px); }
.buy .price { font-size: 26px; margin: 8px 0; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; border: 0; }
.variants legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.variants label { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.variants label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variants label:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
.variants input { accent-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--site-input-border); border-radius: var(--radius); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 48px; height: 46px; border: 0; text-align: center; font: inherit; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.buy-row .btn { flex: 1 1 200px; }
.assure { margin: 16px 0; padding: 14px 16px; background: var(--soft); border-radius: var(--radius); font-size: 15px; }
.assure p { margin: 4px 0; }
.desc { max-width: 70ch; }
.desc h3 { font-size: 17px; margin: 20px 0 6px; }
.desc ul { margin: 0 0 12px; padding-left: 20px; }
.desc li { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--primary); color: var(--on-primary); padding: 12px 18px;
  border-radius: 999px; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 20; }

/* Giỏ hàng / đặt hàng */
.two { display: grid; gap: 24px; margin: 8px 0 48px; }
@media (min-width: 900px) { .two { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img, .line .ph { width: 64px; height: 64px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.line-name { font-weight: 500; }
.line-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.sum { width: 100%; border-collapse: collapse; margin: 8px 0; }
.sum td { padding: 6px 0; }
.sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum .total td { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 18px; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--site-input-border); border-radius: 8px; font: inherit; color: var(--ink); background: var(--surface); }
.field textarea { min-height: 80px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }
.pay { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.pay legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.pay label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.pay input { margin-top: 4px; accent-color: var(--ink); }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; border: 1px solid; }
.alert-bad { color: var(--bad); border-color: var(--site-bad-line); background: var(--site-bad-tint); }
.alert-ok { color: var(--ok); border-color: var(--site-ok-line); background: var(--site-ok-tint); }
.alert-info { color: var(--ink); border-color: var(--line); background: var(--soft); }
.variant-prices { margin: 8px 0; padding-left: 20px; }
/* Chưa mở đặt hàng trực tuyến (QĐ-066 điểm 4): nút gọi thay nút đặt — tách khỏi khối .assure bên dưới. */
.order-closed { margin: 16px 0 24px; }
.order-closed .call { display: grid; gap: 8px; margin: 12px 0 0; }
.hero-hours { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; padding: 40px 16px; }
.mt0 { margin-top: 0; }
.narrow { max-width: 460px; }
.w640 { max-width: 640px; margin-top: 16px; }
.stack { margin: 12px 0; }
.h-small { margin: 0 0 8px; font-size: 18px; }
.line-plain { grid-template-columns: 1fr auto; }

/* Đơn hàng */
.status { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-weight: 600; }
.qr-pay { display: grid; gap: 16px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 640px) { .qr-pay { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } }
.qr-pay svg { border: 1px solid var(--line); border-radius: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Điện thoại hẹp (QC M9, 375 px): menu xuống hàng thứ hai, không phải vuốt ngang; giỏ hàng giữ ở hàng trên. */
@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 4px; }
  .cart-link { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; margin-left: -10px; flex-wrap: wrap; overflow: visible; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}

/* Xem lại đơn + đồng ý (QĐ-066) */
.review { margin-top: 8px; }
.review h2:focus { outline: none; }
.review h2 { scroll-margin-top: 140px; }   /* không bị thanh đầu trang (dính, 2 hàng ở điện thoại) che khi cuộn tới — QC 2026-10-21 */
.consent { display: grid; gap: 10px; margin: 16px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.vat { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }

/* Thông tin sản phẩm (nhãn hàng hoá) */
.specs { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 20px; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.specs dd p { margin: 0 0 6px; }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; gap: 2px; } .specs dd { margin-bottom: 10px; } }

/* Trang chính sách */
.policy { max-width: 75ch; margin-bottom: 40px; }
.policy h2 { font-size: 20px; }
.policy li { margin: 4px 0; }
.policy-list { display: grid; gap: 8px; padding-left: 20px; }
mark.todo { background: var(--site-todo-bg); color: var(--site-todo-ink); padding: 0 3px; border-radius: 3px; }
.foot mark.todo { background: var(--site-todo-ink); color: var(--site-todo-bg); }

/* Chân trang */
.foot { background: var(--primary); color: var(--on-primary); margin-top: 48px; }
.foot .wrap { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 24px; }
@media (min-width: 720px) { .foot .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.foot .mt-foot { margin-top: 20px; }
.foot-org p { margin: 8px 0; }
.moit img { width: 150px; height: auto; }
.moit a { display: inline-block; }
.foot a { color: var(--on-primary); }
.foot h2 { font-size: 16px; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .small { font-size: 13px; color: var(--site-on-primary-muted); }
.foot-logo { background: var(--surface); display: inline-block; padding: 8px 12px; border-radius: 8px; }
.foot-logo img { height: 22px; width: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .notice-test { display: none; } }

/* Web công ty (QĐ-090 — corporate.ts): nút ở đầu trang, thẻ thương hiệu, danh sách cửa hàng, biểu mẫu báo giá. */
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.top .btn-small { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .top .btn-small { margin-left: auto; } }
.brand-cards > li { display: flex; flex-direction: column; }
.brand-cards > li > p:last-child { margin-top: auto; }
.brand-logo { display: block; height: 32px; width: auto; }
/* Logo Modern House gần vuông (2,35 : 1) ⇒ cao hơn logo chữ dài của cancook để đọc được dòng chữ trong logo (soát Visual). */
.logo img.logo-corp { height: 34px; }
.foot-logo img.logo-corp { height: 28px; }
/* Lỗi theo ô (biểu mẫu web công ty): chữ + viền, không chỉ màu. */
.field-error { color: var(--bad); font-size: 14px; margin: 4px 0 0; }
.quote-form [aria-invalid='true'] { border-color: var(--bad); border-width: 2px; }
.brand-cards, .store-list { display: grid; gap: 16px; margin: 16px 0 40px; padding: 0; list-style: none; }
@media (min-width: 720px) { .brand-cards, .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-form fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.quote-form > fieldset > legend { font-weight: 600; font-size: 18px; margin-bottom: 10px; padding: 0; }
.quote-form select, .quote-form textarea { width: 100%; }
/* Ô bẫy chống máy tự điền: ra khỏi màn hình (không display:none — một số máy bỏ qua ô ẩn), không nhận Tab. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Bài viết web công ty (QĐ-091 — corporate-posts.ts): thẻ bài (ảnh 3:2), trang bài (đọc ≤ 72 ký tự / dòng), ảnh + bảng trong bài. */
.post-cards { display: grid; gap: 24px; margin: 16px 0 32px; padding: 0; list-style: none; }
@media (min-width: 640px) { .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .post-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: block; text-decoration: none; color: inherit; }
.post-card-img { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-title { margin: 12px 0 4px; font-size: 18px; line-height: 1.35; }
.post-card:hover .post-card-title { text-decoration: underline; }
.post-card-sum { margin: 4px 0 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin: 4px 0; color: var(--muted); font-size: 14px; }
.post { max-width: 72ch; margin: 0 0 40px; }
.post h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.25; margin-bottom: 8px; }
.post-body h2 { font-size: 22px; margin-top: 32px; }
.post-body h3 { font-size: 18px; margin-top: 24px; }
.post-body li { margin: 4px 0; }
.post-figure { margin: 24px 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--soft); }
.post-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.post-hero { margin-top: 16px; }
.post-facts { margin: 16px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-wrap table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--soft); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0 32px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

/* Menu web công ty 6 mục (QĐ-091): 641–960 px không đủ một hàng ⇒ xuống hàng thứ hai như điện thoại (không cuộn ngang ẩn thanh cuộn —
   soát Visual). Web cửa hàng (4 mục + giỏ) giữ nguyên. */
@media (min-width: 641px) and (max-width: 960px) {
  .top .wrap:has(.nav-corp) { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 4px; }
  .top .wrap:has(.nav-corp) .btn-small { margin-left: auto; }
  .nav-corp { order: 3; flex: 1 0 100%; margin-left: -10px; flex-wrap: wrap; overflow: visible; }
}

/* QĐ-097 trang giới thiệu sản phẩm: câu giới thiệu, lợi ích, phù hợp với, chọn loại, câu hỏi thường gặp; nút Nhắn Zalo. */
.lp-intro { margin: 4px 0 8px; padding-left: 12px; border-left: 3px solid var(--ink); color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.lp-sec { margin: 28px 0; max-width: 900px; }
.lp-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; }
.lp-benefits li { padding-left: 14px; border-left: 3px solid var(--line); }
.lp-benefits strong { display: block; }
.lp-benefits span { color: var(--ink-2); }
.lp-fits { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lp-fits span { background: var(--soft); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.lp-scroll { overflow-x: auto; }
.lp-size { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lp-size th, .lp-size td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.lp-size th { color: var(--muted); font-size: 13px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.lp-faq summary { font-weight: 600; cursor: pointer; }
.lp-faq details p { margin: 6px 0 0; color: var(--ink-2); }
.btn-zalo { margin-top: 8px; }

/* QĐ-141 — băng chuyền sản phẩm trang chủ, không canvas / WebGL, không thư viện (docs/50 mục 6.7).
   Chưa có JavaScript: cả hai là dải thẻ cuộn ngang, mỗi món là đường dẫn thật có tên + giá. shop.js thêm lớp .is-on rồi mới xếp thành bánh
   xe (cancook) hoặc ray cong (everyday). Chuyển động: nút / phím 200 ms, thả tay 200–400 ms (shop.js); máy bật giảm chuyển động ⇒ không trôi.
   Khi đã xếp: tên + giá từng món ẩn khỏi mắt bằng cắt khung (KHÔNG visibility: hidden — vẫn là tên của đường dẫn cho trình đọc màn hình);
   mắt đọc tên + giá của món đang chọn ở khối chữ rộng bên dưới. */
.showcase { margin: 8px 0 24px; }
.showcase h2 { margin-bottom: 4px; }
.showcase-hint { margin: 0 0 8px; font-size: 14px; }
.wheel-list, .rail-list { display: flex; gap: 16px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.wheel-list li { flex: 0 0 clamp(140px, 40vw, 200px); scroll-snap-align: start; }
.wheel-item, .rail-item { display: block; text-decoration: none; text-align: center; }
.wheel-img { display: block; aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.wheel-img img { width: 100%; height: 100%; object-fit: contain; }
.wheel-item .card-name { margin: 8px 0 2px; }
.wheel-item .price, .rail-item .price { display: block; }
.wheel-item:hover .card-name, .rail-item:hover .rail-name { text-decoration: underline; }
.wheel.is-on .wheel-item .card-name, .wheel.is-on .wheel-item .price, .rail.is-on .rail-name, .rail.is-on .rail-item .price { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Bánh xe (cancook.vn): vuốt dọc vẫn cuộn trang (pan-y trên cả khung lẫn danh sách — danh sách là khung cắt nằm giữa). Khung cắt không
   cuộn được (overflow: clip + tắt bắt dính) — để nguyên bắt dính của dải cuộn thì trình duyệt tự kéo danh sách lệch vài px. */
.wheel.is-on, .wheel.is-on .wheel-list, .wheel.is-on .wheel-list * { touch-action: pan-y; }
.wheel.is-on { user-select: none; -webkit-user-select: none; }
.wheel.is-on .wheel-list { display: block; position: relative; height: calc(clamp(120px, 34vw, 272px) + 48px); padding: 0; overflow: hidden; overflow: clip; scroll-snap-type: none; cursor: grab; }
.wheel.is-on.is-drag .wheel-list { cursor: grabbing; }
.wheel.is-on .wheel-list li { position: absolute; left: 50%; top: 24px; width: clamp(120px, 34vw, 272px); margin-left: calc(clamp(120px, 34vw, 272px) / -2); scroll-snap-align: none; will-change: transform; }
.wheel-cap, .rail-cap { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; }
.wheel-cap p, .rail-cap p { margin: 0; }
.wheel-say, .rail-say { display: grid; justify-items: center; gap: 4px; min-height: 88px; align-content: start; }
.wheel-say strong, .rail-say strong { font-size: 18px; line-height: 1.35; max-width: 32ch; }
.wheel-say .price, .rail-say .price { font-size: 18px; line-height: 1.35; }
.wheel-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; }
.wheel-ctl .btn { min-width: 48px; padding: 0 14px; }
.wheel-now { min-width: 3.5em; text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.wheel-cap .btn[data-wheel-go] { margin-top: 8px; }
/* Ray cong (everyday.vn): một mẫu nổi, các mẫu khác mờ. Làm mờ ẢNH (không phải cả mục) trên nền tròn màu trang ⇒ đường cong không lộ qua ảnh. */
.rail { position: relative; }
.rail-line { display: none; }
.rail-line path { fill: none; stroke: var(--site-input-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rail-list li { flex: 0 0 clamp(120px, 34vw, 170px); scroll-snap-align: start; }
.rail-item img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.rail-name { display: block; margin: 8px 0 2px; font-size: 15px; font-weight: 500; }
.rail.is-on .rail-line { display: block; position: absolute; left: 0; top: 0; width: 100%; height: clamp(180px, 26vw, 260px); }
.rail.is-on .rail-list { display: block; position: relative; height: clamp(180px, 26vw, 260px); padding: 0; overflow: visible; scroll-snap-type: none; }
.rail.is-on .rail-list li { position: absolute; width: clamp(56px, 11vw, 96px); transform: translate(-50%, -50%); transition: transform .2s ease-out; scroll-snap-align: none; }
.rail.is-on .rail-list li.is-on { transform: translate(-50%, -50%) scale(1.45); z-index: 2; }
.rail.is-on .rail-list li.is-off { display: none; }
.rail.is-on .rail-item { border-radius: 50%; background: var(--bg); }
.rail.is-on .rail-item img { border-radius: 50%; border: 2px solid var(--bg); opacity: .45; transition: opacity .2s ease-out; }
.rail.is-on li.is-on img { opacity: 1; box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 14%, transparent); }
.rail-cap { margin-top: 8px; }
.rail-say strong { color: var(--primary); }
.rail-cap .btn { margin-top: 4px; }
/* Điện thoại: ray cong chỉ xếp 5 mẫu đầu (shop.js thêm .is-off cho mẫu 6, 7), mẫu nổi phóng ít hơn ⇒ ảnh không chồng nhau, vùng chạm ≥ 44 px. */
@media (max-width: 599px) {
  .rail.is-on .rail-list li.is-on { transform: translate(-50%, -50%) scale(1.15); }
  .rail.is-on .rail-list, .rail.is-on .rail-line { height: 160px; }
}
[data-rail-hint] { font-size: 14px; }
/* QĐ-154 điểm 1: hàng nút chia sẻ (share.ts; bản vẽ docs/ban-ve/2026-11-18-nut-chia-se.html). Màu theo web (--primary, --line); chấm tròn
   màu chính của web (shop.css không mã màu cứng), chữ trên nút là tên mạng. Nút ≥ 44 px. */
.share { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.share-heading { margin: 0; color: var(--primary); }
.share-label { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer; }
.sbtn:hover { border-color: var(--primary); background: var(--soft); }
.sbtn[hidden] { display: none; }
.sic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); flex: none; }
.sic svg { display: block; width: 28px; height: 28px; }
/* Biểu tượng chính thức (share-icons.ts) tự có nền / màu nhãn hiệu; chỉ ô Chép link dùng màu web. */
.sic-zalo, .sic-ms, .sic-fb { background: none; border-radius: 0; }
.sic-link svg { width: 18px; height: 18px; }
.sic-zalo svg { width: 25px; height: 25px; } /* ô vuông trông to hơn hình tròn cùng cỡ — thu lại cho cân (soát 5 vai đợt 3 P3-V1) */
.share-fallback { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.share-fallback input { width: 100%; max-width: 480px; min-height: 44px; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--site-input-border, var(--line)); border-radius: 8px; font: inherit; color: var(--ink); background: var(--surface); }
.share-status { margin: 8px 0 0; min-height: 1.4em; font-size: 14px; color: var(--ink); font-weight: 600; }
.share-box { background: var(--soft); border-radius: 14px; padding: 16px; border-top: 0; margin-top: 20px; }
