/* =========================================================
   Bảo Long Coffee – giao diện trang chủ
   Bố cục theo ảnh mẫu "GIAO DIEN CA PHE.png"; màu lấy từ ảnh mẫu
   (xanh lá đậm) kết hợp bảng màu đề xuất trong positioning brief
   (nâu cà phê #5A3825, vàng mật #DE9D16, xanh lá #3B8841).
   ========================================================= */

:root {
  color-scheme: light;

  --green-950: #102f1b;
  --green-900: #15412a;
  --green-800: #1d5631;   /* màu chính: nút, thanh trên cùng */
  --green-700: #256b3d;
  --green-600: #2f7a3e;
  --leaf:      #3b8841;
  --green-200: #c9dfcd;
  --green-100: #e2efe4;
  --green-50:  #f0f6f1;
  --topbar:    #244b2c;

  --coffee:      #5a3825;
  --coffee-dark: #3f2619;
  --honey:       #de9d16;
  --honey-600:   #c4860c;
  --honey-50:    #fdf5e3;
  --red:         #c62f2a;
  --star:        #f5a70f;

  --ink:    #1f1a17;
  --ink-2:  #3a332e;
  --muted:  #6e6259;
  --line:   #ebe5dc;
  --line-2: #dcd3c7;
  --cream:  #f7f1e8;
  --cream-2:#faf8f4;
  --bg:     #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 23, .05), 0 2px 6px rgba(31, 26, 23, .05);
  --shadow:    0 10px 28px -12px rgba(31, 26, 23, .25);
  --shadow-lg: 0 24px 60px -18px rgba(16, 47, 27, .45);

  --container: 1248px;
  --gutter: 24px;
  --header-h: 76px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 800;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

.icon {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-weight: 800; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover > .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-900); }
.btn--honey, .btn--gold { background: var(--honey); color: #2a1904; }
.btn--honey:hover, .btn--gold:hover { background: #ebab22; }
.btn--light { background: #fff; color: var(--coffee-dark); }
.btn--light:hover { background: var(--cream); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green-700); color: var(--green-800); }
.btn--lg { height: 54px; padding: 0 28px; border-radius: 999px; font-size: 17.5px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15.5px; border-radius: 9px; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); font-size: 23px;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--green-50); color: var(--green-800); }
.count {
  position: absolute; top: 1px; right: -1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: #e2372b; color: #fff; border: 2px solid #fff;
  font-size: 11px; font-weight: 900; line-height: 15px; text-align: center;
}
.count--soft { background: var(--green-700); }
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--topbar); color: #e3eee5; font-size: 14px; font-weight: 600; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar ul { display: flex; align-items: center; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar .icon { font-size: 15px; opacity: .95; }
.topbar__usp li + li::before {
  content: ""; width: 1px; height: 13px; background: rgba(255, 255, 255, .35); margin: 0 16px 0 9px;
}
.topbar__account { gap: 20px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Đầu trang ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
@supports (backdrop-filter: blur(8px)) {
  .header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); }
}
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(31, 26, 23, .35); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header__burger, .header__search-toggle { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 46px; height: 46px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 25px; font-weight: 900; color: var(--green-800); letter-spacing: -.01em; white-space: nowrap; }
.logo__tag { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; letter-spacing: .01em; white-space: nowrap; }
.logo--light { --logo-leaf-1: #5fae6d; --logo-leaf-2: #8fd09a; --logo-flame: #f2a516; }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__tag { color: #a9c4b0; }
.logo--sm .logo__mark { width: 38px; height: 38px; }
.logo--sm .logo__name { font-size: 21px; }

.nav { margin-left: 20px; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__list > li { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 10px 0; font-size: 16px; font-weight: 700; color: var(--ink-2); transition: color .2s;
}
.nav__link .icon { font-size: 15px; stroke-width: 2.4; transition: transform .25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2.5px; border-radius: 2px;
  background: var(--green-800); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--green-800); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.has-sub:hover .nav__link .icon, .has-sub:focus-within .nav__link .icon { transform: rotate(180deg); }

.sub {
  position: absolute; top: calc(100% + 6px); left: -18px; min-width: 230px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease);
}
.sub a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px;
  font-weight: 700; color: var(--ink-2); transition: background-color .15s, color .15s;
}
.sub a:hover { background: var(--green-50); color: var(--green-800); }
.sub img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sub__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); font-size: 17px; }

.search { position: relative; margin-left: auto; flex: 0 1 280px; min-width: 210px; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 20px; border-radius: 999px;
  border: 1px solid #dfe2dd; background: #fff; font-size: 16px; outline: none;
  box-shadow: 0 2px 8px -4px rgba(31, 26, 23, .12); transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: #8e8780; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(37, 107, 61, .12); }
.search__btn {
  position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); font-size: 20px;
}
.search__btn:hover { color: var(--green-800); background: var(--green-50); }
.search__results {
  position: absolute; top: calc(100% + 8px); right: 0; width: max(100%, 380px); max-height: 440px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 5;
}
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.sr-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--cream); }
.sr-item strong { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.sr-item small { font-size: 14px; color: var(--muted); }
.sr-item mark { background: var(--honey-50); color: inherit; border-radius: 3px; box-shadow: 0 0 0 1px #f3d690; }
.sr-item:hover, .sr-item.is-active { background: var(--green-50); }
.sr-all { display: block; width: 100%; margin-top: 4px; padding: 10px; border-top: 1px solid var(--line); font-weight: 800; color: var(--green-800); font-size: 15px; text-align: center; border-radius: 0 0 10px 10px; }
.sr-all:hover { background: var(--green-50); }
.sr-empty { padding: 14px; font-size: 15px; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 6px; }
.header__account { color: var(--green-800); }

/* ---------- Banner trượt ---------- */
.hero { position: relative; overflow: hidden; background: #1a2716; isolation: isolate; touch-action: pan-y; }
.hero__track { position: relative; height: clamp(400px, 27vw, 480px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease; }
.hero-slide__bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
  transform: scale(1.07); transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-slide__bg img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 22, 11, .78) 0%, rgba(12, 22, 11, .55) 30%, rgba(12, 22, 11, .1) 55%, rgba(12, 22, 11, 0) 70%);
}
.hero-slide__inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-slide__content { max-width: 580px; color: #fff; padding-block: 32px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 15.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.hero-eyebrow__icon { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hero-title {
  font-size: clamp(34px, 3.5vw, 54px); font-weight: 900; line-height: 1.1; letter-spacing: -.015em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .3); text-wrap: balance;
}
.hero-sub { margin-top: 10px; font-size: clamp(18px, 1.65vw, 24px); font-weight: 800; color: #f4f0e6; text-wrap: balance; }
.hero-text { margin-top: 16px; max-width: 480px; font-size: 17.5px; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.hero-slide__content .btn { margin-top: 26px; }
/* chữ hiện lần lượt khi đổi banner */
.hero-slide__content > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease); }
.hero-slide.is-active .hero-slide__content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__content > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-slide__content > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-slide__content > :nth-child(4) { transition-delay: .24s; }
.hero-slide.is-active .hero-slide__content > :nth-child(5) { transition-delay: .32s; }

.hero__arrow {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  background: rgba(20, 24, 20, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px); transition: background-color .2s, transform .2s;
}
.hero__arrow:hover { background: rgba(20, 24, 20, .72); }
.hero__arrow--prev { left: 44px; }
.hero__arrow--next { right: 44px; }
.hero__dots { position: absolute; left: 50%; bottom: 18px; z-index: 3; display: flex; gap: 9px; transform: translateX(-50%); }
.hero__dots button {
  width: 11px; height: 11px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9);
  transition: width .35s var(--ease), background-color .3s;
}
.hero__dots button.is-active { width: 28px; background: #fff; }

/* ---------- Dải danh mục ---------- */
.strip { background: var(--cream-2); border-bottom: 1px solid var(--line); }
/* 6 cột bằng nhau, nội dung giữa ô; ô đầu canh trái, ô cuối canh phải như ảnh mẫu */
.strip__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-block: 18px; }
.strip-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; white-space: nowrap; }
.strip-item:first-child { justify-content: flex-start; }
.strip-item:last-child { justify-content: flex-end; }
.strip-item + .strip-item::before {
  content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: var(--line-2);
}
.strip-item__thumb {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 6px 16px -6px rgba(31, 26, 23, .4); transition: transform .35s var(--ease);
}
.strip-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-item__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-800); font-size: 21px; box-shadow: 0 0 0 5px var(--green-50);
}
.strip-item__text { display: flex; flex-direction: column; min-width: 0; }
.strip-item__text strong { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.strip-item__text small { font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
a.strip-item:hover .strip-item__thumb { transform: scale(1.07) rotate(-4deg); }
a.strip-item:hover strong { color: var(--green-800); }

/* ---------- Khối nội dung chung ---------- */
.section { padding-top: 44px; }
.section--tight { padding-top: 28px; }
.section--last { padding-bottom: 64px; }
.section-head { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
.section-title {
  flex: 1; display: flex; align-items: center; gap: 24px;
  font-size: 30px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; color: var(--ink);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--green-200), var(--line) 60%); }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15.5px; color: var(--green-800); white-space: nowrap; }
.section-more .icon { font-size: 17px; transition: transform .25s var(--ease); }
.section-more:hover .icon { transform: translateX(4px); }
.section-more--muted { color: var(--muted); font-weight: 700; }
.section-more--muted:hover { color: var(--green-800); }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--green-700); }

/* khung "chờ ảnh" khi thiếu file ảnh */
[data-ph] { position: relative; background: var(--cream); }
[data-ph].is-missing {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--cream) 0 12px, #f2eadf 12px 24px);
}
[data-ph].is-missing::after {
  content: "Chờ ảnh: " attr(data-ph); max-width: 86%; padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .9); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center;
}

