/*
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.67
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) · #FFFFFF (card, chủ dự án chốt 2026-10-05; Bible gốc #F3EEE5) · #F0E9DE (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:  #F0E9DE;
  --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: #F0E9DE; /* 2026-10-07 chủ dự án duyệt mẫu B, sáng hơn #E8DFCF cũ */
  /* --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) */
  /* 2026-10-05: chủ dự án chốt nền card TRẮNG + bóng nhẹ — #F3EEE5 gần như trùng nền trang #F6F2EA (1.03:1),
     khối nội dung không nổi. Ngoại lệ có chủ đích so với hệ 9 màu Brand Bible. */
  --lb-bg:    #FFFFFF;
  --lb-wash:  #F0E9DE;      /* 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:     #F0E9DE; /* v3.0 card-dark-bg / pill-inactive */

  /* Design System v1.0 — bổ sung sand + primary-deep (không thay token cũ) */
  --lb-sand:        #F0E9DE; /* 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 */
  /* 2026-10-05: chủ dự án chốt 1 font Be Vietnam Pro cho toàn site. Giữ 3 token theo VAI TRÒ để sau này tách lại dễ. */
  --font-heading: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ui:      'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Thang chữ (2026-10-05) — audit đo 49 cỡ khác nhau trên site; mọi font-size dùng các bậc này.
     Chữ thân 16px (chủ dự án chốt). Heading hạ 1 nấc khi đổi sang Be Vietnam Pro (chữ to, đậm hơn Cormorant). */
  --fs-xs: 13px;   /* eyebrow, badge, chú thích */
  --fs-sm: 15px;   /* chữ phụ: mô tả thẻ, nhãn, footer */
  --fs-base: 16px; /* chữ thân, ô nhập, nút */
  --fs-md: 18px;   /* lead, tiêu đề thẻ nhỏ */
  --fs-lg: 20px;   /* tiêu đề thẻ, tiêu đề panel, h4 */
  --fs-h3: clamp(20px, 0.4vw + 18px, 22px);
  --fs-h2: clamp(23px, 1vw + 19px, 28px);
  --fs-h1: clamp(27px, 1.8vw + 20px, 36px);
  --fs-display: clamp(30px, 2.8vw + 19px, 46px); /* riêng hero trang chủ */

  /* 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: #F0E9DE; /* 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-out: cubic-bezier(.23,1,.32,1); /* ease-out mạnh cho tương tác UI (bộ .claude/commands/animation) */
  --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, .screen-reader-text {
  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
   ============================================================ */
/* Rule theo THẺ (body, p, h1-h3, img, a, input…) nằm trong @layer base: class Tailwind (@layer utilities)
   trên template mới thắng được. Trước 2026-10-05 các rule này không-layer nên luôn thắng utility —
   text-[19px] trên h2, mt-2/mb-3 trên p… bị bỏ qua im lặng (h2 to hơn h1 ở Liên hệ/Thanh toán). */
@layer base {
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  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 */

/* Heading Be Vietnam Pro: đậm vừa, khít chữ nhẹ cho cỡ lớn. */
@layer base {
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: var(--fs-h1); line-height: 1.25; letter-spacing: -.015em; }
h2 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.3; letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
h4 { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; margin: 0; }
}

/* 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: var(--fs-base);
  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-soft { background: var(--lb-bg); color: var(--lb-red); }
.btn-soft:hover { background: var(--lb-wash); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; /* A11Y-05 */ padding: 8px 16px; font-size: var(--fs-base); 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) */

.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: var(--fs-base);
  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: var(--fs-sm);
  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: var(--fs-xs);
  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: var(--fs-sm); 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: var(--fs-sm);
  font-weight: 500;
  color: var(--lb-green);
  /* UX-01: chip dài (claim PDP ~435px) nowrap làm tràn ngang mobile → cho xuống dòng trong khung */
  max-width: 100%;
  white-space: normal;
}
.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: var(--fs-sm); font-weight: 600; color: var(--lb-ink); }
.field .hint { font-size: var(--fs-sm); 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: var(--fs-base);
  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 */

/* Time pills (giờ giao mong muốn) — tái dùng pattern .chip */

/* 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; }
/* A11Y-02: input ẩn (opacity 0) nên vòng focus phải vẽ lên thẻ cha khi đi bằng bàn phím.
   :has(:focus-visible) để click chuột không hiện viền; trình duyệt chưa có :has dùng :focus-within. */
.opt:has(input:focus-visible),
.review-form .rf-stars label:has(input:focus-visible) { outline: 2px solid var(--lb-red); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .opt:focus-within { outline: 2px solid var(--lb-red); outline-offset: 2px; }
}
.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.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 { display: block; font-weight: 600; font-size: var(--fs-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .opt-body .opt-fee { display: block; line-height: 1.3; }
.opt .opt-sub { font-size: var(--fs-sm); color: var(--lb-gray); }
.opt .opt-fee { font-size: var(--fs-sm); 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); }
.switch input:focus-visible + .track { outline: 2px solid var(--lb-red); outline-offset: 2px; }

/* Quantity stepper — M1-g (2026-10-07). WC gắn class "qty" cho cả <input>, nên khung chỉ nhắm
   phần tử không phải input; trước đây ô nhập cũng ăn viền + bo góc → khung lồng khung. */
.qty:not(input) {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 50px;
  padding: 2px;
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  background: var(--lb-bg);
}
.qty button {
  width: 44px; height: 44px; flex-shrink: 0;
  border: none; border-radius: 50%; background: none;
  font-size: var(--fs-lg); line-height: 1; color: var(--lb-ink);
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.qty button:hover { background: var(--lb-cream); }
.qty button:active { transform: scale(.9); }
.qty input[type="number"] {
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lb-ink);
  -moz-appearance: textfield; appearance: textfield;
}
.qty input[type="number"]::-webkit-outer-spin-button,
.qty input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type="number"]:focus-visible { outline: 2px solid var(--lb-active); outline-offset: 0; border-radius: 8px; }
.qty .qty-n { min-width: 36px; text-align: center; font-weight: 700; font-size: var(--fs-base); }
.qty.qty-sm button { font-size: var(--fs-md); }
/* UX-25: iOS Safari zoom khi focus input < 16px. Đè text-[15px] trong woocommerce/global/quantity-input.php
   (utilities.css nằm trong @layer nên rule không-layer này thắng). */
.qty input[type="number"] { font-size: var(--fs-base); }

/* ============================================================
   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: var(--fs-xs); 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: var(--fs-base); 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: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-red);
}
.page-hero-copy h1 { font-size: var(--fs-h1); line-height: 1.18; margin: 0; }
.page-hero-desc { font-size: var(--fs-base); 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) ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* minmax(0,1fr): 1fr không cho cột co dưới bề rộng nội dung → thẻ tràn khi cột cha hẹp (giỏ ở 1024px, 2026-10-08) */
@media (min-width: 700px)  { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1020px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1020px) { .pgrid.pgrid--grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Gợi ý món trong giỏ nằm ở cột chính hẹp → 2×2 */
@media (min-width: 700px)  { .cart-upsell .pgrid { grid-template-columns: repeat(2, minmax(0, 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: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lb-faint); /* M1-e: như .rc-kicker; đỏ để dành cho giá + nút */
}
.pcard h3 { font-size: var(--fs-lg); 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: var(--fs-sm); 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: var(--fs-base); 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: var(--fs-lg);
  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: var(--fs-h2); }
@media (min-width: 760px) { .sec-head h2 { font-size: var(--fs-h2); } }
.sec-head .more { font-size: var(--fs-base); 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: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-sm);
  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: var(--fs-base);
  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: var(--fs-md); color: var(--lb-ink); }
.logo .logo-tag { font-size: var(--fs-xs); color: var(--lb-faint); letter-spacing: .02em; }

.nav-main { display: none; }
@media (min-width: 900px) { .nav-main { display: block; } }
/* M1-l (2026-10-07): nhãn luôn 1 dòng; đang ở / hover = gạch chân trượt từ giữa (ease-out < 200ms),
   bỏ khối nền. 900–1099px chữ 15px + đệm hẹp để 5 mục vừa cạnh logo + 3 nút. */
.nav-main .nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-main .nav-menu li { margin: 0; }
.nav-main a {
  position: relative;
  display: flex; align-items: center; min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--lb-gray);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}
@media (min-width: 1100px) { .nav-main a { padding: 0 14px; font-size: var(--fs-base); } }
.nav-main a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px;
  border-radius: 2px; background: currentColor;
  transform: scaleX(0); transition: transform 200ms var(--ease-out);
}
@media (min-width: 1100px) { .nav-main a::after { left: 14px; right: 14px; } }
.nav-main a:hover { color: var(--lb-ink); }
.nav-main a:hover::after { transform: scaleX(.5); }
.nav-main a:focus-visible { outline: 2px solid var(--lb-active); outline-offset: 2px; }
.nav-main a.is-here,
.nav-main .current-menu-item > a,
.nav-main .current-menu-ancestor > a { color: var(--lb-active); font-weight: 600; }
.nav-main a.is-here::after,
.nav-main .current-menu-item > a::after,
.nav-main .current-menu-ancestor > a::after { transform: scaleX(1); }

.head-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--lb-ink);
  font-size: 18px;
  display: grid; place-items: center;
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--lb-cream); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lb-red);
  color: var(--lb-on-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  display: grid; place-items: center;
}
.icon-btn-call { color: var(--lb-red); }
@media (min-width: 1080px) { .icon-btn-call { display: none; } }

