/* ========== TRANG CON: Sản phẩm & Vlog ========== */
.page-hero { padding-top: 88px; padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; }
.page-hero__lead { margin-top: 24px; font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 24px 20px 24px 0; }
.kpis > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.kpis strong { display: block; font: 400 2.2rem/1.1 var(--serif); }
.kpis span { font-size: .85rem; color: var(--ink-2); }

.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin: 24px 0 28px; }
.filters small { opacity: .6; margin-left: 2px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 12px; min-width: 240px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; }
.search input { border: 0; outline: 0; background: none; padding: 10px 0; font: 400 .92rem var(--sans); width: 100%; color: var(--ink); }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { background: var(--paper); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; animation: fadeUp .5s both; }
.product:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,20,19,.06); }
.product--hot { background: #fff; border: 1px solid var(--line); }
.product__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.product__cat { font-size: .76rem; font-weight: 600; color: var(--clay-deep); }
.product__hot { font-size: .7rem; font-weight: 600; background: var(--clay); color: #fff; padding: .2em .7em; border-radius: 999px; }
.product h3 { font: 400 1.4rem/1.2 var(--serif); margin-bottom: 8px; }
.product p { font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.product__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.product__tech span { font-size: .72rem; padding: .25em .7em; border-radius: 6px; background: var(--ivory); border: 1px solid var(--line); }
.empty { color: var(--ink-2); padding: 40px 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* Vlog list */
#tags { margin-bottom: 28px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 40px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; transition: transform .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-card__img { position: relative; aspect-ratio: 16/10; background: #e9e5d9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-blank { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #efe9dc, #e3d9c6); color: var(--ink); }
.post-cover-blank svg { width: 64px; height: 64px; opacity: .85; }
.play { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--clay); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.post-card__body { padding: 20px 22px 24px; }
.post-card__meta { font-size: .78rem; color: var(--clay-deep); font-weight: 600; }
.post-card h3 { font: 400 1.45rem/1.2 var(--serif); margin: 6px 0 8px; }
.post-card p { font-size: .92rem; color: var(--ink-2); }
.post-card--lead { grid-column: 1 / -1; flex-direction: row; }
.post-card--lead .post-card__img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
.post-card--lead .post-card__body { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-card--lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* Vlog post */
.post { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.back { font-size: .9rem; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.post__meta { margin-top: 32px; font-size: .85rem; color: var(--clay-deep); font-weight: 600; }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 18px; }
.post__lead { font: 400 1.3rem/1.5 var(--serif); color: var(--ink-2); }
.video { position: relative; aspect-ratio: 16/9; margin: 36px 0; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post__cover { margin: 36px 0; } .post__cover img { border-radius: var(--r); width: 100%; }
.post__body { margin-top: 32px; font-size: 1.08rem; line-height: 1.8; }
.post__body p, .post__body ul, .post__body ol { margin-bottom: 1.2em; }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body li::marker { color: var(--clay); }
.post__body h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; }
.post__body img { border-radius: 12px; margin: 1.5em 0; }
.post__body blockquote { font: italic 400 1.5rem/1.45 var(--serif); border-left: 3px solid var(--clay); padding: .2em 0 .2em 1em; margin: 1.6em 0; }
.post__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.post__nav a { max-width: 48%; font: 400 1.15rem/1.3 var(--serif); }
.post__nav a.r { text-align: right; margin-left: auto; }
.post__nav small { display: block; font: 600 .75rem var(--sans); color: var(--ink-2); margin-bottom: 4px; }

@media (max-width: 900px) {
  .products, .posts { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .post-card--lead { flex-direction: column; }
  .post-card--lead .post-card__img { min-height: 0; aspect-ratio: 16/10; }
  .post-card--lead .post-card__body { padding: 22px; }
  .page-hero { padding-top: 48px; }
}
@media (max-width: 600px) {
  .products, .posts { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
}
.footer--mini { padding: 28px 0; }
.page-hero h1 { max-width: 20ch; }
