:root {
  --ink: #1d2330; --muted: #6b7280; --line: #e7e5e0; --bg: #faf8f5; --card: #fff;
  --accent: #0f6b5c; --buy: #e8590c; --buy-dark: #c94a06; --soft: #eef6f3; --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

.site-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.3px; white-space: nowrap; }
.logo img { height: 32px; width: auto; }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--bg); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats a { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 5px 13px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); background: #fff; }
.cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero { padding: 38px 0 14px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.8px; }
.hero p { margin: 0; color: var(--muted); font-size: 18px; }
.page-title { margin: 28px 0 8px; font-size: 28px; }
h2.section { font-size: 19px; margin: 34px 0 14px; }
.empty { padding: 50px 0; text-align: center; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(29, 35, 48, .08); transform: translateY(-2px); }
.card .img { aspect-ratio: 1; background: #f2f0ec; display: block; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 15px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--ink); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.meta .price { color: var(--ink); font-weight: 700; font-size: 16px; }
.best { font-size: 13px; color: var(--accent); background: var(--soft); padding: 5px 9px; border-radius: 8px; margin: 2px 0; }
.buy { display: inline-block; margin-top: auto; text-align: center; background: var(--buy); color: #fff; text-decoration: none; font-weight: 600; padding: 9px 14px; border-radius: 10px; font-size: 14px; }
.buy:hover { background: var(--buy-dark); }
.buy.big { font-size: 17px; padding: 13px 26px; margin-top: 10px; }

.crumbs { font-size: 14px; margin: 22px 0 10px; color: var(--muted); }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product-top { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 30px; }
.product-img img { width: 100%; border-radius: 12px; background: #f2f0ec; }
.product h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 0 0 6px; letter-spacing: -.4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 16px 0; }
.facts div { background: var(--bg); border-radius: 10px; padding: 9px 12px; }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.summary, .proscons, .verdict { margin-top: 28px; max-width: 780px; }
.summary h2, .verdict h2 { font-size: 20px; margin: 0 0 8px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: none; }
.proscons > div { border-radius: 12px; padding: 14px 18px; }
.pros { background: #eef7f1; } .cons { background: #fdf3ea; }
.proscons h3 { margin: 0 0 6px; font-size: 16px; }
.proscons ul { margin: 0; padding-left: 20px; }
.verdict { background: var(--soft); border-radius: 12px; padding: 16px 20px; }
.ai-note { font-size: 13px; color: var(--muted); margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.preview-note { background: #fff6d6; border: 1px solid #f1dc8a; padding: 10px 14px; border-radius: 10px; margin-top: 18px; }

.pager { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 30px 0; }
.site-foot { margin-top: 60px; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.disclosure { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

@media (max-width: 760px) {
  .product-top, .proscons { grid-template-columns: 1fr; }
  .product { padding: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bar { gap: 10px; } .logo { font-size: 17px; }
}

.page-text { max-width: 780px; margin-top: 24px; } .page-text h2 { font-size: 19px; margin: 22px 0 6px; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs .thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f2f0ec; cursor: pointer; }
.thumbs .thumb.on { border-color: var(--accent); } .thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }


.main-media video, .main-media img { width: 100%; border-radius: 12px; display: block; }
.main-media video { background: #000; aspect-ratio: 1; object-fit: contain; }
.main-media [hidden] { display: none !important; }
.thumbs .thumb.is-video { position: relative; }
.thumbs .thumb.is-video::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px;
  background: rgba(0,0,0,.35); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.card .img { position: relative; }
.card .vbadge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }

/* Store label on product cards and pages */
.store-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; color: #fff; }
.store-shopee { background: #ee4d2d; } .store-lazada { background: #0f146d; }

/* Top strip banners (Admin › Banners) */
.bn-top { background: var(--bn-bg); color: var(--bn-ink); font-size: .92rem; line-height: 1.35; }
.bn-top .wrap { display: flex; align-items: center; gap: .6rem; min-height: 42px; padding-top: .35rem; padding-bottom: .35rem; }
.bn-top .bn-main { flex: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem .75rem; color: inherit; text-decoration: none; text-align: center; }
.bn-top .bn-ico img { height: 26px; width: 26px; object-fit: cover; border-radius: 6px; display: block; }
.bn-top .bn-txt strong { margin-right: .35rem; }
.bn-top .bn-body { opacity: .92; }
.bn-top .bn-btn { background: var(--bn-ink); color: var(--bn-bg); padding: .2rem .75rem; border-radius: 999px; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.bn-top .bn-x { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; opacity: .75; padding: 0 .25rem; cursor: pointer; }
.bn-top .bn-x:hover { opacity: 1; }
.bn-top.bn-in { animation: bnIn .45s ease; }
@keyframes bnIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .bn-top .bn-body { display: none; } }
@media print { .bn-top { display: none; } }
