/* ===== Thảo Dược & Sức Khỏe ===== */
:root {
  --cream: #f5f1e4;
  --cream-2: #ece6d3;
  --paper: #fbf8f0;
  --green: #3a5527;
  --green-2: #4b6b34;
  --green-dark: #263b1b;
  --olive-soft: #e3ead2;
  --script: "Dancing Script", cursive;
  --gold: #c8a15a;
  --gold-dark: #a9843f;
  --text: #2b2b25;
  --muted: #6b6b5e;
  --line: #e2dccd;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 38, 25, .08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1300px, 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; transition: .2s; font-size: 15px; background: none; }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-line { border-color: var(--line); color: var(--green); background: #fff; }
.btn-line:hover { border-color: var(--green); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---- Header ---- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,236,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--green); white-space: nowrap; }
.brand-mark { width: 52px; height: 52px; border-radius: 50%; background: #f5f0e4; display: grid; place-items: center; flex: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(184,146,74,.35); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 34px; font-size: 15px; color: var(--muted); }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--green); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; color: var(--green); display: grid; place-items: center; }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--green-dark); font-size: 11px; font-weight: 700; display: none; place-items: center; }
.badge.show { display: grid; }
.menu-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; min-height: min(calc(100vh - 80px), 760px); display: flex; align-items: center; color: #fff;
  background: radial-gradient(ellipse at 70% 40%, #4d6b45 0%, #2a4430 45%, #142619 100%); background-size: cover; background-position: center; overflow: hidden; }
.hero.has-img { background-image: var(--hero-img); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,38,25,.82) 0%, rgba(20,38,25,.45) 55%, rgba(20,38,25,.15) 100%); }
.hero .container { position: relative; padding: 80px 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.pill svg { width: 15px; height: 15px; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 68px); line-height: 1.12; margin: 26px 0 22px; max-width: 680px; font-weight: 700; }
.hero p { font-size: 18px; max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Page head ---- */
.page-head { position: relative; padding: 90px 0 70px; color: #fff; background: radial-gradient(ellipse at 80% 30%, #4d6b45, #1f3a2b 60%, #142619); overflow: hidden; }
.page-head.has-img { background-image: linear-gradient(90deg, rgba(20,38,25,.85), rgba(20,38,25,.4)), var(--head-img); background-size: cover; background-position: center; }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.15; margin: 18px 0 12px; }
.page-head p { max-width: 620px; color: rgba(255,255,255,.85); font-size: 17px; }
.crumb { font-size: 14px; color: rgba(255,255,255,.7); }
.crumb a:hover { color: #fff; }

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section.alt { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); color: var(--green); line-height: 1.2; margin-top: 8px; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 8px; }
.link-more { color: var(--green); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { color: var(--gold-dark); }

/* ---- Grids & cards ---- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tone, linear-gradient(135deg, #2d4f3b, #6f8f5e)); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { color: rgba(255,255,255,.75); display: grid; place-items: center; gap: 8px; text-align: center; font-family: var(--serif); font-size: 20px; padding: 16px; }
.thumb .ph svg { width: 40px; height: 40px; margin: 0 auto; }
.tag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(247,244,236,.94); color: var(--green); font-size: 12px; font-weight: 600; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--serif); font-size: 21px; color: var(--green); line-height: 1.3; }
.card-body .sub { font-size: 13px; color: var(--gold-dark); font-style: italic; }
.card-body p { color: var(--muted); font-size: 15px; }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--line); }
.price { font-weight: 700; color: var(--green); font-size: 18px; }
.price small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.modal .price small { display: inline; }
.price del { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }

/* ---- Categories (home) ---- */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; padding: 26px; color: #fff; display: flex; flex-direction: column; justify-content: end;
  background: var(--tone); transition: .25s; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,38,25,.75)); }
.cat-card > * { position: relative; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card h3 { font-family: var(--serif); font-size: 24px; }
.cat-card p { font-size: 14px; color: rgba(255,255,255,.85); }
.cat-card .ico { position: absolute; top: 24px; left: 24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(247,244,236,.18); display: grid; place-items: center; }
.cat-card .ico svg { width: 22px; height: 22px; }

/* ---- Feature strip ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; flex: none; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h4 { font-family: var(--serif); font-size: 18px; color: var(--green); }
.feature p { font-size: 14px; color: var(--muted); }

/* ---- Quote / banner ---- */
.banner { background: var(--green); color: var(--cream); border-radius: 28px; padding: 60px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.banner h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; }
.banner p { color: rgba(247,244,236,.8); margin-top: 12px; }
.banner form { display: flex; gap: 10px; background: rgba(255,255,255,.08); padding: 8px; border-radius: 999px; }
.banner input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 0 16px; font: inherit; outline: none; }
.banner input::placeholder { color: rgba(247,244,236,.6); }

