/* Bàn Ghế Ăn Mạnh Tuấn – trang công khai. Viết cho điện thoại trước, màn rộng chỉnh ở cuối.
   Phong cách: nền trắng, chữ không chân, đen trắng + một màu nhấn (nâu gỗ) cho giá. */
:root {
  --bg: #fff;
  --soft: #f5f5f4;
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e7e5e4;
  --accent: #b04a1f;
  --zalo: #0068ff;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.demo-bar { margin: 0; padding: 6px 16px; background: var(--ink); color: #d6d3d1; font-size: 12.5px; text-align: center; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-call { background: var(--ink); color: #fff; }
.btn-call:hover { background: #333; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { background: #0054d1; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-big { min-height: 52px; padding: 12px 24px; font-size: 16.5px; }

/* ---------- Đầu trang: hàng liên kết cuộn đi, hàng tên + nút gọi luôn dính trên cùng ---------- */
.hd { position: sticky; top: -39px; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.nav { order: -1; flex: 0 0 100%; display: flex; gap: 2px; height: 39px; align-items: center; border-bottom: 1px solid var(--line); margin: 0 -8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 8px; border-radius: 8px; }
.nav a[aria-current] { color: var(--ink); font-weight: 700; }
.nav a:hover { color: var(--ink); }
.nav-ext { display: none; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 5px 0; margin-right: auto; min-width: 0; }
.brand-logo { flex: none; width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand-text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hd-cta { display: flex; gap: 6px; }
.hd-cta .btn { min-height: 38px; padding: 6px 13px; }
.hd-cta .lg { display: none; }

/* ---------- Trang sản phẩm ---------- */
.shop { padding-top: 18px; padding-bottom: 48px; }
.shop-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.shop-title span { color: var(--muted); font-weight: 500; white-space: nowrap; }
.filters { border-block: 1px solid var(--line); }
.filter-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.filter-row + .filter-row { border-top: 1px solid var(--line); }
.filter-label { flex: none; width: 36px; font-size: 13px; color: var(--muted); font-weight: 500; }
.filter-label .lg { display: none; }
.chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-width: 37px; min-height: 36px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500; text-align: center; text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-count { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; font-size: 14px; color: var(--muted); }
.shop-count a { color: var(--ink); font-weight: 600; }
.shop-empty { background: var(--soft); border-radius: var(--radius); padding: 28px 16px; text-align: center; }
.shop-empty a { font-weight: 600; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { aspect-ratio: 16 / 11; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card a:hover .card-img img { transform: scale(1.04); }
.noimg { color: var(--muted); font-size: 13px; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card-meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.card-price { margin: 4px 0 0; font-weight: 700; font-size: 15px; }
.card-price.is-ask, .pd-price.is-ask { color: var(--muted); font-weight: 500; }

/* ---------- Chi tiết sản phẩm ---------- */
.pd { padding-top: 12px; padding-bottom: 48px; }
.crumb { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.pd-grid { display: grid; gap: 18px; }
.gal { min-width: 0; }
.gal-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 16 / 10; background: var(--soft); margin: 0 -16px;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gal-track .noimg { margin: auto; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; }
.gal-thumbs button { flex: none; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; opacity: .65; }
.gal-thumbs button[aria-current] { border-color: var(--ink); opacity: 1; }
.gal-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pd-info h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.pd-price { margin: 8px 0 16px; font-size: 21px; font-weight: 700; color: var(--accent); }
.specs { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specs div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.specs dt { color: var(--muted); font-size: 12.5px; }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.pd-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-cta .btn { padding-inline: 10px; font-size: 16px; }
.pd-notes { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.pd-notes li { padding-left: 22px; position: relative; margin: 4px 0; }
.pd-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
.pd-desc { margin-top: 32px; max-width: 760px; }
.pd-desc h2 { font-size: 20px; margin-bottom: 10px; }
.pd-desc p { margin: 0 0 12px; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 16px; }
.video.is-short { aspect-ratio: 9 / 16; max-width: 340px; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Giới thiệu ---------- */
.about-hero { background: var(--soft); padding: 32px 0 44px; }
.about-logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; margin-bottom: 18px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.about-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.lead { font-size: 18px; max-width: 640px; color: #3f3f3f; margin: 14px 0 22px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.about-sec { padding-top: 40px; }
.about-sec:last-child { padding-bottom: 56px; }
.about-sec h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.about-sec h3 { font-size: 17px; margin-bottom: 6px; }
.pillars, .lines, .contact { display: grid; gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; }
.pillars li, .lines > div, .contact > div { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.pillars p, .contact p { margin: 0 0 10px; color: #3f3f3f; }
.pillars p:last-child, .contact p:last-child { margin-bottom: 0; }
.lines ul, .social { margin: 0; padding-left: 20px; color: #3f3f3f; }
.lines li, .social li { margin: 4px 0; }
.places { color: #3f3f3f; max-width: 760px; margin: 0 0 18px; }
.big-phone a { font-weight: 800; font-size: 30px; letter-spacing: -.03em; text-decoration: none; }

/* ---------- Khối chung: tiêu đề mục, trang phụ ---------- */
.sec { padding-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec h2, .quote h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sec-head a { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.page { padding-top: 22px; padding-bottom: 8px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.page-lead { color: #3f3f3f; max-width: 720px; margin: 10px 0 18px; }
.home-about { padding-bottom: 48px; }
.home-about p { color: #3f3f3f; max-width: 820px; margin: 10px 0 0; }
.home-about a { font-weight: 600; }

/* ---------- Form nhận báo giá ---------- */
.quote { background: var(--soft); border-radius: 20px; padding: 22px 16px; margin: 44px 0 48px; display: grid; gap: 18px; scroll-margin-top: 80px; }
.quote-text p { margin: 8px 0 0; color: #3f3f3f; }
.quote-alt { font-size: 15px; }
.quote-form { display: grid; gap: 12px; }
.quote-form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: #3f3f3f; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d6d3d1; border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.q-row { display: grid; gap: 12px; }
.req { color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-err { margin: 0; color: #b3261e; font-weight: 600; font-size: 14.5px; }
.quote-done h3 { font-size: 19px; margin-bottom: 6px; }
.quote-done p { margin: 0 0 14px; color: #3f3f3f; }
.pd-quote-link { margin: 12px 0 0; font-size: 14.5px; }
.pd-quote-link a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; margin: 0; padding: 12px 18px; max-width: calc(100% - 32px); background: var(--ink); color: #fff; border-radius: 14px; font-size: 14.5px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

/* ---------- Đơn đã giao ---------- */
.dl-filter { margin: 0 -16px 16px; padding: 2px 16px; }
.dl-filter .chip { cursor: pointer; font-family: inherit; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.dl a, .dl > div { display: block; text-decoration: none; }
.dl-img { position: relative; aspect-ratio: 16 / 11; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.dl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dl a:hover .dl-img img { transform: scale(1.04); }
.dl-img.has-video::after {
  content: ""; position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(17, 17, 17, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.dl-body { padding: 9px 2px 0; }
.dl h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.dl p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Bảng giá ---------- */
.price-h { font-size: 19px; margin: 26px 0 8px; scroll-margin-top: 90px; }
.price { width: 100%; border-collapse: collapse; }
.price thead { position: absolute; left: -9999px; }
.price tr { border-top: 1px solid var(--line); }
.price tbody tr:last-child { border-bottom: 1px solid var(--line); }
.price th, .price td { padding: 12px 0; vertical-align: top; text-align: left; }
.price th { font-weight: 600; padding-right: 12px; }
.price th a { text-decoration: none; }
.price th a:hover { text-decoration: underline; }
.price th span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.price td { text-align: right; white-space: nowrap; font-size: 15px; }
.price td b { font-size: 16.5px; color: var(--accent); }
.price .ask { color: var(--muted); }
.price-notes { margin-top: 20px; }

.map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Chân trang, trang báo lỗi ---------- */
.ft { background: var(--ink); color: #a8a29e; font-size: 14.5px; padding: 32px 0 36px; }
.ft-in { display: grid; gap: 18px; }
.ft p { margin: 0 0 6px; }
.ft a { color: #fff; }
.ft-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: start; }
.msg { padding: 72px 16px; text-align: center; }
.msg h1 { margin-bottom: 10px; }

/* ---------- Trang danh mục, bài kinh nghiệm, mẫu tương tự ---------- */
.nav { overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav .nl { display: none; }
@media (min-width: 480px) { .nav .nl { display: inline; } .nav .ns { display: none; } }
.cat-intro { max-width: 820px; color: #3f3f3f; margin: -4px 0 22px; }
.cat-intro p { margin: 0 0 10px; }
.cat-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-links a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.cat-links a:hover { border-color: var(--ink); }
.link-list { margin: 0; padding-left: 20px; max-width: 820px; }
.link-list li { margin: 6px 0; }
.link-list a { font-weight: 600; }
.sec h2.mt { margin-top: 32px; margin-bottom: 14px; }
.sec > h2 { margin-bottom: 14px; }
.pd-related { margin-top: 44px; }
.pd-related h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.art { max-width: 760px; padding-top: 18px; padding-bottom: 8px; }
.art h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.art-meta { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
.art-cover { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.art-body { font-size: 17px; line-height: 1.7; color: #262626; }
.art-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 32px 0 10px; }
.art-body p, .art-body ul, .art-body ol { margin: 0 0 14px; }
.art-body li { margin: 6px 0; }
.art-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; line-height: 1.45; }
.art-table th, .art-table td { border-top: 1px solid var(--line); padding: 10px 8px 10px 0; text-align: left; vertical-align: top; }
.art-table thead th { border-top: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.art-table tbody tr:last-child th, .art-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.art-cta { margin-top: 24px; }
.art-more { margin-top: 40px; }
.art-more h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.art-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 18px; }
.art-list a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; text-decoration: none; }
.art-list img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 12px; background: var(--soft); }
.art-list b { display: block; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.art-list small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.art-list a:hover b { text-decoration: underline; }
@media (min-width: 900px) {
  .art { padding-top: 36px; }
  .art h1 { font-size: 40px; }
  .art-list { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .art-list a { grid-template-columns: 200px minmax(0, 1fr); }
  .nav { overflow: visible; }
}

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .card h2 { font-size: 16px; }
  .card-meta { font-size: 13.5px; }
  .gal-track { margin: 0; border-radius: var(--radius); }
  .pillars, .lines, .contact { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pillars.four { grid-template-columns: repeat(2, 1fr); }
  .ft-in { grid-template-columns: 1.2fr 1.2fr 1fr; }
  .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
  .dl-filter { flex-wrap: wrap; overflow: visible; margin: 0 0 18px; padding: 0; }
  .q-row { grid-template-columns: 1fr 1fr; }
  .q-row3 { grid-template-columns: 1.3fr 1fr 1fr; }
  .quote { padding: 28px; }
  .map { aspect-ratio: 16 / 7; }
  .nav-ext { display: inline; }
  .filter-label { width: 84px; font-size: 14px; }
  .filter-label .lg { display: inline; }
  .filter-label .sm { display: none; }
  .chips { gap: 6px; }
  .chip { padding: 6px 14px; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 28px; }
  .hd { top: 0; }
  .hd-in { flex-wrap: nowrap; column-gap: 20px; }
  .nav { order: 0; flex: 0 1 auto; height: auto; border: 0; margin: 0 auto 0 16px; gap: 6px; }
  .nav a { font-size: 15px; padding: 8px 10px; }
  .brand { margin-right: 0; padding: 9px 0; }
  .about-hero-in { display: flex; align-items: center; gap: 48px; flex-direction: row-reverse; justify-content: space-between; }
  .about-logo { width: 240px; height: 240px; margin: 0; }
  .brand-text b { font-size: 18px; }
  .hd-cta .lg { display: inline; }
  .hd-cta .sm { display: none; }
  .shop { padding-top: 36px; }
  .shop-title { font-size: 40px; margin-bottom: 22px; }
  .filters { display: flex; flex-wrap: wrap; gap: 0 32px; position: sticky; top: 63px; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .filter-row + .filter-row { border-top: 0; }
  .filter-label { width: auto; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
  .dl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
  .quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; padding: 40px; margin: 64px 0; }
  .quote-done { grid-column: 2; }
  .sec { padding-top: 64px; }
  .sec h2, .quote h2 { font-size: 28px; }
  .page { padding-top: 40px; }
  .page-title { font-size: 40px; }
  .price { max-width: 820px; }
  .pillars.four { grid-template-columns: repeat(4, 1fr); }
  .pd { padding-top: 20px; }
  .pd-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .pd-info { position: sticky; top: 88px; }
  .pd-info h1 { font-size: 34px; }
  .about-hero { padding: 80px 0 84px; }
  .about-hero h1 { font-size: 60px; }
  .lead { font-size: 20px; }
  .about-sec { padding-top: 60px; }
  .about-sec h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-img img, .btn, .chip { transition: none; }
}