/* ============================================================
   BOTTOM NAV (mobile) — thay cho drawer cũ. inc/parts/bottom-nav.php
   ============================================================ */
/* M1-d (2026-10-07): 4 ô đều nhau + nút giỏ tròn nổi giữa. Mục đang ở = viên nền sau icon
   (kiểu Material 3), không tô cả ô. Chuyển động theo .claude/commands/animation: ease-out mạnh,
   < 200ms, bấm thu nhỏ 0.96, tắt khi prefers-reduced-motion. */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  align-items: stretch;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid rgba(182,170,152,.45);
  box-shadow: 0 -6px 24px rgba(28,26,24,.06);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
@media (max-width: 899px) { .bottom-nav { display: flex; } body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } }
.bottom-nav .bn-item {
  flex: 1 1 0; min-width: 0;
  min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 4px 2px;
  color: var(--lb-gray);
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms var(--ease-out);
}
.bottom-nav .bn-ico {
  width: 52px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  transition: background-color 200ms var(--ease-out), transform 140ms var(--ease-out);
}
.bottom-nav .bn-item svg { width: 22px; height: 22px; stroke: currentColor; }
.bottom-nav .bn-label { white-space: nowrap; }
.bottom-nav .bn-item.is-on { color: var(--lb-active); font-weight: 700; }
.bottom-nav .bn-item.is-on .bn-ico { background: var(--lb-badge-red-bg); }
.bottom-nav .bn-item:active .bn-ico { transform: scale(.92); }
.bottom-nav .bn-fab {
  flex: 0 0 64px;
  display: flex; align-items: flex-start; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .bn-fab-btn {
  position: relative;
  width: 52px; height: 52px; margin-top: -18px;
  border-radius: 50%;
  background: var(--lb-red); color: var(--lb-on-dark);
  display: grid; place-items: center;
  border: 3px solid var(--lb-bg);
  box-shadow: 0 6px 18px var(--lb-glow);
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}
.bottom-nav .bn-fab-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.bottom-nav .bn-fab:active .bn-fab-btn { transform: scale(.94); background: var(--lb-red-dark); }
.bottom-nav .bn-fab .count {
  position: absolute; top: -4px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; border: 2px solid var(--lb-bg);
  background: var(--lb-ink); color: var(--lb-on-dark);
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.count[data-n="0"] { display: none; }

/* ============================================================
   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: var(--fs-lg); }
.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; }
/* 2026-10-08: ảnh + tên bấm mở trang món, ô số lượng ngay trong panel */
.cart-panel .cp-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; transition: opacity 200ms var(--ease-out); }
.cart-panel .cp-item.is-removing { opacity: .4; }
.cart-panel .cp-thumb { display: block; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--lb-cream); }
.cart-panel .cp-item img { width: 100%; height: 100%; object-fit: cover; }
.cart-panel .cp-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-panel .cp-item .cp-name { font-size: var(--fs-base); font-weight: 600; line-height: 1.35; color: var(--lb-ink); text-decoration: none; }
.cart-panel a.cp-name:hover { color: var(--lb-active); }
.cart-panel a.cp-name { padding-block: 11px; margin-block: -11px; } /* vùng chạm 44px, không đổi bố cục */
.cart-panel .cp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-panel .cp-item .cp-variant { font-size: var(--fs-sm); color: var(--lb-gray); }
.cart-panel .cp-item .cp-price { font-size: var(--fs-base); font-weight: 700; white-space: nowrap; }
.cart-panel .cp-qty .qty-n { min-width: 28px; }
.cart-panel .cp-qty button:disabled { opacity: .5; cursor: default; }
.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: var(--fs-base); margin-bottom: 14px; }
.cart-panel .cp-subtotal b { font-size: var(--fs-lg); }
.cart-panel .cp-empty { padding: 40px 24px; text-align: center; color: var(--lb-gray); font-size: var(--fs-base); }
/* UX-02: khi giỏ mở, các lớp fixed z cao (bottom-nav 200, buybar PDP 201, zalo 9999) nằm trên
   panel (z 91) và che nút "Thanh toán" ở cp-foot. Ẩn chúng (visibility để không nhảy layout). */
body.cart-open .bottom-nav,
body.cart-open .zalo-float,
body.cart-open.single-product .buybar-sticky { visibility: hidden; }

/* ============================================================
   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: repeat(2, minmax(0, 1fr)); gap: 36px; } }
@media (min-width: 1020px) { .site-foot .f-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-foot .f-h { font-family: var(--font-body); font-size: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-sm); color: var(--lb-faint); }

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

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 6px; }
/* the_posts_pagination() bọc link trong div.nav-links → flex phải đặt ở đây, không thì mỗi nút 1 dòng */
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
/* mid_size 0: tối đa 7 nút (← 1 … 4 … 8 →) = 7x44 + 6x4 = 332px, vừa 1 hàng ở khổ 375 */
/* Chỉ nhắm .page-numbers: nút mũi tên có span con (aria-hidden + sr-only), nhắm mọi span sẽ ra nút lồng nút */
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius); display: grid; place-items: center; font-size: var(--fs-base); 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: var(--fs-base); 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 ---------- */

