/*
Theme Name: Lạc Bửu
Theme URI: https://lacbuu.com
Author: Lạc Bửu
Description: Theme WordPress + WooCommerce cho bếp nấu chậm Lạc Bửu — cháo và súp bồi bổ, giao thố nóng trong 1 giờ tại TP.HCM.
Version: 1.6.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: lac-buu
WC requires at least: 8.0
WC tested up to: 9.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
/* Brand Bible v3.0 — HỆ 9 MÀU. Không thêm màu thứ 10 vào file này.
   Nền:  #F6F2EA (trang) · #F3EEE5 (card/section) · #E8DFCF (chìm/pill)
   Chữ:  #1C1A18 (chính) · #6E5849 (phụ) · #B6AA98 (kẻ/caption)
   Nhấn: #C22629 (CTA) · #990000 (hover/triện) · #C8A15A (vàng, ≤1 chi tiết/màn) */
:root {
  --lb-red:       #C22629; /* CHỈ dùng cho: CTA chính, hotline, badge khẩn */
  --lb-red-dark:  #990000; /* v3.0: hover/press = đỏ triện (was #A81E20) */
  --lb-red-soft:  #E8DFCF;
  --lb-glow:      rgba(194,38,41,0.22);

  --lb-ink:   #1C1A18; /* v3.0 chữ chính (was #1A1A1A) */
  --lb-warm-dark: #990000; /* đỏ đậm — NỀN khối tối (chữ kem trên đó) */
  --lb-active: #990000;    /* MÀU CHỮ/viền trạng thái active trên nền sáng */
  --lb-terracotta: #990000; /* v3.0: bỏ nâu cam #B05E3F → gom về đỏ triện */
  /* --lb-cream = DẢI NỀN ẤM / trạng thái hover-active. Phải KHÁC --lb-bg:
     nếu bằng nhau thì mọi hover và thẻ "is-dark" biến mất trên nền card. */
  --lb-cream: #E8DFCF;
  /* --lb-on-dark = CHỮ KEM trên nền đỏ/tối. Tách khỏi --lb-cream vì đây là vai
     trò CHỮ, không phải NỀN — gộp chung sẽ lại kéo 2 vai trò về cùng 1 giá trị. */
  --lb-on-dark: #F3EEE5;
  --lb-olive: #6E5849;      /* v3.0: bỏ xanh olive → chữ phụ */
  --lb-gray:  #6E5849;      /* v3.0 chữ phụ (was #6E6A6B) */
  --lb-faint: #6E5849;      /* v3.0 chữ phụ (was var(--lb-gray)) */
  --lb-line:  #B6AA98;      /* v3.0 kẻ (was #EDEAEA) */
  --lb-bg:    #F3EEE5;      /* v3.0 nền card (was #FFFFFF — nền trắng gắt) */
  --lb-wash:  #E8DFCF;      /* v3.0 nền chìm (was var(--lb-page)) */
  --lb-page:  #F6F2EA;      /* v3.0 nền trang (was var(--lb-page)) */

  /* Design System v1.0 — token mới */
  --lb-gold:        #C8A15A; /* v3.0 vàng (was #D4A96A) — ≤1 chi tiết/màn */
  --lb-gold-dark:   #7A5C1E; /* vàng đậm cho CHỮ/sao trên nền sáng — 5.38:1 đạt WCAG AA. #C8A15A chỉ 2.09:1, chỉ dùng làm mảng nhấn. */
  --lb-medium:      #6E5849; /* v3.0 chữ phụ (was #5A5249) */
  --lb-light:       #B6AA98; /* v3.0 caption/placeholder (was #9A8E85) */
  /* Trạng thái đơn hàng — giữ phân biệt ngữ nghĩa, hạ bão hoà về tông ấm */
  --lb-green:       #4A6B3A;
  --lb-green-bg:    #EDEFE4;
  --lb-amber:       #8A5A18;
  --lb-amber-bg:    #F5EEE0;
  --lb-purple:      #6E5849;
  --lb-teal:        #6E5849;
  --lb-badge-red-bg:#F3EEE5; /* v3.0: bỏ hồng var(--lb-wash) */
  --lb-pill-bg:     #E8DFCF; /* v3.0 card-dark-bg / pill-inactive */

  /* Design System v1.0 — bổ sung sand + primary-deep (không thay token cũ) */
  --lb-sand:        #E8DFCF; /* v3.0: bỏ cam var(--lb-wash) */
  --lb-sand-text:   #6E5849; /* text-on-sand */
  --lb-primary-deep:#990000; /* btn-on-sand · hover premium */

  /* v3.0 typography: heading serif cổ điển · body serif · UI/nút/giá sans */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;

  /* Typography Design System v1.0 — color tokens */
  --earth:     #1C1A18; /* v3.0 (was #4A1618) */
  --clay:      #C22629; /* = --lb-red */
  --text-ds:   #1C1A18; /* v3.0 (was #2B1A15) */
  --text-mid:  #6E5849; /* v3.0 (was #5A463E) */
  --text-lt:   #B6AA98; /* v3.0 (was #8C7468) */
  --red-light: #E8DFCF; /* accent on dark sections (was var(--lb-cream)) */

  /* Radius — Design System v1.0: sm 8 / md 16 / lg 24 / pill 999 */
  --radius-lg: 24px;
  --radius:    16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(26,21,22,.05), 0 10px 28px rgba(26,21,22,.07);
  --shadow-pop:  0 4px 12px rgba(26,21,22,.10), 0 18px 44px rgba(26,21,22,.14);
  --shadow-none: none;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: var(--shadow-card);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);

  /* Nhịp "nấu chậm" — chuyển động khoan thai, ease-out */
  --ease-slow: cubic-bezier(.25,.6,.3,1);
  --ease-brand: cubic-bezier(.25,.46,.45,.94); /* Design System v1.0 micro/card motion curve */
  --t-fast: .2s;
  --t-slow: .3s;
  --t-micro: 200ms;
  --t-card: 400ms;

  /* Texture giấy nhẹ (grain) cho các khối "thư tay" */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");

  /* Spacing scale 4/8 — nhịp dọc nhất quán (B1) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Semantic aliases — map sang brand token */
  --surface:    var(--lb-bg);     /* nền card */
  --surface-2:  var(--lb-wash);   /* nền chìm nhẹ */
  --page-bg:    var(--lb-page);
  --text:       var(--lb-ink);
  --text-muted: var(--lb-gray);
  --text-faint: var(--lb-faint);
  --border:     var(--lb-line);
  --accent:     var(--lb-red);
  --head-bg:    rgba(246,242,234,.94); /* v3.0 nền header dính (was trắng) */

  --maxw: 1180px;
  color-scheme: light;
}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--lb-ink);
  background: var(--lb-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* B4 — vòng focus rõ ràng cho điều hướng bàn phím (chỉ khi dùng bàn phím) */
:focus-visible { outline: 2px solid var(--lb-red); outline-offset: 2px; border-radius: 6px; }
.input:focus-visible, .textarea:focus-visible, select:focus-visible { outline: none; } /* dùng box-shadow focus riêng */

/* v3.0 — Cormorant Garamond nhỏ hơn Lora ~15% ở cùng font-size và nét mảnh hơn,
   nên bù bằng size lớn hơn + weight dày hơn để giữ nguyên sức nặng thị giác cũ. */
h1, h2, h3, .serif {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--earth);
  margin: 0;
  text-wrap: pretty;
}
h1 { font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.15; letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: clamp(1.85rem, 3.5vw, 2.8rem); line-height: 1.2; }
h3 { font-weight: 600; font-size: 1.45rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

/* v3.0 — UI/nút/điều khiển/giá dùng Inter (sans), tách khỏi body serif */
.btn, .chip, .badge, .status-pill, .price, input, select, textarea,
.site-nav a, .pagination a, .pagination span, .cat-tab {
  font-family: var(--font-ui);
}

/* B2 — typography polish: đo dòng dễ đọc + chống cắt chân chữ nghiêng */
.prose p, .story-grid p, .bh-hero-sub, .sh-sub { max-width: 65ch; }
h1 em, h2 em, h3 em, .serif em, .serif i, blockquote em { font-style: italic; line-height: 1.15; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-pill); /* v3.0: nút primary dạng pill (was 14px) */
  border: none;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--t-fast) var(--ease-slow), transform .1s ease, box-shadow var(--t-fast) var(--ease-slow);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--lb-red); color: var(--lb-on-dark); box-shadow: 0 4px 14px var(--lb-glow); letter-spacing: .02em; }
.btn-primary:hover { background: var(--lb-red-dark); box-shadow: 0 6px 20px rgba(194,38,41,0.32); }
.btn-primary:active { box-shadow: 0 2px 6px rgba(194,38,41,0.18); }
.btn-ghost { background: var(--lb-bg); color: var(--lb-ink); border: 1.5px solid var(--lb-line); }
.btn-ghost:hover { border-color: var(--lb-faint); }
.btn-ghost-dark { background: transparent; color: var(--lb-medium); border: 1.5px solid rgba(26,26,26,0.14); border-radius: var(--radius-pill); padding: 9px 22px; font-size: 15px; transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out, border-color var(--t-fast) ease-out; }
.btn-ghost-dark:hover { background: rgba(194,38,41,0.07); color: var(--lb-red); border-color: rgba(194,38,41,0.28); }
.btn-soft { background: var(--lb-bg); color: var(--lb-red); }
.btn-soft:hover { background: var(--lb-wash); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 16px; border-radius: var(--radius-pill); }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 17px; border-radius: var(--radius-pill); }
/* Trên nền tối (hero) — chữ kem, không dùng trắng tinh */
.btn-dark { background: transparent; color: rgba(243,238,229,.92); border: 1.5px solid rgba(243,238,229,.42); }
.btn-dark:hover { background: rgba(243,238,229,.10); border-color: rgba(243,238,229,.62); }
/* Text link, khác .btn-soft (không có nền) */
.btn-text { background: none; border: none; padding: 0; min-height: auto; color: var(--lb-red); border-bottom: 1.5px solid var(--lb-red); border-radius: 0; padding-bottom: 2px; }
.btn-text:hover { color: var(--lb-red-dark); border-color: var(--lb-red-dark); }
.btn-text:active { transform: none; }

.link-red { color: var(--lb-red); font-weight: 600; }
.link-red:hover { text-decoration: underline; }

/* ============================================================
   CHIPS & BADGES
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--lb-bg);
  border: 1.5px solid var(--lb-line);
  font-size: 16px;
  font-weight: 500;
  color: var(--lb-ink);
  white-space: nowrap;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--lb-faint); }
.chip.is-on { background: var(--lb-warm-dark); border-color: var(--lb-warm-dark); color: var(--lb-on-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}
/* v3.0 — Signature = CON TRIỆN đóng tay: nền #990000, chữ kem, vuông bo nhẹ,
   xoay 3° cho ra chất thủ công. Trước đây chỉ là chữ đỏ trên nền trắng. */
.badge-pick {
  background: var(--lb-warm-dark);
  color: var(--lb-on-dark);
  border-radius: 4px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 2px 8px rgba(153,0,0,.28);
}
.badge-cat  { background: var(--lb-wash); color: var(--lb-gray); border: 1px solid var(--lb-line); }
.badge-ok   { background: var(--lb-green-bg); color: var(--lb-green); }
/* Design System v1.0 — category/persona badge variants (v3.0: gom về tông ấm) */
.badge-green  { background: var(--lb-green-bg); color: var(--lb-green); }
.badge-amber  { background: var(--lb-amber-bg); color: var(--lb-amber); }
.badge-purple { background: var(--lb-wash); color: var(--lb-purple); }
.badge-teal   { background: var(--lb-wash); color: var(--lb-teal); }
.badge-gold   { background: var(--lb-wash); color: var(--lb-gold-dark); }
.badge-sand   { background: var(--lb-green-bg); color: var(--lb-green); } /* ⭐ Nổi bật / Featured */
/* Status tag — chấm tròn + nhãn (mở/đóng) */
.status-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; }
.status-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-tag.is-open  { background: var(--lb-green-bg); color: var(--lb-green); }
.status-tag.is-closed{ background: var(--lb-badge-red-bg); color: var(--lb-red); }

.kk-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.kk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lb-green-bg);
  border: 1px solid rgba(42,122,74,0.22);
  font-size: 15px;
  font-weight: 500;
  color: var(--lb-green);
  white-space: nowrap;
}
.kk::before {
  content: '';
  width: 12px; height: 12px; flex: none;
  background: var(--lb-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kk b { color: var(--lb-green); font-weight: 700; }
/* Biến thể trên nền tối (tax-banner) */
.kk.kk-dark { background: rgba(243,238,229,.08); border-color: rgba(243,238,229,.15); color: rgba(243,238,229,.85); }
.kk.kk-dark b { color: var(--lb-on-dark); }

/* ============================================================
   PRICE
   ============================================================ */
.price { font-weight: 700; color: var(--lb-ink); font-variant-numeric: tabular-nums; }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 15px; font-weight: 600; color: var(--lb-ink); }
.field .hint { font-size: 15px; color: var(--lb-faint); font-weight: 400; }
.field label .req { color: var(--lb-red); font-weight: 700; margin-left: 1px; }
.input, .textarea, select.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--lb-gray); /* WCAG 1.4.11: viền điều khiển cần ≥3:1 — --lb-line chỉ 1.98:1 */
  background: var(--lb-bg);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus { border-color: var(--lb-red); box-shadow: 0 0 0 3px var(--lb-red-soft); }
