/* THV v3 — thành phần bán hàng (bậc giá, thanh kéo, giỏ, thanh toán, tài khoản, mô phỏng).
   Dùng lại biến màu 05c; chỉ viền mảnh, nền trắng, vàng tiết chế. */
.small { font-size: 14px; }
.block { display: flex; width: 100%; justify-content: center; }
.button.disabled { pointer-events: none; opacity: .5; }

/* thẻ sản phẩm */
.moq-tag { position: absolute; left: 6px; bottom: 6px; background: var(--wood); color: #f4e6c6; font-size: 13px; padding: 2px 7px; border-radius: 3px; }
.voucher-tag { background: #1f6feb; color: #fff; }
.badge-slot { display: none; position: absolute; right: 6px; bottom: 6px; background: var(--accent); color: #fff; font-size: 13px; padding: 2px 7px; border-radius: 3px; }
.badge-slot.on { display: block; }
.detail-image { position: relative; }
.from-price { margin: 0; font-size: 14px; color: var(--accent); }
.from-price b { color: var(--accent); }
.product-bottom .ask { font-size: 14px; padding: 3px 8px; border: 1px solid var(--gold); border-radius: 3px; }

/* chip quy cách */
.variant-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.chip { display: grid; gap: 1px; border: 1px solid var(--line); background: #fff; padding: 6px 10px; border-radius: 4px; min-width: 86px; font-size: 14px; transition: border-color .15s, transform .15s; }
.chip b { font-size: 14.5px; }
.chip small { color: var(--muted); }
.chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.chip.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fffaf0; }
.chip.best:after { content: "Tiết kiệm nhất"; font-size: 12.5px; color: #2f6b3a; font-weight: 700; }

/* khối số lượng game hoá */
.qty-game { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 12px; margin: 10px 0; transition: box-shadow .3s; }
.qty-game.pulse { box-shadow: 0 0 0 3px #c5a36a66; }
.qg-stops { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.qg-stops button { border: 1px solid var(--line); background: var(--paper); padding: 3px 9px; border-radius: 99px; font-size: 14px; }
.qg-stops button.on { background: var(--wood); color: #f4e6c6; border-color: var(--wood); }
.qg-row { display: flex; align-items: center; gap: 6px; }
.qg-row input { width: 96px; text-align: center; padding: 7px; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; font-size: 17px; }
.qg-row button { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font-size: 18px; }
.qg-unit { color: var(--muted); }
.qg-range { width: 100%; margin: 12px 0 0; accent-color: var(--accent); }
.qg-ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -2px; }
.qg-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 6px; }
.qg-readout div { background: var(--paper); border-radius: 4px; padding: 6px 8px; }
.qg-readout small { display: block; color: var(--muted); font-size: 13px; }
.qg-readout b { font-size: 16.5px; }
.qg-save.hot { color: #2f6b3a; }
.qg-label, .qg-next { margin: 4px 0; font-size: 14.5px; }
.truck { margin: 8px 0; }
.truck-bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.truck-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .35s; }
.truck small { color: var(--muted); font-size: 13.5px; }
.truck.mini { max-width: 260px; }

/* cầu thang giá */
.section-head.compact { margin-bottom: 8px; }
.stairs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.stair { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  margin-left: calc(var(--i) * 10px); transition: background .2s, border-color .2s; }
.stair-label { grid-column: 1; font-size: 13px; color: var(--muted); }
.stair-cond { font-size: 14.5px; }
.stair-price { grid-row: 1 / span 2; grid-column: 2; font-size: 16px; }
.stair-save { grid-row: 1 / span 2; grid-column: 3; color: #2f6b3a; font-weight: 700; font-size: 13.5px; }
.stair.reached { background: #fff8e8; border-color: var(--gold); }
.stair.locked { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #faf6ef 6px, #faf6ef 12px); }
.stair.locked .stair-price { color: var(--muted); font-weight: 400; font-size: 14px; }
.stair.unlocked .stair-price { color: var(--accent); }
.unlock-cta { margin-top: 6px; }
@media (max-width: 640px) { .stair { margin-left: calc(var(--i) * 4px); } }

.spec-table { display: grid; gap: 0; margin: 0; }
.spec-table div { display: grid; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--line); padding: 5px 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 7px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 6px 0 2px; color: var(--muted); }

/* giỏ hàng */
.cart-layout { align-items: start; }
.cart-progress { display: grid; gap: 8px; margin-bottom: 10px; }
.gp { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 12px; }
.gp-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.gp-bar { position: relative; height: 10px; background: var(--soft); border-radius: 99px; margin: 18px 0 18px; }
.gp-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .4s; }
.gp-step { position: absolute; top: -16px; transform: translateX(-50%); font-size: 13px; color: var(--muted); text-align: center; line-height: 1; }
.gp-step em { display: block; font-style: normal; margin-top: 22px; font-size: 12.5px; }
.gp-step.on { color: var(--accent); }
.gp-next { margin: 0; font-size: 14.5px; }
.gp-next button, .line-next button, .line-err button { border: 1px dashed var(--accent); background: #fffaf0; color: var(--accent); padding: 1px 7px; border-radius: 3px; font-size: 14px; }
.lockhint { color: var(--accent); }
.cart-row { grid-template-columns: 70px 1fr 84px 96px 28px !important; }
.cart-row .tag { background: var(--soft); padding: 0 5px; border-radius: 3px; }
.cart-row del { color: var(--muted); }
.saveline { display: block; color: #2f6b3a; }
.line-total { text-align: right; }
.line-err { margin: 3px 0; color: #a33; font-size: 14px; }
.line-next { margin: 3px 0; font-size: 14px; }
@media (max-width: 640px) { .cart-row { grid-template-columns: 56px 1fr 70px !important; } .cart-row .line-total { grid-column: 2; text-align: left; } }
.bill { position: sticky; top: 120px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 14px; }
.bill h2 { margin: 0 0 8px; font-size: 17px; }
.bill dl, .bill-rows { margin: 0 0 10px; display: grid; gap: 4px; }
.bill dl div, .bill-rows div { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.bill dd, .bill-rows dd { margin: 0; font-weight: 700; }
.bill .bill-save dd, .bill-rows .bill-save dd { color: #2f6b3a; }
.bill .total, .bill-rows .total { border-top: 1px solid var(--line); padding-top: 6px; font-size: 17px; }
.bill-unlock { background: #fff8e8; border: 1px solid var(--gold); padding: 8px; border-radius: 4px; font-size: 14.5px; margin-bottom: 8px; }
.bill-unlock .button { margin-top: 6px; padding: 5px 10px; }
.resell { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 14.5px; }
.resell p { margin: 3px 0; }
.co-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; border-bottom: 1px solid var(--soft); padding: 4px 0; }
.pay { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; display: grid; gap: 4px; }
.credit-option { color: var(--accent); font-weight: 700; }
.login-hint { background: var(--paper); padding: 6px 8px; border-radius: 4px; font-size: 14.5px; }
.login-hint a { color: var(--accent); font-weight: 700; }

/* cảm ơn & tra cứu */
.thanks { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.thanks h1 span { color: var(--accent); }
.thanks-grid { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 12px 0; }
@media (max-width: 640px) { .thanks-grid { grid-template-columns: 1fr; } }
.qr-box { text-align: center; border: 1px solid var(--line); padding: 10px; border-radius: 6px; }
.timeline { display: flex; gap: 6px; list-style: none; padding: 0; margin: 10px 0; flex-wrap: wrap; }
.timeline li { flex: 1; min-width: 90px; text-align: center; padding: 6px; border-radius: 4px; background: var(--soft); font-size: 14px; }
.timeline li.on { background: var(--wood); color: #f4e6c6; }
.pre { white-space: pre-wrap; background: var(--paper); padding: 8px; border-radius: 4px; }
.narrow { max-width: 620px; }

/* tài khoản */
.google-btn { display: inline-flex; gap: 10px; align-items: center; font-size: 17px; padding: 12px 20px; }
.perks { padding-left: 18px; }
.perks li { margin: 4px 0; }
.acc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.acc-head img { border-radius: 50%; }
.acc-head h1, .acc-head h2 { margin: 0; font-size: 22px; }
.acc-head button { margin-left: auto; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.level { border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 2px; }
.level span { color: var(--accent); font-weight: 700; }
.level .gp-bar { margin: 6px 0; }
.credit-surprise { background: linear-gradient(135deg, #fff8e8, #fff); border: 1px solid var(--gold); border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.groups { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* mô phỏng */
.sim { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }
.sim-controls { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 12px; display: grid; gap: 10px; }
.sim-controls label { display: grid; gap: 4px; font-weight: 700; }
.sim-controls output { font-size: 22px; color: var(--accent); }
.sim-controls select { padding: 7px; border: 1px solid var(--line); border-radius: 4px; }
.sim-quick { display: flex; gap: 5px; flex-wrap: wrap; }
.sim-quick button { border: 1px solid var(--line); background: var(--paper); padding: 3px 10px; border-radius: 99px; }
.sim-result { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 12px; }
.sim-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
@media (max-width: 640px) { .sim-kpi { grid-template-columns: 1fr 1fr; } }
.sim-kpi div { background: var(--paper); border-radius: 4px; padding: 8px; }
.sim-kpi small { display: block; color: var(--muted); font-size: 13px; }
.sim-kpi b { font-size: 17px; }
.sim-kpi .hot b { color: #2f6b3a; }
.sim-kpi em { display: block; font-style: normal; font-size: 13.5px; color: #2f6b3a; }

/* bảng giá */
.price-group { margin: 14px 0; }
.price-group h2 { font-size: 18px; margin: 0 0 4px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.price-table th { background: var(--soft); }
.price-table .num { text-align: right; white-space: nowrap; }
.pt-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.pt-tiers li { display: flex; justify-content: space-between; gap: 8px; }
.pt-tiers li.locked b { color: var(--muted); }
#pt-q, #db-q { padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; min-width: 240px; }
@media print { header, footer, .mobile-nav, .cart-tools, .topline { display: none !important; } }

/* điểm bán */
.dealer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.dealer { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px; display: grid; gap: 2px; }
.dealer small { color: var(--muted); }
.dealer a { color: var(--accent); font-weight: 700; }

/* pháo giấy */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden; }
#confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; background: var(--c); opacity: 0; }
#confetti.on i { animation: rain var(--d) ease-in forwards; }
@keyframes rain { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(100vh) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { #confetti { display: none; } .truck-bar i, .gp-bar > i { transition: none; } }

/* đăng nhập */
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 760px) { .login-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tabs button { flex: 1; border: 1px solid var(--line); background: var(--paper); padding: 7px; border-radius: 4px; font-weight: 700; }
.tabs button.on { background: var(--wood); color: #f4e6c6; border-color: var(--wood); }
.request-form.plain { border: 0; padding: 0; box-shadow: none; background: transparent; }
.login-grid .detail-panel { padding: 14px; }

/* tin tức */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px; align-content: start; }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; }
.post-card b { font-size: 15px; line-height: 1.35; }
.post-card small { color: var(--muted); font-size: 14px; }
.post-date { font-size: 13px; color: var(--accent); }
.post h1 { font-size: 26px; margin: 0 0 4px; }
.post-body img { max-width: 100%; height: auto; margin: 8px 0; }
.post-body, .product-html { font-size: 16px; line-height: 1.65; }
.product-html img { max-width: 100%; height: auto; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; }
.pager a, .pager b { padding: 3px 9px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.pager b { background: var(--wood); color: #f4e6c6; }
.detail-panel.post { padding: 18px 24px; }
.post-body { max-width: 760px; }
.post-body h2 { font-size: 21px; margin: 18px 0 6px; } .post-body h3 { font-size: 17px; }

/* sửa khoảng đệm toàn trang (07/11 tối) */
.detail-panel { padding: 14px 18px; border-radius: 4px; }
.detail-panel > h2:first-child, .detail-panel > h3:first-child { margin-top: 0; }
.detail-panel h2 { font-size: 18px; margin: 0 0 10px; }
.faq details { padding: 0; }
.faq summary { list-style: none; padding: 10px 26px 10px 0; position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 18px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 10px; line-height: 1.6; }
.faq details:last-child { border-bottom: 0; }
.post h1, .detail-panel.post h1 { font-size: 26px !important; line-height: 1.3; }
@media (max-width: 640px) {
  .detail-panel { padding: 12px; }
  .detail-panel.post { padding: 14px; }
  .post h1, .detail-panel.post h1 { font-size: 21px !important; }
  .post-body, .product-html { font-size: 16px; }
}
.post-grid .post-card img { max-height: 180px; }
.spec-table div { gap: 8px; }
.post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card b, .post-card small { overflow-wrap: anywhere; }
.post-card img { background: var(--paper); }
ul.perks { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px 10px 30px; margin-top: 10px; }
ul.perks.small { background: transparent; border: 0; padding: 0 0 0 18px; }
/* bảng giá trên điện thoại: mỗi sản phẩm thành một thẻ */
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; padding: 8px 10px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .price-table td { border: 0; padding: 0; }
  .price-table td:nth-child(1) { grid-column: 1 / -1; font-weight: 700; }
  .price-table td:nth-child(2) { color: var(--muted); font-size: 14px; }
  .price-table td.num { text-align: right; }
  .price-table td:nth-child(4) { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 4px; }
  .pt-tiers li { display: flex; justify-content: space-between; gap: 8px; }
}

/* ===== 07/11 21:40 — font Nunito, chữ to hơn, đầu trang, thanh cuộn, ô chọn, bài viết, cảm ơn, tra cứu ===== */
:root {
  --sans: "Nunito", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
body { font-weight: 500; -webkit-font-smoothing: antialiased; }
b, strong, th { font-weight: 800; }
input, select, textarea, button { font-family: var(--sans); }
::placeholder { color: #9a8f82; opacity: 1; }

/* đầu trang: logo to hơn, ô tìm kiếm gọn lại */
.header { min-height: 100px; gap: 30px; }
.logo img { height: 86px; }
.search { flex: 1 1 auto; max-width: 760px; height: 44px; margin-right: auto; border-radius: 6px; }
.search input { font-size: 16px; }
.head-actions { font-size: 14px; margin-left: auto; }
.head-actions strong { font-size: 15px; }
.topline-call a { color: #f1dfbd; font-weight: 700; }
.topline-call i { font-style: normal; opacity: .5; margin: 0 4px; }
@media (max-width: 1150px) { .header { min-height: 84px; gap: 18px; } .logo img { height: 68px; } }
@media (max-width: 760px) {
  .header { min-height: 0; gap: 8px; }
  .logo img { height: 56px; }
  .topline .wrap > span:first-child { display: none; }
  .topline .wrap { justify-content: center; }
  .search { max-width: none; margin-right: 0; height: 40px; }
  .topline-call { white-space: nowrap; }
}

/* thanh cuộn thanh lịch, đồng bộ tông vàng nâu */
html { scrollbar-color: #c4ab82 #f3efe9; }
* { scrollbar-width: thin; scrollbar-color: #cdb894 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdb894; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #a8875a; }

/* ô chọn (select): mũi tên riêng, khung đồng bộ; Chrome mới có danh sách thả xuống tự vẽ */
select {
  appearance: none; -webkit-appearance: none;
  min-height: 42px; padding: 8px 40px 8px 12px; border: 1px solid #cfc3b2; border-radius: 6px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d5a26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: #b39770; }
select:focus { outline: none; border-color: #a8875a; box-shadow: 0 0 0 3px #c5a36a40; }
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: inline-flex; align-items: center; gap: 8px; background-image: none; }
  select::picker-icon {
    content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid #7d5a26; border-bottom: 2px solid #7d5a26;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s;
  }
  select:open::picker-icon { transform: translateY(2px) rotate(225deg); }
  ::picker(select) {
    border: 1px solid #ddd1bd; border-radius: 10px; background: #fff; padding: 6px; margin-block: 6px;
    box-shadow: 0 16px 36px #2b1d1426, 0 2px 6px #2b1d1414; max-height: min(360px, 60vh); overflow-y: auto;
  }
  select option { padding: 9px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--ink); gap: 8px; }
  select option:hover, select option:focus-visible { background: #f5eddf; outline: none; }
  select option:checked { background: #efe1c6; color: #4a3220; font-weight: 800; }
  select option::checkmark { content: "✓"; color: #7d5a26; font-weight: 900; }
}

/* ô gõ có gợi ý (tỉnh/thành) */
.combo { position: relative; display: block; margin-top: 4px; }
.combo input { width: 100%; padding-right: 38px; }
.combo-caret { position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #7d5a26; border-bottom: 2px solid #7d5a26; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.combo-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #ddd1bd; border-radius: 10px; box-shadow: 0 16px 36px #2b1d1426; max-height: 290px; overflow-y: auto;
}
.combo-list li { padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.combo-list li:hover, .combo-list li.on { background: #f5eddf; }
.combo-list li.sel { background: #efe1c6; font-weight: 800; }
.combo-list li.none { color: var(--muted); cursor: default; font-weight: 500; }

/* bài viết: mục lục, thẻ mua nhanh, khối liên hệ */
.post-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.post { padding: 26px 30px; }
.post h1 { font-size: 30px; line-height: 1.25; }
.post-meta { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.post-body { max-width: 840px; font-size: 17px; line-height: 1.8; }
.post-body h2 { font: 700 23px/1.3 Georgia, serif; color: #4a3220; margin: 30px 0 10px; padding-top: 4px; border-top: 1px solid #eee6d9; padding-top: 18px; }
.post-body h3 { font-size: 19px; font-weight: 800; color: #5a3d27; margin: 22px 0 8px; }
.post-body h4 { font-size: 17px; font-weight: 800; margin: 16px 0 6px; }
.post-body h2, .post-body h3, .post-body h4 { scroll-margin-top: 140px; }
.post-body img { border-radius: 6px; margin: 14px auto; }
.post-body a { color: #7d4f22; text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.toc { background: #faf6ef; border: 1px solid #e8dcc6; border-radius: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: h2; }
.toc li a { display: block; padding: 6px 10px; border-radius: 5px; color: #4a3220; line-height: 1.4; }
.toc li a:hover { background: #f1e6d2; }
.toc li.lv2 { counter-increment: h2; }
.toc li.lv2 > a::before { content: counter(h2) ". "; color: #a8875a; font-weight: 800; }
.toc li.lv3 a { padding-left: 28px; font-size: .93em; color: #6b5442; }
.toc-inline { margin: 0 0 20px; max-width: 840px; }
.toc-inline summary { padding: 12px 16px; font-weight: 800; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "–"; color: #7d5a26; font-size: 20px; line-height: 1; }
.toc-inline:not([open]) summary::after { content: "+"; }
.toc-inline ol { padding: 0 8px 12px; font-size: 15.5px; }
.toc-side { padding: 14px 10px; font-size: 14.5px; max-height: calc(100vh - 180px); overflow-y: auto; }
.toc-side > b { display: block; padding: 0 10px 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #7d5a26; }
.toc-side a.on { background: #34231b; color: #f1dfbd; }
.toc-side a.on::before { color: #e5d1a1 !important; }
.post-aside { position: sticky; top: 150px; }
@media (min-width: 1001px) { .toc-inline { display: none; } }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; } .toc-side { display: none; } .post { padding: 18px 16px; } .post h1 { font-size: 24px; } .post-body { font-size: 16.5px; } }

.post-buy {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; max-width: 760px;
  margin: 22px 0; padding: 16px; max-width: 840px; background: linear-gradient(180deg, #fffdf9, #faf4ea); border: 1px solid #e3d3b5; border-radius: 10px; box-shadow: 0 6px 18px #2b1d140d;
}
.post-buy.compact { grid-template-columns: 96px minmax(0, 1fr); }
.pb-img img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #eee6d9; }
.pb-copy { display: grid; gap: 4px; min-width: 0; }
.pb-copy .eyebrow { font-size: 12px; }
.pb-name { font-size: 18px; font-weight: 800; line-height: 1.35; color: #2b211b; text-decoration: none !important; }
.pb-spec { color: var(--muted); font-size: 14.5px; }
.pb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pb-price b { font-size: 22px; color: #7d4f22; }
.pb-price del { color: var(--muted); font-size: 14px; }
.pb-from { font-size: 14px; font-weight: 700; color: #2f6b3a; background: #e9f3e6; padding: 2px 8px; border-radius: 99px; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.pb-qty { display: inline-flex; align-items: center; border: 1px solid #cfc3b2; border-radius: 6px; background: #fff; height: 42px; }
.pb-qty button { width: 38px; height: 100%; border: 0; background: transparent; font-size: 18px; color: #7d5a26; }
.pb-qty input { width: 56px; border: 0; text-align: center; font-size: 16px; font-weight: 800; padding: 0; -moz-appearance: textfield; }
.pb-qty input::-webkit-inner-spin-button, .pb-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pb-qty span { padding-right: 10px; color: var(--muted); font-size: 14px; }
.pb-actions .button { min-height: 42px; font-size: 15px; }
@media (max-width: 560px) {
  .post-buy, .post-buy.compact { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .pb-actions { grid-column: 1 / -1; }
  .pb-name { font-size: 16px; }
  .pb-actions .button { flex: 1; padding: 8px 10px; }
}
.contact-box { margin-top: 28px; max-width: 840px; border-radius: 10px; overflow: hidden; border: 1px solid #3f2c20; }
.cb-head { background: #34231b; color: #f1dfbd; padding: 14px 18px; display: grid; gap: 2px; }
.cb-head .eyebrow { color: #c5a36a; }
.cb-head b { font-size: 17px; }
.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e8dcc6; }
.cb-grid > div { background: #fffdf9; padding: 12px 18px; display: grid; gap: 2px; }
.cb-grid small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.cb-grid a { font-size: 16.5px; font-weight: 800; color: #5a3d27; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 560px) { .cb-grid { grid-template-columns: 1fr; } }

/* trang cảm ơn */
.thanks { padding: 26px 28px; border-radius: 10px; }
.thanks-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.thanks-tick { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #3c8a4b, #2f6b3a); box-shadow: 0 6px 16px #2f6b3a40; }
.thanks h1 { font-size: 30px; margin: 4px 0 6px; }
.thanks-head p { font-size: 16.5px; color: #4f4338; }
.thanks-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 0 0 18px; }
.thanks-grid.single { grid-template-columns: minmax(0, 720px); }
.pay-card, .order-card { border: 1px solid #e3d3b5; border-radius: 10px; padding: 20px; background: #fffdf9; }
.pay-card h2, .order-card h2 { font: 700 22px Georgia, serif; color: #4a3220; margin-bottom: 6px; }
.pay-card > p { font-size: 15px; margin-bottom: 12px; }
.pay-qr { display: grid; place-items: center; background: #fff; border: 1px solid #eee6d9; border-radius: 10px; padding: 12px; }
.pay-qr img { width: min(300px, 100%); height: auto; aspect-ratio: 1; }
.pay-rows { margin: 14px 0 0; display: grid; }
.pay-rows > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #e3d8c6; }
.pay-rows > div:last-child { border-bottom: 0; }
.pay-rows dt { color: var(--muted); font-size: 14.5px; }
.pay-rows dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; font-size: 16px; overflow-wrap: anywhere; }
.pay-rows .pay-amount dd b { font-size: 24px; color: #7d4f22; }
.copy { border: 1px solid #d5c3a2; background: #fff; border-radius: 5px; padding: 4px 10px; font-size: 13px; font-weight: 800; color: #6b4a26; }
.copy:hover { background: #f5eddf; }
.order-lines { list-style: none; margin: 8px 0 12px; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee6d9; font-size: 16px; }
.order-lines li span { display: grid; gap: 2px; min-width: 0; }
.order-lines small { color: var(--muted); font-size: 14px; }
.order-lines b { white-space: nowrap; }
.bill-rows .bill-total { border-top: 2px solid #34231b; margin-top: 6px; padding-top: 10px; font-size: 19px; }
.bill-rows .bill-total dd { color: #7d4f22; font-size: 22px; }
.next-steps { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #eee6d9; display: grid; gap: 10px; counter-reset: s; }
.next-steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; counter-increment: s; font-size: 15px; }
.next-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: #34231b; color: #f1dfbd; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.next-steps span { color: var(--muted); }
.thanks-tools .button { min-height: 46px; font-size: 15.5px; }
@media (max-width: 860px) {
  .thanks { padding: 18px 14px; }
  .thanks-grid { grid-template-columns: 1fr; }
  .thanks h1 { font-size: 23px; }
  .thanks-tick { flex-basis: 44px; height: 44px; font-size: 24px; }
  .pay-rows > div { grid-template-columns: 100px minmax(0, 1fr); }
}

/* tra cứu đơn */
.order-list { display: grid; gap: 14px; margin: 10px 0 20px; }
.order-track { background: #fff; border: 1px solid #e3d3b5; border-radius: 10px; padding: 16px 18px; scroll-margin-top: 140px; }
.order-track.focus { border-color: #a8875a; box-shadow: 0 0 0 3px #c5a36a40; }
.order-track.cancelled { opacity: .7; }
.order-track header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-track header b { font-size: 18px; display: block; }
.order-track header small { color: var(--muted); font-size: 14px; }
.order-track footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.order-track footer b { font-size: 20px; color: #7d4f22; }
.order-track .paid { color: #2f6b3a; font-weight: 800; }
.order-track .unpaid { color: #9a3412; font-weight: 700; }
.st { padding: 4px 12px; border-radius: 99px; font-size: 14px; font-weight: 800; background: #efe8dc; color: #4a3220; white-space: nowrap; }
.st-moi { background: #e8eefc; color: #1e40af; } .st-xac_nhan { background: #fdf3d8; color: #8a5a0b; }
.st-dang_giao { background: #efe7fb; color: #5b21b6; } .st-hoan_thanh { background: #e6f4ea; color: #166534; } .st-huy { background: #fde8e8; color: #991b1b; }
.order-qr { margin-top: 10px; }
.order-qr summary { cursor: pointer; font-weight: 800; color: #7d4f22; }
.pay-inline { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
.pay-inline img { border: 1px solid #eee6d9; border-radius: 8px; }
@media (max-width: 640px) { .pay-inline { grid-template-columns: 1fr; } .pay-inline img { margin: auto; } }
.track-other { margin: 6px 0 16px; }
.track-other summary { cursor: pointer; font-weight: 800; font-size: 16px; color: #5a3d27; padding: 6px 0; }
.track-other .request-form { margin-top: 8px; }
.order-track footer { background: none; color: inherit; margin: 0; padding: 12px 0 0; border-top: 1px solid #eee6d9; }
.order-track header { position: static; background: none; box-shadow: none; }
@media (max-width: 560px) { .pay-rows > div { grid-template-columns: 1fr; gap: 2px; } .pay-rows dd { justify-content: space-between; } }
.post-body .lead { font-size: 18px; font-weight: 700; color: #4a3220; }
