/* Phòng tối / showroom.
   Thứ bán ở đây CHÍNH LÀ thiết kế: 50 mẫu, mỗi mẫu một nhận diện rất to tiếng.
   Nên chrome câm màu — xám NGUỘI, không kem ấm — để màu chỉ đến từ hàng hoá.
   Bản kem ấm cũ nhuộm ấm mọi thumbnail và accent đấu nhau với đám mẫu cam/đỏ. */
:root {
  --bg: #0F1115;
  --surface: #16191F;         /* thân thẻ */
  --surface-2: #1C2027;       /* thanh chrome, khối nổi */
  --surface-3: #232831;
  --ink: #ECEEF2;
  --muted: #949CA8;           /* một họ xám nguội duy nhất */
  --line: #262B34;
  --line-soft: #1E232B;
  --accent: #d5451b;          /* màu brand — admin đổi được qua /api/site */
  --accent-ink: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  /* bóng ám theo nền, không phải đen thuần */
  --shadow-1: 0 1px 2px rgba(5,7,10,.4);
  --shadow-2: 0 8px 20px rgba(5,7,10,.5);
  --shadow-3: 0 24px 60px -12px rgba(5,7,10,.78);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
/* Hạt nhiễu rất nhẹ — nền phẳng tuyệt đối trông vô hồn dưới ánh sáng tối */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-contact { color: var(--muted); font-size: 14px; }
.cart-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.cart-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; transition: transform .2s var(--ease); }
.cart-count.bump { animation: pop .4s var(--ease); }

/* ---------- Hero ---------- */
/* Hero nén lại: ở một cái chợ, HÀNG mới là hero — đẩy lưới mẫu lên sớm.
   Bản cũ cao 68px + vệt glow hồng để trống nửa phải, đọc như vết bẩn hơn là hiệu ứng. */
.hero { position: relative; padding: 44px 0 26px; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow b { color: var(--ink); font-weight: 700; }
.hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 12px; max-width: 17ch; font-weight: 800; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: clamp(15px, 1.7vw, 17px); color: var(--muted); margin: 0 0 20px; max-width: 48ch; text-wrap: pretty; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
/* Danh sách tin cậy sang cột phải → cân lại hero, không cần thêm nội dung mới */
.hero-trust { list-style: none; display: grid; gap: 7px; padding: 0; margin: 0; color: var(--muted); font-size: 13.5px; text-align: right; }
.hero-trust li { position: relative; }
.hero-trust strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero .eyebrow { animation: fadeUp .6s var(--ease) both; }
.hero h1 { animation: fadeUp .6s .06s var(--ease) both; }
.hero p { animation: fadeUp .6s .12s var(--ease) both; }
.hero #hero-cta { animation: fadeUp .6s .18s var(--ease) both; }
.hero-trust { animation: fadeUp .6s .24s var(--ease) both; }
@media (max-width: 860px) {
  .hero-trust { text-align: left; grid-auto-flow: column; grid-auto-columns: max-content; gap: 16px; overflow-x: auto; font-size: 12.5px; scrollbar-width: none; }
  .hero-trust::-webkit-scrollbar { display: none; }
}

/* ---------- Toolbar ---------- */
.toolbar { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); padding: 13px 0; border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; flex-direction: column; gap: 11px; }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 100%; font-size: 16px; padding: 12px 18px 12px 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search input::placeholder { color: var(--muted); }
.search .ico { position: absolute; left: 15px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }

/* Hàng chip cuộn ngang: bản cũ cắt cụt "Thực p…" ở mép, không dấu hiệu cuộn được.
   Mask làm mờ dần mép phải → thấy rõ là còn nữa. */
.chips-rail { position: relative; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips-rail[data-end="true"] .chips { -webkit-mask-image: none; mask-image: none; }
.chip { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; scroll-snap-align: start; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--surface-3); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* ---------- Grid + cards ---------- */
main { padding: 28px 0 64px; }
.count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

/* Thẻ = một cửa sổ trình duyệt nhỏ đang mở chính mẫu đó.
   --tpl là màu nhận diện riêng của mẫu (seed trích từ file đem demo), gán inline theo từng thẻ:
   chấm chrome + viền hover lấy màu đó → cả lưới được tô bởi chính hàng hoá, không phải bởi chrome. */
.card { --tpl: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease); animation: fadeUp .5s var(--ease) backwards; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--tpl) 42%, var(--line)); }