.input::placeholder, .textarea::placeholder { color: var(--lb-faint); }

/* Phone input — VN flag + dial code prefix */
.input-phone { display: flex; gap: 8px; }
.input-phone .phone-prefix { background: var(--lb-pill-bg); border: 1.5px solid var(--lb-line); border-radius: var(--radius); padding: 0 16px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer; font-size: 16px; color: var(--lb-medium); }
.input-phone .input { flex: 1; }

/* Time pills (giờ giao mong muốn) — tái dùng pattern .chip */
.time-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.time-pills .chip { min-height: 38px; padding: 9px 18px; font-size: 15px; }

/* Option cards (radio/checkbox) */
.opt {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--lb-line);
  background: var(--lb-bg);
  cursor: pointer;
  transition: all .15s ease;
}
.opt:hover { border-color: var(--lb-faint); }
.opt.is-on { border-color: var(--lb-red); background: var(--lb-bg); box-shadow: 0 0 0 1px var(--lb-red); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-mark {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--lb-line);
  background: var(--lb-bg);
  display: grid; place-items: center;
  transition: all .15s ease;
}
.opt.opt-check .opt-mark { border-radius: 6px; }
.opt.is-on .opt-mark { border-color: var(--lb-red); background: var(--lb-red); }
.opt.is-on .opt-mark::after { content: ""; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.opt .opt-body { flex: 1; min-width: 0; }
.opt .opt-title { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .opt-sub { font-size: 15px; color: var(--lb-gray); }
.opt .opt-fee { font-size: 15px; font-weight: 700; color: var(--lb-red); white-space: nowrap; }
.opt .opt-fee.free { color: var(--lb-gray); font-weight: 500; }

/* Toggle switch */
.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--lb-line);
  transition: background .18s ease;
}
.switch .track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--lb-bg);
  box-shadow: 0 1px 3px rgba(26,21,22,.25);
  transition: transform .18s ease;
}
.switch input:checked + .track { background: var(--lb-red); }
.switch input:checked + .track::after { transform: translateX(19px); }

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--lb-line);
  border-radius: var(--radius);
  background: var(--lb-bg);
  overflow: hidden;
}
.qty button {
  width: 44px; height: 44px;
  border: none; background: none;
  font-size: 20px; color: var(--lb-gray);
  display: grid; place-items: center;
}
.qty button:hover { color: var(--lb-active); background: var(--lb-cream); }
.qty .qty-n { min-width: 36px; text-align: center; font-weight: 700; font-size: 16px; }
.qty.qty-sm button { width: 38px; height: 38px; font-size: 17px; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--lb-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-pad { padding: 18px; }
@media (min-width: 760px) { .card-pad { padding: 24px; } }

/* Placeholder image */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--lb-bg) 0%, transparent 60%),
    linear-gradient(160deg, var(--lb-wash) 0%, var(--lb-wash) 100%);
  color: var(--lb-faint);
  overflow: hidden;
  border-radius: inherit;
}
.ph .ph-icon { font-size: 30px; opacity: .85; }
.ph .ph-cap { font-size: 12px; text-align: center; padding: 0 12px; max-width: 240px; line-height: 1.4; }
.ph.ratio-1x1  { aspect-ratio: 1; }
.ph.ratio-4x3  { aspect-ratio: 4 / 3; }
.ph.ratio-16x9 { aspect-ratio: 16 / 9; }
.ph.ratio-21x9 { aspect-ratio: 21 / 9; }

/* B5 — placeholder hero "có chủ đích" (warm-craft) thay cho brief ảnh nhìn như chưa làm xong */
.ph-brand {
  background:
    radial-gradient(130% 100% at 25% 15%, rgba(243,238,229,.55) 0%, transparent 55%),
    linear-gradient(155deg, var(--lb-cream) 0%, var(--lb-wash) 100%);
  color: var(--lb-terracotta);
  gap: 12px;
}
.ph-brand .ph-icon { font-size: 46px; opacity: .92; }
.ph-brand .ph-icon .lb-icon { width: 46px; height: 46px; }
.ph-brand .ph-cap { font-family: var(--font-body); font-size: 16px; color: var(--lb-terracotta); max-width: 280px; }

/* ============================================================
   PRODUCT GRID  (content-product.php)
   ============================================================ */

/* ---------- Page Hero — cửa hàng, category pages (giống bh-hero-card, không button) ---------- */
.page-hero {
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 24px 0 0;
}
@media (min-width: 880px) {
  .page-hero--has-img { grid-template-columns: 1.08fr 1fr; }
}
.page-hero-copy {
  padding: 30px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
@media (min-width: 880px) { .page-hero-copy { padding: 48px 46px; justify-content: center; } }
.page-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-red);
}
.page-hero-copy h1 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.18; margin: 0; }
.page-hero-desc { font-size: 16px; color: var(--lb-gray); line-height: 1.72; margin: 0; max-width: 54ch; }
.page-hero-bullets { margin: 0; }
.page-hero-img { min-height: 220px; }
@media (min-width: 880px) { .page-hero-img { min-height: 380px; } }
.page-hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }

/* ---------- Category Hero (taxonomy-product_cat) ---------- */
.cat-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0 32px;
}
@media (min-width: 768px) {
  .cat-hero--has-img {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .cat-hero--has-img .cat-hero-content { flex: 1; }
  .cat-hero--has-img .cat-hero-img { flex: 0 0 42%; }
}
.cat-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-red);
  margin: 0 0 8px;
}
.cat-hero-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--lb-ink);
  margin: 0 0 16px;
}
@media (min-width: 768px) { .cat-hero-title { font-size: 38px; } }
.cat-hero-bullets { margin: 0 0 16px; }
.cat-hero-desc {
  font-size: 16px;
  color: var(--lb-gray);
  line-height: 1.72;
  margin: 0;
  max-width: 56ch;
}
.cat-hero-img { position: relative; }
.cat-hero-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px)  { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1020px) { .pgrid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1020px) { .pgrid.pgrid--grid-3 { grid-template-columns: repeat(3, 1fr); } }

.pcard[hidden] { display: none; } /* Đứng trước .pcard bên dưới để tránh cùng độ đặc hiệu bị display:flex đè — JS dùng .hidden để lọc sản phẩm theo tag/dòng món. */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--lb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-slow), box-shadow var(--t-fast) var(--ease-slow);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.pcard .pcard-img { aspect-ratio: 4 / 3; border-radius: 0; }
.pcard .pcard-flag { position: absolute; top: 10px; left: 10px; }
.pcard .pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.pcard .pcard-range {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lb-terracotta);
}
.pcard h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; font-family: var(--font-body); color: var(--earth); }
.pcard h3 a:hover { color: var(--lb-red); }
.pcard .pcard-desc { font-size: 15px; color: var(--text-mid); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pcard-foot { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--lb-line); }
.pcard .price { font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: var(--clay); }
/* Nút thêm giỏ: giữ hình tròn 32px cho gọn thẻ, nhưng nới VÙNG CHẠM lên 44px
   bằng padding + margin âm. 32px không đủ chuẩn chạm, mà đây là nút mua hàng —
   khách 30–64 tuổi bấm trượt là mất đơn. */
.pcard .add {
  box-sizing: content-box; /* BẮT BUỘC: reset toàn cục là border-box, nếu để
                              border-box thì padding bóp ruột chứ không nới vùng chạm */
  width: 32px; height: 32px; flex: none;
  padding: 6px; margin: -6px;
  background-clip: content-box; /* nền chỉ tô phần ruột → vẫn thấy tròn 32px */
  border-radius: 999px;
  border: none;
  background: var(--lb-warm-dark);
  color: var(--lb-on-dark);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .12s ease;
}
.pcard .add:hover { background: var(--lb-terracotta); color: var(--lb-on-dark); box-shadow: 0 3px 10px rgba(153,0,0,.35); transform: scale(1.08); }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec-head h2 { font-size: 21px; }
@media (min-width: 760px) { .sec-head h2 { font-size: 26px; } }
.sec-head .more { font-size: 16px; color: var(--lb-terracotta); font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; } /* vùng chạm — trước cao 24px */

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--lb-faint); padding: 14px 0; }
.crumbs a:hover { color: var(--lb-terracotta); }
.crumbs .sep { opacity: .6; }
.crumbs .here { color: var(--lb-gray); font-weight: 500; }

/* ============================================================
   DISCLAIMER / NOTICE
   ============================================================ */
.disclaimer { font-size: 15px; color: var(--lb-faint); font-style: italic; line-height: 1.55; margin-top: 20px }

.notice {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--lb-wash);
  border: 1px solid var(--lb-line);
  font-size: 15px;
  color: var(--lb-gray);
  line-height: 1.55;
}
.notice .n-icon { flex: none; font-size: 16px; }
.notice b { color: var(--lb-ink); }
.notice.notice-red { background: var(--lb-red-soft); border-color: transparent; color: var(--lb-red-dark); }
.notice.notice-red b { color: var(--lb-red); }

/* ============================================================
   HEADER  (header.php)
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--head-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-line);
}

.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo .logo-img { height: 44px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.logo .logo-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius);
  background: var(--lb-red);
  color: var(--lb-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  display: grid; place-items: center;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px var(--lb-glow);
}
.logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo .logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--lb-ink); }
.logo .logo-tag { font-size: 12px; color: var(--lb-faint); letter-spacing: .02em; }

.nav-main { display: none; }
@media (min-width: 900px) { .nav-main { display: block; } }
.nav-main .nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-main .nav-menu li { margin: 0; }
.nav-main a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--lb-gray);
  transition: all .12s ease;
}
.nav-main a:hover { color: var(--lb-ink); background: var(--lb-wash); }
.nav-main a.is-here,
.nav-main .current-menu-item > a,
.nav-main .current-menu-ancestor > a { color: var(--lb-active); font-weight: 600; background: var(--lb-cream); }

.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1.5px solid var(--lb-line);
  background: var(--lb-bg);
  font-size: 18px;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.icon-btn:hover { border-color: var(--lb-faint); }
.icon-btn .count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lb-red);
  color: var(--lb-on-dark);
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
}
.icon-btn-call { color: var(--lb-red); }
@media (min-width: 1080px) { .icon-btn-call { display: none; } }

.menu-btn { display: none; } /* thay bằng bottom-nav trên mobile, không còn drawer */

/* ============================================================
   BOTTOM NAV (mobile) — thay cho drawer cũ. inc/parts/bottom-nav.php
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--lb-bg);
  border: 1px solid var(--lb-line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  gap: 2px;
}
@media (max-width: 899px) { .bottom-nav { display: flex; } body { padding-bottom: 76px; } }
.bottom-nav .bn-item {
  flex: 1;
  min-height: 44px; /* chuẩn vùng chạm — trước đây chỉ cao 33px */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 4px; border-radius: var(--radius);
  color: var(--lb-medium); /* --lb-light #B6AA98 quá nhạt cho nhãn điều hướng chính */
  font-size: 12px; font-weight: 500;
  text-decoration: none;
}
.bottom-nav .bn-item svg { width: 20px; height: 20px; stroke: currentColor; }
.bottom-nav .bn-item.is-on { background: var(--lb-badge-red-bg); color: var(--lb-red); font-weight: 700; }
.bottom-nav .bn-fab {
  flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px;
}
.bottom-nav .bn-fab span {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--lb-red); color: var(--lb-on-dark);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px var(--lb-glow);
}

/* ============================================================
   SLIDE-OUT CART PANEL — thay cho minicart cũ. inc/parts/cart-panel.php
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28,26,24,.35); /* v3.0: khớp --lb-ink #1C1A18 (was 26,26,26 = ink cũ) */
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-card) var(--ease-brand);
}
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(380px, 92vw);
  background: var(--lb-bg);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transform: translateX(105%);
  transition: transform var(--t-card) var(--ease-brand);
  display: flex; flex-direction: column;
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-panel { transform: none; }
.cart-panel .cp-head {
  padding: 20px 24px; border-bottom: 1px solid var(--lb-line);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-panel .cp-head h2 { font-size: 20px; }
.cart-panel .cp-close { width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--lb-wash); display: grid; place-items: center; }
.cart-panel .cp-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.cart-panel .cp-item { display: flex; gap: 14px; align-items: center; }
.cart-panel .cp-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-panel .cp-item .cp-name { font-size: 16px; font-weight: 600; }
.cart-panel .cp-item .cp-variant { font-size: 15px; color: var(--lb-light); }
.cart-panel .cp-item .cp-price { font-size: 16px; font-weight: 700; }
.cart-panel .cp-foot { padding: 20px 24px; border-top: 1px solid var(--lb-line); }
.cart-panel .cp-subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.cart-panel .cp-subtotal b { font-size: 20px; }
.cart-panel .cp-empty { padding: 40px 24px; text-align: center; color: var(--lb-light); font-size: 16px; }

/* ============================================================
   FOOTER  (footer.php)
   ============================================================ */