/* 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: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-red); }
.hero-copy h1 { font-size: var(--fs-h1); }
@media (min-width: 860px) { .hero-copy h1 { font-size: var(--fs-h1); } }
.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: var(--fs-sm); 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); }

/* UX-06: shop-hero mobile — chip cam kết + trạng thái thành dải cuộn ngang, lưới món lên màn đầu */
@media (max-width: 859px) {
  .hero { padding: 8px 0 0; }
  .hero .hero-copy { padding: 14px 0 6px; gap: 10px; align-items: stretch; }
  .hero .kk-row,
  .hero .status-row {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  }
  .hero .kk-row::-webkit-scrollbar,
  .hero .status-row::-webkit-scrollbar { display: none; }
  .hero .kk,
  .hero .status-pill { flex-shrink: 0; white-space: nowrap; }
  .hero .status-row { padding-top: 4px; }
}

/* 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: var(--fs-xs);
  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: var(--fs-sm);
  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);
}

/* ============================================================
   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 h1 { font-size: var(--fs-h1); color: var(--lb-ink); }
@media (min-width: 800px) { .tax-banner h1 { font-size: var(--fs-h1); } }

.tax-banner p { font-size: var(--fs-base); color: var(--lb-gray); opacity: 1; max-width: 420px; }
.tax-banner .ph { border-radius: 0; min-height: 180px; }

/* ============================================================
   SINGLE PRODUCT  (single-product.php)
   ============================================================ */
/* UX-01: khai cột minmax(0,1fr) — grid ẩn cột = auto, bị nội dung nowrap (.opt-title, .opt-fee)
   đẩy rộng hơn màn 360-390px gây tràn ngang. */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 10px; }
.product-info { min-width: 0; overflow-wrap: anywhere; }
@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: var(--fs-sm); 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: var(--fs-base); 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: var(--fs-sm);
  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: var(--fs-sm); font-weight: 600; color: var(--lb-olive); margin: 0; }
.wc-native-cart .woocommerce-variation-availability .out-of-stock { font-size: var(--fs-sm); font-weight: 600; color: var(--lb-red); margin: 0; }
.wc-native-cart .wc-no-matching-variations {
  display: block; font-size: var(--fs-sm); 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. */
/* A11Y-07: trước dùng opacity .45 → chữ 1.75:1. Dùng token nền kem + chữ gray (~5.7:1) */
.wc-native-cart .single_add_to_cart_button.disabled,
.wc-native-cart .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: 1; cursor: not-allowed; box-shadow: none;
  background: var(--lb-bg); color: var(--lb-gray); border: 1px solid var(--lb-line);
}
/* A11Y-07: màu gõ tay trong mô tả SP (#ff0000 = 3.46:1) → giữ nhấn bằng đỏ đậm của brand */
.p-lead [style*="color"],
.p-longdesc-body [style*="color"],
.p-desc [style*="color"] { color: var(--lb-red-dark) !important; }
/* Ô 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: var(--fs-base);
  -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; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: var(--fs-sm); color: var(--lb-gray); }
.p-rating > * { white-space: nowrap; } /* M1-e: mobile trước vỡ "★★★★ / ★", "6 đánh / giá" */
.p-rating .stars { color: var(--lb-gold-dark); font-size: var(--fs-base); 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: var(--fs-sm);
  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()) */

/* A5 — dòng deflect/tư vấn Zalo ở giỏ & checkout */
.assist-line { font-size: var(--fs-sm); 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) {
  /* M1-f (2026-10-08): hiện nhanh hơn — 320ms ease-out, dịch 8px (trước 600ms / 18px) */
  .lb-reveal { opacity: 0; transform: translateY(8px); }
  .lb-reveal.in {
    opacity: 1; transform: none;
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  }
  .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; }
}

/* Reviews */
.reviews-sec { margin-top: 44px; }
.review-grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
/* M1-e (heatmap): mobile 6 thẻ xếp dọc dài ~1.400px → trượt ngang, thẻ 85% cho thấy có thẻ kế tiếp. Giữ đủ chữ. */
@media (max-width: 799px) {
  .review-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; }
  .review-grid::-webkit-scrollbar { display: none; }
  .review-grid > .review-card { flex: 0 0 85%; scroll-snap-align: start; }
}
.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: var(--fs-base); letter-spacing: 1px; }
.review-card .rv-text { font-size: var(--fs-sm); color: var(--lb-gray); line-height: 1.65; flex: 1; }
.review-card .rv-who { font-size: var(--fs-sm); font-weight: 600; color: var(--lb-ink); }
.review-card .rv-who small { font-size: var(--fs-xs); 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: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-faint); margin: 0; }
.product-info h1 { font-size: var(--fs-h1); line-height: 1.25; margin: 2px 0 0; }
@media (min-width: 900px) { .product-info h1 { font-size: var(--fs-h1); } }
.product-info .p-lead { font-size: var(--fs-base); 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: var(--fs-sm); color: var(--lb-faint); }
.product-info .p-price-row .p-orig { font-size: var(--fs-base); color: var(--lb-gray); 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: var(--fs-xs); font-weight: 700; align-self: center; }

.opt-group { display: grid; grid-template-columns: repeat(2, minmax(0, 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: var(--fs-base); font-weight: 700; }
.opt-group .og-req { font-size: var(--fs-xs); font-weight: 600; color: var(--lb-red); background: var(--lb-bg); border: 1px solid var(--lb-red); padding: 2px 9px; border-radius: 999px; }

@media (min-width: 480px) { .opt-group { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Sản phẩm chọn "1 cột" (meta _lb_opt_layout = stack): mỗi biến thể 1 hàng, giá dạt phải */
.opt-stack .opt-group { grid-template-columns: minmax(0, 1fr); }
.opt-stack .opt-group .opt-body { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }

/* Thư tay panel */

/* Khối "Gửi đến người nhà" 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-bg); 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; }
/* Desktop: thanh mua nằm trong thẻ thông tin món nền trắng → dải mờ cũng trắng (trước là kem của nền trang, lộ 1 dải màu) */
@media (min-width: 900px) { .buybar-sticky { background: linear-gradient(to top, var(--lb-bg) 72%, rgba(255,255,255,0)); } }

/* 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);
  }
  /* 2026-10-09: thanh mua mobile gọn lại (~78px → ~60px): padding 12 → 8, ô số lượng 50 → 44px, nút 48 → 44px (vùng bấm vẫn 44px) */
  body.single-product .buybar-sticky { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 10px; }
  body.single-product .buybar-sticky .qty:not(input) { height: 44px; padding: 0; }
  body.single-product .buybar-sticky .qty button,
  body.single-product .buybar-sticky .qty input[type="number"] { width: 44px; height: 44px; }
  body.single-product .buybar-sticky .btn { min-height: 44px; padding: 10px 18px; }
  body.single-product { padding-bottom: 76px; }
}

/* UX-08: GIỎ + CHECKOUT trên mobile — thanh tổng tiền + nút chốt thay chỗ bottom-nav */
.cart-stickybar { display: none; }
@media (max-width: 899px) {
  body:has(.cart-stickybar) .bottom-nav { display: none; }
  body:has(.cart-stickybar) { padding-bottom: 96px; }
  .cart-stickybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
    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);
  }
  .cart-stickybar .csb-total { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .cart-stickybar .csb-total span { font-size: var(--fs-xs); color: var(--lb-gray); }
  .cart-stickybar .csb-total small { font-size: var(--fs-xs); }
  .cart-stickybar .csb-total b { font-family: var(--font-ui); font-size: var(--fs-lg); color: var(--lb-ink); }
  .cart-stickybar .btn { flex-shrink: 0; }
  body.cart-open .cart-stickybar { visibility: hidden; }
}

/* 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: var(--fs-base); 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: var(--fs-base); }
.p-desc details[open] summary .chev { transform: rotate(180deg); }
.p-desc .d-body { padding: 18px 24px 22px; font-size: var(--fs-base); 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: 0 auto 12px; max-width: 760px; } /* cùng cột với thân bài, canh giữa khung */
.product-longdesc .sec-head h2 { margin: 0; }
.product-longdesc .p-longdesc-body { font-size: var(--fs-base); color: var(--lb-gray); line-height: 1.75; max-width: 760px; margin-inline: auto; }
.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); }
/* Heading trong nội dung nằm dưới tiêu đề khối h2 "Về món này" → nhỏ hơn 1-2 bậc (audit: h3 nội dung 23px > h2 khối 21px) */
.product-longdesc .p-longdesc-body h2 { font-size: var(--fs-h3); }
.product-longdesc .p-longdesc-body h3 { font-size: var(--fs-lg); }
.product-longdesc .p-longdesc-body h4 { font-size: var(--fs-md); }
.p-longdesc-body :is(h2, h3, h4):empty, .p-desc :is(h2, h3, h4):empty { display: none; } /* heading rỗng dán từ editor cũ */
.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: var(--fs-base); line-height: 1.35; }
.cart-item .ci-opts { font-size: var(--fs-sm); color: var(--lb-gray); }
/* M1-m: ghi chú bếp khách nhập ở trang món — in lại ở giỏ / checkout / cảm ơn */
.cart-item .ci-note, .ri-name .ri-note { display: block; margin-top: 2px; font-size: var(--fs-sm); font-style: italic; color: var(--lb-gray); overflow-wrap: anywhere; }
.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: var(--fs-sm); color: var(--lb-faint); padding: 6px 0; min-height: 44px; } /* A11Y-05 */
.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: var(--fs-base); }
.totals-table .tr .tl { color: var(--lb-gray); }
.totals-table .tr.big { font-size: var(--fs-md); 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: var(--fs-sm); font-weight: 700; display: grid; place-items: center; }
.co-section .cs-title { font-size: var(--fs-base); 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: var(--fs-base); }
.gift-toggle .gt-sub { font-size: var(--fs-sm); color: var(--lb-gray); }

