/* ===== Màu nền / chữ được ghi đè từ admin (settings.bg / settings.text) ===== */
:root {
  --bg: #ffffff;
  --fg: #ffffff;
  --muted: color-mix(in srgb, var(--fg) 45%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 70%, var(--bg));
  --soft: color-mix(in srgb, var(--fg) 8%, var(--bg));
  --font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); transition: background-color .4s ease, color .4s ease;
  font-family: var(--font); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: var(--fg); }
img { display: block; max-width: 100%; }
main { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Header ===== */
.hdr {
  position: sticky; top: 0; z-index: 20; height: 50px; padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--bg); transition: background-color .4s ease;
}
.hdr .l { justify-self: start; } .hdr .r { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; gap: 3px; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.lang button { background: none; border: 0; padding: 4px 1px; font: inherit; color: inherit; cursor: pointer; }
.lang button.on { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.lang span { opacity: .5; }
.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; position: relative; }
.icon-btn svg { width: 16px; height: 16px; stroke: var(--fg); fill: none; stroke-width: 1.6; }
.bag-count { position: absolute; top: 1px; right: -4px; font-size: 9px; }
.hdr.with-menu { height: auto; min-height: 50px; padding-top: 10px; padding-bottom: 6px; align-items: start; }
.hdr.with-menu .l, .hdr.with-menu .r { padding-top: 1px; }
.mid { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu, .submenu { display: flex; gap: 22px; font-size: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 4px 2px; }
.menu::-webkit-scrollbar, .submenu::-webkit-scrollbar { display: none; }
.submenu { font-size: 10px; gap: 18px; }
.menu a, .submenu a { color: var(--muted); transition: color .2s; }
.menu a:hover, .submenu a:hover, .menu a.on, .submenu a.on { color: var(--fg); }

/* ===== Lưới sản phẩm ===== */
.grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 24px;
  padding: 20px 24px 60px; max-width: 1400px; margin: 0 auto; width: 100%;
}
.grid.zoom { grid-template-columns: repeat(3, 1fr); gap: 50px 40px; }
.grid.few { grid-template-columns: repeat(6, 1fr); }
.card { display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; animation: fade .5s forwards; }
.card .ph { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.card .ph img { width: 82%; height: 82%; object-fit: contain; transition: transform .35s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .lb { font-size: 13px; position: relative; height: 16px; }
.card .lb span { transition: opacity .2s; }
.card .lb .alt { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; color: var(--muted); }
.card:hover .lb.has-alt .main { opacity: 0; } .card:hover .lb.has-alt .alt { opacity: 1; }
.card .pr { font-size: 11px; color: var(--muted); margin-top: -8px; letter-spacing: .03em; }
/* Giá cũ / giá khuyến mãi + nhãn HOT SALE, BEST SELLER, -20% */
:root { --sale: #e0242b; }
s.old { opacity: .6; text-decoration-thickness: 1px; }
.sale { color: var(--sale); }
.card .ph { position: relative; }
.badges { position: absolute; top: 6px; left: 6px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 3px; background: var(--sale); color: #fff; font-size: 9px; line-height: 1; letter-spacing: .06em; padding: 3px 5px 2px; border-radius: 2px; font-weight: 500; }
.badge svg { width: 8px; height: 8px; fill: #fff; stroke: none; }
.pd .badges { position: static; justify-content: center; margin-bottom: 8px; }
.card .so { font-size: 10px; color: var(--muted); margin-top: -8px; }
@keyframes fade { to { opacity: 1; } }
.empty { text-align: center; padding: 120px 16px; color: var(--muted); }

/* ===== Footer ===== */
.ftr { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 30px 16px 100px; font-size: 10px; color: var(--muted); }
.ftr a:hover { color: var(--fg); }

/* ===== Newsletter (dưới cùng trang chủ) ===== */
.nl {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 22px 16px 24px;
  background: linear-gradient(to top, var(--bg) 75%, transparent);
  transform: translateY(110%); transition: transform .5s ease;
}
.nl.show { transform: none; }
.nl .in { max-width: 382px; margin: 0 auto; position: relative; }
.nl .x { position: absolute; right: -180px; top: -4px; }
.field-label { display: block; font-size: 12px; margin-bottom: 8px; }
.inp {
  width: 100%; height: 38px; padding: 0 10px; background: transparent; border: 1px solid var(--line);
  border-radius: 0; outline: none; text-transform: uppercase;
}
.inp::placeholder { color: var(--muted); }
.inp:focus { border-color: var(--fg); }
select.inp { appearance: none; }
.btn-main {
  width: 100%; height: 38px; margin-top: 6px; background: var(--btn-bg, var(--fg)); color: var(--btn-fg, var(--bg)); font-weight: 600;
}
.btn-main:disabled { opacity: .5; cursor: default; }
.note { font-size: 10px; color: var(--muted); margin-top: 8px; min-height: 12px; }

/* ===== Trang chi tiết ===== */
.pd { max-width: 900px; margin: 0 auto; padding: 10px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.car { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.car .stage { width: min(440px, 76vw); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.car .stage img { width: 86%; height: 86%; object-fit: contain; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.zwrap { position: relative; }
.car .stage.zoomed { touch-action: none; }
.car .stage.dragging { cursor: grabbing; }
.car .stage img { transform-origin: center center; will-change: transform; }
.zctl { position: absolute; right: 0; bottom: -4px; display: flex; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); z-index: 2; }
.zctl button { width: 24px; height: 24px; font-size: 15px; line-height: 1; color: var(--muted); transition: color .2s; }
.zctl button:hover:not(:disabled) { color: var(--fg); }
.zctl button:disabled { opacity: .3; cursor: default; }
.zctl span { min-width: 26px; text-align: center; cursor: pointer; }
.car .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.car .prev { left: 8%; } .car .next { right: 8%; }
.dots { display: flex; gap: 5px; margin: 10px 0 12px; height: 4px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.dots i.on { background: var(--fg); }
.pd .code { font-size: 13px; margin-bottom: 20px; }
#buy { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pd .price { font-size: 13px; margin-bottom: 14px; }
.plus { font-size: 22px; font-weight: 300; line-height: 1; padding: 4px 12px; }
.sizes { width: min(382px, 100%); }
.sizes .top { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; text-align: center; margin-bottom: 18px; }
.sizes .top .q { justify-self: start; } .sizes .top .x { justify-self: end; }
.sizes .price { text-align: center; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 16px 6px; margin: 10px 0 6px; text-align: center; }
.size-grid button { padding: 4px 0; font-size: 12px; }
.size-grid button:hover { text-decoration: underline; text-underline-offset: 4px; }
.size-grid.priced { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 8px; }
.size-grid small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; text-decoration: none; }
.adding { text-align: center; padding: 20px 0; }
.guide { white-space: pre-line; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.8; margin-bottom: 12px; }
.sub { width: min(382px, 100%); margin-bottom: 26px; }
.info-btn { margin-top: 22px; font-size: 12px; }
.info { margin-top: 16px; white-space: pre-line; text-align: center; color: var(--muted); line-height: 1.9; font-size: 11px; }

/* ===== Thanh toán ===== */
.co { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 14px 16px 60px; max-width: 1300px; width: 100%; margin: 0 auto; }
.co h3 { font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.co .sec { margin-bottom: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 11px; margin-bottom: 6px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 9px; color: var(--muted); margin-top: 8px; }
.pay { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 14px; margin-bottom: 8px; cursor: pointer; }
.pay.on { background: var(--btn-bg, var(--fg)); color: var(--btn-fg, var(--bg)); border-color: var(--btn-bg, var(--fg)); }
.pay .t { font-weight: 600; } .pay .s { font-size: 9px; opacity: .7; text-transform: none; letter-spacing: .02em; }
.pay .ck { margin-left: auto; width: 14px; height: 14px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 10px; }
.pay .lg { width: 20px; height: 20px; flex: none; }
.wallet { margin-top: 6px; }
.wallet .wbox { min-height: 40px; }
.wallet .wbox > div:not(.note), .wallet .wbox button { width: 100%; }
.apple-pay-btn { display: block; width: 100%; height: 40px; -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: white; }
.bank { white-space: pre-line; font-size: 11px; line-height: 1.8; padding: 12px 14px; background: var(--soft); text-transform: none; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bank .qr { flex: none; display: block; width: 160px; background: #fff; padding: 6px; }
.bank .qr img { display: block; width: 100%; height: auto; }
.sum .items { min-height: 160px; display: flex; flex-direction: column; gap: 16px; padding: 10px 0 24px; }
.sum .none { margin: auto; color: var(--fg); }
.li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.li img { width: 64px; height: 64px; object-fit: contain; background: var(--soft); }
.li .m { font-size: 10px; color: var(--muted); margin-top: 4px; }
.qty { display: inline-flex; gap: 10px; align-items: center; margin-top: 6px; }
.qty button { width: 18px; height: 18px; border: 1px solid var(--line); line-height: 1; }
.li .rm { font-size: 9px; color: var(--muted); margin-left: 10px; text-decoration: underline; }
.tot { display: flex; justify-content: space-between; padding: 5px 0; font-size: 11px; }
.tot.big { font-weight: 600; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 12px; }
.done { text-align: center; padding: 120px 16px; line-height: 2; }
.err { color: #ff7a7a; font-size: 10px; margin-top: 8px; min-height: 12px; }

/* ===== Trang văn bản ===== */
.txt { max-width: 640px; margin: 0 auto; padding: 40px 16px 60px; line-height: 2; }
.txt h1 { font-size: 13px; font-weight: 600; margin: 0 0 30px; text-align: center; }
.txt .body { white-space: pre-line; font-size: 11px; }

/* ===== DJ SET ===== */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; padding: 30px 24px 60px; max-width: 1300px; margin: 0 auto; width: 100%; }
.set { text-align: left; display: flex; flex-direction: column; gap: 10px; opacity: 0; animation: fade .5s forwards; }
.set .th { position: relative; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.set .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: .85; }
.set:hover .th img { transform: scale(1.03); opacity: 1; }
.set .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--fg); }
.set .play svg { width: 34px; height: 34px; fill: var(--fg); opacity: .85; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.set[data-soon] { cursor: default; }
.set .t { font-size: 12px; } .set .s { font-size: 10px; color: var(--muted); margin-top: -4px; }
.player { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); display: grid; place-items: center; padding: 16px; }
.pin { width: min(1100px, 100%); position: relative; }
.px { position: absolute; right: 0; top: -40px; }
.frame { aspect-ratio: 16 / 9; background: #000; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pt { margin-top: 12px; font-size: 11px; }

/* ===== Trang giới thiệu dịch vụ (custom-grillz.html) ===== */
.lp { width: 100%; max-width: 1000px; margin: 0 auto; padding: 20px 16px 70px; line-height: 1.9; }
.lp h1 { font-size: clamp(20px, 3.4vw, 30px); line-height: 1.3; font-weight: 600; margin: 0 0 18px; letter-spacing: .04em; }
.lp h2 { font-size: 14px; font-weight: 600; margin: 0 0 22px; letter-spacing: .08em; }
.lp-hero { text-align: center; padding: 30px 0 10px; }
.lp-eye { font-size: 10px; color: var(--muted); margin-bottom: 14px; letter-spacing: .12em; }
.lp-intro { max-width: 640px; margin: 0 auto 24px; font-size: 11px; color: var(--muted); }
.lp-p { font-size: 11px; color: var(--muted); max-width: 680px; margin: 0 0 18px; white-space: pre-line; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.lp-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; font-weight: 600; font-size: 11px; border: 1px solid var(--fg); background: var(--btn-bg, var(--fg)); color: var(--btn-fg, var(--bg)); transition: opacity .2s; }
.lp-btn:hover { opacity: .85; }
.lp-btn.ghost { background: transparent; color: var(--fg); }
.lp-btn.wa-btn { background: #25d366; border-color: #25d366; color: #fff; }
.lp-btn svg { width: 16px; height: 16px; fill: currentColor; }
.lp-checks { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 10px; color: var(--muted); }
.lp-checks li::before { content: "✓ "; color: var(--fg); }
.lp-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.lp-gal .ph { aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.lp-gal img { width: 100%; height: 100%; object-fit: cover; }
.lp-sec { padding: 46px 0 6px; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, var(--bg)); margin-top: 46px; scroll-margin-top: 110px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.lp-steps .n { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.lp-steps b, .lp-why b { font-size: 12px; font-weight: 600; }
.lp-steps p, .lp-why p { font-size: 10px; color: var(--muted); margin: 6px 0 0; white-space: pre-line; }
.lp-tbl { overflow-x: auto; }
.lp-tbl table { width: 100%; border-collapse: collapse; font-size: 11px; }
.lp-tbl th, .lp-tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, var(--bg)); white-space: nowrap; }
.lp-tbl th { font-weight: 600; font-size: 10px; color: var(--muted); }
.lp-tbl td:first-child { font-weight: 500; }
.lp-note { font-size: 10px; color: var(--muted); margin-top: 14px; white-space: pre-line; }
.lp-grid { padding: 0; }
.lp-more { text-align: center; margin-top: 26px; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.lp-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.lp-contact p { font-size: 11px; margin: 0 0 12px; white-space: pre-line; }
.lp-contact .lp-ctas { justify-content: flex-start; }
.lp-faq details { border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, var(--bg)); padding: 14px 0; }
.lp-faq summary { cursor: pointer; font-size: 11px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 15px; line-height: 1; color: var(--muted); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { font-size: 10px; color: var(--muted); margin: 10px 0 0; white-space: pre-line; }
.lp-end { text-align: center; padding: 56px 0 0; margin-top: 46px; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, var(--bg)); }
.lp-end .lp-p { margin: 0 auto 18px; }

/* ===== Nút WhatsApp ===== */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  background: var(--wa, #25d366); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 22px; height: 22px; fill: #fff; }
body.has-nl .wa { bottom: 150px; }

/* ===== Điện thoại ===== */
@media (max-width: 1000px) {
  .grid, .grid.few { grid-template-columns: repeat(4, 1fr); }
  .grid.zoom { grid-template-columns: repeat(2, 1fr); }
  .sets { grid-template-columns: repeat(2, 1fr); }
  .nl .x { right: 0; top: -30px; }
}
@media (max-width: 640px) {
  .hdr.with-menu { grid-template-columns: 1fr 1fr; grid-template-areas: "l r" "mid mid"; row-gap: 8px; }
  .hdr.with-menu .l { grid-area: l; } .hdr.with-menu .r { grid-area: r; } .hdr.with-menu .mid { grid-area: mid; align-items: stretch; }
  .menu, .submenu { gap: 18px; justify-content: flex-start; }
  .grid, .grid.few { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; padding: 14px 16px 50px; }
  .grid.zoom { grid-template-columns: 1fr; }
  .sets { grid-template-columns: 1fr; padding: 16px 16px 50px; gap: 30px; }
  .co { grid-template-columns: 1fr; gap: 10px; }
  .co .sum { order: -1; }
  .car .prev { left: 0; } .car .next { right: 0; }
  .ftr { gap: 10px 16px; }
  .lp-gal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lp-gal .ph:nth-child(n+5) { display: none; }
  .lp-btn { flex: 1 1 100%; justify-content: center; }
  .lp-contact .lp-ctas { justify-content: center; }
}