.card .chrome { display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 11px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
/* Chấm giữ ĐÚNG màu brand của mẫu (kể cả brand tối như đỏ Tết #8E1B12) — vòng sáng bao quanh
   để hình chấm luôn thấy được mà không phải bịa màu sáng hơn cho nó. */
.card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tpl); flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 1px rgba(255,255,255,.10); }
.card .url { font-size: 11px; color: var(--muted); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Nhãn số trang KHÔNG lấy --tpl làm màu chữ: 28/50 màu brand không đạt 4.5:1 trên chrome
   (ca-nha-oi 1.57:1, sum-vay 1.80:1 — không đọc nổi). Chữ trung tính, phân biệt bằng nền/đậm. */
.card .pages { margin-left: auto; flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--surface-3); border: 1px solid transparent; padding: 2px 7px; border-radius: 4px; }
.card .pages.is-landing { color: var(--muted); background: none; border-color: var(--line); font-weight: 600; }

.card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card .thumb-img { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .5s var(--ease); }
.card:hover .thumb-img { transform: scale(1.05); }
.card .badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(8,10,13,.66); color: #fff; font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.card .thumb-cta { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: linear-gradient(0deg, rgba(8,10,13,.55), rgba(8,10,13,.15)); opacity: 0; transition: opacity .28s var(--ease); }
.card .thumb-cta span { background: var(--ink); color: var(--bg); font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 999px; transform: translateY(8px); transition: transform .28s var(--ease); box-shadow: var(--shadow-2); }
.card:hover .thumb-cta { opacity: 1; }
.card:hover .thumb-cta span { transform: translateY(0); }
.card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card h3 { font-family: var(--font-display); margin: 0; font-size: 17.5px; letter-spacing: -.02em; font-weight: 700; }
.card .desc { color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.card .price { font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.card .add { color: var(--muted); border-color: var(--line); background: none; font-weight: 600; }
.card .add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), filter .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--surface-3); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(4,6,9,.66); backdrop-filter: blur(3px); display: none; opacity: 0; transition: opacity .25s var(--ease); }
.overlay[open] { display: block; opacity: 1; }

/* Detail sheet */
.sheet { position: absolute; inset: 3.2vh 3.2vw; background: var(--surface); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1fr 350px; box-shadow: var(--shadow-3); transform: scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.overlay[open] .sheet { transform: scale(1); opacity: 1; }
.sheet .preview { background: var(--surface-2); position: relative; }
.sheet .device-bar { position: absolute; top: 0; left: 0; right: 0; height: 36px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 12px; color: var(--muted); z-index: 2; }
.sheet .device-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); flex: none; }
.sheet .device-bar em { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Chuyển kích thước xem trước — bán theme thì phải soi được responsive */
.device-switch { margin-left: auto; display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 2px; flex: none; }
.device-switch button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease); }
.device-switch button:hover { color: var(--ink); }
.device-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Sân khấu preview: iframe co theo thiết bị, canh giữa */
.sheet .stage { position: absolute; top: 36px; left: 0; right: 0; bottom: 0; display: grid; place-items: center; background: var(--surface-2); overflow: auto; }
/* Không transition width/height: iframe đổi cỡ sẽ ép document bên trong re-layout mỗi frame,
   khiến media query của mẫu nhảy qua loạt breakpoint trung gian. Đổi cỡ tức thì cho gọn. */
