/* Live price board (bang-gia.html) + printable QR code page (ma-qr-bang-gia.html).
   Style follows the "Cập nhật thời giá" Figma frame: navy page, gold serif title, white table card. */
.pb-page { min-height: 100vh; padding-block: 40px 96px; }
.pb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.pb-top__logo img { height: 56px; width: auto; }
/* solid bright gold like the design (not the darker site gradient) */
.pb-title { font-size: clamp(30px, 4.4vw, 52px); background: none; color: #F6D769; -webkit-text-fill-color: #F6D769; }
.pb-date { margin-top: 14px; font-size: clamp(18px, 2vw, 26px); color: var(--white); min-height: 1.4em; }
.pb-note { margin-top: 24px; color: var(--text-muted); font-size: 13px; }
.pb-note a { color: var(--yellow-400); font-weight: 700; }

/* White card holding the table */
.price-board-card {
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius);
  overflow: hidden;
  color: #111;
}
.price-board { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-board thead th {
  background: var(--navy-800);
  color: var(--yellow-400);
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  padding: 24px 24px;
}
.price-board thead th:first-child, .price-board td:first-child, .price-board tbody th:first-child { padding-left: 48px; }
.price-board thead th:last-child, .price-board td:last-child { padding-right: 84px; }
.price-board tbody:first-of-type tr:first-child > * { padding-top: 34px; }
.price-board tbody:nth-of-type(even) { background: #F1F1F1; }
.price-board td, .price-board tbody th { padding: 16px 24px; border-bottom: 1px solid #A9BEDA; vertical-align: middle; }
.price-board .pb-group { color: var(--blue-600); font-weight: 700; font-size: 18px; text-align: left; white-space: nowrap; }
.price-board .pb-name { font-weight: 700; }
.price-board .pb-price { text-align: right; font-weight: 700; white-space: nowrap; }
.price-board .is-sold-out td:not(.pb-group) { color: #9A9A9A; }
.price-board .is-sold-out .pb-price { text-decoration: line-through; }
.pb-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px;
  background: #FDE2E2; color: #B42318; font-size: 11px; font-weight: 600; vertical-align: 2px;
}
.price-board-card::after { content: ''; display: block; height: 56px; }
.price-board__message { padding: 48px 24px; text-align: center; color: #333; font-size: 15px; display: grid; gap: 12px; justify-items: center; }
.price-board__message a { color: var(--blue-600); font-weight: 700; }

/* Phones: each item becomes "name ........ price" with spec · unit underneath */
@media (max-width: 760px) {
  .pb-page { padding-block: 24px 120px; }
  .pb-top { margin-bottom: 32px; }
  .pb-top__logo img { height: 44px; }
  .price-board-card { margin-top: 28px; }
  .price-board-card::after { height: 12px; }
  .price-board thead { display: none; }
  .price-board, .price-board tbody { display: block; }
  .price-board tbody { padding: 18px 16px 6px; }
  .price-board tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "group group" "name price" "spec spec";
    column-gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #A9BEDA;
  }
  .price-board tbody tr:last-child { border-bottom: 0; }
  .price-board td, .price-board tbody th { padding: 0 !important; border: 0; }
  .price-board .pb-group { grid-area: group; font-size: 17px; margin-bottom: 8px; }
  .price-board td.pb-group { display: none; }
  .price-board .pb-name { grid-area: name; font-size: 15px; }
  .price-board .pb-price { grid-area: price; font-size: 15px; }
  .price-board .pb-spec { grid-area: spec; font-size: 13px; color: #555; margin-top: 2px; }
  .price-board .pb-unit { display: none; }
  .price-board .pb-spec::after { content: attr(data-unit); }
}

/* QR code page */
.qr-card {
  max-width: 460px; margin: 0 auto; padding: 40px 32px; text-align: center;
  background: var(--grad-panel); border: 1px solid var(--gold-400); border-radius: var(--radius);
  display: grid; gap: 18px; justify-items: center;
}
.qr-card__logo { height: 64px; width: auto; }
.qr-card__title { font-size: clamp(22px, 5.6vw, 30px); }
.qr-card__code { width: min(300px, 100%); aspect-ratio: 1; padding: 14px; background: var(--white); border-radius: var(--radius); }
.qr-card__code svg { width: 100%; height: 100%; display: block; }
.qr-card__url { font-size: 13px; color: var(--text-muted); word-break: break-all; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

@media print {
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qr-actions, .float-chat, .pb-top { display: none !important; }
  .pb-page { padding: 0; min-height: 0; }
}