.site-foot { margin-top: 56px; background: var(--lb-bg); border-top: 1px solid var(--lb-line); }
.site-foot .f-grid { display: grid; gap: 28px; padding: 36px 0 28px; }
@media (min-width: 760px) { .site-foot .f-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; } }
.site-foot .f-h { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lb-faint); margin: 0 0 12px; line-height: 1.3; }
.site-foot .f-brand p { font-size: 15px; color: var(--lb-gray); max-width: 340px; margin-top: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-foot ul a, .site-foot ul li { font-size: 15px; color: var(--lb-gray); }
/* B4 target-size: link footer có vùng chạm ≥24px */
.site-foot ul a { display: inline-block; padding: 5px 0; }
.site-foot ul a:hover { color: var(--lb-terracotta); }
.site-foot ul b { color: var(--lb-ink); font-weight: 600; }
.site-foot .f-bottom { border-top: 1px solid var(--lb-line); padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 15px; color: var(--lb-faint); }

/* ============================================================
   PAGE TITLE BLOCK
   ============================================================ */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: 26px; }
@media (min-width: 760px) { .page-head h1 { font-size: 34px; } }
.page-head .ph-sub { margin-top: 8px; font-size: 16px; color: var(--lb-gray); max-width: 560px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 6px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius); display: grid; place-items: center; font-size: 16px; font-weight: 600; background: var(--lb-bg); border: 1.5px solid var(--lb-line); color: var(--lb-gray); }
.pagination a:hover { border-color: var(--lb-faint); color: var(--lb-ink); }
.pagination .now, .pagination .current { background: var(--lb-warm-dark); border-color: var(--lb-warm-dark); color: var(--lb-on-dark); }

/* ============================================================
   TOAST
   ============================================================ */
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 80; transform: translate(-50%, 20px); background: var(--lb-ink); color: var(--lb-on-dark); font-size: 16px; font-weight: 500; padding: 11px 18px; border-radius: var(--radius); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: all .25s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   HERO  (front-page.php)
   ============================================================ */
/* ---------- Hero Banner — trang cửa hàng ---------- */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--lb-cream);
  margin-bottom: 4px;
}
.hero-banner--has-img {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero-banner--has-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,16,10,0.62) 0%, rgba(26,16,10,0.18) 60%, transparent 100%);
  pointer-events: none;
}
.hero-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 28px;
  max-width: 600px;
}
@media (min-width: 860px) {
  .hero-banner-inner { padding: 64px 52px; gap: 18px; }
}
.hero-banner .hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin: 0;
  color: var(--lb-red);
}
.hero-banner--has-img .hero-eyebrow { color: rgba(243,238,229,.75); text-shadow: 0 1px 8px rgba(0,0,0,.35); }

.hero-banner h1 {
  font-size: 26px; line-height: 1.22; font-weight: 800;
  color: var(--lb-ink); margin: 0;
}
@media (min-width: 860px) { .hero-banner h1 { font-size: 36px; } }
.hero-banner--has-img h1 { color: var(--lb-on-dark); text-shadow: 0 2px 16px rgba(0,0,0,.4); }

.hero-banner .kk-row { gap: 8px; }
.hero-banner--has-img .kk {
  background: rgba(243,238,229,.15);
  border-color: rgba(243,238,229,.3);
  color: var(--lb-on-dark);
}
.hero-banner--has-img .kk::before { background: var(--lb-bg); }

/* Giữ class cũ không vỡ nếu đâu đó còn dùng */
.hero { padding: 26px 0 8px; }
.hero-card { position: relative; display: grid; gap: 0; border-radius: var(--radius-lg); background: var(--lb-bg); box-shadow: var(--shadow-card); overflow: hidden; }
@media (min-width: 860px) { .hero-card { grid-template-columns: 1.05fr 1fr; } }
.hero-copy { padding: 28px 22px 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 860px) { .hero-copy { padding: 44px 40px; justify-content: center; } }
.hero-copy .hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-red); }
.hero-copy h1 { font-size: 28px; }
@media (min-width: 860px) { .hero-copy h1 { font-size: 38px; } }
.hero-img { min-height: 220px; }
@media (min-width: 860px) { .hero-img { min-height: 340px; } }
.hero-img .ph { width: 100%; height: 100%; border-radius: 0; }

.status-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--lb-bg); border: 1px solid var(--lb-line); font-size: 15px; font-weight: 500; color: var(--lb-gray); }
.status-pill b { color: var(--lb-ink); font-weight: 600; }
/* v3.0 — chấm "đang mở cửa": bỏ xanh lá #2E9E68 ngoài hệ, dùng đỏ nhấn (live) */
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lb-red); box-shadow: 0 0 0 3px rgba(194,38,41,.18); }
.status-pill .dot.is-closed { background: var(--lb-light); box-shadow: 0 0 0 3px rgba(182,170,152,.24); }

/* Persona filter — label dòng 1, chips dòng 2 (merged redesign) */
.persona-block {
  display: block;
  padding: 16px 16px 0;
  margin-top: 10px;
  background: var(--lb-bg);
  border-radius: var(--radius-sm);
}
@media (min-width: 760px) { .persona-block { padding: 20px 16px 0; } }
.persona-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-red);
  margin-bottom: 10px;
}
.persona-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
  padding-bottom: 10px;
}
.persona-row::-webkit-scrollbar { display: none; }

/* Category tabs — Pill card, mobile-first (merged redesign) */
.cat-tabs {
  display: flex;
  gap: 8px;
  border-bottom: none;
  margin: 18px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 16px 12px;
  background: var(--lb-bg);
  border-radius: var(--radius-sm);
}
.cat-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 759px) {
  .cat-tabs {
    position: sticky;
    top: 60px;
    z-index: 30;
    box-shadow: 0 3px 12px rgba(26,21,22,.08);
    padding: 10px 16px;
    margin: 0 0 2px;
  }
}
.cat-tab {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 16px;
  min-height: 48px;
  background: var(--lb-wash);
  border: 1.5px solid var(--lb-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--lb-gray);
  white-space: nowrap;
  margin-bottom: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .12s ease;
}
.cat-tab:hover { background: var(--lb-cream); border-color: var(--lb-faint); color: var(--lb-ink); }
.cat-tab.is-on {
  background: var(--lb-warm-dark);
  border-color: var(--lb-warm-dark);
  color: var(--lb-on-dark);
  box-shadow: 0 3px 10px rgba(107,49,43,.28);
}
.cat-tab .tab-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--lb-faint);
  letter-spacing: 0;
  margin-top: 0;
}
.cat-tab.is-on .tab-sub { color: rgba(243,238,229,.68); }

/* ============================================================
   TAXONOMY BANNER  (taxonomy-product_cat.php)
   ============================================================ */
.tax-banner { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--lb-cream); color: var(--lb-ink); border: 1px solid var(--lb-line); }
@media (min-width: 800px) { .tax-banner { grid-template-columns: 1.2fr 1fr; } }
.tax-banner .tb-copy { padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 800px) { .tax-banner .tb-copy { padding: 38px 36px; justify-content: center; } }
.tax-banner h1 { font-size: 26px; color: var(--lb-ink); }
@media (min-width: 800px) { .tax-banner h1 { font-size: 32px; } }
.tax-banner .tb-tag { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-terracotta); opacity: 1; }
.tax-banner p { font-size: 16px; color: var(--lb-gray); opacity: 1; max-width: 420px; }
.tax-banner .ph { border-radius: 0; min-height: 180px; }

/* ============================================================
   SINGLE PRODUCT  (single-product.php)
   ============================================================ */
.product-layout { display: grid; gap: 22px; padding-bottom: 10px; }
@media (min-width: 900px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) 50%; gap: 34px; align-items: start; }
  .product-gallery { position: sticky; top: 86px; }
}
.product-gallery .ph { border-radius: var(--radius-lg); }
.product-gallery .g-thumb-wrap { position: relative; margin-top: 10px; }
.product-gallery .g-thumbs {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none;
}
.product-gallery .g-thumbs::-webkit-scrollbar { display: none; }
.product-gallery .g-thumbs .ph {
  border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent;
  flex: 0 0 90px; height: 90px; scroll-snap-align: start;
}
.product-gallery .g-thumbs .ph.is-on { border-color: var(--lb-red); border-width: 2.5px; }
.product-gallery .g-thumb-wrap::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 4px; width: 48px;
  background: linear-gradient(to right, transparent, var(--lb-bg));
  pointer-events: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.product-gallery .g-thumbs .gt-video { position: relative; }
.product-gallery .g-thumbs .gt-video::after {
  content: '';
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='m7 4 13 8-13 8Z'/%3E%3C/svg%3E") center/17px 17px no-repeat,
    rgba(26,21,22,.35);
  border-radius: inherit;
}
.product-gallery [data-main-media] iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form chuẩn WooCommerce — sản phẩm có biến thể (variable)
   Đồng bộ hoàn toàn với form simple: select như .field, hàng mua như .buybar,
   giá biến thể được JS đẩy lên .p-price-row phía trên (1 nguồn giá duy nhất). */
.wc-native-cart { display: flex; flex-direction: column; gap: 18px; }
.wc-native-cart form.cart { display: flex; flex-direction: column; gap: 18px; margin: 0; }

/* Bảng chọn biến thể → xếp dọc như .field, bỏ layout 2 cột của WooCommerce */
.wc-native-cart table.variations,
.wc-native-cart table.variations tbody,
.wc-native-cart table.variations tr,
.wc-native-cart table.variations th,
.wc-native-cart table.variations td {
  display: block; width: 100%; padding: 0; margin: 0; border: none; text-align: left;
}
.wc-native-cart table.variations tr + tr { margin-top: 14px; }
/* JS đã dựng thẻ chọn biến thể (.opt) → ẩn bảng select gốc, vẫn giữ select cho WooCommerce.
   Không có JS: bảng select vẫn hiển thị như fallback. */
.wc-native-cart .variations_form.lb-variants-enhanced table.variations { display: none; }
.wc-native-cart table.variations th.label { margin-bottom: 7px; }
.wc-native-cart table.variations label { font-size: 15px; font-weight: 600; color: var(--lb-ink); margin: 0; }

/* Select đồng bộ với .input + mũi tên tuỳ biến (native arrow khác nhau giữa OS) */
.wc-native-cart select {
  width: 100%; min-height: 48px; padding: 12px 40px 12px 14px;
  border-radius: var(--radius); border: 1.5px solid var(--lb-line); background-color: var(--lb-bg);
  font-size: 16px; color: var(--lb-ink); outline: none; cursor: pointer; line-height: 1.4;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9698' stroke-width='2.2' 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 14px center; background-size: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wc-native-cart select:focus { border-color: var(--lb-red); box-shadow: 0 0 0 3px var(--lb-red-soft); }

/* Link "Xóa" lựa chọn — kín đáo (WooCommerce tự bật hiển thị khi đã chọn) */
.wc-native-cart .reset_variations {
  display: inline-block; margin-top: 9px; font-size: 15px;
  color: var(--lb-faint); text-decoration: underline; text-underline-offset: 3px;
}
.wc-native-cart .reset_variations:hover { color: var(--lb-red); }

/* Khối biến thể đã chọn */
.wc-native-cart .single_variation_wrap { display: flex; flex-direction: column; gap: 14px; }
.wc-native-cart .woocommerce-variation { margin: 0; }
/* Giá đã được đồng bộ lên .p-price-row phía trên → ẩn giá lặp của WooCommerce */
.wc-native-cart .woocommerce-variation-price { display: none; }
/* Trạng thái kho + thông báo không khớp */
.wc-native-cart .woocommerce-variation-availability .stock { font-size: 15px; font-weight: 600; color: var(--lb-olive); margin: 0; }
.wc-native-cart .woocommerce-variation-availability .out-of-stock { font-size: 15px; font-weight: 600; color: var(--lb-red); margin: 0; }
.wc-native-cart .wc-no-matching-variations {
  display: block; font-size: 15px; color: var(--lb-red);
  padding: 11px 14px; border-radius: var(--radius); background: var(--lb-red-soft);
}

/* Hàng qty + nút thêm giỏ (variable) dùng CHUNG class .buybar-sticky/.buybar/.btn/.btn-primary
   với form simple — JS gắn các class này vào container/nút gốc WooCommerce, nên style đến từ
   một nguồn duy nhất (hết lệch nền/nút). Chỉ giữ lại trạng thái disabled riêng của WC bên dưới. */
.wc-native-cart .single_add_to_cart_button.disabled,
.wc-native-cart .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: .45; cursor: not-allowed; box-shadow: none;
}
/* Ô số lượng gốc WC (variable) → pill .qty như form simple (JS thêm class .qty + nút ±) */
.wc-native-cart .quantity.qty { flex: 0 0 auto; }
.wc-native-cart .quantity.qty input.qty-native {
  width: 44px; height: 44px; min-width: 36px; padding: 0; margin: 0;
  border: none; background: none; color: inherit;
  text-align: center; font-weight: 700; font-size: 16px;
  -moz-appearance: textfield; appearance: textfield;
}
.wc-native-cart .quantity.qty input.qty-native::-webkit-outer-spin-button,
.wc-native-cart .quantity.qty input.qty-native::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* Rating + đã bán (dưới tiêu đề sản phẩm) */
.p-rating { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--lb-gray); }
.p-rating .stars { color: var(--lb-gold-dark); font-size: 16px; letter-spacing: 1px; }
.p-rating a { color: var(--lb-gray); text-decoration: underline; text-underline-offset: 3px; }
.p-rating .sold { color: var(--lb-faint); }