.sheet .stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.sheet .stage[data-device="tablet"] iframe { width: 834px; max-width: 100%; height: calc(100% - 32px); border-radius: 12px; box-shadow: var(--shadow-2); }
.sheet .stage[data-device="mobile"] iframe { width: 390px; max-width: 100%; height: calc(100% - 32px); border-radius: 18px; box-shadow: var(--shadow-2); }
.frame-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; z-index: 1; transition: opacity .25s var(--ease); }
.frame-load[hidden] { display: none; }
.frame-load .spin { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sheet .aside { padding: 26px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; }
.pages-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pages-tag.is-store { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.sheet .aside .meta { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.sheet .aside h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.sheet .aside .price { font-size: 24px; font-weight: 800; color: var(--accent); }
.sheet .close { position: absolute; top: 14px; right: 16px; z-index: 3; border: 0; background: rgba(20,18,15,.6); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; transition: transform .18s var(--ease), background .2s; }
.sheet .close:hover { background: rgba(20,18,15,.85); transform: rotate(90deg); }

/* Cart drawer */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform .32s var(--ease); }
.overlay[open] .drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); font-size: 18px; }
.drawer-head .close { position: static; background: transparent; color: var(--ink); width: auto; height: auto; font-size: 26px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.cart-item { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fadeUp .3s var(--ease) both; }
.ci-thumb { width: 60px; height: 46px; border-radius: var(--radius-sm); background: var(--surface-2) center/cover no-repeat; flex: none; }
.ci-info { flex: 1; display: flex; flex-direction: column; }
.ci-info span { color: var(--muted); font-size: 14px; }
.cart-item .btn { border-radius: 50%; width: 32px; height: 32px; padding: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 16px; }
.cart-total strong { font-size: 22px; }

/* Modal (checkout / lookup) */
.modal { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal .box { background: var(--surface); border-radius: 18px; width: min(470px, 100%); padding: 26px; box-shadow: var(--shadow-3); max-height: 92vh; overflow: auto; transform: translateY(12px) scale(.98); opacity: 0; transition: transform .28s var(--ease), opacity .28s var(--ease); }
.overlay[open] .modal .box { transform: none; opacity: 1; }
.modal h3 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.01em; }
.modal .muted { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.order-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 18px; font-size: 14px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.order-summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px !important; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); outline: none; font-family: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.radio-row { display: flex; gap: 10px; }
.radio-row label { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px; font-size: 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.radio-row label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.note { background: color-mix(in srgb, #4ade80 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, #4ade80 22%, var(--line)); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; }
.note.warn { background: color-mix(in srgb, #fbbf24 10%, var(--surface-2)); border-color: color-mix(in srgb, #fbbf24 26%, var(--line)); }
.pay-qr-wrap { text-align: center; margin: 14px 0; }
.pay-qr { display: block; margin: 0 auto; width: 220px; max-width: 100%; height: auto; border-radius: var(--radius-sm); background: #fff; padding: 8px; }
.hp { position: absolute; left: -9999px; }
.err { color: #ff8b7a; font-size: 14px; min-height: 18px; margin: 8px 0 0; }

/* ---------- Contact / footer ---------- */
/* Khối liên hệ: bản cũ dùng nền var(--ink) — ở tông tối --ink là gần TRẮNG nên sẽ thành
   khối trắng chữ trắng. Dùng surface nổi + viền thay vì đảo tông. */
.contact { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); padding: 52px 0; margin-top: 44px; }
.contact h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: 27px; letter-spacing: -.025em; }
.contact p { color: var(--muted); margin: 0 0 20px; }
.contact form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 540px; }
.contact input { flex: 1; min-width: 210px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 16px; outline: none; transition: border-color .2s var(--ease); }
.contact input::placeholder { color: var(--muted); }
.contact input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.site-foot { padding: 28px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.linklike { background: none; border: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast / states ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; z-index: 90; box-shadow: var(--shadow-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); aspect-ratio: 16/13; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 64px 0; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 720px) {
  .sheet { grid-template-columns: 1fr; inset: 0; border-radius: 0; }
  .sheet .preview { height: 46vh; }
  .sheet .device-bar em { display: none; }   /* nhường chỗ cho nút đổi kích thước */
  .header-contact { display: none; }
  /* Vùng chạm tối thiểu 44px trên cảm ứng — giữ nguyên kích thước nhìn thấy, chỉ nới chiều cao */
  .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .cart-btn, .btn-sm, .card .add { min-height: 44px; }
  .device-switch button { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-glow { display: none; }
}