/* ---------- Thẻ sản phẩm ---------- */
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.product-card__img { display: block; height: 100%; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--green-700); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.5;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4);
}
.badge--new { background: #3f8f57; }
.badge--hot, .badge--sale { background: #e0362c; }
.wish-btn {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; color: var(--ink-2);
  background: rgba(255, 255, 255, .94); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), color .2s;
}
.product-card:hover .wish-btn, .wish-btn:focus-visible, .wish-btn[aria-pressed="true"] { opacity: 1; transform: none; }
.wish-btn:hover { color: var(--red); }
.wish-btn[aria-pressed="true"] { color: var(--red); }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 12px 12px 14px; }
.product-card__title { font-size: 16px; font-weight: 800; line-height: 1.35; }
.product-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card__title a:hover { color: var(--green-800); }
.product-card__meta { font-size: 14px; color: var(--muted); }
.product-card__meta span + span::before { content: "|"; margin: 0 8px; color: var(--line-2); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 4px; }
.price__now { font-size: 18.5px; font-weight: 900; color: var(--red); letter-spacing: -.01em; }
.price__old { font-size: 14px; color: #9b9088; }
.rating { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #8f857c; }
.stars {
  --w: 78px; flex-shrink: 0; width: var(--w); height: 14px;
  background: linear-gradient(90deg, var(--star) calc(var(--rating, 0) / 5 * 100%), #ddd5ca 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.53 2.3a.53.53 0 0 1 .95 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.14a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .3-.9l5.16-.76a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E") 0 0 / 15.6px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.53 2.3a.53.53 0 0 1 .95 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.14a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .3-.9l5.16-.76a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E") 0 0 / 15.6px 14px repeat-x;
}
.rating--none .stars { --w: 14px; }  /* chưa có đánh giá: chỉ một ngôi sao xám */
.btn--cart { margin-top: auto; height: 40px; border-radius: 9px; font-size: 15.5px; }
.product-card__body .rating { margin-bottom: 10px; }
.btn--cart .icon { font-size: 18px; }
.btn--cart.is-added { background: var(--leaf); }


/* ---------- Kiến thức + Vì sao chọn ---------- */
.info-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.knowledge {
  display: grid; grid-template-columns: 190px minmax(0, 1.1fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.knowledge__media { display: block; min-height: 100%; background: transparent; }
.knowledge__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
.knowledge__main { padding: 22px 12px 22px 10px; display: flex; flex-direction: column; align-items: flex-start; }
.knowledge__title { margin-top: 6px; font-size: 21px; font-weight: 900; line-height: 1.3; text-wrap: balance; }
.knowledge__title a:hover { color: var(--green-800); }
.knowledge__excerpt {
  margin: 8px 0 16px; font-size: 15px; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.knowledge__main .btn { margin-top: auto; }
.knowledge__list { display: flex; flex-direction: column; justify-content: center; margin: 18px 0; padding: 0 20px; border-left: 1px solid var(--line); }
.knowledge__list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.knowledge__list li + li a { border-top: 1px solid var(--line); }
.knowledge__list img { width: 58px; height: 52px; border-radius: 9px; object-fit: cover; flex-shrink: 0; transition: transform .3s var(--ease); }
.knowledge__list strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.4; }
.knowledge__list time { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.knowledge__list a:hover strong { color: var(--green-800); }
.knowledge__list a:hover img { transform: scale(1.06); }

.why {
  position: relative; padding: 22px 22px 18px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #fbfaf7, #f5f2ec); border: 1px solid var(--line);
}
.why__title { font-size: 20px; font-weight: 900; margin-bottom: 18px; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.why__grid li { display: flex; align-items: flex-start; gap: 10px; }
.why__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-800); font-size: 20px; box-shadow: 0 0 0 4px #fff, 0 6px 14px -8px rgba(16, 47, 27, .6);
}
.why__grid strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.why__grid small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.why__script {
  margin: 10px 4px 0 auto; width: max-content; font-family: var(--font-script); font-size: 23px; font-weight: 700;
  line-height: 1.15; color: var(--green-700); text-align: center; transform: rotate(-6deg);
}
.why__script svg { display: block; width: 100%; height: 12px; margin-top: 2px; fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; }

/* ---------- Bài viết ---------- */
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 14px 16px 18px; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.chip { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.6; }
.chip--coffee { background: #f2e8df; color: var(--coffee); }
.chip--honey { background: var(--honey-50); color: #8a5800; }
.chip--nut { background: #f1ebe1; color: #6d4b2c; }
.chip--shop { background: var(--green-50); color: var(--green-800); }
.chip:hover { filter: brightness(.96); }
.post-card__title { font-size: 17.5px; font-weight: 800; line-height: 1.4; }
.post-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a:hover { color: var(--green-800); }
.post-card__excerpt {
  margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Chân trang ---------- */
.footer { background: var(--green-950); color: #c6d8ca; font-size: 15.5px; }
.footer__news { background: var(--green-800); }
.footer__news-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 30px; }
.footer__news-title { font-size: 24px; font-weight: 900; color: #fff; }
.footer__news p { color: #d3e6d7; }
.newsletter { position: relative; display: flex; gap: 10px; width: min(480px, 100%); }
.newsletter input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: 999px; border: 0; outline: none;
  background: #fff; font-size: 16px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s;
}
.newsletter input:focus { box-shadow: inset 0 0 0 2px var(--honey); }
.newsletter .btn { height: 48px; border-radius: 999px; }
.newsletter__msg { position: absolute; left: 20px; top: calc(100% + 6px); font-size: 14.5px; font-weight: 700; }
.newsletter__msg.is-ok { color: #ffe3a3; }
.newsletter__msg.is-error { color: #ffc0b8; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 52px 40px; }
.footer__brand p { margin: 16px 0 18px; line-height: 1.65; max-width: 360px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.footer__contact .icon { font-size: 17px; margin-top: 3px; color: var(--honey); }
.footer h3 { margin-bottom: 14px; font-size: 16px; font-weight: 900; color: #fff; letter-spacing: .02em; }
.footer__col li a { display: inline-block; padding: 4px 0; transition: color .2s, transform .2s; }
.footer a:hover { color: #fff; }
.footer__col li a:hover { transform: translateX(3px); }
.footer__social-title { margin-top: 22px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px;
  background: rgba(255, 255, 255, .08); color: #e6efe7; transition: background-color .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--honey); color: #2a1904; transform: translateY(-2px); }
.social__zalo { font-size: 11.5px !important; font-weight: 900; letter-spacing: -.01em; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 14.5px; color: #9fb8a5; }
.footer__bottom-inner a { margin-left: 18px; }

/* ---------- Chat nổi, lên đầu trang, thông báo ---------- */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chat__fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  color: #fff; background: var(--green-800); box-shadow: 0 14px 28px -10px rgba(16, 47, 27, .75); transition: transform .2s, background-color .2s;
}
.chat__fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(29, 86, 49, .45);
  animation: pulse 2.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(29, 86, 49, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 86, 49, 0); } }
.chat__fab:hover { transform: scale(1.06); background: var(--green-900); }
.chat__label {
  height: 42px; padding: 0 20px; border-radius: 999px; background: var(--green-800); color: #fff;
  font-size: 15.5px; font-weight: 800; box-shadow: 0 12px 24px -12px rgba(16, 47, 27, .8); transition: background-color .2s;
}
.chat__label:hover { background: var(--green-900); }
.chat__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); transform-origin: bottom right; animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chat__head { position: relative; padding: 16px 48px 14px 18px; background: var(--green-800); color: #fff; }
.chat__head strong { display: block; font-size: 17px; font-weight: 900; }
.chat__head span { font-size: 14px; color: #cfe3d4; }
.chat__close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.chat__close:hover { background: rgba(255, 255, 255, .15); }
.chat__opt { display: flex; align-items: center; gap: 12px; padding: 13px 18px; font-weight: 800; border-top: 1px solid var(--line); transition: background-color .15s; }
.chat__opt:first-of-type { border-top: 0; }
.chat__opt:hover { background: var(--green-50); color: var(--green-800); }
.chat__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px; flex-shrink: 0; }
.chat__ic--zalo { background: #0068ff; font-size: 10.5px; font-weight: 900; }
.chat__ic--fb { background: #1877f2; }
.chat__ic--phone { background: var(--green-700); }

.to-top {
  position: fixed; right: 27px; bottom: 140px; z-index: 59; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; color: var(--green-800); background: #fff;
  box-shadow: 0 8px 20px -8px rgba(31, 26, 23, .45), inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.to-top:hover { background: var(--green-50); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; display: flex; align-items: center; gap: 10px;
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.4;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .3s var(--ease); }
.toast > .icon { font-size: 19px; color: var(--honey); }
.toast__action { margin-left: 6px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-weight: 800; white-space: nowrap; }
.toast__action:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Ngăn kéo: menu điện thoại, giỏ hàng ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(14, 22, 15, .5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.overlay.is-visible { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 90; display: flex; flex-direction: column;
  width: min(410px, 92vw); background: #fff; box-shadow: var(--shadow-lg); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.drawer--cart { right: 0; transform: translateX(100%); }
.drawer--nav { left: 0; width: min(340px, 88vw); transform: translateX(-100%); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 20px; font-weight: 900; }
.drawer__title span { color: var(--muted); font-weight: 700; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 20px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--cream-2); }

.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__img img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; background: var(--cream); }
.cart-item__name { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.cart-item__name:hover { color: var(--green-800); }
.cart-item__unit { font-size: 14px; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-item__price { font-weight: 900; color: var(--red); }
.cart-item__remove { align-self: start; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #a39a92; font-size: 17px; }
.cart-item__remove:hover { color: var(--red); background: #fdeeee; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--ink-2); }
.qty button:hover { background: var(--green-50); color: var(--green-800); }
.qty span { min-width: 26px; text-align: center; font-weight: 900; font-size: 15px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 800; }
.cart-total strong { font-size: 22px; font-weight: 900; color: var(--red); }
.cart-note { margin-top: -6px; font-size: 14px; color: var(--muted); }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 12px; text-align: center; color: var(--muted); }
.cart-empty__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--green-800); background: var(--green-50); }

.mnav ul { padding-block: 4px; }
.mnav li { border-bottom: 1px solid var(--line); }
.mnav > ul > li > a, .mnav__row > a { display: block; flex: 1; padding: 14px 0; font-size: 17px; font-weight: 800; }
.mnav a[aria-current="page"] { color: var(--green-800); }
.mnav__row { display: flex; align-items: center; }
.mnav__toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; transition: transform .25s; }
.mnav__toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--green-800); }
.mnav__sub { padding: 0 0 10px 14px !important; }
.mnav__sub li { border: 0; }
.mnav__sub a { display: block; padding: 8px 0; font-weight: 700; color: var(--ink-2); }
.mnav__account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 14px; }
.mnav__contact { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--muted); }
.mnav__contact a { color: var(--green-800); }

/* ---------- Hiện dần khi cuộn ---------- */
/* dùng animation (không dùng transition) để không đè hiệu ứng hover của thẻ */
/* nếu main.js không chạy được thì sau 3 giây vẫn hiện nội dung */
.js [data-reveal]:not(.is-in) { opacity: 0; animation: reveal-fallback 0s 3s forwards; }
@keyframes reveal-fallback { to { opacity: 1; } }
.js [data-reveal].is-in { animation: reveal .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } }

/* =========================================================
   Màn hình vừa và nhỏ
   ========================================================= */
@media (max-width: 1400px) {
  /* màn hình hẹp hơn: đưa 2 nút mũi tên xuống góc phải để không đè lên chữ */
  .hero__arrow { top: auto; bottom: 14px; margin-top: 0; width: 40px; height: 40px; font-size: 20px; }
  .hero__arrow--prev { left: auto; right: calc(var(--gutter) + 48px); }
  .hero__arrow--next { right: var(--gutter); }
}

@media (max-width: 1240px) {
  :root { --header-h: 66px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .strip-item, .strip-item:first-child, .strip-item:last-child { justify-content: flex-start; padding-left: 20px; }
  .strip-item:nth-child(3n + 1) { padding-left: 0; }
  .strip-item:nth-child(3n + 1)::before { display: none; }
  .info-row { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why__script { margin-top: 18px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-slide--photo::after {
    background: linear-gradient(90deg, rgba(12, 22, 11, .86) 0%, rgba(12, 22, 11, .68) 42%, rgba(12, 22, 11, .25) 72%, rgba(12, 22, 11, .05) 100%);
  }
  .nav, .topbar .topbar__account { display: none; }
  .header__burger, .header__search-toggle { display: inline-grid; }
  .header__inner { gap: 8px; }
  .header__burger { margin-left: -8px; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__name { font-size: 23px; }
  .header__actions { margin-left: auto; gap: 2px; }
  .search {
    position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0; padding: 10px var(--gutter) 12px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -18px rgba(31, 26, 23, .45);
    display: none;
  }
  .header.is-search-open .search { display: block; }
  .search__btn { right: calc(var(--gutter) + 5px); top: 15px; }
  .search__results { left: var(--gutter); right: var(--gutter); width: auto; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__news-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .knowledge { grid-template-columns: 180px minmax(0, 1fr); }
  .knowledge__list { grid-column: 1 / -1; margin: 0; padding: 4px 20px 10px; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; min-height: 32px; }
  .topbar__usp li:nth-child(3) { display: none; }
  .topbar { font-size: 13px; white-space: nowrap; }
  .topbar__usp li + li::before { margin: 0 12px 0 7px; }
  .logo__tag { display: none; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__name { font-size: 21px; }
  .header__account { display: none; }
  .icon-btn { width: 40px; height: 40px; font-size: 22px; }

  .hero__track { height: 540px; }
  .hero-slide__inner { align-items: flex-end; }
  .hero-slide__content { padding-block: 0 64px; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(12, 22, 11, .92) 0%, rgba(12, 22, 11, .7) 42%, rgba(12, 22, 11, .12) 72%, rgba(12, 22, 11, 0) 100%); }
  .hero-slide__bg img { object-position: 72% 50%; }
  .hero-eyebrow { font-size: 14px; gap: 8px; }
  .hero-eyebrow__icon { width: 32px; height: 32px; }
  .hero-text { font-size: 16px; margin-top: 12px; }
  .hero-slide__content .btn { margin-top: 20px; }
  .btn--lg { height: 50px; font-size: 16.5px; }
  .hero__arrow { display: none; }
  .hero__dots { bottom: 22px; }

  .strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 16px; gap: 14px 6px; }
  .strip-item, .strip-item:first-child, .strip-item:last-child, .strip-item:nth-child(3n + 1) {
    flex-direction: column; justify-content: flex-start; text-align: center; gap: 8px; padding: 0 2px; white-space: normal;
  }
  .strip-item + .strip-item::before { display: none; }
  .strip-item__thumb { width: 64px; height: 64px; }
  .strip-item__icon { width: 46px; height: 46px; font-size: 22px; box-shadow: 0 0 0 4px var(--green-50); }
  .strip-item__text strong { font-size: 14.5px; }
  .strip-item__text small { font-size: 13px; }

  .section { padding-top: 32px; }
  .section--tight { padding-top: 20px; }
  .section--last { padding-bottom: 44px; }
  .section-head { margin-bottom: 16px; gap: 12px; }
  .section-title { font-size: 23px; gap: 12px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card__body { padding: 10px 10px 12px; }
  .product-card__title { font-size: 15px; }
  .price__now { font-size: 17px; }
  .rating { font-size: 12.5px; gap: 5px; }
  .stars { --w: 64px; height: 12px; -webkit-mask-size: 12.8px 12px; mask-size: 12.8px 12px; }
  .btn--cart { height: 38px; font-size: 14.5px; padding: 0 10px; gap: 6px; }
  .wish-btn { opacity: 1; transform: none; width: 32px; height: 32px; }

  .knowledge { grid-template-columns: 1fr; }
  .knowledge__media { height: 190px; }
  .knowledge__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .knowledge__main { padding: 4px 16px 18px; }
  .knowledge__title { font-size: 19.5px; }
  .knowledge__list { padding: 4px 16px 8px; }
  .why { padding: 18px 16px; }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .why__grid strong { white-space: normal; }
  .why__icon { width: 40px; height: 40px; font-size: 19px; }

  .post-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .post-grid::-webkit-scrollbar { display: none; }
  .post-card { scroll-snap-align: start; }


  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 36px 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__news-title { font-size: 21px; }
  .newsletter .btn { padding: 0 16px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 88px; }
  .footer__bottom-inner a:first-child { margin-left: 0; }

  .chat { right: 14px; bottom: 14px; }
  .chat__label { display: none; }
  .chat__fab { width: 54px; height: 54px; font-size: 24px; }
  .chat__panel { width: min(300px, calc(100vw - 28px)); }
  .to-top { right: 20px; bottom: 80px; }
  .toast { bottom: 84px; }
}

@media (max-width: 370px) {
  .topbar__usp li:first-child { display: none; }
  .topbar__usp li + li::before { display: none; }
}

@media (max-width: 380px) {
  .logo__name { font-size: 18px; }
  .strip-item__text small { display: none; }
  .btn--cart .icon { display: none; }
}

@media (hover: none) {
  .wish-btn { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .hero-slide__bg img { transform: none !important; }
}

/* =========================================================
   Trang danh mục (Cà phê) – theo ảnh mẫu "giao dien trang ca phe.png"
   ========================================================= */
.btn--pill { border-radius: 999px; }

/* Banner trang */
.page-hero { position: relative; overflow: hidden; color: #fff; background: #1b2416; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 58%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 22, 11, .9) 0%, rgba(13, 22, 11, .7) 34%, rgba(13, 22, 11, .15) 60%, rgba(13, 22, 11, .35) 100%);
}
.page-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 300px; padding-block: 30px; }
.page-hero__content { max-width: 720px; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.page-hero__eyebrow svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-hero__title { margin-top: 6px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 900; line-height: 1.2; text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.page-hero__text { margin-top: 10px; max-width: 580px; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.page-hero__usp { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; }
.page-hero__usp li { display: flex; align-items: center; gap: 12px; }
.page-hero__ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: rgba(10, 18, 9, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.page-hero__usp strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.page-hero__usp small { display: block; font-size: 14px; color: rgba(255, 255, 255, .8); }
.page-hero__script {
  flex-shrink: 0; margin-right: 10px; font-family: var(--font-script); font-size: 33px; font-weight: 700; line-height: 1.15;
  text-align: center; transform: rotate(-12deg); text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.page-hero__script svg { display: block; width: 150px; height: 22px; margin: 2px auto 0; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }

/* Đường dẫn */
.breadcrumb { padding: 16px 0 12px; font-size: 14.5px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--green-800); }
.breadcrumb__home { font-size: 17px; color: var(--green-800); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 800; }

/* Bố cục: cột lọc + danh sách */
.shop { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 56px; }
.shop__main { min-width: 0; }

.filters {
  position: sticky; top: calc(var(--header-h) + 12px); padding: 14px 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.filters__head { display: none; }
.filter-group + .filter-group,
.filter-group + .filters__form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16.5px; font-weight: 800; color: var(--green-900); }
.filter-title .icon { font-size: 19px; color: var(--green-800); }
.cat-list li + li { margin-top: 2px; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-weight: 700; color: var(--ink-2); transition: background-color .15s, color .15s; }
.cat-list a:hover { background: var(--green-50); color: var(--green-800); }
.cat-list a.is-active { background: var(--green-100); color: var(--green-900); }
.cat-list img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cat-list .num, .check .num { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--muted); }

/* thanh trượt giá 2 đầu */
.range { position: relative; height: 26px; margin: 2px 4px 0; }
.range__track, .range__fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.range__track { left: 0; right: 0; background: var(--line-2); }
.range__fill { left: 0; right: 0; background: var(--green-800); }
.range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; background: none;
  pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range input[type="range"]::-webkit-slider-runnable-track { background: none; border: 0; height: 26px; }
.range input[type="range"]::-moz-range-track { background: none; border: 0; }
.range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto; -webkit-appearance: none; width: 17px; height: 17px; margin-top: 4.5px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-800); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--green-800);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab;
}
.range input[type="range"]:focus-visible { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(222, 157, 22, .55); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(222, 157, 22, .55); }
.range-values { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }

/* ô chọn */
.check-list li + li { margin-top: 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-size: 15.5px; color: var(--ink-2); cursor: pointer; }
.check input {
  flex-shrink: 0; display: grid; place-content: center; width: 17px; height: 17px; margin: 0;
  border: 1.5px solid #b8b0a6; border-radius: 4px; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.check input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--green-800); border-color: var(--green-800); }
.check input:checked::after { opacity: 1; }
.check:hover input { border-color: var(--green-700); }
.check.is-empty { opacity: .45; }
.filters__apply { margin-top: 18px; height: 42px; }
.filters__reset { display: block; width: 100%; margin-top: 10px; font-size: 14.5px; font-weight: 800; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.filters__reset:hover { color: var(--red); }

/* Khung giới thiệu loại cà phê */
.cat-banner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px;
  min-height: 156px; padding: 22px 24px; border-radius: 12px; overflow: hidden; color: #fff; background: #1d160f; isolation: isolate;
}
.cat-banner__bg { position: absolute; inset: 0; z-index: -2; }
.cat-banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cat-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 16, 10, .96) 0%, rgba(22, 16, 10, .86) 36%, rgba(22, 16, 10, .35) 50%, rgba(22, 16, 10, .6) 64%, rgba(22, 16, 10, .9) 100%);
}
.cat-banner__text h2 { font-size: 22px; font-weight: 900; line-height: 1.25; text-wrap: balance; }
.cat-banner__text p { margin: 8px 0 14px; max-width: 430px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.cat-banner__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.cat-banner__types li { padding: 0 10px; }
.cat-banner__types li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
.type-ic { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: #fff; color: #6b3218; font-size: 22px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.type-ic--robusta .icon { transform: rotate(60deg); }
.cat-banner__types strong { display: block; font-size: 15.5px; font-weight: 800; }
.cat-banner__types small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); }

/* Thanh tiêu đề danh sách */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 14px; }
.shop-toolbar__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.shop-toolbar__title h2 { font-size: 23px; font-weight: 900; color: var(--green-900); }
.result-count { font-size: 14px; color: var(--muted); }
.shop-toolbar__actions { display: flex; align-items: center; gap: 8px; }
.filter-toggle { display: none; }
.sort {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px 0 12px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 9px; font-size: 15px; color: var(--muted); white-space: nowrap;
}
.sort select {
  height: 100%; padding: 0 22px 0 2px; border: 0; outline: none; background: transparent; font: inherit; font-weight: 800; color: var(--ink);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a332e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 15px;
}
.sort:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(37, 107, 61, .12); }

/* Thẻ sản phẩm gọn (6 cột) */
.product-grid--shop { gap: 12px; }
.product-card--compact .product-card__body { padding: 10px 10px 12px; gap: 3px; }
.product-card--compact .product-card__title { font-size: 15px; }
.product-card__desc {
  min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card--compact .product-card__meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.product-card--compact .price { flex-wrap: nowrap; column-gap: 6px; white-space: nowrap; }
.product-card--compact .price__now { font-size: 16px; }
.product-card--compact .price__old { font-size: 12.5px; }
.product-card--compact .rating { gap: 5px; margin-bottom: 8px; font-size: 13.5px; white-space: nowrap; }
.product-card--compact .btn--cart { height: 36px; padding: 0 8px; font-size: 14.5px; gap: 6px; }
.product-card--compact .btn--cart .icon { font-size: 16px; }
.shop-empty { margin-top: 4px; padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; background: var(--cream-2); }
.shop-empty p { margin-bottom: 12px; font-weight: 700; }

/* Khối Cà phê Tây Nguyên */
.cat-story {
  display: grid; grid-template-columns: 170px minmax(0, .85fr) minmax(0, 1.3fr) auto; align-items: center; margin-top: 18px;
  background: linear-gradient(160deg, #fbfaf7, #f3f1ec); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.cat-story__media { display: block; align-self: stretch; min-height: 130px; background: transparent; }
.cat-story__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.cat-story__body { padding: 16px 16px 16px 10px; }
.cat-story__body h2 { display: flex; align-items: center; gap: 8px; font-size: 17.5px; font-weight: 900; line-height: 1.3; text-wrap: balance; }
.cat-story__body h2 .icon { flex-shrink: 0; font-size: 20px; color: var(--green-700); }
.cat-story__body p { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.cat-story__badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; align-items: center; text-align: center; border-left: 1px solid var(--line); }
.cat-story__badges li { padding: 12px 8px; }
.cat-story__badges li + li { border-left: 1px solid var(--line); }
.badge-ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: 21px; box-shadow: 0 0 0 4px #fff; }
.cat-story__badges strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.cat-story__badges small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.cat-story__script {
  padding: 0 16px 0 6px; font-family: var(--font-script); font-size: 20px; font-weight: 700; line-height: 1.15;
  color: var(--green-700); text-align: center; transform: rotate(-8deg); white-space: nowrap;
}
.cat-story__script svg { display: block; width: 130px; height: 20px; margin: 2px auto 0; fill: none; stroke: var(--green-700); stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 1240px) {
  .product-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-banner { grid-template-columns: 1fr; }
  .cat-banner::before { background: linear-gradient(90deg, rgba(22, 16, 10, .95) 0%, rgba(22, 16, 10, .78) 60%, rgba(22, 16, 10, .55) 100%); }
  .cat-banner__types { justify-self: start; max-width: 520px; }
  .cat-story { grid-template-columns: 180px minmax(0, 1fr); }
  .cat-story__badges { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .cat-story__script { display: none; }
  .page-hero__script { display: none; }
}

@media (max-width: 1024px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; }
  /* cột lọc thành ngăn kéo bên trái */
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(340px, 88vw); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 18px 22px; border: 0; border-radius: 0; box-shadow: var(--shadow-lg);
    transform: translateX(-100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .filters__head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    margin: 0 -18px 12px; padding: 12px 10px 12px 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 900;
  }
}

@media (max-width: 767px) {
  .page-hero__inner { min-height: 0; padding-block: 26px 24px; }
  .page-hero::before { background: linear-gradient(90deg, rgba(13, 22, 11, .9) 0%, rgba(13, 22, 11, .75) 60%, rgba(13, 22, 11, .45) 100%); }
  .page-hero__eyebrow { font-size: 16px; gap: 10px; }
  .page-hero__eyebrow svg { width: 34px; height: 34px; }
  .page-hero__title { font-size: 25px; }
  .page-hero__text { font-size: 15.5px; }
  .page-hero__usp { flex-direction: column; gap: 10px; margin-top: 16px; }
  .page-hero__ic { width: 40px; height: 40px; font-size: 19px; }
  .breadcrumb { padding: 12px 0 10px; }
  .cat-banner { padding: 20px 18px; gap: 16px; }
  .cat-banner__text h2 { font-size: 20px; }
  .cat-banner__types li { padding: 0 6px; }
  .type-ic { width: 40px; height: 40px; font-size: 19px; }
  .cat-banner__types strong { font-size: 14px; }
  .cat-banner__types small { font-size: 12.5px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
  .shop-toolbar__title h2 { font-size: 21px; }
  .shop-toolbar__actions { justify-content: space-between; }
  .sort span { display: none; }
  .product-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-story { grid-template-columns: minmax(0, 1fr); }
  .cat-story__media { min-height: 150px; }
  .cat-story__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .cat-story__body { padding: 4px 16px 16px; }
  .cat-story__badges li { padding: 12px 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* =========================================================
   Các trang của web bán hàng (Django): chi tiết sản phẩm, giỏ hàng,
   thanh toán, tin tức, trang nội dung, form
   ========================================================= */
.narrow { max-width: 920px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.page-title { margin: 6px 0 18px; font-size: 30px; font-weight: 900; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.sub-title { margin: 26px 0 14px; font-size: 21px; font-weight: 900; color: var(--green-900); }
.btn.is-disabled { pointer-events: none; opacity: .6; }
.section--last { padding-bottom: 56px; }

/* thông báo */
.flash { background: var(--green-50); border-bottom: 1px solid var(--green-100); }
.flash__item { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 700; color: var(--green-900); }
.flash__item .icon { font-size: 20px; color: var(--green-700); }
.flash__item--error { color: #9b1c1c; }
.flash__item--error .icon { color: var(--red); }

/* khung và ô nhập */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.form-card + .form-card { margin-top: 16px; }
.form-card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 20px; font-weight: 900; }
.form-card__title .icon { font-size: 22px; color: var(--green-800); }
.form-card__title.small { font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.field--full { grid-column: 1 / -1; }
.field b { color: var(--red); }
.field small { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .coupon input, .side-search input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select:disabled { background: #f4f2ee; color: var(--muted); cursor: not-allowed; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus, .side-search input:focus {
  border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(37, 107, 61, .12);
}
.field-error { display: block; font-style: normal; font-size: 14px; font-weight: 700; color: var(--red); }
p.field-error { margin: 8px 0; }

/* phân trang */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 6px; }
.pagination__btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; border: 1px solid var(--line-2); background: #fff; }
.pagination__btn:hover { border-color: var(--green-700); color: var(--green-800); }
.pagination__btn.is-current { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pagination__gap { padding: 0 4px; color: var(--muted); align-self: center; }

/* ---------- Chi tiết sản phẩm ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 6px 0 26px; }
.pd__main { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__main .badge { top: 14px; left: 14px; font-size: 14px; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pd__thumb { flex: 0 0 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb.is-active, .pd__thumb:hover { border-color: var(--green-700); opacity: 1; }
.pd__cat a { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.pd__title { margin: 6px 0 8px; font-size: 32px; font-weight: 900; line-height: 1.2; text-wrap: balance; }
.pd__rating { font-size: 15px; color: var(--muted); }
.pd__rating .rating { font-size: 15px; }
.pd__rating a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pd__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 14px 0 10px; }
.pd__price .price__now { font-size: 32px; }
.pd__price .price__old { font-size: 18px; }
.pd__save { padding: 2px 10px; border-radius: 999px; background: #fdeceb; color: var(--red); font-weight: 900; font-size: 15px; }
.pd__short { color: var(--ink-2); font-size: 16.5px; }
.pd__variants { margin: 18px 0 0; padding: 0; border: 0; }
.pd__variants legend { margin-bottom: 8px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line-2); font-weight: 800; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip-option input:checked + span { border-color: var(--green-800); background: var(--green-50); color: var(--green-900); box-shadow: inset 0 0 0 1px var(--green-800); }
.chip-option input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.chip-option.is-out span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.pd__stock { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--leaf); }
.pd__buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qty--lg { height: 54px; padding: 0 4px; }
.qty--lg button { width: 40px; height: 40px; }
.qty--lg input { width: 46px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 900; font-size: 17px; -moz-appearance: textfield; }
.qty--lg input::-webkit-outer-spin-button, .qty--lg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd__add { flex: 1 1 200px; border-radius: 12px; }
.pd__now { border-radius: 12px; box-shadow: none; }
.pd__usp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--cream-2); border: 1px solid var(--line); }
.pd__usp li { display: flex; align-items: center; gap: 10px; }
.pd__usp .icon { flex-shrink: 0; font-size: 24px; color: var(--green-800); }
.pd__usp strong { display: block; font-size: 14.5px; }
.pd__usp small { display: block; font-size: 13px; color: var(--muted); }
.pd-tabs { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pd-tabs__nav { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.pd-tabs__nav button { padding: 14px 14px 12px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; }
.pd-tabs__nav button[aria-selected="true"] { color: var(--green-800); border-color: var(--green-800); }
.pd-tabs__panel { padding: 20px 22px 24px; }
.reviews { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review__head time { font-size: 14px; color: var(--muted); }
.review-form h3 { margin-bottom: 10px; font-size: 18px; font-weight: 900; }
.review-form .field { margin-bottom: 10px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 10px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 26px; color: #d8d0c5; cursor: pointer; }
.star-input label .icon { fill: currentColor; stroke: none; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--honey); border-radius: 4px; }

/* nội dung soạn thảo (mô tả, bài viết, trang) */
.content-body { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.content-body > * + * { margin-top: 14px; }
.content-body h2 { margin-top: 28px; font-size: 23px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.content-body h3 { margin-top: 22px; font-size: 19px; font-weight: 800; color: var(--ink); }
.content-body ul, .content-body ol { padding-left: 22px; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li + li { margin-top: 6px; }
.content-body a { color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; }
.content-body img { border-radius: 12px; margin-inline: auto; }
.content-body blockquote { padding: 12px 18px; border-left: 4px solid var(--honey); background: var(--honey-50); border-radius: 0 10px 10px 0; }
.content-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.content-body th, .content-body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.content-body th { background: var(--cream-2); }

/* ---------- Giỏ hàng, thanh toán ---------- */
.cart-page, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cart-table { padding: 4px 20px; }
.cart-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row__img img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.cart-row__name { display: block; font-weight: 800; font-size: 16.5px; }
.cart-row__name:hover { color: var(--green-800); }
.cart-row__total { min-width: 96px; text-align: right; color: var(--red); font-weight: 900; }
.cart-row .qty button:disabled { opacity: .35; }
.summary h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 20px; font-weight: 900; }
.summary h2 .icon { font-size: 22px; color: var(--green-800); }
.summary h2 small { font-size: 15px; color: var(--muted); font-weight: 700; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 16px; }
.summary__row--discount strong { color: var(--leaf); }
.summary__row--total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 900; }
.summary__row--total strong { font-size: 25px; color: var(--green-800); }
.summary .btn--lg { margin-top: 14px; border-radius: 12px; }
.summary__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--muted); }
.summary__back:hover { color: var(--green-800); }
.summary__items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary__items img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.summary__items strong { display: block; font-size: 15px; line-height: 1.35; }
.summary__items small { color: var(--muted); }
.summary__items b { font-size: 15.5px; }
.coupon { display: flex; gap: 8px; margin: 12px 0 4px; }
.coupon input { min-height: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 18px; padding: 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--muted); text-align: center; }
.steps li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.steps span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-weight: 900; }
.steps .is-current, .steps .is-done { color: var(--green-800); }
.steps .is-current span, .steps .is-done span { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.steps .is-current::before, .steps .is-done::before { background: var(--green-700) !important; }
.options { display: grid; gap: 10px; margin-top: 12px; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:has(input:checked) { border-color: var(--green-800); background: var(--green-50); }
.option input { width: 18px; height: 18px; accent-color: var(--green-800); flex-shrink: 0; }
.option__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--green-800); font-size: 20px; flex-shrink: 0; }
.option__text { flex: 1; }
.option__text strong { display: block; font-size: 16px; }
.option__text small { display: block; font-size: 14px; color: var(--muted); }
.option__price { font-weight: 900; color: var(--ink); white-space: nowrap; }
.option--soon { opacity: .55; cursor: default; }
.checkout__main { min-width: 0; }
.checkout__side { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: 16px; }
.checkout__side .form-card + .form-card,
.cart-page > .form-card + .form-card { margin-top: 0; }
.checkout__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.checkout__total { display: none; }
.checkout__actions .btn--lg { border-radius: 12px; min-width: 240px; }
.promise { padding: 16px 18px; border-radius: 14px; background: var(--green-50); border: 1px solid var(--green-100); }
.promise h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 17px; font-weight: 900; color: var(--green-900); }
.promise li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 15px; }
.promise .icon { color: var(--leaf); }
.success { text-align: center; }
.success__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-size: 40px; }
.success h1 { font-size: 27px; font-weight: 900; margin-bottom: 8px; }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.bank-box { margin: 16px auto 0; max-width: 520px; padding: 14px 18px; text-align: left; border-radius: 12px; background: var(--honey-50); border: 1px dashed var(--honey); }
.bank-box h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 17px; font-weight: 900; }
.order-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15.5px; }
.order-table th, .order-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table th:last-child, .order-table td:last-child { text-align: right; white-space: nowrap; }
.order-table thead th:nth-child(2), .order-table tbody td:nth-child(2) { text-align: center; }
.order-table tfoot td { border-bottom: 0; padding: 6px 8px; }
.order-table__total td { font-size: 18px; font-weight: 900; color: var(--green-800); border-top: 2px solid var(--line); padding-top: 12px !important; }
.lookup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.lookup .field { flex: 1 1 220px; }
.lookup .btn { height: 44px; }
.status { margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #fff; background: #7f7770; }
.status--new { background: #e0362c; }
.status--confirmed { background: #2a78d6; }
.status--shipping { background: #c4860c; }
.status--completed { background: var(--green-800); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; text-align: center; color: var(--muted); }
.notfound__code { font-size: 72px; font-weight: 900; line-height: 1; color: var(--green-100); -webkit-text-stroke: 2px var(--green-700); }
.notfound h1 { font-size: 25px; font-weight: 900; color: var(--ink); }

/* ---------- Tin tức ---------- */
.blog-head { margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 800; font-size: 15px; }
.tabs a small { color: var(--muted); font-weight: 700; }
.tabs a.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.tabs a.is-active small { color: #cfe3d4; }
.blog-featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-featured__media { display: block; min-height: 280px; }
.blog-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-featured__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px 28px; }
.blog-featured__body h2 { font-size: 25px; font-weight: 900; line-height: 1.3; }
.blog-featured__body h2 a:hover { color: var(--green-800); }
.blog-featured__body p { color: var(--muted); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip--ca-phe { background: #f2e8df; color: var(--coffee); }
.chip--mat-ong { background: var(--honey-50); color: #8a5800; }
.chip--hat-macca { background: #f1ebe1; color: #6d4b2c; }
.chip--quan-ca-phe { background: var(--green-50); color: var(--green-800); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.article { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.article__hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: var(--green-900); }
.article__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 12, .85) 0%, rgba(10, 22, 12, .5) 55%, rgba(10, 22, 12, .1) 100%); }
.article__hero-text { position: relative; z-index: 1; padding: 30px 30px 26px; max-width: 640px; }
.article__chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--green-700); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.article__hero h1 { margin: 12px 0 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.25; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__intro { display: flex; gap: 12px; margin: 22px 26px 0; padding: 16px 18px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--ink-2); }
.article__intro .icon { flex-shrink: 0; font-size: 22px; color: var(--green-700); margin-top: 2px; }
.article__body { padding: 8px 26px 6px; }
.article__author { margin: 18px 26px 0; font-size: 15px; color: var(--muted); }
.article__products { margin: 22px 26px 26px; padding: 16px; border-radius: 14px; background: var(--cream-2); border: 1px solid var(--line); }
.article__products h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 18px; font-weight: 900; color: var(--green-900); }
.mini-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mini-product { display: flex; gap: 12px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mini-product__img img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.mini-product > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.mini-product__name { font-weight: 800; font-size: 15px; line-height: 1.35; }
.mini-product .price__now { font-size: 16px; }
.mini-product .btn { margin-top: auto; height: 32px; padding: 0 12px; font-size: 14px; }
.mini-product .price__now { margin-bottom: 6px; }
.article-side { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: 16px; }
.side-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.side-card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; font-weight: 900; }
.side-card__title .icon { color: var(--green-800); font-size: 19px; }
.side-card__more { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--green-800); }
.side-search { display: flex; gap: 8px; }
.side-search .btn { width: 46px; padding: 0; height: 44px; }
.side-posts li + li, .side-products li + li { border-top: 1px solid var(--line); }
.side-posts a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.side-posts img { width: 84px; height: 60px; border-radius: 9px; object-fit: cover; }
.side-posts strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.4; }
.side-posts small { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.side-posts a:hover strong { color: var(--green-800); }
.side-products li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.side-products__img img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.side-products__info a { display: block; font-weight: 800; font-size: 15px; line-height: 1.35; }
.side-products__info small { display: block; color: var(--muted); font-size: 14px; }
.side-products__info strong { color: var(--red); font-size: 16px; }
.side-products form { grid-column: 2; }
.side-products .btn { height: 32px; padding: 0 12px; font-size: 14px; gap: 6px; }
.side-banner { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid var(--green-100); }
.side-banner .icon { font-size: 30px; color: var(--green-700); }
.side-banner strong { display: block; font-weight: 900; color: var(--green-900); }
.side-banner small { color: var(--muted); }

/* ---------- Trang nội dung, liên hệ ---------- */
.page-article { padding: 26px 30px 30px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-info li { display: flex; gap: 12px; padding: 10px 0; }
.contact-info .icon { font-size: 22px; color: var(--green-800); margin-top: 2px; }
.contact-info a { font-weight: 800; color: var(--green-800); }
.contact-form { display: grid; gap: 12px; }
.contact-form h2 { font-size: 19px; font-weight: 900; }
.contact-form .form-grid { margin-top: 0; }
.contact-form .btn { justify-self: start; }

@media (max-width: 1080px) {
  .cart-page, .checkout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout__side, .article-side { position: static; }
  .checkout__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 800; }
  .checkout__total strong { font-size: 23px; font-weight: 900; color: var(--green-800); }
  .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .blog-featured { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .page-title { font-size: 24px; }
  .form-card { padding: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pd__title { font-size: 25px; }
  .pd__price .price__now { font-size: 27px; }
  .pd__usp { grid-template-columns: minmax(0, 1fr); }
  .pd__buy .qty--lg { flex: 0 0 auto; }
  .pd__now { flex: 1 1 100%; }
  .pd-tabs__panel { padding: 16px; }
  .cart-table { padding: 0 14px; }
  .cart-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px 12px; }
  .cart-row__img img { width: 64px; height: 64px; }
  .cart-row__qty { grid-column: 2; }
  .cart-row__total { grid-column: 3; grid-row: 1; align-self: start; min-width: 0; }
  .cart-row form:last-child { grid-column: 3; grid-row: 2; justify-self: end; }
  .steps { padding: 12px 4px; }
  .steps li { font-size: 13px; }
  .option { padding: 12px; gap: 10px; }
  .checkout__actions { flex-direction: column-reverse; align-items: stretch; }
  .checkout__actions .btn--lg { min-width: 0; }
  .post-grid--3 { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
  .article__hero { min-height: 260px; }
  .article__hero-text { padding: 20px 18px; }
  .article__intro { margin: 16px 16px 0; }
  .article__body { padding: 4px 16px; }
  .article__author, .article__products { margin-left: 16px; margin-right: 16px; }
  .page-article { padding: 18px; }
}

/* =========================================================
   Trang Mật ong, Hạt macca – theo ảnh mẫu "giao den mat ong.png" và "macca 2.png"
   ========================================================= */
/* Banner danh mục: nhiều ảnh thì tự chuyển; dòng phụ, nút, con dấu tròn */
.page-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.page-hero__slide.is-active { opacity: 1; }
.page-hero__inner { position: relative; }
.page-hero--wide .page-hero__content { max-width: 760px; }
.page-hero__lead { font-size: 1.28em; }
.page-hero__sub { margin-top: 6px; font-size: clamp(19px, 1.65vw, 25px); font-weight: 800; color: #f4f0e6; text-wrap: balance; }
.page-hero__btn { margin-top: 22px; }
.page-hero__badge {
  position: absolute; top: 26px; right: var(--gutter); width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05;
  background: rgba(16, 47, 27, .62); border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 5px rgba(16, 47, 27, .62), inset 0 0 0 6px rgba(255, 255, 255, .55);
  font-weight: 900; text-transform: uppercase; transform: rotate(-6deg);
}
.page-hero__badge span:first-child { font-size: 23px; }
.page-hero__badge span + span { margin-top: 2px; font-size: 13px; letter-spacing: .04em; }
.page-hero__badge .icon { margin-top: 4px; font-size: 20px; }

/* Mật ong: màu mật cho cột lọc */
@media (min-width: 1025px) {
  /* tên loại mật ong dài: cột lọc rộng hơn để mỗi tên nằm trên một dòng */
  .shop--honey { grid-template-columns: 248px minmax(0, 1fr); }
}
.shop--honey .cat-list a { gap: 8px; font-size: 15px; }
.shop--honey .product-card__desc { display: none; }
.cat-list__ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--honey-50); color: var(--honey-600); font-size: 16px; }
.shop--honey .filter-title .icon { color: var(--honey-600); }
.shop--honey .cat-list a:hover { background: var(--honey-50); color: #7a4d00; }
.shop--honey .cat-list a.is-active { background: #fbe8bf; color: #5c3a00; }
.shop--honey .range__fill { background: var(--honey); }
.shop--honey .range input[type="range"]::-webkit-slider-thumb { border-color: var(--honey-600); }
.shop--honey .range input[type="range"]::-moz-range-thumb { border-color: var(--honey-600); }
.shop--honey .check input:checked { background: var(--honey-600); border-color: var(--honey-600); }
.shop--honey .check:hover input { border-color: var(--honey-600); }
.shop--honey .filters__apply { background: var(--honey); color: #2a1904; }
.shop--honey .filters__apply:hover { background: #ebab22; }

/* Mật ong: khung giới thiệu nền sáng */
.cat-banner--light {
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.6fr); gap: 16px; min-height: 0; padding: 18px 20px;
  color: var(--ink); background: linear-gradient(100deg, #fcefd2 0%, #fcf4e2 46%, #fdf8ee 100%); border: 1px solid #f0e0bd;
}
.cat-banner--light::before { display: none; }
.cat-banner__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14.5px; font-weight: 800; color: #7a4d00; }
.cat-banner__eyebrow .icon { font-size: 22px; color: var(--honey-600); }
.cat-banner--light .cat-banner__text p { color: var(--ink-2); }
.cat-banner__media { position: relative; align-self: stretch; min-height: 130px; margin-block: -18px; }
.cat-banner__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  /* ảnh nền trắng: làm sáng rồi hòa vào nền kem, mép mờ dần */
  filter: brightness(1.06) contrast(1.06); mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.cat-banner__badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.cat-banner__badges li { padding: 0 6px; }
.cat-banner__badges li + li { border-left: 1px solid #ead7ad; }
.cat-banner__ic {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%;
  background: #fff; color: var(--honey-600); font-size: 22px; box-shadow: 0 0 0 3px #f6dca4;
}
.cat-banner__badges strong { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.cat-banner__badges small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Mật ong: khối sức khỏe + Vì sao chọn */
.cat-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.cat-health {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; overflow: hidden;
  background: linear-gradient(160deg, #f8f7f1, #f0eee5); border: 1px solid var(--line); border-radius: 12px;
}
.cat-health__media { align-self: stretch; min-height: 150px; background: transparent; }
.cat-health__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.cat-health__body { padding: 16px 18px 16px 8px; }
.cat-health__body h2 { display: flex; align-items: center; gap: 8px; font-size: 18.5px; font-weight: 900; line-height: 1.3; color: var(--green-900); }
.cat-health__body h2 .icon { flex-shrink: 0; font-size: 22px; color: var(--green-700); }
.cat-health__body p { margin: 6px 0 12px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.why--compact { padding: 16px 18px 12px; border-radius: 12px; }
.why--compact .why__title { margin-bottom: 12px; font-size: 18px; }
.why--compact .why__grid { gap: 12px; }
.why--compact .why__icon { width: 38px; height: 38px; font-size: 18px; }
.why--compact .why__grid strong { white-space: normal; }
.why--compact .why__script { margin-top: 6px; font-size: 20px; }

/* Hạt macca: dải cam kết dưới banner */
.usp-strip { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.usp-strip__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-block: 14px; }
.usp-strip__grid li { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 10px; }
.usp-strip__grid li + li::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line-2); }
.usp-strip__ic {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--green-800); font-size: 24px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(16, 47, 27, .6);
}
.usp-strip strong { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--green-900); }
.usp-strip small { display: block; font-size: 14px; color: var(--muted); }

/* Hạt macca: tiêu đề khối, thẻ danh mục con */
.landing-section { padding-top: 30px; }
.landing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.landing-title { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 900; line-height: 1.2; color: var(--green-900); }
.landing-title .icon { flex-shrink: 0; font-size: 28px; color: var(--green-700); }
.type-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.type-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.type-card__img { display: block; aspect-ratio: 16 / 6; overflow: hidden; }
.type-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.type-card:hover .type-card__img img { transform: scale(1.05); }
.type-card__body { display: block; padding: 12px 58px 14px 16px; }
.type-card__body strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.type-card__body small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.type-card__go {
  position: absolute; right: 16px; bottom: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-800); color: #fff; font-size: 17px; transition: transform .25s var(--ease);
}
.type-card:hover .type-card__go { transform: translateX(3px); }

/* Hạt macca: hành trình, cảm nhận khách hàng, bài viết */
.landing-bottom { margin-top: 36px; padding-block: 22px 56px; background: linear-gradient(180deg, #f1f3ea, #f7f7f2); border-top: 1px solid var(--line); }
.landing-bottom__grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.journey {
  display: grid; grid-template-columns: 24% minmax(0, 1fr) minmax(0, 1fr); align-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.journey__media { align-self: stretch; min-height: 170px; background: transparent; }
.journey__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent);
}
.journey__body { padding: 16px 12px 16px 4px; }
.journey__body .eyebrow { letter-spacing: .03em; }
.journey__body h2 { margin-top: 4px; font-size: 19px; font-weight: 900; line-height: 1.3; color: var(--green-900); text-wrap: balance; }
.journey__body p { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.journey__points { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 14px 14px 16px; border-left: 1px solid var(--line); }
.journey__points li { display: flex; align-items: center; gap: 10px; }
.journey__ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-800); font-size: 18px; }
.journey__points strong { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.journey__points small { display: block; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.quotes, .mini-post { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.quotes h2, .mini-post h2 { font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--green-900); }
.quotes__track { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.quotes__nav { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); font-size: 18px; }
.quotes__nav:hover { background: var(--green-50); color: var(--green-800); }
.quote { flex: 1; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.quote__who { display: flex; align-items: center; gap: 10px; }
.quote__avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); font-size: 18px; font-weight: 900; }
.quote__who strong { display: block; font-size: 15px; line-height: 1.3; }
.quote blockquote { margin: 8px 0 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.quote__meta { font-size: 13.5px; color: var(--muted); }
.quote__meta a:hover { color: var(--green-800); }
.quotes__empty { margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--cream-2); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mini-post__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; }
.mini-post__head .section-more { font-size: 14.5px; }
.mini-post__card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.mini-post__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.mini-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.mini-post__card:hover .mini-post__img img { transform: scale(1.06); }
.mini-post__body strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.4; }
.mini-post__card:hover strong { color: var(--green-800); }
.mini-post__body time { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.mini-post__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14.5px; font-weight: 800; color: var(--green-800); }
.mini-post__more .icon { font-size: 16px; }

@media (max-width: 1240px) {
  .page-hero__badge { display: none; }
  .cat-banner--light { grid-template-columns: minmax(0, 1fr) 150px; }
  .cat-banner--light .cat-banner__badges { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #ead7ad; }
  .cat-banner__media { margin-block: -18px 0; }
  .usp-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .usp-strip__grid li { justify-content: flex-start; }
  .usp-strip__grid li::before { display: none; }
  .type-cards { gap: 14px; }
  .landing-bottom__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .journey { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .cat-duo { grid-template-columns: minmax(0, 1fr); }
  .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .page-hero__sub { font-size: 18px; }
  .page-hero__btn { margin-top: 18px; height: 48px; font-size: 16px; }
  .cat-banner--light { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .cat-banner--light .cat-banner__media { display: none; }
  .cat-banner__badges li { padding: 0 4px; }
  .cat-banner__ic { width: 40px; height: 40px; font-size: 19px; }
  .cat-banner__badges strong { font-size: 14.5px; }
  .cat-banner__badges small { font-size: 13px; }
  .cat-health { grid-template-columns: minmax(0, 1fr); }
  .cat-health__media { min-height: 150px; }
  .cat-health__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .cat-health__body { padding: 4px 16px 16px; }
  .page-hero[data-slider] .page-hero__inner { padding-bottom: 54px; }
  /* dải cam kết: vuốt ngang trên điện thoại */
  .usp-strip__grid {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-block: 12px; scrollbar-width: none;
  }
  .usp-strip__grid::-webkit-scrollbar { display: none; }
  .usp-strip__grid li { flex: 0 0 auto; gap: 10px; padding: 6px 12px 6px 4px; scroll-snap-align: start; }
  .usp-strip__ic { width: 42px; height: 42px; font-size: 21px; }
  .usp-strip strong { font-size: 14.5px; }
  .usp-strip small { font-size: 13px; }
  .landing-section { padding-top: 24px; }
  .landing-title { font-size: 21px; }
  .landing-title .icon { font-size: 24px; }
  .type-cards { gap: 10px; }
  .type-card__body { padding: 10px 12px 12px; }
  .type-card__body strong { font-size: 15.5px; }
  .type-card__body small { font-size: 13px; }
  .type-card__go { display: none; }
  .landing-bottom { margin-top: 28px; padding-block: 18px 40px; }
  .landing-bottom__grid { grid-template-columns: minmax(0, 1fr); }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey__media { min-height: 160px; }
  .journey__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .journey__body { padding: 4px 16px 8px; }
  .journey__points { gap: 12px; padding: 12px 16px 16px; border-left: 0; border-top: 1px solid var(--line); }
}

/* =========================================================
   Trang chuyên mục Kiến thức – theo ảnh mẫu "kien thuc cafe.png", "kien thuc mat ong.png",
   "Kiến thức Macca – Tinh hoa thiên nhiên.png"
   ========================================================= */
.container--hub { max-width: 1440px; }
.hub { display: grid; grid-template-columns: 252px minmax(0, 1fr) 280px; gap: 20px; align-items: start; padding-top: 24px; }
.hub__side, .hub__aside { display: flex; flex-direction: column; gap: 16px; }
.hub__main { min-width: 0; }
.hub-box { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.hub-box__title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--green-900); }
.hub-box__title .icon { flex-shrink: 0; font-size: 22px; color: var(--green-700); }

/* Cột trái: chủ đề */
.hub-topics { padding: 14px 10px 10px; }
.hub-topics .hub-box__title { padding-inline: 6px; }
.hub-topics__list li + li { border-top: 1px solid var(--line); }
.hub-topics__list a {
  display: flex; align-items: center; gap: 8px; margin: 2px 0; padding: 8px; border-radius: 9px;
  font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ink-2); transition: background-color .15s, color .15s;
}
.hub-topics__list a:hover { background: var(--green-50); color: var(--green-800); }
.hub-topics__ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-800); font-size: 16px; }
.hub-topics__go { flex-shrink: 0; margin-left: auto; font-size: 14px; color: var(--muted); }
.hub-topics__list a.is-active { background: var(--green-800); color: #fff; }
.hub-topics__list a.is-active .hub-topics__ic { background: rgba(255, 255, 255, .16); color: #fff; }
.hub-topics__list a.is-active .hub-topics__go { color: #fff; }
.hub-topics__list li:has(> a.is-active) + li, .hub-topics__list li:has(+ li > a.is-active) { border-color: transparent; }

/* Cột trái: thẻ quảng cáo */
.hub-promo { position: relative; display: block; min-height: 200px; overflow: hidden; border-radius: 12px; color: #fff; background: var(--green-900); isolation: isolate; }
.hub-promo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; transition: transform .5s var(--ease); }
.hub-promo:hover img { transform: scale(1.05); }
.hub-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16, 47, 27, .94) 0%, rgba(16, 47, 27, .72) 52%, rgba(16, 47, 27, .1) 100%); }
.hub-promo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; }
.hub-promo strong { font-size: 21px; font-weight: 900; line-height: 1.25; }
.hub-promo strong span { display: block; }
.hub-promo small { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.hub-promo .btn { margin-top: 8px; }
.hub-promo--mat-ong::before { background: linear-gradient(100deg, rgba(54, 32, 4, .88) 0%, rgba(54, 32, 4, .55) 55%, rgba(54, 32, 4, .05) 100%); }
.hub-promo--mat-ong strong { font-family: var(--font-script); font-size: 23px; font-weight: 700; transform: rotate(-4deg); transform-origin: left; }

/* Khung tổng quan */
.hub-intro {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .95fr); align-items: stretch; overflow: hidden;
  background: linear-gradient(100deg, #f1f5ec 0%, #f6f6f0 60%, #f3f4ec 100%); border: 1px solid var(--line); border-radius: 14px;
}
.hub-intro__text { align-self: center; padding: 20px 6px 20px 22px; }
.hub-intro__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; border-radius: 999px;
  background: var(--green-100); color: var(--green-800); font-size: 13.5px; font-weight: 800;
}
.hub-intro__eyebrow .icon { font-size: 18px; }
.hub-intro h2 { margin: 10px 0 8px; font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--green-900); text-wrap: balance; }
.hub-intro__text p { margin-bottom: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.hub-intro__media { position: relative; min-height: 220px; }
.hub-intro__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 80%, transparent);
}
.hub-intro__facts { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 16px 18px; border-left: 1px solid var(--line); }
.hub-intro__facts li { display: flex; align-items: center; gap: 12px; }
.hub-intro__ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green-800); font-size: 20px; box-shadow: 0 0 0 1px var(--line); }
.hub-intro__facts strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--green-900); }
.hub-intro__facts small { display: block; margin-top: 1px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.hub-intro--mat-ong { background: linear-gradient(100deg, #fcefd2 0%, #fdf5e4 55%, #fdf8ee 100%); border-color: #f0e0bd; }
.hub-intro--mat-ong .hub-intro__eyebrow { padding: 0; background: none; color: #6b4300; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.hub-intro--mat-ong .hub-intro__eyebrow .icon { font-size: 20px; color: var(--honey-600); }
.hub-intro--mat-ong .hub-intro__facts { border-color: #ead7ad; }
.hub-intro--mat-ong .hub-intro__ic { color: var(--honey-600); box-shadow: 0 0 0 3px #f6dca4; }

/* Tiêu đề khối, thẻ bài */
.hub-section + .hub-section, .hub-intro + .hub-section { margin-top: 22px; }
.hub-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.hub-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 22px; font-weight: 900; line-height: 1.25; color: var(--green-900); }
.hub-title::after { content: ""; flex: 1; min-width: 20px; height: 1px; background: linear-gradient(90deg, var(--green-200), var(--line) 60%); }
.hub-title .icon { flex-shrink: 0; font-size: 26px; color: var(--green-700); }
.hub-head .result-count { flex-shrink: 0; }
.hub-cards { display: grid; gap: 14px; }
.hub-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hub-cards--5 .hub-card__title { -webkit-line-clamp: 4; }
.hub-cards--3, .hub-cards--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hub-card__media { position: relative; }
.hub-card__img, .hub-big__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.hub-big__img { aspect-ratio: 16 / 9; }
.hub-card__img img, .hub-big__img img, .hub-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.hub-card:hover .hub-card__img img, .hub-big:hover .hub-big__img img, .hub-row:hover .hub-row__img img { transform: scale(1.05); }
.hub-chip {
  position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 3px 10px; border-radius: 999px;
  background: var(--green-800); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.4; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .6);
}
.hub-chip:hover { background: var(--green-900); }
.hub-chip--inline { position: static; display: inline-block; margin-bottom: 4px; box-shadow: none; }
.hub-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 14px; }
.hub-card__title { font-size: 15.5px; font-weight: 800; line-height: 1.4; color: var(--green-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card__title a:hover, .hub-big h3 a:hover, .hub-row h3 a:hover, .hub-popular__list a:hover strong, .hub-story__more a:hover strong { color: var(--green-700); }
.hub-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; color: var(--muted); }
.hub-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hub-meta .icon { font-size: 14px; }
.hub-card__excerpt { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 2px; font-size: 14.5px; font-weight: 800; color: var(--green-800); }
.hub-more .icon { font-size: 16px; transition: transform .25s var(--ease); }
.hub-more:hover .icon { transform: translateX(3px); }

/* Cà phê: 1 bài lớn, 3 bài nhỏ */
.hub-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hub-big, .hub-row { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.hub-big__body { padding: 14px 18px 18px; }
.hub-big h3 { margin-bottom: 8px; font-size: 21px; font-weight: 900; line-height: 1.3; text-wrap: balance; }
.hub-big__excerpt { margin: 8px 0 14px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.hub-rows { display: grid; gap: 12px; }
.hub-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.hub-row__img { display: block; min-height: 128px; overflow: hidden; }
.hub-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px 12px; }
.hub-row h3 { font-size: 16px; font-weight: 800; line-height: 1.35; }

/* Cà phê: thanh chủ đề dưới banner */
.topic-tabs { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.topic-tabs__list { display: flex; overflow-x: auto; scrollbar-width: none; }
.topic-tabs__list::-webkit-scrollbar { display: none; }
.topic-tabs__list li { flex: 1 1 0; min-width: 150px; position: relative; }
.topic-tabs__list li + li::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line-2); }
.topic-tabs__list a { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 14px 8px 16px; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.topic-tabs__list a:hover { color: var(--green-800); }
.topic-tabs__ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green-800); font-size: 20px; box-shadow: 0 0 0 1px var(--line); }
.topic-tabs__name { max-width: 7.2em; }
.topic-tabs__list a.is-active { color: var(--green-900); }
.topic-tabs__list a.is-active .topic-tabs__ic { background: var(--green-800); color: #fff; box-shadow: none; }
.topic-tabs__list a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--green-800); }

/* Cột phải: xem nhiều, nhận tin */
.hub-popular__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: hub-popular; }
.hub-popular__list a { display: flex; align-items: center; gap: 10px; }
.hub-popular__list.is-numbered a::before {
  counter-increment: hub-popular; content: counter(hub-popular); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-800); color: #fff; font-size: 13.5px; font-weight: 800;
}
.hub-popular__img { flex-shrink: 0; width: 64px; height: 56px; overflow: hidden; border-radius: 8px; }
.hub-popular__img img { width: 100%; height: 100%; object-fit: cover; }
.hub-popular__body { min-width: 0; }
.hub-popular__body strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.hub-popular__body small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.hub-news { position: relative; }
.hub-news .hub-box__title { padding-right: 44px; }
.hub-news__leaf { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; fill: none; stroke: var(--green-700); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.hub-news p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.newsletter--side { flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 12px; }
.newsletter--side input { height: 44px; padding: 0 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; }
.newsletter--side input:focus { box-shadow: inset 0 0 0 2px var(--green-700); }
.newsletter--side .btn { height: 44px; padding: 0 14px; border-radius: 9px; }
.newsletter--side .newsletter__msg { position: static; flex-basis: 100%; font-size: 14px; }
.newsletter--side .newsletter__msg:empty { display: none; }
.hub-news .why__script { margin: 14px auto 0; font-size: 20px; }

/* Cuối trang: kiến thức hữu ích, bài khác, câu hỏi thường gặp */
.hub-bottom { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 24px; }
.hub-bottom--faq { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.hub-story {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; overflow: hidden;
  background: linear-gradient(160deg, #f4f5ee, #edf0e5); border: 1px solid var(--line); border-radius: 12px;
}
.hub-story--more { grid-template-columns: 220px minmax(0, 1.1fr) minmax(0, 1fr); }
.hub-story__media { align-self: stretch; min-height: 170px; background: transparent; }
.hub-story__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent); mask-image: linear-gradient(90deg, #000 65%, transparent);
}
.hub-story__body { padding: 16px 16px 16px 4px; }
.hub-story__eyebrow { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--green-700); }
.hub-story__eyebrow .icon { font-size: 18px; }
.hub-story h2 { margin: 4px 0 6px; font-size: 19px; font-weight: 900; line-height: 1.3; color: var(--green-900); text-wrap: balance; }
.hub-story__body p { margin-bottom: 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.hub-story__more { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 16px; border-left: 1px solid var(--line); }
.hub-story__more a { display: flex; align-items: center; gap: 10px; }
.hub-story__thumb { flex-shrink: 0; width: 64px; height: 46px; overflow: hidden; border-radius: 8px; }
.hub-story__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-story__more strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.35; }
.hub-story__more time { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.hub-faq { box-shadow: var(--shadow-sm); }
.hub-faq__item + .hub-faq__item { border-top: 1px solid var(--line); }
.hub-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px;
  font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink-2); cursor: pointer; list-style: none;
}
.hub-faq__item summary::-webkit-details-marker { display: none; }
.hub-faq__item summary:hover { color: var(--green-800); }
.hub-faq__item summary .icon { flex-shrink: 0; font-size: 16px; color: var(--muted); transition: transform .2s; }
.hub-faq__item[open] summary .icon { transform: rotate(90deg); }
.hub-faq__item p { padding: 0 2px 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* Macca: dải 6 lợi ích */
.usp-strip--6 .usp-strip__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.usp-strip--6 .usp-strip__grid li { padding-inline: 8px; }

@media (max-width: 1359px) {
  .hub { grid-template-columns: 236px minmax(0, 1fr); }
  .hub__aside { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hub-cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-intro { grid-template-columns: minmax(0, 1fr) 220px; }
  .hub-intro__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding: 14px 22px; border-left: 0; border-top: 1px solid var(--line); }
  .usp-strip--6 .usp-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .usp-strip--6 .usp-strip__grid li { justify-content: flex-start; }
  .usp-strip--6 .usp-strip__grid li::before { display: none; }
}

@media (max-width: 1024px) {
  .hub { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 18px; }
  .hub__aside { grid-column: auto; }
  .hub-promo { display: none; }
  .hub--ca-phe .hub-topics { display: none; }  /* trang Cà phê đã có thanh chủ đề dưới banner */
  /* chủ đề thành hàng nút vuốt ngang */
  .hub-topics { padding: 12px; }
  .hub-topics__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hub-topics__list::-webkit-scrollbar { display: none; }
  .hub-topics__list li + li { border: 0; }
  .hub-topics__list a { margin: 0; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
  .hub-topics__go { display: none; }
  .hub-feature { grid-template-columns: minmax(0, 1fr); }
  .hub-bottom, .hub-bottom--faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .hub__aside { grid-template-columns: minmax(0, 1fr); }
  .hub-cards { gap: 10px; }
  .hub-cards--3, .hub-cards--5, .hub-cards--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-card__body { padding: 10px 10px 12px; }
  .hub-card__title { font-size: 15px; }
  .hub-card__excerpt { display: none; }
  .hub-title { font-size: 20px; }
  .hub-title .icon { font-size: 22px; }
  .hub-intro { grid-template-columns: minmax(0, 1fr); }
  .hub-intro__media { order: -1; min-height: 170px; }
  .hub-intro__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
  .hub-intro__text { padding: 4px 16px 16px; }
  .hub-intro h2 { font-size: 21px; }
  .hub-intro__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 14px 16px; }
  .hub-intro__ic { width: 38px; height: 38px; font-size: 18px; }
  .hub-big h3 { font-size: 19px; }
  .hub-row { grid-template-columns: 116px minmax(0, 1fr); }
  .hub-row__img { min-height: 116px; }
  .topic-tabs__list a { padding: 12px 10px 14px; gap: 8px; font-size: 14.5px; }
  .topic-tabs__ic { width: 38px; height: 38px; font-size: 19px; }
  .hub-story, .hub-story--more { grid-template-columns: minmax(0, 1fr); }
  .hub-story__media { min-height: 150px; }
  .hub-story__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .hub-story__body { padding: 4px 16px 16px; }
  .hub-story__more { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Trang bản đồ chủ đề (cẩm nang, quà tặng, bán sỉ) ---------- */
.map-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.map-page > .page-article { min-width: 0; }
.map-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.map-aside__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.map-aside__list li + li { border-top: 1px solid var(--line); }
.map-aside__list a { display: flex; align-items: center; gap: 8px; padding: 9px 2px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.map-aside__list a:hover { color: var(--green-800); }
.map-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.map-link:hover { border-color: var(--green-600); color: var(--green-800); }
.map-link strong { display: block; font-size: 15px; line-height: 1.35; }
.map-link small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.map-link .icon { flex-shrink: 0; font-size: 18px; }
.map-page .content-body h2 { margin-top: 26px; }
.map-page .product-grid, .map-page .post-grid { margin-top: 12px; }
.map-page .shop-empty { margin: 18px 0 6px; }
@media (max-width: 900px) {
  .map-page { grid-template-columns: minmax(0, 1fr); }
  .map-aside { position: static; }
  .map-links { grid-template-columns: minmax(0, 1fr); }
}
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.strip-item__thumb:empty { display: none; }
.map-page .page-article > section { margin-top: 26px; }
.map-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .map-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .map-page .product-grid { grid-template-columns: minmax(0, 1fr); }
}