/* Trust row — panel cam kết, flex ngang theo Design Concept */
.trust-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 20px;
  background: var(--lb-wash);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lb-gray);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
/* trust-row đặt trong khối CTA căn giữa (home/range) — gom lại, căn trái nội dung */
.bh-cta .trust-row, .cta-trust .trust-row { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }

/* A6 — Khan hiếm thật (chỉ hiện khi admin nhập số liệu thật, xem lb_scarcity_row()) */
.scarcity-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--lb-red-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lb-red-dark);
}
.scarcity-row .n-icon { flex: none; color: var(--lb-red); font-size: 16px; }
/* A5 — dòng deflect/tư vấn Zalo ở giỏ & checkout */
.assist-line { font-size: 15px; color: var(--lb-gray); }
.assist-line a { color: var(--lb-red); font-weight: 600; }
.assist-line a:hover { text-decoration: underline; }

/* ============================================================
   B3 — MOTION LAYER (chỉ chạy khi user KHÔNG yêu cầu giảm chuyển động)
   - scroll-reveal: khối hiện dần khi cuộn tới (JS chỉ ẩn khối dưới màn
     hình nên không nháy nội dung đầu trang)
   - filter-in: card hiện lại mượt khi lọc persona/danh mục
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .lb-reveal { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
  .lb-reveal.in {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease-slow), transform .6s var(--ease-slow);
  }
  .pcard.lb-filter-in { animation: lb-pop .34s var(--ease-slow) both; }
  @keyframes lb-pop { from { opacity: .25; transform: scale(.97); } to { opacity: 1; transform: none; } }
  /* phản hồi chạm vật lý cho card bấm được */
  .pcard, .who-card { transition: transform .12s ease, box-shadow var(--t-fast) var(--ease-slow); }
  .pcard:active, .who-card:active { transform: scale(.985); }
}

/* ============================================================
   SKELETON LOADING — shimmer placeholder khi grid đang tải
   ============================================================ */
@keyframes lb-shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.pcard-skeleton {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lb-wash);
  box-shadow: var(--shadow-card);
}
.pcard-skeleton .sk-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, var(--lb-line) 25%, var(--lb-wash) 50%, var(--lb-line) 75%);
  background-size: 200% 100%;
  animation: lb-shimmer 1.4s ease-in-out infinite;
}
.pcard-skeleton .sk-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.pcard-skeleton .sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--lb-line) 25%, var(--lb-wash) 50%, var(--lb-line) 75%);
  background-size: 200% 100%;
  animation: lb-shimmer 1.4s ease-in-out infinite;
}
.pcard-skeleton .sk-line--title { height: 14px; width: 80%; }
.pcard-skeleton .sk-line--short { width: 50%; }
@media (prefers-reduced-motion: reduce) {
  .pcard-skeleton .sk-img,
  .pcard-skeleton .sk-line { animation: none; background: var(--lb-line); }
}

/* Reviews */
.reviews-sec { margin-top: 44px; }
.review-grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: var(--lb-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review-card .rv-stars { color: var(--lb-gold-dark); font-size: 16px; letter-spacing: 1px; }
.review-card .rv-text { font-size: 15px; color: var(--lb-gray); line-height: 1.65; flex: 1; }
.review-card .rv-who { font-size: 15px; font-weight: 600; color: var(--lb-ink); }
.review-card .rv-who small { font-weight: 400; color: var(--lb-faint); }
.review-form { margin-top: 18px; background: var(--lb-wash); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.review-form .rf-stars { display: flex; gap: 4px; align-items: center; }
.review-form .rf-stars label { cursor: pointer; font-size: 22px; color: var(--lb-light); transition: color .15s; }
.review-form .rf-stars input { position: absolute; opacity: 0; pointer-events: none; }
.review-form .rf-stars label.lit { color: var(--lb-gold-dark); }

.product-info {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--lb-bg);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: var(--radius);
  padding: 26px 28px 24px;
  box-shadow: 0 1px 3px rgba(26,26,26,0.05), 0 8px 24px rgba(26,26,26,0.03);
}
@media (max-width: 600px) { .product-info { padding: 20px 18px; border-radius: 16px; } }
.product-info form.cart { display: flex; flex-direction: column; gap: 12px; }
.product-info .p-range { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-faint); margin: 0; }
.product-info h1 { font-size: 25px; line-height: 1.25; margin: 2px 0 0; }
@media (min-width: 900px) { .product-info h1 { font-size: 30px; } }
.product-info .p-lead { font-size: 16px; color: var(--lb-gray); line-height: 1.72; }
.product-info .p-lead p { margin: 0 0 6px; }
.product-info .p-lead p:last-child { margin-bottom: 0; }
/* Bullet list: ép list-style:none + dùng ::marker để chắc chắn không còn bullet mặc định */
.product-info .p-lead ul,
.product-info .p-lead ol { margin: 0; padding-left: 0 !important; list-style: none !important; display: flex; flex-direction: column; gap: 7px; }
.product-info .p-lead li { margin: 0; padding-left: 18px; position: relative; list-style: none !important; }
.product-info .p-lead li::marker { display: none; font-size: 0; }
.product-info .p-lead li::before {
  content: '';
  position: absolute; left: 1px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lb-green);
  opacity: 0.7;
  flex-shrink: 0;
}
.product-info .p-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* Price XL — DS: Lora 700, 30px, clay */
.product-info .p-price-row .price { font-family: var(--font-ui); font-size: 30px; font-weight: 700; color: var(--clay); }
.product-info .p-price-row .p-unit { font-size: 15px; color: var(--lb-faint); }
.product-info .p-price-row .p-orig { font-size: 16px; color: var(--lb-light); text-decoration: line-through; }
.product-info .p-price-row .p-sale-badge { background: var(--lb-badge-red-bg); color: var(--lb-red); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12px; font-weight: 700; align-self: center; }

.opt-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 10px; }
.opt-group .og-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; }
.opt-group .og-title { font-size: 16px; font-weight: 700; }
.opt-group .og-req { font-size: 12px; font-weight: 600; color: var(--lb-red); background: var(--lb-bg); border: 1px solid var(--lb-red); padding: 2px 9px; border-radius: 999px; }
.opt-group .og-opt { font-size: 12px; color: var(--lb-faint); }
@media (min-width: 480px) { .opt-group { grid-template-columns: repeat(3, 1fr); } }

/* Thư tay panel */
.letter-panel { border-radius: var(--radius); border: 1.5px dashed var(--lb-red); background: var(--lb-red-soft); padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.letter-panel .lp-head { display: flex; align-items: center; gap: 12px; }
.letter-panel .lp-head .lp-icon { font-size: 22px; }
.letter-panel .lp-head .lp-body { flex: 1; }
.letter-panel .lp-title { font-weight: 700; font-size: 16px; color: var(--lb-red-dark); }
.letter-panel .lp-sub { font-size: 15px; color: var(--lb-gray); }
.letter-panel .lp-fields { display: flex; flex-direction: column; gap: 10px; }
.letter-panel .input, .letter-panel .textarea { border-color: rgba(194,38,41,.25); background: var(--lb-page); color: var(--lb-ink); }

/* Khối "Gửi đến người thương" trên checkout — panel thoáng, đồng bộ với letter-panel */
.gift-block {
  display: flex; flex-direction: column; gap: 16px;
  border: 1.5px dashed var(--lb-red);
  background: var(--lb-red-soft);
  border-radius: var(--radius);
  padding: 16px;
}
.gift-block .input, .gift-block .textarea { border-color: rgba(194,38,41,.25); background: var(--lb-page); color: var(--lb-ink); }
.gift-block .textarea { min-height: 96px; }

/* Buy bar */
.buybar { display: flex; gap: 12px; align-items: center; }
.buybar .btn { flex: 1; }
.buybar-sticky { position: sticky; bottom: 0; background: linear-gradient(to top, var(--lb-page) 72%, transparent); padding: 12px 0 4px; margin-top: 4px; }

/* TRANG SẢN PHẨM trên mobile — thanh mua thay chỗ thanh điều hướng.
   Lỗi cũ: position:sticky chỉ dính TRONG khối cha, nên khi khách đọc hết mô tả
   và đánh giá (đúng lúc sẵn sàng mua nhất) thì thanh mua đã trôi khỏi màn hình
   — đo được top:-3011 ở cuối trang. Nay dùng fixed để bám suốt trang.
   Ẩn .bottom-nav vì khách đang ở bước mua thì việc cần làm là mua, không phải
   điều hướng; gộp cả hai sẽ ăn ~132px đáy màn (~28% khung 475px). */
@media (max-width: 899px) {
  body.single-product .bottom-nav { display: none; }
  body.single-product .buybar-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 201; /* trên .bottom-nav (200), dưới .zalo-float (9999) */
    margin-top: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--lb-page);
    border-top: 1px solid var(--lb-line);
    box-shadow: 0 -4px 16px rgba(28,26,24,.10);
  }
  body.single-product { padding-bottom: 96px; }
}

/* Mô tả dài + accordion */
/* Accordion cards — theo Design Concept: mỗi accordion là 1 card trắng */
.p-desc { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.p-desc details { background: var(--lb-bg); border-radius: 16px; overflow: hidden; border: 1px solid rgba(26,26,26,0.08); transition: border-color .2s ease; }
.p-desc details[open] { border: 1.5px solid rgba(194,38,41,0.20); }
.p-desc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 16px; font-weight: 500; color: var(--lb-ink); cursor: pointer; user-select: none; }
.p-desc summary::-webkit-details-marker { display: none; }
.p-desc details[open] summary { color: var(--lb-red); font-weight: 600; border-bottom: 1px solid rgba(194,38,41,0.10); }
.p-desc summary .chev { color: var(--lb-red); flex-shrink: 0; margin-left: 20px; transition: transform .2s ease; font-size: 16px; }
.p-desc details[open] summary .chev { transform: rotate(180deg); }
.p-desc .d-body { padding: 18px 24px 22px; font-size: 16px; color: var(--lb-gray); line-height: 1.7; }
.p-desc .d-body p { margin: 0 0 12px; }
.p-desc .d-body p:last-child { margin-bottom: 0; }
.p-desc .d-body img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); margin: 14px 0; }
.p-desc .d-body h2, .p-desc .d-body h3, .p-desc .d-body h4 { margin: 18px 0 8px; color: var(--lb-ink); }
.p-desc .d-body ul, .p-desc .d-body ol { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.p-desc .d-body table { margin: 12px 0; }
.p-desc .d-body b { color: var(--lb-ink); }

/* Mô tả sản phẩm — khối riêng (single-product.php .product-longdesc) */
/* Card nền trắng, bo góc, viền nhẹ + đổ bóng mảnh cho gọn gàng, dễ đọc. */
.product-longdesc {
  margin-top: 28px;
  background: var(--lb-bg);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: var(--radius);
  padding: 26px 30px 28px;
  box-shadow: 0 1px 3px rgba(26,26,26,0.05), 0 8px 24px rgba(26,26,26,0.03);
}
.product-longdesc .sec-head { margin-bottom: 12px; }
.product-longdesc .sec-head h2 { margin: 0; }
.product-longdesc .p-longdesc-body { font-size: 16px; color: var(--lb-gray); line-height: 1.75; max-width: 760px; }
.product-longdesc .p-longdesc-body p { margin: 0 0 14px; }
.product-longdesc .p-longdesc-body p:last-child { margin-bottom: 0; }
.product-longdesc .p-longdesc-body img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.product-longdesc .p-longdesc-body h2, .product-longdesc .p-longdesc-body h3, .product-longdesc .p-longdesc-body h4 { margin: 20px 0 8px; color: var(--lb-ink); }
.product-longdesc .p-longdesc-body ul, .product-longdesc .p-longdesc-body ol { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ============================================================
   CART  (cart/cart.php)
   ============================================================ */
.cart-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 920px) { .cart-layout { grid-template-columns: minmax(360px, 1fr) minmax(300px, 380px); gap: 28px; } }

.cart-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.cart-item + .cart-item { border-top: 1px solid var(--lb-line); }
.cart-item .ci-img { width: 86px; height: 86px; border-radius: var(--radius-sm); }
.cart-item .ci-img .ph-icon { font-size: 26px; }
.cart-item .ci-body { display: flex; flex-direction: column; gap: 4px; }
.cart-item .ci-name { font-weight: 600; font-size: 16px; line-height: 1.35; }
.cart-item .ci-opts { font-size: 15px; color: var(--lb-gray); }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-item .ci-remove { background: none; border: none; font-size: 15px; color: var(--lb-faint); padding: 6px 0; }
.cart-item .ci-remove:hover { color: var(--lb-red); text-decoration: underline; }

.totals-table { display: flex; flex-direction: column; gap: 11px; }
.totals-table .tr { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.totals-table .tr .tl { color: var(--lb-gray); }
.totals-table .tr.big { font-size: 17px; font-weight: 700; padding-top: 11px; border-top: 1px solid var(--lb-line); }
.totals-table .tr.big .tl { color: var(--lb-ink); }

.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; min-height: 46px; }

/* ============================================================
   CHECKOUT  (checkout/form-checkout.php)
   ============================================================ */
.co-layout { display: grid; gap: 18px; align-items: start; }
/* Khối notice lỗi do JS WooCommerce chèn vào trong form — cho chiếm trọn hàng, không phá lưới 2 cột */
.co-layout > .woocommerce-NoticeGroup,
.co-layout > .woocommerce-notices-wrapper,
.co-layout > .woocommerce-error,
.co-layout > .woocommerce-message,
.co-layout > .woocommerce-info { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 960px) { .co-layout { grid-template-columns: minmax(360px, 1fr) minmax(300px, 400px); gap: 30px; } }
.co-section { display: flex; flex-direction: column; gap: 14px; }
.co-section .cs-head { display: flex; align-items: center; gap: 10px; }
.co-section .cs-num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--lb-ink); color: var(--lb-on-dark); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.co-section .cs-title { font-size: 16.5px; font-weight: 700; font-family: var(--font-body); }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.gift-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-radius: var(--radius); background: var(--lb-bg); border: 1.5px solid var(--lb-line); cursor: pointer; }
.gift-toggle .gt-icon { font-size: 20px; }
.gift-toggle .gt-body { flex: 1; }
.gift-toggle .gt-title { font-weight: 700; font-size: 16px; }
.gift-toggle .gt-sub { font-size: 15px; color: var(--lb-gray); }

