/* Bếp Bên Sông – tông đất nung, gỗ, men lam */
:root {
  --bg: #faf5ec;
  --paper: #fffdf8;
  --ink: #2b211b;
  --muted: #6b5b4e;
  --line: #e8dccb;
  --clay: #b5542c;
  --clay-dark: #8f3d1c;
  --wood: #6b4a2f;
  --blue: #1f4e8c;
  --blue-soft: #e7eef8;
  --shopee: #d0391b;
  --lazada: #0f146d;
  --tiktok: #111;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(80, 50, 20, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); }
h1, h2, h3 { font-family: "Noto Serif", Cambria, "Times New Roman", serif; line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--wood); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: "Noto Serif", Cambria, "Times New Roman", serif; font-weight: 700; font-size: 20px; }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--clay); display: grid; place-items: center; font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #fff7ec; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.search-form { display: flex; }
.search-form input { border: 0; border-radius: 8px 0 0 8px; padding: 8px 12px; width: 170px; font: inherit; font-size: 14px; }
.search-form button { border: 0; background: var(--clay); color: #fff; padding: 0 12px; border-radius: 0 8px 8px 0; cursor: pointer; }
@media (max-width: 760px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .nav { margin-left: 0; width: 100%; order: 3; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .search-form { margin-left: auto; }
  .search-form input { width: 120px; }
}

/* Hero */
.hero { background: linear-gradient(135deg, #6b3018, #8f3d1c 55%, #a2481f); color: #fff; padding: 40px 0; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); }
.hero p { max-width: 640px; margin: 0 0 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn-light { background: #fff; color: var(--clay-dark); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-outline { background: transparent; color: var(--clay-dark); border: 1.5px solid var(--clay); }
.btn-sm { padding: 6px 10px; font-size: 14px; border-radius: 8px; }

/* Sections */
.section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { font-size: 15px; text-decoration: none; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 520px) { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card a.cover { display: block; aspect-ratio: 16/9; background: #e9dcc8; position: relative; }
.card a.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.card .play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(181,84,44,.92); color: #fff; display: grid; place-items: center; font-size: 20px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 18px; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); align-self: flex-start; }
.tag.review { background: #fbe9df; color: var(--clay-dark); }

.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.featured a.cover { aspect-ratio: auto; min-height: 280px; }
.featured .body { padding: 24px; justify-content: center; }
.featured h3 { font-size: 26px; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured a.cover { min-height: 0; aspect-ratio: 16/9; } }

/* Product card */
.product .thumb { aspect-ratio: 1/1; background: #f1e6d6; display: block; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .thumb .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; }
.product .body { padding: 12px; gap: 6px; }
.product h3 { font-size: 16px; font-family: inherit; font-weight: 600; }
.price { color: var(--clay-dark); font-weight: 700; }
.buy { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.buy a { text-align: center; padding: 8px 10px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.buy .shopee { background: var(--shopee); }
.buy .lazada { background: var(--lazada); }
.buy .tiktok { background: var(--tiktok); }
.buy .other { background: var(--wood); }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 24px 0 40px; }
.article h1 { font-size: clamp(26px, 5vw, 36px); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 16px 0 24px; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose img { border-radius: 10px; margin: 12px 0; }
.prose blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--clay); background: #fbefe4; border-radius: 0 10px 10px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.tools { margin: 32px 0; padding: 20px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); }
.tools h2 { font-size: 22px; }
.disclosure { font-size: 13px; color: var(--muted); background: #f4ece0; border-radius: 10px; padding: 10px 14px; margin: 16px 0; }

/* Filters, pagination */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chips a { padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.chips a.on { background: var(--clay); border-color: var(--clay); color: #fff; }
.pager { margin-top: 24px; }
.pager nav { display: flex; justify-content: center; }
.pager svg { width: 18px; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; background: var(--paper); border-radius: var(--radius); border: 1px dashed var(--line); }

/* Product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0; }
.product-page .pic { border-radius: var(--radius); overflow: hidden; background: #f1e6d6; aspect-ratio: 1/1; }
.product-page .pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #2b211b; color: #d9cbb8; padding: 32px 0; margin-top: 40px; font-size: 14px; }
.site-footer a { color: #f3c9a7; }
.site-footer .cols { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; justify-content: center; }
.pagination li a, .pagination li span { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination li.disabled span { opacity: .45; }
.pagination li.active span { background: var(--clay); color: #fff; border-color: var(--clay); }