.review-item { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-base); padding: 9px 0; }
.review-item .ri-name { color: var(--lb-ink); }
.review-item .ri-name small { display: block; color: var(--lb-faint); font-size: var(--fs-sm); }
.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: var(--fs-h1); }
.ty-hero .ty-code { font-size: var(--fs-base); color: var(--lb-gray); }
.ty-hero .ty-code b { color: var(--lb-active); font-size: var(--fs-base); 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: var(--fs-sm); 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: var(--fs-base); 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.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); }

/* ============================================================
   SEARCH  (search.php)
   ============================================================ */
.search-hero { padding: 30px 0 8px; max-width: 640px; }
.search-hero h1 { font-size: var(--fs-h1); 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: var(--fs-h3); }
.empty p { font-size: var(--fs-base); 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:not(.post-feature) > a { display: block; aspect-ratio: 16 / 9; overflow: hidden; } /* N6: ảnh bài cao thấp khác nhau làm lệch hàng thẻ */
.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: var(--fs-sm); color: var(--lb-faint); }
.post-card h3 { font-size: var(--fs-md); line-height: 1.35; }
.post-card h3 a:hover { color: var(--lb-terracotta); }
.post-card .pc-excerpt { font-size: var(--fs-sm); 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: var(--fs-h3); }
}

/* ============================================================
   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 > .prose, .prose-wrap > .post-feature-img, .prose-wrap > .post-shop, .prose-wrap > nav { max-width: 720px; margin-left: auto; margin-right: auto; }
/* Trang (page.php): chữ chạy hết cột 720px cho thẳng mép với bảng và tiêu đề */
.prose-wrap > .prose p { max-width: none; }

/* ---------- 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: var(--fs-base); 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: var(--fs-h2); }
.post-shop .ps-sub { font-size: var(--fs-base); 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: var(--fs-h1); }
@media (min-width: 760px) { .prose-head h1 { font-size: var(--fs-h1); } }
.prose-head .pm { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: var(--fs-sm); 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: var(--fs-sm); font-weight: 700; display: grid; place-items: center; }
/* M1-e (heatmap bài viết): breadcrumb không lặp nguyên tiêu đề 2 dòng ngay trên H1 */
.prose-head .crumbs { flex-wrap: nowrap; min-width: 0; }
.prose-head .crumbs > :not(.here) { flex: none; }
.prose-head .crumbs .here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.post-author { max-width: 720px; margin: 24px auto 0; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--lb-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.post-author .avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--lb-cream); color: var(--lb-terracotta); font-weight: 700; display: grid; place-items: center; }
.post-author .pa-name { font-weight: 600; color: var(--lb-ink); margin: 0 0 4px; }
.post-author .pa-bio { font-size: var(--fs-sm); color: var(--lb-gray); line-height: 1.6; margin: 0; }

.prose { font-size: var(--fs-base); line-height: 1.85; color: var(--lb-ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-h2); margin-top: 1.7em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.5em; }
.prose .lead { font-size: var(--fs-md); 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: var(--fs-md); color: var(--lb-ink); font-style: italic; }
.prose figure { margin: 1.6em 0; }
.prose figure .ph { border-radius: var(--radius); }
.prose figcaption { font-size: var(--fs-sm); 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: var(--fs-base); 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: var(--fs-base);
  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: var(--fs-xs);
  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: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-h3); 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: var(--fs-sm); font-weight: 700; display: grid; place-items: center; }
.comment .c-name { font-weight: 600; font-size: var(--fs-base); }
.comment .c-date { font-size: var(--fs-sm); color: var(--lb-faint); }
.comment .c-text { font-size: var(--fs-base); color: var(--lb-gray); margin-top: 5px; line-height: 1.65; }
.comment .c-reply { font-size: var(--fs-sm); 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: var(--fs-h1); }
.err-wrap p { font-size: var(--fs-base); 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: var(--fs-base); 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: var(--fs-base); }
.order-row .or-meta { font-size: var(--fs-sm); color: var(--lb-gray); }
.order-row .or-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.order-row .price { font-size: var(--fs-base); }

.status-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-sm); 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: var(--fs-base);
  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: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-red);
}
.bh-hero-copy h1 { font-size: var(--fs-display); line-height: 1.25; color: var(--earth); font-weight: 700; }
.bh-hero-copy .bh-hero-sub { font-size: var(--fs-md); line-height: 1.7; color: var(--text-mid); max-width: 460px; }
.bh-hero-copy .bh-trust-line { font-size: var(--fs-sm); 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 */

.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: var(--fs-md); margin-top: 4px; }
.who-card .wc-sub { font-size: var(--fs-sm); color: var(--lb-gray); }
.who-card .wc-go {
  margin-top: 10px;
  font-size: var(--fs-sm);
  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: var(--fs-h2); font-weight: 600; line-height: 1.3; color: var(--earth); }
.bh-sec-head .sh-sub { font-size: var(--fs-base); 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: var(--fs-sm); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lb-faint); }
.name-cell .nc-mean { font-size: var(--fs-base); 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(16px, 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: var(--fs-sm); 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: var(--fs-base); font-weight: 700; color: var(--earth); }
.proof p { font-size: var(--fs-base); 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-bg);
  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: var(--fs-h2); font-weight: 600; line-height: 1.3; }
.slow-card .sc-sub { font-size: var(--fs-base); 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: var(--fs-lg);
  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: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--lb-faint); opacity: 1; margin-bottom: 3px; }
.slow-step .ss-desc { font-size: var(--fs-sm); 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;
}
/* Layout "photo": ảnh dẫn mắt, chỉ hiện tiêu đề + 1 dòng; mô tả gập trong "Xem thêm".
   Mobile: vuốt ngang; desktop: 4 cột. */