.eta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-radius: var(--radius); background: var(--lb-wash); border: 1px solid var(--lb-line); font-size: 16px; }
.eta-row b { font-weight: 700; }

.review-item { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 9px 0; }
.review-item .ri-name { color: var(--lb-ink); }
.review-item .ri-name small { display: block; color: var(--lb-faint); font-size: 15px; }
.review-item + .review-item { border-top: 1px dashed var(--lb-line); }

/* ============================================================
   THANK YOU  (checkout/thankyou.php)
   ============================================================ */
.ty-wrap { max-width: 620px; margin: 0 auto; padding: 34px 16px 10px; display: flex; flex-direction: column; gap: 16px; }
.ty-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 4px; }
.ty-tick { width: 74px; height: 74px; border-radius: 50%; background: var(--lb-green); color: var(--lb-on-dark); font-size: 34px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(74,107,58,.25); }
.ty-hero h1 { font-size: 26px; }
.ty-hero .ty-code { font-size: 16px; color: var(--lb-gray); }
.ty-hero .ty-code b { color: var(--lb-active); font-size: 16px; letter-spacing: .03em; }

/* ============================================================
   ORDER TRACKING
   ============================================================ */
.track-steps { display: flex; flex-direction: column; gap: 0; }
.track-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.track-step .ts-rail { display: flex; flex-direction: column; align-items: center; }
.track-step .ts-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lb-wash); border: 2px solid var(--lb-line); color: var(--lb-faint); font-size: 15px; display: grid; place-items: center; }
.track-step .ts-line { width: 2px; flex: 1; background: var(--lb-line); min-height: 26px; }
.track-step:last-child .ts-line { display: none; }
.track-step .ts-body { padding-bottom: 22px; }
.track-step .ts-title { font-weight: 600; font-size: 16px; color: var(--lb-faint); }
.track-step .ts-sub { font-size: 15px; color: var(--lb-faint); }
.track-step.done .ts-dot { background: var(--lb-green); border-color: var(--lb-green); color: var(--lb-on-dark); }
.track-step.done .ts-line { background: var(--lb-green); }
.track-step.done .ts-title { color: var(--lb-ink); }
.track-step.done .ts-sub { color: var(--lb-gray); }
.track-step.now .ts-dot { background: var(--lb-bg); border-color: var(--lb-active); color: var(--lb-active); box-shadow: 0 0 0 5px var(--lb-cream); }
.track-step.now .ts-title { color: var(--lb-active); }
.track-step.now .ts-sub { color: var(--lb-gray); }

/* ============================================================
   SEARCH  (search.php)
   ============================================================ */
.search-hero { padding: 30px 0 8px; max-width: 640px; }
.search-hero h1 { font-size: 26px; margin-bottom: 14px; }
.searchform { display: flex; gap: 9px; }
.searchform .input { flex: 1; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .e-icon { font-size: 42px; }
.empty h2 { font-size: 20px; }
.empty p { font-size: 16px; color: var(--lb-gray); max-width: 380px; }

/* ============================================================
   BLOG  (index.php / archive.php)
   ============================================================ */
.post-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1020px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; background: var(--lb-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--t-fast) var(--ease-slow), box-shadow var(--t-fast) var(--ease-slow); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.post-card .ph { aspect-ratio: 16 / 9; border-radius: 0; }
.post-card .pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .pc-meta { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--lb-faint); }
.post-card h3 { font-size: 17px; line-height: 1.35; }
.post-card h3 a:hover { color: var(--lb-terracotta); }
.post-card .pc-excerpt { font-size: 15px; color: var(--lb-gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-feature { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .post-feature { display: grid; grid-template-columns: 1.2fr 1fr; }
  .post-feature .ph { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .post-feature .pc-body { padding: 26px 28px; justify-content: center; }
  .post-feature h3 { font-size: 23px; }
}

/* ============================================================
   PROSE  (single.php / page.php)
   ============================================================ */
.prose-wrap { max-width: 980px; margin: 0 auto; }
.prose img { border-radius: var(--radius); }
.prose-wrap > .prose-head, .prose-wrap > .post-feature-img, .prose-wrap > .post-shop, .prose-wrap > nav { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Blog → funnel CTA ---------- */
.post-cta {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--lb-red-soft);
  border-left: 4px solid var(--lb-red);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 24px 0;
  font-size: 16px; line-height: 1.6; color: var(--lb-ink);
}
.post-cta .pc-icon { font-size: 20px; line-height: 1.3; }
.post-cta a { color: var(--lb-red); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.post-shop {
  margin-top: 36px;
  background: var(--lb-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 700px) { .post-shop { padding: 32px 30px; } }
.post-shop h2 { font-size: clamp(20px, 2.6vw, 25px); }
.post-shop .ps-sub { font-size: 16px; color: var(--lb-gray); max-width: 520px; }
.post-shop .ps-grid { margin-top: 8px; }
@media (min-width: 1020px) { .post-shop .ps-grid { grid-template-columns: repeat(3, 1fr); } }
.post-shop .ps-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.prose-head { padding: 30px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.prose-head h1 { font-size: 28px; }
@media (min-width: 760px) { .prose-head h1 { font-size: 36px; } }
.prose-head .pm { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; color: var(--lb-faint); }
.prose-head .pm .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--lb-cream); color: var(--lb-terracotta); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.prose-head .pm-bio { font-size: 15px; color: var(--lb-gray); line-height: 1.6; max-width: 560px; }

.prose { font-size: 16px; line-height: 1.85; color: var(--lb-ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 22px; margin-top: 1.7em; }
.prose h3 { font-size: 18px; margin-top: 1.5em; }
.prose .lead { font-size: 18px; color: var(--lb-gray); font-family: var(--font-body); line-height: 1.7; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lb-terracotta); font-family: var(--font-body); font-size: 17.5px; color: var(--lb-ink); font-style: italic; }
.prose figure { margin: 1.6em 0; }
.prose figure .ph { border-radius: var(--radius); }
.prose figcaption { font-size: 15px; color: var(--lb-faint); text-align: center; margin-top: 8px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }

/* ---------- TOC inline ---------- */
.post-body-layout { display: block; }
.post-body-layout .prose { max-width: 720px; margin-inline: auto; }
/* TOC inline — thay thế sidebar 2 cột cũ */
.post-toc { display: none; } /* class cũ ẩn hết */

.post-toc-inline {
  background: var(--lb-bg);
  border: 1.5px solid rgba(194,38,41,0.18);
  border-radius: 16px;
  margin-bottom: 32px;
  overflow: hidden;
}
.post-toc-inline .toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: var(--lb-red-soft);
}
.post-toc-inline .toc-header::-webkit-details-marker { display: none; }
.post-toc-inline .toc-icon { color: var(--lb-red); flex-shrink: 0; display: flex; }
.post-toc-inline .toc-title { font-size: 16px; font-weight: 700; color: var(--lb-red); flex: 1; }
.post-toc-inline .toc-chev { color: var(--lb-red); flex-shrink: 0; display: flex; transition: transform .2s ease; }
.post-toc-inline[open] .toc-chev { transform: rotate(180deg); }

.post-toc-inline .toc-body {
  display: flex;
  flex-direction: column;
  padding: 10px 14px 14px;
  gap: 2px;
}
.post-toc-inline .toc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--lb-ink);
  font-size: 16px;
  line-height: 1.5;
  transition: background .15s ease, color .15s ease;
}
.post-toc-inline .toc-item:hover { background: var(--lb-red-soft); color: var(--lb-red); }
.post-toc-inline .toc-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lb-red);
  color: var(--lb-on-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.post-toc-inline .toc-sub { padding-left: 20px; }
.post-toc-inline .toc-dot {
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lb-faint);
  opacity: 0.5;
  margin-top: 9px;
  margin-left: 8px;
}
.post-toc-inline .toc-text { flex: 1; }

.post-share-bar { background: var(--lb-bg); border-radius: var(--radius); padding: 20px 24px; margin-top: 32px; max-width: 720px; margin-inline: auto; }
.post-share-bar p { font-size: 15px; color: var(--lb-medium); margin-bottom: 14px; }
.post-share-bar .psb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.post-share-bar .psb-btn { border-radius: var(--radius-sm); padding: 10px 20px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; }
.post-share-bar .psb-fb { background: var(--lb-ink); color: var(--lb-on-dark); }
.post-share-bar .psb-zalo { background: var(--lb-warm-dark); color: var(--lb-on-dark); }
.post-share-bar .psb-copy { background: var(--lb-bg); color: var(--lb-medium); border: 1.5px solid rgba(26,26,26,.14); }

/* ============================================================
   COMMENTS  (comments.php)
   ============================================================ */
.comments { max-width: 720px; margin: 40px auto 0; }
.comments h2 { font-size: 20px; margin-bottom: 18px; }
.comment { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 13px; padding: 16px 0; }
.comment + .comment { border-top: 1px solid var(--lb-line); }
.comment .c-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lb-wash); border: 1px solid var(--lb-line); color: var(--lb-gray); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.comment .c-name { font-weight: 600; font-size: 16px; }
.comment .c-date { font-size: 15px; color: var(--lb-faint); }
.comment .c-text { font-size: 16px; color: var(--lb-gray); margin-top: 5px; line-height: 1.65; }
.comment .c-reply { font-size: 15px; font-weight: 600; color: var(--lb-terracotta); margin-top: 7px; display: inline-block; }
.comment.is-child { margin-left: 52px; }

/* ============================================================
   404  (404.php)
   ============================================================ */
.err-wrap { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 50px 16px; }
.err-wrap .e-bowl { font-size: 56px; }
.err-wrap .e-code { font-family: var(--font-heading); font-size: 64px; font-weight: 700; color: var(--lb-active); line-height: 1; }
.err-wrap h1 { font-size: 24px; }
.err-wrap p { font-size: 16px; color: var(--lb-gray); max-width: 420px; }
.err-wrap .e-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ============================================================
   MY ACCOUNT  (myaccount/)
   ============================================================ */
.acc-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 860px) { .acc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 26px; } }
.acc-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.acc-nav::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .acc-nav { flex-direction: column; gap: 3px; } }
.acc-nav a { padding: 11px 15px; border-radius: var(--radius); font-size: 16px; font-weight: 500; color: var(--lb-gray); white-space: nowrap; background: var(--lb-bg); border: 1px solid var(--lb-line); }
@media (min-width: 860px) { .acc-nav a { background: none; border: none; } }
.acc-nav a:hover { color: var(--lb-ink); background: var(--lb-wash); }
.acc-nav a.is-here { color: var(--lb-active); background: var(--lb-cream); border-color: transparent; font-weight: 600; }

.order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 0; }
.order-row + .order-row { border-top: 1px solid var(--lb-line); }
.order-row .or-code { font-weight: 700; font-size: 16px; }
.order-row .or-meta { font-size: 15px; color: var(--lb-gray); }
.order-row .or-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.order-row .price { font-size: 16px; }

.status-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.status-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-tag.st-cooking    { background: var(--lb-page); color: var(--lb-amber); }
.status-tag.st-delivering { background: var(--lb-wash); color: var(--lb-gray); }
.status-tag.st-done       { background: var(--lb-green-bg); color: var(--lb-green); }
.status-tag.st-new        { background: var(--lb-red-soft); color: var(--lb-red); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .contact-grid section:last-child { grid-column: 1 / -1; }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--radius);
  padding: 13px 16px;
  margin: 14px 0;
  font-size: 16px;
  list-style: none;
}
.woocommerce-message { background: var(--lb-green-bg); border-left: 4px solid var(--lb-green); color: var(--lb-green); }
.woocommerce-error { background: var(--lb-red-soft); border-left: 4px solid var(--lb-red); color: var(--lb-red-dark); }
.woocommerce-info { background: var(--lb-wash); border-left: 4px solid var(--lb-faint); color: var(--lb-gray); }
/* ============================================================
   LẠC BỬU — home.css
   Layout cho trang chủ thương hiệu (front-page.php bản branding)
   Phễu: HIỂU → YÊU → MUA
   ============================================================ */

/* ---------- Hero ---------- */
.bh-hero { padding: 26px 0 0; }
.bh-hero-card {
  position: relative;
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 880px) { .bh-hero-card { grid-template-columns: 1.08fr 1fr; } }
.bh-hero-copy {
  padding: 30px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 880px) { .bh-hero-copy { padding: 52px 46px; justify-content: center; } }
