/* Nhà Xinh Săn Deal — style v2 (làm đẹp 22/11/2026).
   Màu theo đúng bộ nhận diện: cam đỏ #E8491D, nền kem #FFF8EC, chữ than #23272E.
   Quy tắc quảng cáo (user dặn 22/11): TỐI ĐA 2 vị trí trên toàn web, KHÔNG
   popunder, KHÔNG quảng cáo nổi/dính. Vị trí: 1 cuối trang chủ + 1 giữa bài
   viết. Mã Monetag dán vào .ad-slot khi có; slot trống sẽ tự ẩn. */
:root {
  --bg: #fff8ec;
  --surface: #ffffff;
  --ink: #23272e;
  --muted: #6f6a5e;
  --line: #f0e3cd;
  --accent: #e8491d;
  --accent-dark: #c93a12;
  --accent-soft: #ffeee3;
  --shopee: #ee4d2d;
  --shopee-dark: #d63f1f;
  --gold: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(35, 39, 46, 0.10);
  --shadow-sm: 0 4px 14px rgba(35, 39, 46, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Header — dính trên cùng, nền mờ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.brand-logo { width: 52px; height: 40px; object-fit: cover; object-position: top; border-radius: 8px; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 12px; color: var(--muted); }
nav.cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 0 12px;
}
nav.cats a {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
  transition: all 0.15s ease;
}
nav.cats a:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  text-decoration: none;
}

/* Hero — ảnh bìa thương hiệu */
.hero-banner {
  margin-top: 18px;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-banner img { width: 100%; }
.hero-text { padding: 22px 4px 4px; text-align: center; }
.hero-text h1 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
.hero-text p { color: var(--muted); margin: 0; font-size: 15px; }
@media (min-width: 640px) { .hero-text h1 { font-size: 32px; } }

/* Deal nổi bật */
.feature {
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, #e8491d 0%, #f97316 100%);
  border-radius: 20px; overflow: hidden;
  margin-top: 26px; color: #fff;
  box-shadow: var(--shadow);
}
.feature .f-body { padding: 22px 22px 24px; }
.feature .f-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.feature h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.35; }
.feature p { margin: 0 0 12px; opacity: 0.95; font-size: 14px; }
.feature .f-price { font-size: 34px; font-weight: 800; line-height: 1; }
.feature .f-old { opacity: 0.75; text-decoration: line-through; font-size: 17px; margin-left: 10px; }
.feature .btn-light {
  display: inline-block; margin-top: 16px;
  background: #fff; color: var(--accent-dark); font-weight: 800;
  padding: 11px 22px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.feature .btn-light:hover { text-decoration: none; transform: translateY(-1px); }
.feature img { width: 100%; height: 220px; object-fit: cover; }
@media (min-width: 640px) {
  .feature { flex-direction: row; align-items: stretch; }
  .feature .f-body { flex: 1.15; padding: 28px 8px 28px 28px; }
  .feature img { flex: 1; height: auto; min-height: 280px; }
}

/* Sections */
section { padding: 26px 0 8px; }
.section-title {
  font-size: 23px; margin: 0 0 4px; letter-spacing: -0.01em;
  padding-left: 12px; border-left: 5px solid var(--accent);
}
.section-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; padding-left: 17px; }

/* Article cards */
.article-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .article-grid { grid-template-columns: 1fr 1fr; } }
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: block; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.article-card .thumb { overflow: hidden; }
.article-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 0.35s ease;
}
.article-card:hover img { transform: scale(1.05); }
.article-card .body { padding: 14px 16px 16px; }
.article-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; }
.article-card .meta { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Product cards */
.product {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product .p-img { overflow: hidden; border-radius: 12px; flex-shrink: 0; }
.product img {
  width: 130px; height: 130px; object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}
.product:hover img { transform: scale(1.06); }
@media (min-width: 640px) { .product img { width: 170px; height: 170px; } }
.product h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.product .spec { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.star { color: var(--gold); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { color: var(--red); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.old { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.badge {
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.btn {
  display: inline-block; margin-top: 10px;
  background: var(--shopee); color: #fff; font-weight: 700;
  padding: 11px 20px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.35);
  transition: all 0.15s ease;
}
.btn:hover { background: var(--shopee-dark); text-decoration: none; transform: translateY(-1px); }
.checked { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* Article body */
.article-body h2 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.article-body p { margin: 0 0 14px; }
.article-body ul { margin: 0 0 14px; padding-left: 20px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.article-head img.hero-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin: 16px 0 8px;
  box-shadow: var(--shadow-sm);
}
.article-head h1 { font-size: 27px; line-height: 1.35; margin: 8px 0; letter-spacing: -0.01em; }
@media (min-width: 640px) { .article-head h1 { font-size: 31px; } }
.article-head .meta { color: var(--muted); font-size: 13px; }
.related { margin-top: 8px; }
.related a { display: block; padding: 6px 0; }

/* Disclosure + ads */
.note {
  background: var(--accent-soft); border: 1px solid #ffd9bd;
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 14px; margin: 20px 0;
}
.ad-slot:empty { display: none; }
.ad-slot { margin: 24px 0; text-align: center; }
.ad-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

/* Footer — nền than, chữ kem */
footer.site {
  background: #23272e; color: #d8d2c4;
  margin-top: 40px; padding: 30px 0 36px;
  font-size: 14px;
}
footer.site strong { color: #fff; }
footer.site a { color: #ffb59d; }
footer.site .links a { margin-right: 16px; }