.slow-card.slow-timeline--photo .slow-steps {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: -24px; padding: 0 24px 6px;
}
@media (min-width: 880px) {
  .slow-card.slow-timeline--photo .slow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; overflow: visible; margin-inline: 0; padding: 0; }
}
.slow-card.slow-timeline--photo .slow-step {
  flex: 0 0 78%;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 0;
  background: var(--lb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.slow-timeline--photo .ss-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lb-cream); }
.slow-timeline--photo .ss-media img { width: 100%; height: 100%; object-fit: cover; }
.slow-timeline--photo .ss-num {
  position: absolute; left: 12px; top: 12px;
  min-width: 36px; height: 36px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--lb-bg); color: var(--lb-terracotta);
  font-size: var(--fs-xs); font-weight: 700;
}
.slow-timeline--photo .ss-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.slow-timeline--photo .ss-time { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--lb-terracotta); line-height: 1.45; }
.slow-timeline--photo .ss-time small { font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--lb-ink); line-height: 1.35; margin-bottom: 4px; }
.slow-timeline--photo .ss-more summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--lb-gray);
}
.slow-timeline--photo .ss-more summary::-webkit-details-marker { display: none; }
.slow-timeline--photo .ss-more summary::after { content: "+"; margin-left: 6px; }
.slow-timeline--photo .ss-more[open] summary::after { content: "−"; }
.slow-timeline--photo .ss-desc { margin-top: 0; }

/* Layout "zigzag": mỗi bước 1 hàng ảnh + chữ, desktop đổi bên xen kẽ; mô tả hiện luôn. */
.slow-card.slow-timeline--zigzag .slow-steps { display: flex; flex-direction: column; gap: 32px; }
.slow-card.slow-timeline--zigzag .slow-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
@media (min-width: 880px) {
  .slow-card.slow-timeline--zigzag .slow-steps { gap: 40px; }
  .slow-card.slow-timeline--zigzag .slow-step { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .slow-card.slow-timeline--zigzag .slow-step:nth-child(even) .ss-media { order: 2; }
}
.slow-timeline--zigzag .ss-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--lb-cream); box-shadow: var(--shadow-card); }
.slow-timeline--zigzag .ss-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 880px) { .slow-timeline--zigzag .ss-media { aspect-ratio: 3 / 2; } } /* M1-e: khối dài ~1.890px trên desktop */
.slow-timeline--zigzag .ss-num {
  position: absolute; left: 14px; top: 14px;
  min-width: 40px; height: 40px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--lb-bg); color: var(--lb-terracotta);
  font-size: var(--fs-sm); font-weight: 700;
}
.slow-timeline--zigzag .ss-body { display: flex; flex-direction: column; gap: 10px; max-width: 46ch; }
.slow-timeline--zigzag .ss-time { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 500; color: var(--lb-terracotta); line-height: 1.5; }
.slow-timeline--zigzag .ss-time small { font-size: var(--fs-lg); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--lb-ink); line-height: 1.35; margin-bottom: 6px; }
.slow-timeline--zigzag .ss-desc { margin-top: 0; font-size: var(--fs-base); line-height: 1.7; }

/* ---------- Proof-grid layout "pillars": bỏ khung thẻ, ảnh/icon tròn lớn, chữ nhẹ ---------- */
.proof-grid.proof-grid--pillars { grid-template-columns: 1fr; gap: 0; }
@media (min-width: 880px) { .proof-grid.proof-grid--pillars { grid-template-columns: repeat(var(--proof-count, 3), minmax(0, 1fr)); } }
.proof-grid--pillars .proof {
  background: none; box-shadow: none; border-radius: 0;
  padding: 22px 0; gap: 10px;
  border-top: 1px solid var(--lb-line);
}
.proof-grid--pillars .proof:first-child { border-top: 0; }
@media (min-width: 880px) {
  .proof-grid--pillars .proof { border-top: 0; border-left: 1px solid var(--lb-line); padding: 6px 28px; align-items: center; text-align: center; }
  .proof-grid--pillars .proof:first-child { border-left: 0; }
}
.proof-grid--pillars .pf-icon { width: 64px; height: 64px; border-radius: 50%; }
.proof-grid--pillars .pf-icon .lb-icon { width: 30px; height: 30px; }
.proof-grid--pillars .pf-photo { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--lb-cream); margin-bottom: 4px; }
.proof-grid--pillars .pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.proof-grid--pillars h3 { font-size: var(--fs-md); line-height: 1.35; }
.proof-grid--pillars p { font-size: var(--fs-sm); color: var(--lb-gray); line-height: 1.6; max-width: 34ch; }
/* Mobile/tablet dọc (2026-10-08, chủ dự án báo bố cục xấu): xếp dọc ảnh 96px lệch trái chiếm cả màn
   → 1 thẻ trắng, mỗi ý 1 hàng: ảnh tròn 72px trái, tiêu đề + mô tả phải. */
@media (max-width: 879px) {
  .proof-grid.proof-grid--pillars {
    background: var(--lb-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
    padding: 4px 18px;
  }
  .proof-grid--pillars .proof {
    display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; row-gap: 4px;
    align-items: start; padding: 18px 0;
  }
  .proof-grid--pillars .pf-photo,
  .proof-grid--pillars .pf-icon { grid-row: 1 / span 2; width: 72px; height: 72px; margin: 0; }
  .proof-grid--pillars h3 { font-size: var(--fs-base); line-height: 1.4; align-self: end; }
  .proof-grid--pillars p { max-width: none; }
}

/* ---------- 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: 22px; /* mobile; chủ dự án chốt 2026-10-10 */ font-weight: 600; line-height: 1.3; color: var(--earth); }
@media (min-width: 880px) { .story-copy h2 { font-size: 26px; /* chủ dự án chốt 2026-10-10 */ } }
.story-copy p { font-size: var(--fs-base); 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: var(--fs-base);
  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: 1px solid rgba(194,38,41,.22);
  background: var(--lb-red-soft);
  box-shadow: var(--shadow-lg);
  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": giữ chữ nghiêng (chất "viết tay"), font body. */
.letter-paper .lt-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-md);
  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: var(--fs-base);
  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: var(--fs-xs);
  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: var(--fs-lg); max-width: 680px; }
.letter-paper--square { width: 270px; padding: 24px; transform: rotate(2deg); }
.letter-paper--square .lt-text { font-size: var(--fs-base); }
.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-text { font-size: var(--fs-sm); line-height: 1.65; }
.letter-paper--compact { width: 230px; padding: 20px 20px 18px; border-radius: var(--radius); }
.letter-paper--compact .lt-text { font-size: var(--fs-base); 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; }