.bh-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-red);
}
.bh-hero-copy h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; color: var(--earth); font-weight: 700; }
.bh-hero-copy .bh-hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-mid); max-width: 460px; }
.bh-hero-copy .bh-trust-line { font-size: 15px; font-weight: 600; color: var(--lb-active); margin-top: 4px; }
.bh-hero-img { min-height: 280px; }
@media (min-width: 880px) { .bh-hero-img { min-height: 420px; } }
.bh-hero-img .ph { width: 100%; height: 100%; border-radius: 0; }

/* 3 lựa chọn "mua cho ai" — visible trong 5 giây đầu */
.bh-who {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 760px) { .bh-who { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.who-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease-slow), box-shadow var(--t-fast) var(--ease-slow);
}
.who-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.who-card .wc-icon { font-size: 26px; }
.who-card .wc-title { font-family: var(--font-body); font-weight: 600; font-size: 18px; margin-top: 4px; }
.who-card .wc-sub { font-size: 15px; color: var(--lb-gray); }
.who-card .wc-go {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lb-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.who-card:hover .wc-go { text-decoration: underline; }

/* ---------- Section heading chung ---------- */
.bh-sec { padding: 52px 0 0; }
.bh-sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin: 0 auto 26px;
  max-width: 640px;
}
.bh-sec-head h2 { font-size: clamp(1.85rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.3; color: var(--earth); }
.bh-sec-head .sh-sub { font-size: 16px; line-height: 1.75; color: var(--text-mid); }

/* ---------- Ý nghĩa tên Bửu - Lạc ---------- */
.name-grid {
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 700px) { .name-grid { grid-template-columns: 1fr 1fr; } }
.name-cell { padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 700px) { .name-cell { padding: 38px 36px; } }
.name-cell + .name-cell { border-top: 1px solid var(--lb-line); }
@media (min-width: 700px) { .name-cell + .name-cell { border-top: none; border-left: 1px solid var(--lb-line); } }
.name-cell .nc-char {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--lb-red);
}
.name-cell .nc-word { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lb-faint); }
.name-cell .nc-mean { font-size: 16px; color: var(--lb-gray); }

/* Lời hứa lớn (Master PoD) */
.bh-claim {
  margin: 30px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 0 10px;
}
.bh-claim .claim-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.5;
  color: var(--lb-ink);
}
.bh-claim .claim-text b { color: var(--lb-red); font-weight: 600; }
.bh-claim .claim-by { margin-top: 12px; font-size: 15px; color: var(--lb-faint); }

/* ---------- 4 bằng chứng ---------- */
.proof-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .proof-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ---------- Proof-grid: layout-variant (Lạc Bửu Layout Library) ---------- */
.proof-grid.proof-grid--grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 1020px) {
  .proof-grid.proof-grid--grid-auto:has(.proof:nth-child(4)):not(:has(.proof:nth-child(5))) {
    grid-template-columns: repeat(4, 1fr);
  }
}
.proof-grid.proof-grid--list-vertical { display: flex; flex-direction: column; gap: 14px; }
.proof-grid.proof-grid--carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; }
.proof-grid.proof-grid--carousel .proof { scroll-snap-align: start; flex: 0 0 280px; }
.proof {
  background: var(--lb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proof .pf-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--lb-pill-bg);
  color: var(--lb-terracotta);
  font-size: 21px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.proof h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--earth); }
.proof p { font-size: 16px; color: var(--text-mid); line-height: 1.65; }

/* ---------- Timeline nấu chậm (band tối) ---------- */
.slow-card {
  border-radius: var(--radius-lg);
  background: var(--lb-cream);
  color: var(--lb-ink);
  border: 1px solid var(--lb-line);
  padding: 34px 24px;
  overflow: hidden;
}
@media (min-width: 880px) { .slow-card { padding: 48px 46px; } }
.slow-card .sc-head { max-width: 540px; display: flex; flex-direction: column; gap: 10px; }
.slow-card .sc-head .bh-eyebrow { color: var(--lb-red); }
.slow-card h2 { color: var(--earth); font-size: clamp(1.85rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.3; }
.slow-card .sc-sub { font-size: 16px; color: var(--text-mid); line-height: 1.75; opacity: 1; }
.slow-steps { display: grid; gap: 22px; margin-top: 30px; }
@media (min-width: 880px) { .slow-steps { grid-template-columns: repeat(4, 1fr); gap: 26px; } }
.slow-step { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; }
@media (min-width: 880px) { .slow-step { display: flex; flex-direction: column; gap: 12px; } }
.slow-step .ss-rail { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 880px) { .slow-step .ss-rail { flex-direction: row; align-items: center; width: 100%; } }
.slow-step .ss-dot {
  width: 12px; height: 12px; flex: none;
  border-radius: 50%;
  background: var(--lb-red);
  box-shadow: 0 0 0 4px rgba(194,38,41,.25);
}
.slow-step .ss-line { flex: 1; width: 2px; min-height: 18px; background: var(--lb-line); margin-top: 6px; }
@media (min-width: 880px) { .slow-step .ss-line { width: auto; height: 2px; min-height: 0; margin: 0 0 0 10px; } }
.slow-step:last-child .ss-line { display: none; }
.slow-step .ss-time {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--lb-ink);
  line-height: 1.2;
}
.slow-step .ss-time small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lb-faint); opacity: 1; margin-bottom: 3px; }
.slow-step .ss-desc { font-size: 15px; color: var(--lb-gray); opacity: 1; line-height: 1.6; margin-top: 6px; }

/* ---------- Timeline: layout-variant (Lạc Bửu Layout Library) — fix "không nổi bật" ---------- */
.slow-card.slow-timeline--rail-vertical {
  border: 1px solid var(--lb-terracotta);
  box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, var(--lb-cream) 0%, var(--lb-bg) 100%);
}
.slow-card.slow-timeline--rail-vertical .ss-dot {
  width: 16px; height: 16px;
  background: var(--lb-terracotta);
  box-shadow: 0 0 0 5px rgba(176,94,63,.18);
}
.slow-card.slow-timeline--rail-vertical .ss-line { background: var(--lb-terracotta); opacity: .35; }
.slow-card.slow-timeline--rail-horizontal .slow-steps { grid-template-columns: 1fr; }
@media (min-width: 880px) { .slow-card.slow-timeline--rail-horizontal .slow-step { flex-direction: row; align-items: flex-start; } }
.slow-card.slow-timeline--cards .slow-steps { gap: 18px; }
.slow-card.slow-timeline--cards .slow-step {
  background: var(--lb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

/* ---------- Câu chuyện founder ---------- */
.story-grid {
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 880px) { .story-grid { grid-template-columns: 1fr 1.15fr; } }
@media (min-width: 880px) { .story-grid.story-grid--image-right { grid-template-columns: 1.15fr 1fr; } }
.story-grid.story-grid--image-right .story-img { order: 2; }
.story-img { min-height: 240px; }
@media (min-width: 880px) { .story-img { min-height: 100%; } }
.story-img .ph { width: 100%; height: 100%; border-radius: 0; }
.story-copy {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
@media (min-width: 880px) { .story-copy { padding: 46px 44px; justify-content: center; } }
.story-copy h2 { font-size: clamp(1.85rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.3; color: var(--earth); }
.story-copy p { font-size: 16px; color: var(--text-mid); line-height: 1.8; }
.story-copy blockquote {
  margin: 4px 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--clay);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--clay);
}

/* ---------- Lá thư tay ---------- */
.letter-stage {
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 880px) { .letter-stage { grid-template-columns: 1.1fr 1fr; gap: 36px; } }
.letter-paper {
  position: relative;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(194,38,41,.45);
  background: var(--lb-red-soft);
  padding: 30px 26px 26px;
  transform: rotate(-1deg);
}
/* Item 6: tắt rotation trên màn hình rất nhỏ để tránh bị cắt */
@media (max-width: 479px) { .letter-paper { transform: none; } }
@media (min-width: 880px) { .letter-paper { padding: 40px 38px 34px; } }
/* Khối "thư tay" là đoạn dài nhất trang mà lại đang dùng Cormorant nghiêng 18px —
   cùng lỗi với thẻ chứng thực nhưng nặng hơn. GIỮ chữ nghiêng (đó là chất "viết
   tay") nhưng đổi sang Source Serif 4: nét dày hơn hẳn, đọc được ở cỡ nhỏ. */
.letter-paper .lt-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: var(--lb-ink);
}
.letter-paper .lt-sign {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 16px;
  color: var(--lb-red-dark);
  text-align: right;
}
.letter-paper .lt-stamp {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--lb-red);
  color: var(--lb-on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px var(--lb-glow);
  transform: rotate(2deg);
}

/* Design System v1.0 — 4 biến thể kích cỡ thư tay */
.letter-paper--hero { padding: 40px 48px 36px; transform: rotate(357deg); }
.letter-paper--hero .lt-text { font-size: 22px; max-width: 680px; }
.letter-paper--square { width: 270px; padding: 24px; transform: rotate(2deg); }
.letter-paper--square .lt-text { font-size: 16px; }
.letter-paper--photo { width: 340px; display: flex; padding: 0; overflow: hidden; transform: rotate(-1.5deg); border-style: solid; background: var(--lb-bg); box-shadow: var(--shadow-lg); }
.letter-paper--photo .lt-photo { width: 130px; min-height: 130px; flex-shrink: 0; background: var(--lb-pill-bg); }
.letter-paper--photo .lt-body { padding: 18px 20px; }
.letter-paper--photo .lt-text { font-size: 15px; line-height: 1.65; }
.letter-paper--compact { width: 230px; padding: 20px 20px 18px; border-radius: var(--radius); }
.letter-paper--compact .lt-text { font-size: 16px; margin-top: 14px; }
.letter-paper--compact .lt-stamp { top: -1px; left: 16px; right: auto; }

/* Photo-stack — ảnh xếp lớp xoay nhẹ (story/letter section). Markup:
   <div class="photo-stack"><span class="ps-layer ps-layer-1"></span><span class="ps-layer ps-layer-2"></span>
   <span class="ps-front" style="background-image:url(...)"></span></div> */
.photo-stack { position: relative; width: 220px; height: 270px; }
.photo-stack .ps-layer { position: absolute; width: 155px; height: 178px; border-radius: var(--radius-sm); top: 30px; left: 32px; }
.photo-stack .ps-layer-1 { background: var(--lb-wash); transform: rotate(-15deg); }
.photo-stack .ps-layer-2 { background: var(--lb-wash); transform: rotate(-10deg); }
.photo-stack .ps-front {
  position: absolute; top: 14px; left: 14px; width: 175px; height: 200px;
  background: var(--lb-bg); background-size: cover; background-position: center;
  padding: 10px; box-shadow: var(--shadow-lg); border-radius: var(--radius-sm);
  transform: rotate(-2deg); cursor: pointer;
  transition: box-shadow var(--t-card) var(--ease-brand), transform var(--t-card) var(--ease-brand);
}
.photo-stack .ps-front:hover { box-shadow: 0 16px 36px rgba(0,0,0,.24); transform: rotate(-2deg) translateY(-6px); z-index: 10; }

.letter-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.letter-side h2 { font-size: clamp(1.85rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.3; color: var(--earth); }
.letter-side p { font-size: 16px; color: var(--text-mid); line-height: 1.8; }
.letter-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.letter-side ul li { font-size: 16px; color: var(--text-mid); display: flex; gap: 9px; align-items: baseline; }
.letter-side ul li::before { content: "—"; color: var(--lb-terracotta); font-weight: 700; flex: none; }

/* ---------- Lời kể của khách ---------- */
.quote-grid { display: grid; gap: 14px; }
@media (min-width: 880px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.q-card {
  background: var(--lb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.q-card .q-mark {
  font-family: var(--font-heading);
  font-size: 38px;
  line-height: .6;
  color: var(--lb-terracotta);
  height: 16px;
}
.q-card .q-stars { color: var(--lb-red); font-size: 16px; letter-spacing: 1px; }
/* Lời chứng thực là NỘI DUNG BÁN HÀNG, không phải chú thích:
   - bỏ in nghiêng: nghiêng dùng để nhấn một cụm, đọc cả đoạn 4 dòng rất mỏi mắt
   - đổi màu phụ #6E5849 sang màu chữ chính: đây là chữ khách cần đọc kỹ nhất
   Dấu " ở .q-mark đã đủ báo hiệu "đây là trích dẫn", không cần nghiêng thêm. */
.q-card .q-text { font-size: 17px; line-height: 1.75; color: var(--lb-ink); flex: 1; font-family: var(--font-body); }
.q-card .q-foot { display: flex; align-items: center; gap: 10px; }
.q-card .q-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--lb-gold), var(--lb-terracotta)); }
.q-card .q-who { font-size: 15px; color: var(--lb-faint); }
.q-card .q-who b { color: var(--lb-gray); font-weight: 600; }

/* ---------- 3 dòng sản phẩm ---------- */
.range-grid { display: grid; gap: 14px; }
@media (min-width: 880px) { .range-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.range-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease-slow), box-shadow var(--t-fast) var(--ease-slow);
}
.range-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.range-card .rc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-faint); }
.range-card h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--earth); }
.range-card .rc-tagline { font-family: var(--font-body); font-style: italic; font-size: 16px; color: var(--lb-red); }
.range-card .rc-desc { font-size: 16px; color: var(--text-mid); line-height: 1.65; flex: 1; }
.range-card .rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lb-line);
}
.range-card .rc-price { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--lb-gray); }
.range-card .rc-go { font-size: 15px; font-weight: 600; color: var(--lb-terracotta); white-space: nowrap; }
.range-card:hover .rc-go { text-decoration: underline; }
/* Thẻ range "đặc biệt": nền kem sáng + viền đỏ nhạt để vẫn nổi bật, không tối */
.range-card.is-dark { background: var(--lb-cream); border: 1.5px solid var(--lb-red-soft); }
.range-card.is-dark h3 { color: var(--lb-ink); }
.range-card.is-dark .rc-kicker { color: var(--lb-faint); }
.range-card.is-dark .rc-tagline { color: var(--lb-terracotta); }
.range-card.is-dark .rc-desc { color: var(--lb-gray); }
.range-card.is-dark .rc-foot { border-top-color: var(--lb-line); }
.range-card.is-dark .rc-price { color: var(--lb-gray); }
.range-card.is-dark .rc-go { color: var(--lb-red); }

