/* Hạt Lành (thucpham10) — trang chủ y hệt mockup, cỡ đo theo mockup x1.99 (09-28) */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");
:root { --hl-green: #2F6B3A; --hl-dark: #1F4D2C; --hl-gold: #B58A3C; --hl-cream: #F8F6EF; --hl-ink: #22301F; --hl-muted: #6A7064; --hl-red: #B8322A; }
body, p, li, a, input, button, .nav > li > a { font-family: "Be Vietnam Pro", sans-serif; }
.hl-h2, .hl-hero-title, .hl-tile b, .hl-side b, .hl-ft-logo span { font-family: "Playfair Display", serif !important; }
#top-bar { background: var(--hl-dark) !important; min-height: 40px; } #top-bar, #top-bar a, #top-bar span, #top-bar b { color: #fff !important; font-size: 14.5px !important; }
.hl-tb { display: inline-flex; align-items: center; gap: 8px; } .hl-tb i { font-style: normal; color: var(--hl-gold); margin: 0 6px; } .hl-tb img { width: 18px; height: 18px; }
#header .header-main { background: #fff !important; }
#header #logo { width: 250px !important; }
#header #logo a { display: flex; align-items: center; gap: 12px; font-family: "Playfair Display", serif !important; font-size: 40px; font-weight: 600; color: var(--hl-green) !important; line-height: 1; position: relative; top: -6px; }
#header #logo a::before { content: ""; width: 54px; height: 54px; flex: 0 0 54px; background: url(icons/logo.png) center/contain no-repeat; }
#header #logo a::after { content: "DINH DƯỠNG TỰ NHIÊN"; position: absolute; left: 68px; top: 50%; margin-top: 18px; font-family: "Be Vietnam Pro", sans-serif; font-size: 10px; letter-spacing: .14em; color: var(--hl-muted); }
#header .header-search-form { width: 420px; } #header .searchform .search-field { height: 44px !important; border-radius: 99px 0 0 99px !important; background: #F1EFE8 !important; font-size: 14.5px !important; border: 0 !important; }
#header .searchform .button.icon { height: 44px !important; border-radius: 0 99px 99px 0 !important; background: var(--hl-gold) !important; width: 56px; }
.hl-hd { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--hl-ink); margin-left: 28px; } .hl-hd img { width: 28px; height: 28px; }
#header .cart-item .header-cart-title { font-size: 15px !important; font-weight: 600 !important; color: var(--hl-ink) !important; text-transform: none !important; }
#header .header-bottom { background: #fff !important; border-top: 1px solid #EEE9DD; }
#header .header-bottom .nav > li > a { font-size: 16px !important; font-weight: 500 !important; color: var(--hl-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
#header .header-bottom .nav > li { margin: 0 26px !important; } #header .header-bottom .nav > li.active > a { font-weight: 700 !important; box-shadow: inset 0 -3px 0 var(--hl-green); }
#header .header-bottom .flex-center::before { content: "☰   Danh mục sản phẩm"; background: var(--hl-gold); color: #fff; font-weight: 600; font-size: 15.5px; padding: 0 28px; height: 50px; line-height: 50px; margin-right: 60px; white-space: pre; min-width: 272px; box-sizing: border-box; }
.hl-top .col, .hl-sec .col { padding-bottom: 14px !important; }
.hl-cats { list-style: none; margin: 0 !important; padding: 6px 16px; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(31,77,44,.06); height: 412px; }
.hl-cats li { margin: 0 !important; border-bottom: 1px solid #F0ECE2; } .hl-cats li:last-child { border: 0; }
.hl-cats a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 15.5px; color: var(--hl-ink) !important; }
.hl-cats a::after { content: "›"; margin-left: auto; color: var(--hl-muted); font-size: 18px; } .hl-cats img { width: 26px; height: 26px; }
.hl-hero { height: 412px; border-radius: 8px; background-size: cover; background-position: center; padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.hl-kicker { color: var(--hl-gold) !important; font-size: 15px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px !important; }
.hl-hero-title { color: var(--hl-dark) !important; font-size: 58px !important; line-height: 1.12 !important; font-weight: 600 !important; margin: 0 0 12px !important; }
.hl-hero-lead { font-size: 19px !important; color: #3A4636 !important; margin: 0 0 24px !important; }
.hl-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--hl-green); color: #fff !important; padding: 0 26px; min-height: 50px; border-radius: 6px; font-size: 16px; font-weight: 600; }
.hl-tile { display: flex; flex-direction: column; justify-content: center; height: 186px; border-radius: 8px; padding: 0 30px; background-size: cover; background-position: center; text-decoration: none !important; }
.hl-tile b { font-size: 32px; font-weight: 500; color: var(--hl-ink); line-height: 1.2; margin-bottom: 14px; } .hl-tile span { color: var(--hl-green); font-weight: 600; font-size: 15px; }
.hl-head { display: flex; align-items: center; justify-content: center; position: relative; margin: 0 0 18px; flex-wrap: wrap; }
.hl-head a { position: absolute; right: 0; bottom: 6px; color: var(--hl-ink) !important; font-size: 14.5px; font-weight: 500; }
.hl-eyebrow { width: 100%; text-align: center; color: var(--hl-gold) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 2px !important; }
.hl-h2 { color: var(--hl-ink) !important; font-size: 32px !important; font-weight: 600 !important; margin: 0 !important; }
.hl-grid { display: grid; gap: 16px; } .hl-cols-5 { grid-template-columns: repeat(5, 1fr); } .hl-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hl-card { background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(31,77,44,.06); overflow: hidden; display: flex; flex-direction: column; }
.hl-img { display: block; position: relative; aspect-ratio: 1 / .85; background-size: cover; background-position: center; } .hl-sm .hl-img { aspect-ratio: 1 / .8; }
.hl-badge { position: absolute; left: 10px; top: 10px; background: #C99345; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.hl-heart { display: none; }
.hl-body { padding: 12px 14px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.hl-name { color: var(--hl-ink) !important; font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; } .hl-sm .hl-name { font-size: 14.5px; }
.hl-old { font-size: 13px; color: #9A9A92; text-decoration: line-through; order: 3; }
.hl-price { color: var(--hl-green); font-size: 19px; font-weight: 700; margin-bottom: 12px; } .hl-sm .hl-price { font-size: 16.5px; }
.hl-add { margin-top: auto; border: 1.5px solid var(--hl-green); color: var(--hl-green) !important; border-radius: 6px; padding: 7px 18px; font-size: 14px; font-weight: 600; }
.hl-add::before { content: ""; display: inline-block; width: 16px; height: 16px; background: url(icons/bag.png) center/contain no-repeat; margin: 0 8px -3px 0; }
.hl-split { display: grid; gap: 16px; } .hl-split-l { grid-template-columns: 250px 1fr; } .hl-split-r { grid-template-columns: 1fr 250px; }
.hl-sidestack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hl-side { display: flex; flex-direction: column; justify-content: flex-start; border-radius: 10px; background-size: cover; background-position: center; padding: 24px 22px; color: #fff !important; text-decoration: none !important; position: relative; overflow: hidden; min-height: 240px; }
.hl-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,22,.72) 0%, rgba(20,40,22,.1) 55%); }
.hl-side-b { justify-content: flex-end; } .hl-side-b::before { background: linear-gradient(0deg, rgba(20,40,22,.72) 0%, rgba(20,40,22,.1) 55%); }
.hl-side b, .hl-side span { position: relative; } .hl-side b { font-size: 26px; font-weight: 500; line-height: 1.2; margin-bottom: 6px; } .hl-side span { font-size: 14px; }
.hl-side-tall::before { background: linear-gradient(180deg, rgba(251,247,238,.95) 0%, rgba(251,247,238,.3) 45%, rgba(251,247,238,0) 60%); } .hl-side-tall b { color: var(--hl-dark); font-size: 30px; } .hl-side-tall span { color: #3A4636; }
.hl-gold::before { background: linear-gradient(180deg, rgba(90,58,20,.6) 0%, rgba(90,58,20,0) 45%); }
.hl-bcard { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(31,77,44,.06); height: 100%; }
.hl-bimg { display: block; height: 166px; background-size: cover; background-position: center; }
.hl-bbody { padding: 16px 18px 18px; } .hl-bcat { font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--hl-muted) !important; margin: 0 0 6px !important; }
.hl-bcard h3 { font-size: 18px !important; font-weight: 700 !important; line-height: 1.35 !important; margin: 0 0 8px !important; } .hl-bcard h3 a { color: var(--hl-ink) !important; }
.hl-bbody p { font-size: 14px !important; color: var(--hl-muted) !important; line-height: 1.55 !important; margin: 0 0 10px !important; } .hl-read { color: var(--hl-green) !important; font-weight: 700; font-size: 14px; }
.hl-usp-row { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 0 !important; } .hl-usp-row img { width: 46px; height: 46px; }
.hl-usp-row span { display: flex; flex-direction: column; font-size: 13.5px; color: var(--hl-muted); } .hl-usp-row b { color: var(--hl-ink); font-size: 16px; }
.hl-footer p, .hl-footer li, .hl-footer a, .hl-footer span { color: rgba(255,255,255,.88) !important; font-size: 15px !important; }
.hl-footer p.hl-ft-logo { display: flex; align-items: center; gap: 12px; margin: 0 0 14px !important; } .hl-ft-logo img { width: 60px; height: 60px; }
.hl-footer p.hl-ft-logo span { font-size: 40px !important; font-weight: 600; color: #fff !important; line-height: 1; display: flex; flex-direction: column; }
.hl-ft-logo small { font-family: "Be Vietnam Pro", sans-serif; font-size: 11px; letter-spacing: .14em; margin-top: 6px; text-transform: uppercase; }
.hl-ft-soc { display: flex; gap: 12px; } .hl-ft-soc img { width: 34px; height: 34px; }
.hl-footer h3.hl-ft-title { color: #fff !important; font-size: 18px !important; font-weight: 700 !important; margin: 0 0 16px !important; font-family: "Be Vietnam Pro", sans-serif !important; }
.hl-ft-ul, .hl-ft-list { list-style: none; margin: 0; padding: 0; } .hl-ft-ul li { margin: 0 0 9px !important; }
.hl-ft-list li { display: flex; gap: 12px; margin: 0 0 12px !important; } .hl-ft-list img { width: 20px; height: 20px; margin-top: 2px; }
.hl-mini a { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .hl-mini img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.hl-mini span { display: flex; flex-direction: column; font-size: 14px !important; } .hl-mini b { color: #F2D38B; font-size: 15px; }
.hl-ft-bar { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; margin-top: 10px; } .hl-ft-bar a { margin-left: 26px; }
.absolute-footer { display: none !important; }
@media (max-width: 849px) {
  .hl-hero { height: 320px; padding: 30px 24px; } .hl-hero-title { font-size: 36px !important; } .hl-cats { height: auto; }
  .hl-cols-5, .hl-cols-4 { grid-template-columns: repeat(2, 1fr); } .hl-split-l, .hl-split-r { grid-template-columns: 1fr; }
  .hl-head a { position: static; margin-left: 12px; } .hl-h2 { font-size: 24px !important; } .hl-ft-bar { flex-direction: column; gap: 8px; }
  #header #logo a::after { display: none; } #header #logo a { font-size: 30px; top: 0; } .hl-hd { display: none; }
}
/* r2 */
.hl-split > br, .hl-split > p:empty { display: none !important; }
#header #logo a { white-space: nowrap; font-size: 38px; }
.hl-body { display: grid; justify-items: center; } .hl-old { order: 0; margin: -4px 0 6px; }
#header .cart-item .button, #header .cart-item .header-cart-link { background: none !important; }
#header .header-search-form { max-width: 440px; width: 440px; }
#header .header-bottom .flex-left { display: flex; align-items: center; } #header .header-bottom .header-nav-main { flex-wrap: nowrap !important; flex-direction: row !important; }
#header #logo a { text-transform: none !important; letter-spacing: 0 !important; }
#header .cart-item i { font-size: 26px !important; color: var(--hl-ink) !important; } #header .cart-item::after { content: "Giỏ hàng (0)"; font-weight: 600; font-size: 15px; color: var(--hl-ink); margin-left: 8px; align-self: center; }
#header .cart-item { display: flex !important; align-items: center; }
#header .header-bottom .header-inner { display: flex; align-items: center; } #header .header-bottom .flex-center { flex: 1; } #header .header-bottom .flex-center .nav { justify-content: flex-start !important; }
#header .header-bottom .flex-center::before { margin-right: 20px !important; }
.hl-hd { margin-top: 6px; } #header .flex-right { align-items: center; }
#header .header-bottom .flex-center { display: flex; align-items: center; } #header .header-bottom .flex-center::before { margin-right: 60px !important; }
#header .header-main .flex-right .nav { flex-wrap: nowrap !important; align-items: center; } .hl-hd { margin-top: 0; }
/* r3: tiêu đề mục căn giữa, chữ không chân đậm, có đường kẻ hai bên như mockup */
.hl-h2 { font-family: "Be Vietnam Pro", sans-serif !important; font-weight: 700 !important; font-size: 30px !important; text-align: center; }
.hl-head { justify-content: center !important; gap: 22px; } .hl-head > p { margin: 0 !important; }
.hl-head::before, .hl-head::after { content: ""; flex: 1; height: 1px; background: #DDD6C6; order: 0; } .hl-head::after { order: 2; } .hl-head .hl-h2 { order: 1; flex: 0 0 auto !important; width: fit-content !important; }
.hl-head .hl-eyebrow { position: absolute; top: -20px; left: 0; right: 0; } .hl-head > a, .hl-head > p:last-child { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: var(--hl-cream); padding-left: 12px; }
.hl-top { padding-bottom: 0 !important; } .hl-sec { padding-top: 26px !important; }
@media (max-width: 849px) { .hl-head { flex-wrap: wrap; } .hl-head::before, .hl-head::after { display: none; } .hl-head > a, .hl-head > p:last-child { position: static !important; transform: none !important; width: 100%; text-align: center; padding: 6px 0 0; } .hl-head .hl-eyebrow { position: static; } }
/* ruler:auto BEGIN — tools/astra-bridge/lab/ruler_fix.py, đừng sửa tay */
@media (min-width: 850px) {
  .hl-head h2.hl-h2 { font-size: 35.7px !important; }
  .hl-hd img[src*="/icons/truck.png"] { width: 36px !important; height: 36px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
}
@media (max-width: 849px) {
  .hl-hd img[src*="/icons/truck.png"] { width: 28px !important; height: 28px !important; }
}
/* ruler:auto END */

/* 2026-10-04: link "Xem tất cả" (wpautop bọc <p>, absolute right:0, left auto) co còn 12px -> chữ xếp dọc "tất / cả / →" ở mép phải */
@media (min-width: 850px) { .hl-head > p:last-child, .hl-head > p:last-child a { white-space: nowrap !important; width: auto !important; } }
/* 2026-10-04 mobile: chữ "Giỏ hàng (0)" cạnh icon giỏ xếp 3 dòng; hero trang chủ chữ đè ảnh -> ảnh trên, chữ dưới (LESSONS 112) */
@media (max-width: 849px) {
  #header .header-cart-title, #header .mobile-nav .cart-item::after { display: none !important; content: none !important; }
  div.hl-hero { display: block; height: auto; padding: 190px 0 0; background-size: auto 190px !important; background-position: right top !important; background-repeat: no-repeat; background-color: transparent !important; }
  div.hl-hero > * { position: relative; }
  div.hl-hero::before, div.hl-hero::after { display: none !important; }
}
@media (max-width: 549px) { .hl-card .hl-add { white-space: nowrap; font-size: 13px !important; padding-left: 6px !important; padding-right: 6px !important; gap: 5px; } .hli-rhead a { white-space: nowrap; } }
/* 2026-10-04 mid-fix 850-1199 (header rớt dòng ở 1024/900: "Giao hàng toàn quốc" xếp 4 dòng, menu "Liên hệ" rớt hàng, tràn 11-62px) */
@media (min-width: 850px) and (max-width: 1199px) {
  #header .header-main .header-search-form { max-width: 300px !important; }
  #header .header-main li.html_top_right_text .hl-hd:first-child { display: none !important; }
  #header .header-main li.html_top_right_text .hl-hd { margin-left: 12px; white-space: nowrap; }
  #header .header-bottom ul.nav > li { margin: 0 12px !important; padding: 0 !important; }
  #header .header-bottom .flex-center::before { margin-right: 24px !important; padding: 0 18px !important; }
  #header .header-bottom ul.nav > li > a { font-size: 15px !important; white-space: nowrap; }
  #header .header-bottom .flex-center { flex-wrap: nowrap !important; }
  #header #logo { width: 190px !important; } #header #logo a { font-size: 30px !important; }
}
/* 2026-10-04: email chân trang không ngắt -> tràn 38px ở 900/1024 (LESSONS 293) */
.hl-ft-list li { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1200px) { .hl-ft-list li { overflow-wrap: normal; } }
/* 2026-10-04: ảnh SP vuông 300x300 đặt cover vào khung 1:0.8-0.85 -> mất ~11% chủ thể (đỉnh túi) -> khung vuông */
.hl-img, .hl-sm .hl-img, .hli-card .hl-img { aspect-ratio: 1 / 1 !important; }
#header .cart-item::after { content: none !important; display: none !important; } /* "Giỏ hàng (0)" viết cứng (số giả) đè logo khi hẹp */