.letter-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.letter-side h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.3; color: var(--earth); }
.letter-side p { font-size: var(--fs-base); 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: var(--fs-base); 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: var(--fs-base); 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: var(--fs-md); 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: var(--fs-sm); 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: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-faint); }
.range-card h3 { font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 600; color: var(--earth); }
.range-card .rc-tagline { font-family: var(--font-body); font-style: italic; font-size: var(--fs-base); color: var(--lb-red); }
.range-card .rc-desc { font-size: var(--fs-base); color: var(--text-mid); line-height: 1.65; flex: 1; }
.range-card .rc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
/* 2026-10-09: chữ nút thành nút viền đỏ, nằm phải (chủ bếp duyệt); cả thẻ vẫn là link */
.range-card .rc-foot:not(:has(.rc-price)) { justify-content: flex-end; }
.range-card .rc-price { font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--lb-gray); }
.range-card .rc-go { white-space: nowrap; background: transparent; color: var(--lb-red-dark); border-color: var(--lb-red-dark); } /* đỏ triện: #C22629 trên nền kem thẻ giữa không đạt 4.5:1 */
.range-card:hover .rc-go { background: rgba(153,0,0,.07); }
/* 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-price { color: var(--lb-gray); }
/* Thẻ có ảnh: ảnh tràn mép trên, chữ đẩy xuống dưới */
.range-card.has-media { overflow: hidden; }
.range-card .rc-media {
  display: block;
  margin: -28px -24px 10px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--lb-cream);
}
.range-card .rc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-card) var(--ease-slow); }
.range-card:hover .rc-media img { transform: scale(1.04); }
/* M1-e (heatmap): mobile 3 thẻ xếp dọc dài ~1.800px, sự chú ý tản (top10 0.17) → ảnh thấp hơn, giữ đủ chữ */
/* 2026-10-09: chủ bếp muốn ảnh mobile cao hơn → 16/9 lên 3/2 */
@media (max-width: 879px) { .range-card .rc-media { aspect-ratio: 3 / 2; } }

/* ---------- 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: var(--fs-base);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.order-step h3 { font-size: var(--fs-lg); }
.order-step p { font-size: var(--fs-sm); 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: var(--fs-h2); font-weight: 600; line-height: 1.3; color: var(--earth); max-width: 560px; }
.bh-cta p { font-size: var(--fs-base); 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: var(--fs-sm); color: var(--lb-faint); margin-top: 4px; }
.bh-cta .cta-hotline b { color: var(--lb-red); font-size: var(--fs-base); }

/* 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: var(--fs-h2); 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: var(--fs-base); 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: var(--fs-sm); 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: var(--fs-base); 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: var(--fs-sm); 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: var(--fs-h3); }
.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: var(--fs-xs); color: var(--lb-gray); }
.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: var(--fs-sm); font-weight: 700; color: var(--lb-red); margin-bottom: 3px; }
.bh-cta--inline-article .ia-desc { font-size: var(--fs-sm); 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; }

/* Ẩ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. */

/* ============================================================
   CHẤT LIỆU GIẤY — texture grain cho các khối "thư tay"
   ============================================================ */
.gift-block, .letter-paper {
  background-image: var(--paper-grain);
  background-color: var(--lb-on-dark);
  background-blend-mode: multiply;
}
/* Thẻ thư nằm trên nền kem của section → giấy trắng + bóng để tách nền (M1-b) */
.letter-paper { background-color: var(--lb-bg); }
.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: var(--fs-base); 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: var(--fs-base); 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)
   ============================================================ */

@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: var(--fs-sm);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.bh-album__label { font-weight: 600; font-size: var(--fs-base); margin: 0 0 2px; color: var(--lb-ink); }
.bh-album__count { font-size: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-base); 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: 44px; }

/* 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: 44px; /* A11Y-05 */
  padding: 6px 14px;
  font-size: var(--fs-sm);
  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: var(--fs-base);
}
.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: var(--fs-sm);
}

/* ============================================================
   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-gray);
  font-size: var(--fs-base);
  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: 44px; height: 44px; /* A11Y-05 */
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  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: var(--fs-xs); }

/* ============================================================
   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: var(--fs-xs);
  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 */

/* Pain intro / Future vision */
.p-pain-intro,
.p-future-vision { font-size: var(--fs-base); 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: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-xs); 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: 8px 16px 8px 8px;
  /* UX-04: nền kem + viền mảnh thay khối đỏ đặc — nút vẫn nhận ra nhờ chữ Z đỏ triện,
     nhưng hết là điểm hút mắt số 1 (saliency) giành với ảnh món/giá/CTA. */
  background: var(--lb-bg); color: var(--lb-warm-dark);
  border: 1.5px solid var(--lb-line);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(28,26,24,.10);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .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); border-color: var(--lb-warm-dark); box-shadow: 0 6px 18px rgba(28,26,24,.16); }
.zalo-float__label { font-family: var(--font-ui); font-size: var(--fs-sm); 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; }
  /* UX-04: mobile/tablet chỉ icon, vòng 48px (vùng chạm >= 44px). Tên nút vẫn ở aria-label. */
  .zalo-float { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .zalo-float__label { display: none; }
  /* PDP: thanh mua fixed đã chiếm đáy màn + có CTA riêng → ẩn Zalo để không đè/cạnh tranh.
     Không hỗ trợ :has → nút vẫn hiện như cũ. */
  body.single-product:has(.buybar-sticky) .zalo-float { 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: var(--fs-base); font-weight: 700; }
.stats-bar__label { font-size: var(--fs-sm); 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: var(--fs-h3); 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: var(--fs-base); 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: var(--fs-base); 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 */

/* 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: var(--fs-sm); 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: var(--fs-sm); 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: var(--fs-h1); 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: var(--fs-sm); color: var(--lb-gray); margin: 0; }
.ty-subtext { font-size: var(--fs-base); color: var(--lb-gray); margin: 6px 0 0; }
.ty-section-head { font-size: var(--fs-base); font-weight: 600; margin: 0 0 10px; }
/* N3: nội dung cổng thanh toán (VD số tài khoản chuyển khoản, VietQR) in qua hook woocommerce_thankyou_{cổng} */
.ty-gateway { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); padding-top: 12px; border-top: 1px solid var(--lb-line); }
.ty-gateway p { margin: 0; }
.ty-gateway h2, .ty-gateway h3 { font-size: var(--fs-md); margin: 0; }
.ty-gateway ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ty-gateway ul ul { padding-left: 12px; }
.ty-gateway img { max-width: 240px; height: auto; }
.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: var(--fs-md); 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 nhà" (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: var(--fs-base);
  font-weight: 600;
  color: var(--lb-ink);
  line-height: 1.3;
}
.persona-nav__sub {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  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; }
}

/* A11Y-05: link hotline trong footer đủ 44px chạm */
.site-foot a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
/* A11Y-05: trang lưới món mobile — nút gọi nổi che nút "+" thẻ cột phải; bottom-nav đã có "Hotline" */
@media (max-width: 899px) {
  body.woocommerce-shop .zalo-float,
  body.tax-product_cat .zalo-float { display: none; }
}
/* UX-12: lỗi nhập checkout tại chỗ */
.field-error { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--lb-red-dark); }
.input[aria-invalid="true"] { border-color: var(--lb-red-dark); }
/* UX-15: mục "Thêm" ở bottom-nav — danh sách trang phụ bật lên phía trên thanh */
.bottom-nav .bn-more { flex: 1 1 0; min-width: 0; display: flex; position: relative; }
.bottom-nav .bn-more > summary { list-style: none; cursor: pointer; }
.bottom-nav .bn-more > summary::-webkit-details-marker { display: none; }
.bottom-nav .bn-more[open] > summary { color: var(--lb-active); }
.bottom-nav .bn-more[open] > summary .bn-ico { background: var(--lb-badge-red-bg); }
.bottom-nav .bn-sheet {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--lb-bg); border: 1px solid var(--lb-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  animation: bn-sheet-in 180ms var(--ease-out);
}
@keyframes bn-sheet-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.bottom-nav .bn-sheet a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius); color: var(--lb-ink); font-size: var(--fs-sm); text-decoration: none;
}
.bottom-nav .bn-sheet a:hover,
.bottom-nav .bn-sheet a:focus-visible { background: var(--lb-badge-red-bg); }
/* Trang Liên hệ: bản đồ Google nhúng */
.map-embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--lb-wash); }