/* ---------- Cách đặt ---------- */
.order-steps { display: grid; gap: 14px; }
@media (min-width: 760px) { .order-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.order-step {
  background: var(--lb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-step .os-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lb-warm-dark);
  color: var(--lb-on-dark);
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.order-step h3 { font-size: 16px; }
.order-step p { font-size: 15px; color: var(--lb-gray); }
.order-steps.order-steps--numbered-column { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

/* ---------- CTA cuối ---------- */
.bh-cta {
  border-radius: var(--radius-lg);
  background: var(--lb-bg);
  box-shadow: var(--shadow-card);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
@media (min-width: 760px) { .bh-cta { padding: 54px 40px; } }
.bh-cta h2 { font-size: clamp(1.85rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.3; color: var(--earth); max-width: 560px; }
.bh-cta p { font-size: 16px; line-height: 1.75; color: var(--text-mid); max-width: 480px; }
.bh-cta .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.bh-cta .cta-hotline { font-size: 15px; color: var(--lb-faint); margin-top: 4px; }
.bh-cta .cta-hotline b { color: var(--lb-red); font-size: 16px; }

/* Design System v1.0 — biến thể CTA */
.bh-cta--trust { /* mặc định, giữ nguyên style gốc */ }
.bh-cta--hero { background: var(--lb-cream); text-align: left; align-items: flex-start; flex-direction: row; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.bh-cta--hero h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.3; color: var(--earth); }
.bh-cta--hero .cta-row { justify-content: flex-start; }
.bh-cta--hero p { color: var(--text-mid); }

.bh-cta--announcement-red, .bh-cta--announcement-warm {
  border-radius: var(--radius-sm); padding: 14px 28px; flex-direction: row; gap: 32px;
  justify-content: center; align-items: center;
}
.bh-cta--announcement-red { background: var(--lb-red); }
.bh-cta--announcement-red .ann-text { color: var(--lb-on-dark); font-size: 16px; font-weight: 600; }
.bh-cta--announcement-red .ann-sep { width: 1px; height: 16px; background: rgba(243,238,229,.3); }
.bh-cta--announcement-red .ann-link { color: rgba(243,238,229,.85); font-size: 15px; border-bottom: 1px solid rgba(243,238,229,.5); padding-bottom: 1px; }
.bh-cta--announcement-warm { background: var(--lb-wash); }
.bh-cta--announcement-warm .ann-text { color: var(--lb-gold-dark); font-size: 16px; font-weight: 600; }
.bh-cta--announcement-warm .ann-sep { width: 1px; height: 16px; background: rgba(0,0,0,.12); }
.bh-cta--announcement-warm .ann-link { color: var(--lb-medium); font-size: 15px; border-bottom: 1px solid rgba(90,82,73,.4); padding-bottom: 1px; }

.bh-cta--split { flex-direction: row; text-align: left; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.bh-cta--split .bh-cta-body { flex: 1; padding: 48px; align-items: flex-start; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.bh-cta--split .bh-cta-img { width: 320px; flex-shrink: 0; background: linear-gradient(160deg, var(--lb-pill-bg), var(--lb-cream)); }
.bh-cta--split .cta-row { justify-content: flex-start; }
@media (max-width: 760px) { .bh-cta--split { flex-direction: column; } .bh-cta--split .bh-cta-img { width: 100%; height: 200px; } }

.bh-cta--urgency { background: var(--lb-badge-red-bg); border: 1.5px solid rgba(194,38,41,.2); text-align: left; align-items: flex-start; }
.bh-cta--urgency h2 { color: var(--lb-red); font-size: 18px; }
.cta-countdown { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cta-countdown .pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lb-red); animation: lb-pulse 1.5s infinite; flex-shrink: 0; }
.cta-countdown .cd-box { background: rgba(0,0,0,.06); border-radius: 8px; padding: 8px 12px; text-align: center; }
.cta-countdown .cd-box b { display: block; font-size: 22px; font-weight: 700; color: var(--lb-ink); }
.cta-countdown .cd-box span { font-size: 12px; color: var(--lb-light); }
.cta-countdown .cd-colon { font-size: 20px; color: rgba(0,0,0,.25); font-weight: 300; }
@keyframes lb-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.bh-cta--inline-article {
  max-width: 680px; background: var(--lb-badge-red-bg); border-left: 3px solid var(--lb-red);
  border-radius: 0 12px 12px 0; padding: 16px 20px; flex-direction: row; align-items: center;
  justify-content: space-between; text-align: left; gap: 20px;
}
.bh-cta--inline-article .ia-title { font-size: 15px; font-weight: 700; color: var(--lb-red); margin-bottom: 3px; }
.bh-cta--inline-article .ia-desc { font-size: 15px; color: var(--lb-medium); }

.bh-cta--emotional-gift { background: var(--lb-bg); text-align: left; align-items: flex-start; }
.bh-cta--emotional-gift .bh-eyebrow { color: var(--lb-gold-dark); }
.bh-cta--emotional-gift .cta-row { justify-content: flex-start; }

/* Image out-of-bounds — ảnh sản phẩm "tràn" khỏi khung card. Markup:
   <div class="pop-img-wrap pop-img--top-right"><div class="card">...</div>
   <div class="pop-img" style="background-image:url(...)"></div></div> */
.pop-img-wrap { position: relative; overflow: visible; }
.pop-img { position: absolute; z-index: 2; background-size: cover; background-position: center; border-radius: 50% 46% 54% 44% / 48% 52% 48% 52%; filter: drop-shadow(0 8px 20px rgba(0,0,0,.16)); outline: 1px solid rgba(210,190,155,.55); outline-offset: 3px; }
.pop-img-wrap.pop-img--top-right { padding-top: 44px; }
.pop-img-wrap.pop-img--top-right .pop-img { width: 110px; height: 110px; top: 0; right: 6px; }
.pop-img-wrap.pop-img--top-center { padding-top: 52px; }
.pop-img-wrap.pop-img--top-center .pop-img { width: 100px; height: 108px; top: 0; left: 50%; transform: translateX(-50%); }
.pop-img-wrap.pop-img--right-banner .pop-img { width: 148px; height: 148px; right: -18px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   CỬA HÀNG — panel theo category → section con theo dòng món (merged line-head redesign)
   ============================================================ */
.cat-panel { display: block; margin-top: 18px; }
.cat-panel[hidden] { display: none; } /* Ưu tiên hơn .cat-panel ở trên (cùng độ đặc hiệu, đứng sau) — nếu không, thuộc tính hidden do server render bị vô hiệu hoá, khiến các category panel hiện chồng lên nhau lúc tải trang. */
.line-section { margin: 0 0 30px; }
.line-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  background: var(--lb-cream);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lb-terracotta);
  margin: 0;
}
.line-head::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lb-terracotta);
  flex-shrink: 0;
}
.line-desc {
  font-size: 15px;
  color: var(--lb-gray);
  margin: -4px 0 12px;
  line-height: 1.5;
}

/* Ẩn tiêu đề dòng món (tên + mô tả) trên trang Cửa hàng — chỉ ẩn hiển thị, giữ nguyên dữ liệu.
   Bỏ khối này nếu muốn hiện lại tiêu đề dòng món. */
.shop-panels .line-head,
.shop-panels .line-desc {
  display: none;
}

/* ============================================================
   CHẤT LIỆU GIẤY — texture grain cho các khối "thư tay"
   ============================================================ */
.letter-panel, .gift-block, .letter-paper {
  background-image: var(--paper-grain);
  background-color: var(--lb-on-dark);
  background-blend-mode: multiply;
}
.site-foot {
  background-image: var(--paper-grain);
  background-blend-mode: multiply;
}

/* ============================================================
   ICON SVG (lb_icon) — kích thước & màu theo token
   ============================================================ */
.lb-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.lb-icon-lg { width: 26px; height: 26px; }
.wc-icon .lb-icon, .pf-icon .lb-icon { width: 24px; height: 24px; }
.empty .e-icon .lb-icon, .err-wrap .e-bowl .lb-icon { width: 48px; height: 48px; color: var(--lb-faint); }
.ph .ph-icon .lb-icon { width: 30px; height: 30px; }

/* ============================================================
   FAQ / LOOPING (trang chủ) — xử lý băn khoăn trước khi đặt
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(26,26,26,.08); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color var(--t-micro) var(--ease-brand); }
.faq-item[open] { border: 1.5px solid rgba(194,38,41,.2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; color: var(--lb-ink);
}
.faq-item[open] .faq-q { font-weight: 600; color: var(--lb-red); }
.faq-q::-webkit-details-marker { display: none; }
.faq-mark { flex: none; color: var(--lb-red); transition: transform .18s ease; }
.faq-mark .lb-icon { transform: rotate(90deg); }
.faq-item[open] .faq-mark { transform: rotate(90deg); }
.faq-a { padding: 16px 18px 16px; color: var(--text-mid); font-size: 16px; line-height: 1.75; border-top: 1px solid rgba(194,38,41,.1); margin-top: 0; }

/* ============================================================
   DESIGN SYSTEM v1.0 — biến thể nút & hover còn thiếu
   (.btn-primary/.btn-ghost/.chip/.pcard đã có hover tương đương
   .btn-pri/.btn-sec/.nav-chip/.card-hover trong file gốc — không lặp lại)
   ============================================================ */
.btn-outline-red {
  background: transparent; color: var(--lb-red); border: 2px solid var(--lb-red);
  transition: background var(--t-fast) var(--ease-slow), color var(--t-fast) var(--ease-slow), border-color var(--t-fast) var(--ease-slow);
}
.btn-outline-red:hover { background: rgba(153,0,0,.06); color: var(--lb-primary-deep); border-color: var(--lb-primary-deep); }

.card-hover-flat { transition: box-shadow var(--t-card) var(--ease-brand); }
.card-hover-flat:hover { box-shadow: var(--shadow-pop); }

@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.anim-fade-in { animation: lb-fade-in 400ms ease-in-out both; }
.anim-fade-up { animation: lb-fade-up 200ms ease-out both; }

/* ============================================================
   GIẢM CHUYỂN ĐỘNG (prefers-reduced-motion)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   GALLERY BLOCK — Album Niềm Tin
   ============================================================ */
.bh-gallery { padding: var(--sp-9) 0; }

.bh-gallery__header { text-align: center; margin-bottom: 2rem; }
.bh-gallery__header h2 { margin-top: .25rem; }

.bh-gallery__cols {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .bh-gallery__cols { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.bh-album {
  cursor: pointer;
  text-align: center;
  transition: transform .2s;
}
.bh-album:hover { transform: translateY(-3px); }
.bh-album:focus-visible { outline: 2px solid var(--lb-red); outline-offset: 4px; border-radius: 8px; }

.bh-album__stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: .75rem;
}

.bh-album__thumb {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .2s;
}
.bh-album__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bh-album__thumb--0 { transform: rotate(-6deg) scale(.88); z-index: 1; }
.bh-album__thumb--1 { transform: rotate(-3deg) scale(.93); z-index: 2; }
.bh-album__thumb--2 { transform: rotate( 2deg) scale(.96); z-index: 3; }
.bh-album__thumb--3 { transform: rotate( 0deg) scale(1);   z-index: 4; }

.bh-album:hover .bh-album__thumb--0 { transform: rotate(-8deg) scale(.86) translateY(4px); }
.bh-album:hover .bh-album__thumb--1 { transform: rotate(-4deg) scale(.91) translateY(2px); }
.bh-album:hover .bh-album__thumb--2 { transform: rotate( 3deg) scale(.95); }
.bh-album:hover .bh-album__thumb--3 { transform: rotate( 0deg) scale(1.02); }

.bh-album__more {
  position: absolute;
  bottom: .5rem; right: .5rem;
  z-index: 5;
  background: rgba(0,0,0,.55);
  color: var(--lb-on-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.bh-album__label { font-weight: 600; font-size: 16px; margin: 0 0 2px; color: var(--lb-ink); }
.bh-album__count { font-size: 15px; color: var(--lb-gray); margin: 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.bh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.bh-lightbox[hidden] { display: none; }

.bh-lightbox__stage { max-width: min(90vw, 1080px); max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.bh-lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; }

.bh-lightbox__close,
.bh-lightbox__prev,
.bh-lightbox__next {
  position: fixed;
  background: rgba(243,238,229,.15);
  border: none;
  color: var(--lb-on-dark);
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.bh-lightbox__close:hover,
.bh-lightbox__prev:hover,
.bh-lightbox__next:hover { background: rgba(243,238,229,.3); }

.bh-lightbox__close { top: 1rem; right: 1rem; }
.bh-lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); font-size: 28px; }
.bh-lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 28px; }
.bh-lightbox__counter { color: rgba(243,238,229,.7); font-size: 15px; margin-top: .75rem; text-align: center; }

/* ============================================================
   PHASE 7 — UX / A11Y — Target 30–64 tuổi
   Áp dụng toàn bộ theme, mọi block, mọi trang.
   ============================================================ */

/* 7a — Contrast: --lb-faint var(--lb-gray) → var(--lb-gray) (~6.5:1 trên nền trắng) */
:root { --lb-faint: var(--lb-gray); }

/* 7a — Typography body */
body { font-size: max(16px, 1rem); line-height: 1.7; }

/* 7b — Touch targets ≥ 44px */
.chip            { min-height: 44px; padding: 9px 18px; } /* giá trị đã kốt tại block .chip gốc ở trên */
.btn             { min-height: 48px; } /* padding đã cập nhật vào block gốc: 14px 24px */
.btn-sm          { min-height: 40px; }
.btn-text        { min-height: auto; }
/* faq-q: chỉ giữ min-height, không override padding ngang */
.faq-q, .faq-question { min-height: 48px; }
.icon-btn        { min-width: 44px; min-height: 44px; }
.qty-wrap button, .quantity button,
.cart-item .ci-qty button,
.wc-block-components-quantity-selector__button { min-width: 44px; min-height: 44px; }

/* 7b — Focus visible rõ ràng, outline không bị cắt bởi overflow */
:focus-visible { outline: 2px solid var(--lb-red); outline-offset: 3px; }

/* 7c — Section spacing thoáng hơn */
.bh-sec { padding-top: 64px; }

/* 7c — pcard body */
.pcard-body { padding: 14px 14px 12px; }

/* 7c — proof grid icon minimum size */
.proof-icon, .proof .icon { min-width: 32px; min-height: 32px; }

/* 7c — quote line-height */
.quote-item, .q-card { line-height: 1.75; }

/* 7d — cat-tab ẩn khi JS set hidden attribute */
[data-cat-tabs] .cat-tab[hidden] { display: none; }

/* cat-tabs redesign đã được merge vào block gốc ở trên */

/* line-head đã được merge vào block gốc ở trên */

/* ============================================================
   PERSONA BLOCK REDESIGN — chip row và trạng thái
   ============================================================ */
/* persona-block / persona-label / persona-row đã merge vào block gốc ở trên */

/* Chip persona — pill outline, nhỏ hơn cat-tab */
.persona-row .chip {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--lb-wash);
  border: 1.5px solid var(--lb-line);
  color: var(--lb-gray);
}
.persona-row .chip.is-on {
  background: var(--lb-warm-dark);
  border-color: var(--lb-warm-dark);
  color: var(--lb-on-dark);
  box-shadow: 0 2px 8px rgba(107,49,43,.22);
}

/* pcard redesign đã được merge vào block gốc ở trên */

/* ============================================================
   P-DESC (trang sản phẩm) — accordion ấm, nhất quán
   ============================================================ */
.p-desc details {
  background: var(--lb-wash);
  border-radius: var(--radius);
  border: 1.5px solid var(--lb-line);
}
.p-desc details[open] {
  border-color: rgba(153,0,0,.35);
  background: var(--lb-bg);
}
.p-desc summary {
  padding: 16px 18px;
  font-size: 16px;
}
.p-desc details[open] summary {
  color: var(--lb-terracotta);
  border-bottom: 1px solid rgba(176,94,63,.15);
}
.p-desc summary .chev { color: var(--lb-terracotta); }
.p-desc .d-body {
  padding: 16px 18px 20px;
  font-size: 15px;
}

/* ============================================================
   LOGO FALLBACK ICON (Item 5)
   ============================================================ */
.logo .logo-mark .lb-icon { width: 22px; height: 22px; }

/* ============================================================
   CART EMPTY STATE (Item 7)
   ============================================================ */
.cart-panel .cp-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--lb-light);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cart-panel .cp-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--lb-wash);
  display: flex; align-items: center; justify-content: center;
  color: var(--lb-faint);
}
.cart-panel .cp-empty-icon .lb-icon { width: 28px; height: 28px; }
.cart-panel .cp-empty p { margin: 0; line-height: 1.5; }

/* ============================================================
   SOCIAL LINKS FOOTER (Item 12)
   ============================================================ */
.f-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.f-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--lb-on-dark);
  transition: opacity .15s ease, transform .12s ease;
}
.f-social-btn:hover { opacity: .85; transform: translateY(-2px); }
.f-social-fb   { background: var(--lb-ink); }
.f-social-zalo { background: var(--lb-warm-dark); letter-spacing: -.3px; font-size: 12px; }

