/* site.css — Trưởi Bà Năm (bản 2026-10). Ý tưởng: viên Trưởi gói giấy trắng, chữ đỏ viết tay, thun vàng. */
:root {
  --paper: #FBFAF7;
  --paper-2: #F2EFE8;
  --red: #B3122B;
  --red-ink: #8E0E22;
  --band: #E2B13C;
  --wood: #3B2619;
  --leaf: #2F5D3A;
  --ink: #241A14;
  --muted: #6A5D53;
  --line: #E4DED3;
  --r: 14px;
  --dock-h: 64px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--band); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4.4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
.red { color: var(--red); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
main > section, main > article { padding-block: 40px; }
.lede, .lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.note { color: var(--muted); font-size: .9rem; margin-top: -.4em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 16px; background: rgba(251, 250, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--red); }
.logo img { width: 40px; height: 40px; }
.logo .hand { font-family: var(--font); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.menu { order: 3; flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.menu a[aria-current="page"] { background: var(--red); color: #fff; }
.top-call { margin-left: auto; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
@media (min-width: 900px) {
  .top { flex-wrap: nowrap; }
  .menu { order: 0; flex-basis: auto; margin: 0 0 0 28px; padding: 0; gap: 22px; overflow: visible; }
  .menu a { padding: 0; background: none; font-size: 1rem; }
  .menu a[aria-current="page"], .menu a:hover { background: none; color: var(--red); }
}

/* ---------- hero ---------- */
.hero { padding-top: 16px; }
.hero .lead { font-size: 1rem; }
.hero-grid { display: grid; gap: 14px; }
.hero h1 { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.hero h1 .hand { font-size: clamp(3.2rem, 14vw, 5.6rem); line-height: .95; }
.hero h1 .sub { font-size: clamp(1.1rem, 4vw, 1.4rem); font-weight: 500; color: var(--wood); }
.hero-img { margin: 0; }
.hero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.hero .price-row, .hero .lead, .hero .ship { margin: 0; }
@media (min-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr repeat(5, auto) 1fr; column-gap: 48px; row-gap: 18px; }
  .hero-grid > * { grid-column: 1; }
  .hero h1 { grid-row: 2; }
  .hero .price-row { grid-row: 3; }
  .hero .pack { grid-row: 4; }
  .hero .lead { grid-row: 5; }
  .hero .ship { grid-row: 6; }
  .hero-img { grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .hero-img img { aspect-ratio: 4 / 5; max-height: 640px; }
}
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 10px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 1.9rem; color: var(--red); line-height: 1; }
.price span { color: var(--muted); }
.price-row .price { flex-basis: 100%; }
.hero .price-row { flex-wrap: nowrap; justify-content: space-between; }
.hero .price-row .price { flex-basis: auto; display: grid; gap: 2px; }
.hero .price-row .btn { flex: 1; max-width: 220px; }
.price-row .price.big { flex-basis: auto; margin-right: auto; }
.badge { display: inline-block; background: #FDF6E2; border: 1px solid var(--band); color: #7A5200; padding: 2px 10px; border-radius: 6px; font-weight: 700; font-size: .9rem; }
.pack { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.45; }
.pack picture { flex: none; }
.pack img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.pack .badge { margin-bottom: 4px; }
.price.big strong { font-size: 2.3rem; }
.ship { font-size: .95rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--red); }
.btn:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }

/* ---------- dải thành phần: chiếc thun vàng ---------- */
.band { background: var(--paper-2); }
.band.dark { background: var(--wood); color: #F4EDE4; }
.band.dark a { color: var(--band); }
.band.dark .ticks li::before { background: var(--band); }
.mix { display: flex; height: 64px; border-radius: 10px; overflow: hidden; border: 3px solid var(--band); box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 6px var(--band); margin: 18px 3px 14px; }
.mix span { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.15; padding: 4px; }
.mix span:nth-child(1) { background: #F1D9CF; color: var(--wood); }
.mix span:nth-child(2) { background: #E6BFAF; color: var(--wood); border-left: 2px dashed rgba(59, 38, 25, .35); }
.mix span:nth-child(3) { background: var(--red); color: #fff; }
.mix-note { max-width: 62ch; }

/* ---------- 4 bước bóc ---------- */
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; top: 8px; left: 8px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--red); font: 400 1.4rem/1 var(--hand); border: 2px solid var(--band); }
.steps p { margin: 8px 0 0; font-weight: 500; font-size: .95rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ---------- bố cục 2 cột ---------- */
.split { display: grid; gap: 24px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r); width: 100%; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 4px; border-radius: 2px; background: var(--band); }

/* ---------- thẻ hàng bán kèm ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card h3, .card p { margin-inline: 16px; }
.card h3 { margin-top: 14px; }
.card-price { font-weight: 700; color: var(--red); }

/* ---------- hỏi đáp ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 1.8rem/1 var(--hand); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink); }

/* ---------- form đặt hàng ---------- */
.order { background: var(--red); color: #fff; }
.order h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3rem); }
.order a { color: #fff; font-weight: 700; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 12px; min-height: 48px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--band); outline: none; }
.form button { font: inherit; font-weight: 700; min-height: 52px; border: 0; border-radius: 999px; background: var(--band); color: var(--wood); cursor: pointer; }
.form button:disabled { opacity: .6; cursor: wait; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.form-msg { min-height: 1.6em; margin: 0; font-weight: 700; }

/* ---------- trang sản phẩm / bài viết ---------- */
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.product-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery picture { scroll-snap-align: start; }
@media (min-width: 900px) { .gallery { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; } }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.spec { display: grid; grid-template-columns: 35% 1fr; margin: 18px 0; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.5; }
.spec dt, .spec dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { font-weight: 700; padding-right: 10px; }
.inline-fig { margin: 20px 0; }
.inline-fig img { border-radius: var(--r); width: 100%; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: block; padding: 18px 0; text-decoration: none; color: var(--ink); }
.posts a h2 { font-size: 1.25rem; color: var(--red); }
.posts a p { margin: 0; color: var(--muted); }
.post .meta { color: var(--muted); font-size: .9rem; }
.post h2 { margin-top: 1.4em; font-size: 1.35rem; }
.post-cta { margin-top: 32px; padding: 20px; border: 3px solid var(--band); border-radius: var(--r); background: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--wood); color: #E9DFD3; padding: 40px 0 20px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-brand { font-size: 2rem; color: var(--band); margin: 0 0 6px; line-height: 1; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-content: start; }
.fine { font-size: .82rem; color: #B9AA9A; margin-top: 20px; }

/* ---------- thanh đặt hàng dưới đáy (điện thoại) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 250, 247, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(36, 26, 20, .08); }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.dock-call { color: var(--red); border: 2px solid var(--red); }
.dock-zalo { color: #fff; background: #0068FF; }
.dock-order { color: #fff; background: var(--red); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { left: auto; right: 20px; bottom: 20px; width: 380px; border-radius: 999px; border: 1px solid var(--line); padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.tbl { overflow-x: auto; margin: 0 0 1em; }
.tbl table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--paper-2); }
.tbl td:first-child { font-weight: 700; }
.post-cta { padding: 0; border: 0; background: none; }