/* ---- Toolbar (filters) ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.field-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 16px; }
.field-search svg { width: 17px; height: 17px; color: var(--muted); }
.field-search input, .select { border: 0; background: none; font: inherit; font-size: 14px; padding: 10px 0; outline: none; color: var(--text); min-width: 180px; }
.select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1 / -1; }

/* ---- Moments (gallery) ---- */
.moments { columns: 3 260px; column-gap: 20px; }
.moment { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.moment .thumb { aspect-ratio: var(--ratio, 4/5); }
.moment figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(20,38,25,.8)); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 16px; }
.info { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2); color: var(--green); display: grid; place-items: center; flex: none; }
.info .ico svg { width: 20px; height: 20px; }
.info h4 { font-size: 14px; color: var(--muted); font-weight: 500; }
.info p { font-weight: 600; color: var(--green); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { font-family: var(--serif); color: var(--green); font-size: 28px; }
.form-card > p { color: var(--muted); margin: 6px 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.notice { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #e8f0e4; color: var(--green); font-size: 14px; display: none; }
.notice.show { display: block; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about h2 { font-family: var(--serif); color: var(--green); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin: 10px 0 16px; }
.about p { color: var(--muted); margin-bottom: 14px; }
.about .thumb { border-radius: 24px; aspect-ratio: 5 / 4; }
.disclaimer { background: var(--cream); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 12px; font-size: 14px; color: var(--muted); margin-top: 40px; }

/* ---- Modal ---- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(20,38,25,.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }
.modal { background: var(--paper); border-radius: 24px; width: min(760px, 100%); max-height: 90vh; overflow: auto; position: relative; }
.modal .thumb { aspect-ratio: 16 / 8; }
.modal-body { padding: 30px 34px 36px; }
.modal-body h2 { font-family: var(--serif); color: var(--green); font-size: 32px; line-height: 1.2; margin: 8px 0 6px; }
.modal-body h4 { font-family: var(--serif); color: var(--green); font-size: 18px; margin: 20px 0 6px; }
.modal-body p, .modal-body li { color: var(--muted); }
.modal-body ul { padding-left: 20px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(247,244,236,.95); color: var(--green); font-size: 22px; line-height: 1; }

/* ---- Search overlay ---- */
.search-box { background: var(--paper); border-radius: 24px; width: min(680px, 100%); align-self: flex-start; margin-top: 8vh; overflow: hidden; }
.search-box .field-search { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 22px; }
.search-box .field-search input { font-size: 18px; padding: 16px 0; flex: 1; }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.result { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; }
.result:hover { background: var(--cream); }
.result .k { font-size: 12px; font-weight: 600; color: var(--gold-dark); min-width: 92px; }
.result .t { font-weight: 600; color: var(--green); }
.result .d { font-size: 13px; color: var(--muted); }

/* ---- Cart drawer ---- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(420px, 100%); background: var(--paper); box-shadow: -10px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); color: var(--green); font-size: 22px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 24px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { aspect-ratio: 1; border-radius: 12px; }
.cart-item .thumb .ph svg { width: 22px; height: 22px; }
.cart-item h5 { font-size: 15px; color: var(--green); }
.cart-item .unit { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; color: var(--green); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-weight: 700; color: var(--green); font-size: 18px; }
.drawer .form-grid { grid-template-columns: 1fr; gap: 10px; }
.backdrop { position: fixed; inset: 0; z-index: 105; background: rgba(20,38,25,.45); display: none; }
.backdrop.show { display: block; }

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120; background: var(--green); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Footer ---- */
.footer { background: var(--green-dark); color: rgba(247,244,236,.75); padding: 70px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { color: var(--cream); }
.footer .brand em { color: rgba(247,244,236,.6); }
.footer .brand-mark { box-shadow: 0 0 0 2px var(--gold); }
.footer h4 { color: var(--cream); font-family: var(--serif); font-size: 18px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a:hover { color: var(--gold); }
.footer .about-text { margin-top: 16px; max-width: 320px; }
.copyright { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- Thanh trên cùng ---- */
.topbar { background: var(--green); color: rgba(255,255,255,.92); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar-left, .topbar-right { display: inline-flex; align-items: center; gap: 8px; }
.topbar-right i { width: 1px; height: 14px; background: rgba(255,255,255,.4); margin: 0 6px; }
.topbar a:hover { color: var(--gold); }

/* ---- Header kiểu mới ---- */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-family: var(--serif); font-size: 13.5px; font-weight: 500; color: var(--green-2); margin-top: 2px; }
.footer .brand-text small { color: rgba(247,244,236,.65); }
.header .nav { gap: 6px; align-items: center; }
.header .nav a { padding: 8px 16px; border-radius: 999px; border: 0; color: var(--text); font-weight: 500; }
.header .nav a:hover { color: var(--green); background: var(--olive-soft); }
.header .nav a.active { background: var(--green); color: #fff; }
.header-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 16px; width: 220px; }
.header-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; padding: 9px 0; outline: none; }
.header-search button { border: 0; background: none; color: var(--green); width: 34px; height: 34px; display: grid; place-items: center; }
.header-search svg { width: 18px; height: 18px; }
.search-mobile { display: none; }

/* ---- Trang chủ: banner ---- */
.hero-home { min-height: 0; color: var(--green-dark); background: #dfe8c9 var(--hero-img, url("/images/home/hero.jpg")) center / cover no-repeat; }
.hero-home::before { background: linear-gradient(90deg, rgba(246,243,230,.7) 0%, rgba(246,243,230,.45) 30%, rgba(246,243,230,0) 48%); }
.hero-home .container { padding: 30px 0 70px; }
.hero-home h1 { color: var(--green-dark); font-size: clamp(32px, 3.1vw, 46px); margin: 2px 0 14px; max-width: 600px; }
.hero-home p { color: var(--text); font-size: 16px; max-width: 440px; margin-bottom: 22px; }
.script-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--script); font-size: 28px; color: var(--green-2); }
.script-eyebrow svg { width: 22px; height: 22px; }
.script-eyebrow i { width: 70px; height: 1px; background: var(--green-2); opacity: .5; }
.hero-script { position: absolute; right: 4%; top: 46px; z-index: 1; font-family: var(--script); font-size: 30px; line-height: 1.35; color: #fff; text-align: right; text-shadow: 0 2px 12px rgba(0,0,0,.25); transform: rotate(-4deg); }
.hero-home .btn-green { box-shadow: 0 8px 20px rgba(38,59,27,.25); }

/* ---- Trang chủ: dải cam kết ---- */
.perks { position: relative; z-index: 2; margin-top: -46px; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-radius: 22px; box-shadow: 0 12px 34px rgba(38,59,27,.1); padding: 20px 10px; }
.perks li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 14px; }
.perks li + li { border-left: 1px solid var(--line); }
.perks .ico { width: 44px; height: 44px; color: var(--green); flex: none; display: grid; place-items: center; }
.perks .ico svg { width: 36px; height: 36px; }
.perks b { display: block; font-size: 15px; color: var(--green-dark); }
.perks span { font-size: 13px; color: var(--muted); }

/* ---- Trang chủ: danh mục ---- */
.cats-section { padding: 46px 0 70px; }
.title-center { text-align: center; margin-bottom: 30px; }
.title-center .sprout { width: 22px; height: 22px; color: var(--green-2); margin: 0 auto 2px; }
.title-center h2 { display: flex; align-items: center; justify-content: center; gap: 22px; font-family: var(--serif); color: var(--green-dark); font-size: clamp(28px, 3.2vw, 38px); }
.title-center h2::before, .title-center h2::after { content: ""; width: min(110px, 12vw); height: 1px; background: var(--green-2); opacity: .45; }
.title-center p { color: var(--text); margin-top: 4px; }
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(38,59,27,.08); transition: .25s; display: flex; flex-direction: column; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(38,59,27,.14); }
.cat-img { aspect-ratio: 5 / 2; background: var(--olive-soft); display: grid; place-items: center; color: var(--green-2); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img svg { width: 30px; height: 30px; }
.cat-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 18px; font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; }
.cat-name i { width: 26px; height: 26px; border-radius: 50%; background: var(--olive-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.cat-name i svg { width: 14px; height: 14px; }

/* ---- Trang chủ: về chúng tôi ---- */
.about-home { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3f0e0, #eef1df); padding: 64px 0 110px; }
.about-img { position: absolute; left: 0; top: 0; bottom: 0; width: 36%; height: 100%; object-fit: cover; object-position: 55% 20%;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.about-home-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin-left: max(34%, 330px); width: auto; padding-right: 16px; max-width: 900px; }
.line-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; color: var(--green-2); }
.line-eyebrow::before, .line-eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.about-copy h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); color: var(--green-dark); line-height: 1.15; margin-top: 6px; }
.about-copy h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); color: var(--green-2); font-weight: 600; margin: 4px 0 14px; }
.about-copy p { margin-bottom: 22px; }
.values { list-style: none; display: grid; gap: 22px; }
.values li { display: flex; gap: 16px; align-items: center; }
.values .ring { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid #b8c79a; background: rgba(255,255,255,.6); color: var(--green); display: grid; place-items: center; flex: none; }
.values .ring svg { width: 26px; height: 26px; }
.values b { display: block; color: var(--green-dark); }
.values span { font-size: 14px; color: var(--muted); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80px; }

/* ---- Trang chi tiết (bài viết / dược liệu / sản phẩm) ---- */
.detail-head { padding: 70px 0 56px; }
.detail-head h1 { max-width: 860px; }
.detail-head .eyebrow { color: var(--gold); display: block; margin-top: 18px; }
.detail-head .crumb span { color: rgba(255,255,255,.9); }
.detail-meta { color: rgba(255,255,255,.75); margin-top: 6px; }
.detail-head .latin { color: rgba(255,255,255,.85); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.detail-main { max-width: 760px; font-size: 17px; }
.detail-main > * + * { margin-top: 18px; }
.detail-main h2 { font-family: var(--serif); color: var(--green); font-size: 28px; line-height: 1.25; margin-top: 36px; }
.detail-main h3 { font-family: var(--serif); color: var(--green); font-size: 21px; margin-top: 28px; }
.detail-main ul, .detail-main ol { padding-left: 22px; display: grid; gap: 6px; }
.detail-main a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.detail-img { border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.detail-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-price { font-size: 26px; }
.detail-price small { display: inline; }
.reviewer { background: #e8f0e4; color: var(--green); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.sources { font-size: 14px; color: var(--muted); word-break: break-word; }
.detail-side { position: sticky; top: 104px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-side h3 { font-family: var(--serif); color: var(--green); font-size: 20px; margin-bottom: 12px; }
.detail-side ul { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.detail-side li a { color: var(--text); font-size: 15px; }
.detail-side li a:hover { color: var(--gold-dark); }

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .header .nav a { padding: 8px 11px; }
  .header-search { width: 180px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header-search { display: none; }
  .search-mobile { display: grid; }
  .perks { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .perks li:nth-child(4) { border-left: 0; }
  .hero-script { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); color: var(--gold-dark); }
  .header .nav a { border-radius: 0; padding: 12px 0; }
  .header .nav a.active { background: none; color: var(--green); font-weight: 700; }
  .topbar-left { display: none; }
  .topbar .container { justify-content: center; }
  .hero-home::before { background: linear-gradient(90deg, rgba(246,243,230,.92) 0%, rgba(246,243,230,.75) 60%, rgba(246,243,230,.35) 100%); }
  .about-img { position: static; width: 100%; height: 260px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); object-position: center 20%; }
  .about-home { padding-top: 0; }
  .about-home-grid { margin: -20px auto 0; width: min(1200px, 100% - 32px); padding: 0; grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .banner, .about, .contact-grid, .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .banner { padding: 40px 28px; }
}
@media (max-width: 600px) {
  .brand { font-size: 18px; }
  .brand em { display: none; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .features, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .form-card { padding: 24px 18px; }
  .modal-body { padding: 24px 20px 28px; }
  .field-search input { min-width: 0; }
  .banner form { flex-direction: column; border-radius: 18px; }
  .banner input { padding: 12px 16px; }
  .brand-text small { font-size: 12px; }
  .topbar-right i, .topbar-right .promo { display: none; }
  .hero-home { min-height: 0; }
  .hero-home .container { padding: 40px 0 80px; }
  .script-eyebrow { font-size: 24px; }
  .perks { grid-template-columns: 1fr 1fr; padding: 16px 6px; }
  .perks li { justify-content: flex-start; padding: 4px 8px; gap: 10px; }
  .perks li + li { border-left: 0; }
  .perks li:last-child { grid-column: 1 / -1; }
  .perks .ico svg { width: 30px; height: 30px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-name { padding: 12px; font-size: 13.5px; white-space: normal; }
  .hero-home h1 br { display: none; }
  .title-center h2::before, .title-center h2::after { display: none; }
}