/* ============================================================
   CRO COMPONENTS — Sprint 2–4
   ============================================================ */

/* Bestseller badge */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--lb-red);
  color: var(--lb-on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--radius-lg);
  text-transform: uppercase;
}
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.product-badges:empty { display: none; }

/* Pull-quote testimonial */
.product-pull-quote {
  margin: 0 0 14px;
  padding: 12px 16px;
  background: var(--lb-cream);
  border-left: 3px solid var(--lb-terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.product-pull-quote p { margin: 0 0 4px; font-style: italic; font-size: 16px; line-height: 1.5; }
.product-pull-quote cite { font-style: normal; font-size: 15px; color: var(--lb-gray); }

/* Pain intro / Future vision */
.p-pain-intro,
.p-future-vision { font-size: 16px; line-height: 1.7; margin-bottom: 10px; }
.p-future-vision { color: var(--lb-olive); }

/* Buybar trust list */
.buybar-trust { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.buybar-trust li { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--lb-gray); }
.buybar-trust .lb-icon { width: 14px; height: 14px; color: var(--lb-olive); flex-shrink: 0; }

/* Payment icons row */
.payment-icons-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.payment-icons-row__label { font-size: 15px; color: var(--lb-gray); margin-right: 2px; }
.payment-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; border: 1px solid var(--lb-line); border-radius: 6px;
  font-size: 12px; font-weight: 600; background: var(--lb-page); white-space: nowrap;
}

/* Zalo floating button — v3.0: bỏ xanh Zalo #0068FF (màu ngoài hệ, và nó
   đang là vật thể nổi nhất màn hero, cướp sự chú ý của CTA đỏ).
   Nay dùng đỏ triện #990000 để KHÔNG cạnh tranh với nút primary #C22629. */
.zalo-float {
  position: fixed; z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px;
  background: var(--lb-warm-dark); color: var(--lb-on-dark);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(153,0,0,.30);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  max-width: calc(100vw - 32px);
}
.zalo-float--bottom-right { bottom: 20px; right: 20px; }
.zalo-float--bottom-left  { bottom: 20px; left: 20px; }
.zalo-float:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(153,0,0,.42); }
.zalo-float__label { font-family: var(--font-ui); font-size: 15px; font-weight: 600; white-space: nowrap; }
/* Né thanh bottom-nav. Ngưỡng phải khớp 899px của .bottom-nav — trước đây để
   480px nên ở khổ 481–899px nút Zalo đè lên thanh đáy. 96px đủ hở >12px kể cả
   khi thanh cao thêm do vùng chạm 44px. */
@media (max-width: 899px) {
  .zalo-float--bottom-right { bottom: 96px; right: 12px; }
  .zalo-float--bottom-left  { bottom: 96px; left: 12px; }
}
@media (max-width: 480px) {
  .zalo-float { padding: 10px; }
  .zalo-float__label { display: none; }
}

/* Stats bar */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding: 16px 20px; background: var(--lb-cream);
  border-radius: var(--radius); margin: 16px 0;
}
.stats-bar__item { display: flex; align-items: center; gap: 7px; }
.stats-bar__icon { width: 20px; height: 20px; color: var(--lb-terracotta); flex-shrink: 0; }
.stats-bar__value { font-size: 16px; font-weight: 700; }
.stats-bar__label { font-size: 15px; color: var(--lb-gray); }

/* FAQ accordion (trang sản phẩm) — card trắng bo góc, đồng bộ với .product-longdesc.
   Scope dưới .product-faq để KHÔNG dính style .faq-item của FAQ trang chủ. */
.product-faq { margin-top: 28px; }
.product-faq__title { font-size: 18px; font-weight: 700; color: var(--lb-ink); margin-bottom: 14px; }
.product-faq .faq-item {
  background: var(--lb-bg);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.product-faq .faq-item:last-child { margin-bottom: 0; }
.product-faq .faq-item[open] { border: 1.5px solid rgba(153,0,0,.35); }
.product-faq .faq-item__question {
  padding: 16px 18px; font-size: 16px; font-weight: 500; color: var(--lb-ink);
  cursor: pointer; list-style: none; user-select: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.product-faq .faq-item[open] .faq-item__question {
  color: var(--lb-terracotta); font-weight: 600;
  border-bottom: 1px solid rgba(176,94,63,.15);
}
.product-faq .faq-item__question::-webkit-details-marker { display: none; }
.product-faq .faq-item__question::after {
  content: '+'; flex: none; font-size: 22px; font-weight: 300;
  color: var(--lb-terracotta); transition: transform .2s ease;
}
.product-faq .faq-item[open] .faq-item__question::after { transform: rotate(45deg); }
.product-faq .faq-item__answer { padding: 14px 18px 18px; font-size: 16px; line-height: 1.75; color: var(--lb-gray); }

/* Mobile: giảm padding card mô tả cho vừa màn hình */
@media (max-width: 600px) {
  .product-longdesc { padding: 20px 18px 22px; border-radius: 16px; }
}

/* Checkout trust bar */
.checkout-trust-bar {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  padding: 12px 16px; background: var(--lb-cream);
  border-radius: var(--radius-sm); margin-bottom: 16px;
}
.checkout-trust-bar__item { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.checkout-trust-bar__item .lb-icon { width: 15px; height: 15px; color: var(--lb-olive); }

/* Delivery estimator */
.delivery-estimator {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--lb-olive) 10%, transparent);
  border-radius: var(--radius-sm);
  font-size: 15px; margin-top: 12px;
}
.delivery-estimator .lb-icon { width: 16px; height: 16px; color: var(--lb-olive); flex-shrink: 0; }

/* Cart empty suggestions */
.cart-empty-suggest { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--lb-line); width: 100%; }
.suggest-label { font-size: 15px; font-weight: 600; color: var(--lb-gray); margin-bottom: 12px; letter-spacing: .04em; }

/* Thank You page */
.ty-wrap { display: flex; flex-direction: column; gap: 14px; }
.ty-hero { text-align: center; padding: 24px 16px 16px; }
.ty-hero h1 { font-size: clamp(18px, 4vw, 22px); margin: 10px 0 6px; }
.ty-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: var(--lb-olive); border-radius: 50%; color: var(--lb-on-dark); margin: 0 auto 8px;
}
.ty-tick .lb-icon-lg { width: 26px; height: 26px; }
.ty-code { font-size: 15px; color: var(--lb-gray); margin: 0; }
.ty-subtext { font-size: 16px; color: var(--lb-gray); margin: 6px 0 0; }
.ty-section-head { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.ty-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ty-share-row .btn { flex: 1; min-width: 100px; justify-content: center; }
.coupon-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coupon-code {
  font-family: monospace; font-size: 18px; font-weight: 700;
  letter-spacing: .12em; padding: 8px 16px;
  background: var(--lb-cream); border: 2px dashed var(--lb-terracotta);
  border-radius: var(--radius-sm); color: var(--lb-terracotta);
  flex: 1; text-align: center; min-width: 140px;
}

/* ============================================================
   PERSONA NAV — "Chọn theo người thương" (block lacbuu/persona-nav)
   Điều hướng theo NGƯỜI NHẬN. Đặt ngay dưới hero ở trang chủ.
   ============================================================ */
.persona-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px)  { .persona-nav { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .persona-nav { grid-template-columns: repeat(5, 1fr); } }

.persona-nav__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 16px;
  background: var(--lb-bg);
  border: 1px solid var(--lb-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease-slow),
              box-shadow var(--t-fast) var(--ease-slow),
              border-color var(--t-fast) var(--ease-slow);
}
.persona-nav__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
  border-color: var(--lb-red);
}
.persona-nav__icon { color: var(--lb-red); display: flex; }
.persona-nav__icon .lb-icon { width: 20px; height: 20px; }
.persona-nav__label {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--lb-ink);
  line-height: 1.3;
}
.persona-nav__sub {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--lb-gray);
  line-height: 1.4;
}
/* Mũi tên xuất hiện khi hover — gợi ý đây là đường dẫn, không phải nhãn */
.persona-nav__card::after {
  content: "→";
  margin-top: auto;
  padding-top: 8px;
  font-size: 16px;
  color: var(--lb-red);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast) var(--ease-slow), transform var(--t-fast) var(--ease-slow);
}
.persona-nav__card:hover::after { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .persona-nav__card,
  .persona-nav__card::after { transition: none; }
  .persona-nav__card:hover { transform: none; }
}