/* ============================================================
   AUDIT THIẾT KẾ 2026-10-05 — vá theo kết quả đo toàn site
   ============================================================ */
/* Thẻ món nằm trong thẻ (gợi ý ở giỏ hàng): bỏ bóng, giữ viền — tránh "thẻ trắng lồng thẻ trắng" */
.card .pcard { box-shadow: none; border: 1px solid var(--lb-line); }
.card .pcard:hover { box-shadow: var(--shadow-card); }
/* Vùng bấm ≥ 44px: link "Xem giỏ hàng" trong thông báo WC (22px), tên món trong giỏ (22px) */
.woocommerce-message .button.wc-forward { display: inline-flex; align-items: center; min-height: 44px; }
.cart-item .ci-name a { display: inline-block; padding: 6px 0; }

/* Tiêu đề bài trên blog 1 dòng chỉ cao 22px (< 24px WCAG 2.5.8) */
.post-card h3 a { display: inline-block; padding: 3px 0; }
/* Nhãn bảng (Giờ phục vụ…) không gãy giữa chữ; giá trị dài xuống dòng, canh phải */
.totals-table .tr .tl { white-space: nowrap; }
.totals-table .tr > :last-child { text-align: right; }

/* ============================================================
   SHOP V2 — trang Cửa hàng (duyệt 2026-10-07, woocommerce/archive-product.php)
   Chọn người ăn → thanh dòng món dính → mỗi danh mục 1 ảnh ngang + lưới → giỏ dính đáy
   ============================================================ */
/* 1. Hero gọn: claim thành tick chữ nhỏ, pill trạng thái thành 1 dòng thông tin */
.shop-v2 .hero { padding: 22px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.shop-v2 .hero-copy { padding: 0; gap: 10px; }
.shop-v2 .hero .kk-row { gap: 4px 14px; }
.shop-v2 .hero .kk { padding: 0; background: none; border: 0; font-size: var(--fs-xs); color: var(--lb-gray); }
.shop-v2 .hero .kk::before { background: var(--lb-red-dark); }
.shop-v2 .hero .status-row { padding: 0; gap: 4px 16px; }
.shop-v2 .hero .status-pill { padding: 0; background: none; border: 0; font-size: var(--fs-sm); }
/* Bỏ dải cuộn ngang UX-06 trên Cửa hàng: chữ trần không nền chip trông như bị cắt → cho xuống dòng */
.shop-v2 .hero .kk-row, .shop-v2 .hero .status-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.shop-v2 .hero .kk, .shop-v2 .hero .status-pill { flex-shrink: 1; white-space: normal; }

/* 2. Chọn người ăn */
.shop-v2 .who { padding: 18px 0 4px; display: grid; gap: 12px; }
.shop-v2 .who-q { font-size: var(--fs-md); font-weight: 600; color: var(--lb-ink); margin: 0; }
.shop-v2 .who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .shop-v2 .who-grid { gap: 16px; } }
.shop-v2 .who-card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0;
  background: var(--lb-bg); border: 2px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden; cursor: pointer; font: inherit; color: inherit;
  transition: border-color var(--t-fast) var(--ease-slow), transform var(--t-fast) var(--ease-slow);
}
.shop-v2 .who-card:hover { transform: translateY(-2px); }
.shop-v2 .who-card[aria-pressed="true"] { border-color: var(--lb-red-dark); }
.shop-v2 .who-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; } /* height:auto: thuộc tính height của ảnh đè aspect-ratio. 2026-10-09: ảnh vuông 1:1 (trước 4:3) */
@media (min-width: 900px) { .shop-v2 .who-card img { aspect-ratio: 16 / 9; } } /* desktop: thẻ ~545px, vuông sẽ cao ~545px đẩy thực đơn xuống */
.shop-v2 .who-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
@media (min-width: 720px) { .shop-v2 .who-body { padding: 14px 18px 16px; } }
.shop-v2 .who-title { font-size: var(--fs-base); font-weight: 700; line-height: 1.3; color: var(--lb-ink); }
@media (min-width: 720px) { .shop-v2 .who-title { font-size: var(--fs-lg); } }
.shop-v2 .who-sub { font-size: var(--fs-xs); color: var(--lb-gray); line-height: 1.4; }
.shop-v2 .who-count { font-size: var(--fs-xs); font-weight: 600; color: var(--lb-red-dark); margin-top: 4px; }
.shop-v2 .who-check {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--lb-bg); border: 2px solid var(--lb-line); display: grid; place-items: center;
}
.shop-v2 .who-card[aria-pressed="true"] .who-check { background: var(--lb-red-dark); border-color: var(--lb-red-dark); }
.shop-v2 .who-card[aria-pressed="true"] .who-check::after {
  content: ""; width: 10px; height: 6px; border: 2px solid var(--lb-on-dark); border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}

/* 3. Thanh dòng món dính ngay dưới header (header dính, cao 68px mọi khổ) */
.shop-v2 .linebar {
  position: sticky; top: 68px; z-index: 40; margin-top: 14px;
  background: color-mix(in srgb, var(--lb-page) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lb-cream);
}
/* 2026-10-09: chip xuống dòng thay vì cuộn ngang — mobile nhiều chip trước bị khuất mép phải */
.shop-v2 .linebar-in { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.shop-v2 .line-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--lb-line); background: var(--lb-bg);
  font-size: var(--fs-sm); font-weight: 600; color: var(--lb-ink); text-decoration: none;
}
@media (min-width: 720px) { .shop-v2 .line-link { padding: 0 16px; } }
.shop-v2 .line-link[hidden] { display: none; }
.shop-v2 .line-link.is-on { background: var(--lb-ink); border-color: var(--lb-ink); color: var(--lb-on-dark); }

/* 4. Mỗi danh mục: ảnh ngang + lưới */
.shop-v2 .shop-menu { display: flex; flex-direction: column; gap: 40px; padding: 22px 0 30px; }
.shop-v2 .shop-line { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 140px; }
.shop-v2 .shop-line[hidden] { display: none; }
.shop-v2 .line-banner { position: relative; display: flex; align-items: flex-end; min-height: 150px; border-radius: var(--radius-lg); overflow: hidden; background: var(--lb-bg); }
@media (min-width: 720px) { .shop-v2 .line-banner { min-height: 190px; } }
.shop-v2 .line-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-v2 .line-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 80%); }
.shop-v2 .lb-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; max-width: 520px; padding: 20px 22px; color: var(--lb-ink); }
@media (min-width: 720px) { .shop-v2 .lb-txt { padding: 28px 34px; } }
.shop-v2 .lb-txt h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; color: var(--lb-ink); margin: 0; }
.shop-v2 .lb-txt p { font-size: var(--fs-sm); font-weight: 500; color: var(--lb-ink); margin: 0; }

/* 5. Thẻ món gọn: tên + 1 dòng lợi ích + giá + nút Chọn món */
/*    M1-e (2026-10-08): áp cho MỌI thẻ món (trước chỉ Cửa hàng + "món chọn nhiều"; nơi khác nút "+" tròn đỏ hút mắt hơn ảnh món theo heatmap) */
.pcard h3 { font-size: var(--fs-base); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard h3 a { display: block; padding-block: 12px; margin-block: -12px; } /* vùng chạm 44px, không đổi bố cục */
.pcard .pcard-desc { font-size: var(--fs-xs); color: var(--lb-gray); line-height: 1.45; }
.pcard .pcard-foot { margin-top: auto; flex-wrap: wrap; border-top: 0; }
.pcard .price { font-size: var(--fs-sm); white-space: nowrap; }
.pcard-pick {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--lb-red-dark);
  font-size: var(--fs-sm); font-weight: 600; color: var(--lb-red-dark); text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}
.pcard-pick:hover { background: var(--lb-red-dark); color: var(--lb-on-dark); }
.pcard-pick:active { transform: scale(.96); }

/* 6. Dải Gói phục hồi */
.shop-v2 .shop-combo {
  display: grid; gap: 14px; align-items: center; padding: 22px; border-radius: var(--radius-lg);
  background: var(--lb-warm-dark); color: var(--lb-on-dark);
}
.shop-v2 .shop-combo[hidden] { display: none; }
@media (min-width: 720px) { .shop-v2 .shop-combo { grid-template-columns: auto 1fr auto; gap: 26px; padding: 26px 32px; } }
.shop-v2 .sc-thumbs { display: flex; }
.shop-v2 .sc-thumbs img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lb-warm-dark); margin-left: -14px; }
.shop-v2 .sc-thumbs img:first-child { margin-left: 0; }
.shop-v2 .sc-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-v2 .sc-k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lb-gold); }
.shop-v2 .sc-copy h2 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; color: var(--lb-on-dark); margin: 0; }
.shop-v2 .sc-copy p { font-size: var(--fs-sm); color: var(--lb-on-dark); margin: 0; }
.shop-v2 .sc-cta {
  justify-self: start; display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill); background: var(--lb-on-dark); color: var(--lb-red-dark);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}

/* 7. Thanh giỏ dính đáy — mobile nằm trên bottom-nav (~64px + nút giỏ nổi 18px) */
.shop-v2 .shop-cartbar {
  position: fixed; left: 0; right: 0; z-index: 150; padding: 0 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 899px) { .shop-v2 .shop-cartbar { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
.shop-v2 .shop-cartbar[hidden] { display: none; }
.shop-v2 .scb-in {
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: var(--radius-pill); background: var(--lb-ink); color: var(--lb-on-dark);
  box-shadow: var(--shadow-pop);
}
.shop-v2 .scb-sum { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; min-width: 0; }
.shop-v2 .scb-sum b { font-size: var(--fs-base); }
.shop-v2 .scb-go {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--lb-red); color: var(--lb-bg); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.shop-v2 .scb-go:hover { background: var(--lb-red-dark); }
.shop-v2 .disclaimer { margin-bottom: 90px; }

/* ============================================================
   M1-h (2026-10-07) — PHẢN HỒI THÊM GIỎ: tick ở nút + ảnh bay vào giỏ (site.js).
   Không mở cart panel, không notice (lọc wc_add_to_cart_message_html trong functions.php).
   ============================================================ */
.single_add_to_cart_button { position: relative; transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out); }
.single_add_to_cart_button:active { transform: scale(.97); }
.single_add_to_cart_button.is-loading { opacity: .75; pointer-events: none; }
.single_add_to_cart_button.is-added { color: transparent !important; pointer-events: none; }
.single_add_to_cart_button.is-added::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  background: var(--lb-on-dark);
  -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='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.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='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: lb-tick-in 220ms var(--ease-out);
}
@keyframes lb-tick-in { from { opacity: 0; transform: scale(.6); } }
.lb-fly {
  position: fixed; z-index: 10000; pointer-events: none;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 8px 24px rgba(28,26,24,.18);
  will-change: transform, opacity;
}

/* M1-f (2026-10-08): vùng chạm ≥ 44px cho link chữ còn bị audit báo (5 khổ x 16 trang = 98 chỗ).
   padding + margin âm cùng cỡ → nới vùng bấm, bố cục không xê dịch. */
.pcard h3 a { display: block; padding-block: 12px; margin-block: -12px; }
.crumbs a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.cart-item .ci-name a { padding-block: 12px; margin-block: -6px; }
.p-rating a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.totals-table .tr a { display: inline-block; padding-block: 9px; margin-block: -9px; }

/* ============================================================
   N6 (2026-10-08): 4 block trước không có CSS — Dải tin cậy, CTA trong bài, Video bếp, Bài viết gần đây
   (Bài viết gần đây dùng lại .post-grid / .post-card của Góc bếp)
   ============================================================ */
.bh-trust-bar { margin-block: 20px; }
.bh-trust-bar__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 14px 18px; background: var(--lb-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.bh-trust-bar__item { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--lb-ink); }
.bh-trust-bar__icon { display: inline-flex; color: var(--lb-terracotta); }
.bh-trust-bar--compact .bh-trust-bar__items { justify-content: flex-start; gap: 6px 16px; padding: 0; background: none; box-shadow: none; }
.bh-trust-bar--compact .bh-trust-bar__item { color: var(--lb-gray); }

.bh-inline-cta { display: flex; align-items: center; gap: 16px; margin: 28px 0; padding: 14px; background: var(--lb-cream); border-radius: var(--radius); }
.bh-inline-cta .bh-inline-cta__image { flex: none; width: 96px; aspect-ratio: 1; border-radius: var(--radius-sm, 10px); overflow: hidden; }
.bh-inline-cta .bh-inline-cta__image img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.bh-inline-cta .bh-inline-cta__content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bh-inline-cta .bh-inline-cta__title { margin: 0; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; color: var(--lb-ink); }
.bh-inline-cta .bh-inline-cta__desc { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--lb-gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bh-inline-cta .bh-inline-cta__price { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--clay); }
.bh-inline-cta .bh-inline-cta__btn { align-self: flex-start; margin-top: 6px; color: var(--lb-on-dark); text-decoration: none; }
@media (max-width: 479px) { .bh-inline-cta { align-items: flex-start; } .bh-inline-cta .bh-inline-cta__image { width: 76px; } }

.bh-video__inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 880px) { .bh-video__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; } }
.bh-video__text { display: flex; flex-direction: column; gap: 10px; }
.bh-video__text p { color: var(--lb-gray); line-height: 1.65; }
.bh-video__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--lb-ink); box-shadow: var(--shadow-card); }
.bh-video__thumb, .bh-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.bh-video__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; padding: 0; border: 0; background: none; color: var(--lb-red); cursor: pointer; transition: transform 160ms var(--ease-out); }
.bh-video__play svg { width: 100%; height: 100%; display: block; }
.bh-video__play:hover { transform: scale(1.06); }
.bh-video__play:active { transform: scale(.96); }

/* ============================================================
   PHÁP LÝ — footer "Thông tin pháp lý" + trang chính sách (NĐ 248/2026, nguồn scripts/legal/)
   ============================================================ */
.site-foot .f-legal { border-top: 1px solid var(--lb-line); padding: 20px 0 18px; }
.site-foot .f-legal ul { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
.site-foot .f-company { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.7; color: var(--lb-faint); }
.site-foot .f-company b { color: var(--lb-ink); font-weight: 600; }
.prose .legal-meta, .prose .legal-basis { font-size: var(--fs-sm); color: var(--lb-faint); line-height: 1.7; }
.prose .legal-basis { font-style: italic; }
.prose .legal-sign { text-align: right; font-size: var(--fs-sm); color: var(--lb-faint); margin-top: 2em; max-width: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.6; }
.prose th, .prose td { border: 1px solid var(--lb-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose thead th, .prose table.kv th { background: var(--lb-wash); font-weight: 600; }
.prose table.kv th { width: 36%; }
@media (max-width: 640px) {
  .prose table:not(.kv) { display: block; overflow-x: auto; }
}
