/*
 * ruouthuduc.vn — CSS dùng chung. Theme "hầm rượu": đỏ vang (burgundy) + kem + vàng đồng. Màu chỉ khai báo ở :root.
 * Không icon/emoji. Sửa file → tăng ASSET_VER trong app/view.php.
 * Mục: 1 token · 2 nền tảng · 3 nút/form/card · 4 header (topbar, mainbar, mega menu, tìm kiếm) · 5 thanh đáy + tấm danh mục
 *      6 footer · 7 lưới sản phẩm · 8 trang chủ · 9 bài viết / trang tĩnh · 10 toast/modal · 11 mobile (cuối, giữ cuối)
 */

/* ---------- 1. Token ---------- */
:root {
  --wine: #5c1a2e; --wine-2: #7a2340; --wine-3: #8f2d4c; --wine-dark: #3d0f1e; --wine-soft: #f3e6ea;
  --cream: #f7f1e8; --cream-2: #efe4d4; --cream-3: #e6d6c0; --paper: #fffdf9;
  --gold: #c9a24a; --gold-2: #e2c57a; --gold-dark: #9c7a2e;
  --ink: #2b1f1b; --ink-2: #4a3b36; --muted: #7d6c64; --line: #e4d8c8; --line-2: #d4c3ad;
  --white: #fff; --ok: #2e7d4f; --warn: #b7791f; --danger: #b3261e; --info: #2b5c8a;
  --radius: 10px; --radius-sm: 6px; --shadow: 0 6px 24px rgba(61, 15, 30, .10); --shadow-sm: 0 2px 8px rgba(61, 15, 30, .08);
  --font: 'Be Vietnam Pro', 'BVP Fallback', Arial, sans-serif;            /* BVP Fallback = Arial giãn khớp metric (assets/fonts/fonts.css) */
  --font-head: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  --head-h: 112px; --bnav-h: 58px; --wrap: 1340px;
}

/* ---------- 2. Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background-color: var(--cream); display: flex; flex-direction: column; min-height: 100vh; }
body.no-scroll { overflow: hidden; }
main { flex: 1 0 auto; width: 100%; }
.site-foot { margin-top: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--wine-dark); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--wine-2); text-decoration: none; }
a:hover { color: var(--wine); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.sec { margin: 36px auto; }
.sec-head, .band-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2, .band-head h2 { margin: 0; }
.crumb { font-size: 13px; color: var(--muted); margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: var(--ink-2); padding: 1px 5px; margin: -1px -5px; border-radius: 4px; } .crumb-sep { color: var(--line-2); }
.crumb a:hover { color: var(--wine); background: var(--wine-soft); }

/* Hover không gạch chân: mọi link đổi màu mượt; chỗ chỉ có chữ thêm nền nhạt / viền / dịch nhẹ để nhận biết */
a, button, .btn { transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s, opacity .15s, padding .15s; }
.logo:hover { opacity: .85; }
.article-body a:hover, .prose a:hover { color: var(--wine); background: var(--wine-soft); border-radius: 3px; box-shadow: 0 0 0 2px var(--wine-soft); }
.pd-brand:hover { color: var(--wine); }
.post-cat:hover { background: var(--wine); color: var(--white); }
.pill.tag:hover { border-color: var(--wine); color: var(--wine); background: var(--wine-soft); }
.chip:hover { color: var(--wine); background: var(--wine-soft); }
.foot-col a:hover { padding-left: 4px; } .foot-col p a:hover { padding-left: 0; opacity: .85; }
.foot-social a:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(255,255,255,.07); }
.foot-pay:hover { background: rgba(255,255,255,.07); }
.hdrop-menu a:hover { box-shadow: inset 3px 0 0 var(--gold); padding-left: 18px; }
.sg-item:hover { color: var(--wine); }
.side-h a:hover, h2 a:hover, h3 a:hover { color: var(--wine); }
.cart-btn:hover { background: var(--wine-soft); color: var(--wine); }
.topbar a:hover { background: rgba(255,255,255,.06); }
.catsheet a:hover, .catsheet a:active { background: var(--cream); color: var(--wine); }
table a:hover { color: var(--wine); background: var(--wine-soft); border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- 3. Nút / form / card ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid var(--wine); background: var(--wine); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, transform .05s; text-decoration: none; }
.btn:hover { background: var(--wine-2); color: var(--white); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--wine-dark); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--wine-dark); }
.btn-outline { background: transparent; color: var(--wine); }
.btn-outline:hover { background: var(--wine-soft); color: var(--wine); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine-3); box-shadow: 0 0 0 3px rgba(122, 35, 64, .12); }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.err { color: var(--danger); font-size: 13px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.center-card { text-align: center; padding: 48px 24px; margin: 40px 0; }
.center-card .btn-row { justify-content: center; margin-top: 18px; }
.err-code { font-family: var(--font-head); font-size: 64px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cream-2); color: var(--ink-2); }
.badge.ok { background: #e3f1e8; color: var(--ok); } .badge.warn { background: #fbefd9; color: var(--warn); } .badge.err { background: #f8e0de; color: var(--danger); } .badge.info { background: #e1ebf4; color: var(--info); }
.prose h2 { font-size: 21px; margin-top: 1.4em; } .prose h3 { font-size: 17px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; } .prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; } .prose th { background: var(--cream-2); }
.prose img { border-radius: var(--radius-sm); margin: 1em auto; }

/* ---------- 4. Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: 0 2px 10px rgba(61, 15, 30, .12); }
.topbar { background: var(--wine-dark); color: var(--cream-2); font-size: 13px; height: 32px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar a { color: var(--cream-2); padding: 0 11px; border-right: 1px solid rgba(255,255,255,.14); line-height: 32px; display: inline-block; }
.topbar a:last-child { border-right: 0; padding-right: 0; } .topbar a:first-child { padding-left: 0; }
.topbar a:hover, .topbar a.on { color: var(--gold-2); text-decoration: none; }
.top-right { display: flex; align-items: center; }
.top-points b { color: var(--gold-2); }
.hdrop { position: relative; }
.user-chip, .topbar a.user-chip { display: inline-flex; align-items: center; gap: 7px; }   /* phải thắng `.topbar a { display: inline-block }`, nếu không avatar bám baseline và lệch lên */
.topbar a.user-chip { height: 32px; } .user-chip .avatar { flex-shrink: 0; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--wine-dark); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hdrop-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px 0; z-index: 60; }
.hdrop:hover .hdrop-menu, .hdrop.open .hdrop-menu { display: block; }
.hdrop-menu a { display: block; padding: 8px 14px; color: var(--ink); border: 0; line-height: 1.4; font-size: 14px; }
.hdrop-menu a:hover { background: var(--cream); color: var(--wine); }
.hd-user { padding: 8px 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .hd-user b { display: block; color: var(--ink); } .hd-user span { color: var(--muted); font-size: 12px; }
.mainbar { height: 80px; }
.mainbar .wrap { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 52px; width: auto; border-radius: 6px; }
.catmenu { position: relative; flex: 0 0 auto; }
.cat-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--wine); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; }
.cat-btn:hover { background: var(--wine-2); color: var(--white); text-decoration: none; }
.cat-bars { display: inline-flex; flex-direction: column; gap: 3px; } .cat-bars i { display: block; width: 16px; height: 2px; background: var(--gold-2); border-radius: 2px; }
.mega { display: none; position: absolute; left: 0; top: calc(100% + 8px); width: 900px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 70; grid-template-columns: 240px 1fr; min-height: 320px; overflow: hidden; }
.catmenu:hover .mega, .catmenu.open .mega { display: grid; }
.catmenu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.mega-list { list-style: none; margin: 0; padding: 8px 0; background: var(--cream); border-right: 1px solid var(--line); }
.mega-item a { display: block; padding: 10px 18px; color: var(--ink); font-weight: 600; font-size: 14px; }
.mega-item.on a, .mega-item a:hover { background: var(--paper); color: var(--wine); text-decoration: none; box-shadow: inset 3px 0 0 var(--gold); }
.mega-panels { position: relative; padding: 20px 24px; }
.mega-panel { display: none; } .mega-panel.on { display: block; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 20px; }
.mega-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.mega-col a:hover { color: var(--wine); padding-left: 6px; }
.mega-col .mega-h { font-weight: 700; color: var(--wine-dark); margin-bottom: 4px; font-family: var(--font-head); font-size: 15px; }
.mega-col .mega-h:hover { color: var(--wine); padding-left: 6px; }
.mega-all:hover { color: var(--wine-dark); border-bottom-color: var(--wine); }
.mega-post:hover span { color: var(--wine); } .mega-post:hover img { opacity: .9; }
.mega-all { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--wine); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.mega-lead { color: var(--ink-2); max-width: 480px; }
.mega-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega-post img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 6px; }
.mega-post span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.search { position: relative; flex: 1 1 auto; display: flex; max-width: 620px; }
.search input { height: 44px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; padding-left: 14px; }
.search button { height: 44px; padding: 0 20px; border: 1px solid var(--wine); background: var(--wine); color: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: inherit; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--wine-2); }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 80; overflow: hidden; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.sg-item:hover { background: var(--cream); text-decoration: none; }
.sg-item img { width: 44px; height: 44px; object-fit: contain; background: var(--white); border-radius: 4px; border: 1px solid var(--line); flex: 0 0 auto; }
.sg-name { flex: 1 1 auto; font-size: 14px; } .sg-price { color: var(--wine); font-weight: 700; white-space: nowrap; font-size: 14px; }
.sg-cats { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.sg-cats a { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); }
.sg-all { display: block; padding: 10px 12px; font-weight: 600; text-align: center; }
.search .search-back { display: none; }   /* chỉ dùng ở chế độ tìm kiếm mobile; selector 2 class để thắng `.search button` */
.search-shade { position: fixed; inset: var(--head-h) 0 0 0; background: rgba(43, 31, 27, .35); z-index: 40; display: none; }
.search-shade.on { display: block; }
.cart-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--wine-dark); font-weight: 600; background: var(--white); }
.cart-btn:hover { border-color: var(--wine); text-decoration: none; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--wine); color: var(--white); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 5. Thanh đáy + tấm danh mục (mobile) ---------- */
.bnav { display: none; }
.catsheet, .catsheet-shade { display: none; }

/* ---------- 6. Footer ---------- */
.site-foot { background: var(--wine-dark); color: var(--cream-2); margin-top: 48px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.foot-h { font-family: var(--font-head); color: var(--gold-2); font-size: 16px; font-weight: 700; margin-bottom: 12px; letter-spacing: .3px; }
.foot-h2 { margin-top: 18px; }
.foot-col p { margin: 0 0 8px; color: var(--cream-2); } .foot-col a { color: var(--cream); display: block; padding: 3px 0; }
.foot-col p a { display: inline; padding: 0; color: var(--gold-2); } .foot-col a:hover { color: var(--gold-2); }
.foot-badge img { margin: 10px 0; background: var(--white); border-radius: 6px; padding: 4px; }
.foot-age { font-size: 12.5px; color: var(--cream-3); border-left: 2px solid var(--gold); padding-left: 10px; margin-top: 12px; }
.foot-pay { display: inline-block; padding: 6px 12px; border: 1px solid var(--gold); border-radius: 6px; color: var(--gold-2); font-weight: 700; letter-spacing: 1px; }
.foot-social { display: flex; gap: 10px; } .foot-social a { padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cream-3); }

/* ---------- 7. Lưới sản phẩm ---------- */
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pgrid-6 { grid-template-columns: repeat(6, 1fr); } .pgrid-5 { grid-template-columns: repeat(5, 1fr); } .pgrid-4 { grid-template-columns: repeat(4, 1fr); }
.pcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; min-width: 0; }
/* Cả thẻ bấm được: link tên sản phẩm phủ toàn bộ card (không chỉ ảnh + tiêu đề). */
.pcard-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { display: block; position: relative; aspect-ratio: 53/74; background: var(--white); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pcard-flag { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--white); }
.pcard-flag.soon { background: var(--gold); color: var(--wine-dark); } .pcard-flag.out { background: var(--muted); }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard-brand { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pcard-name { font-family: var(--font); font-size: 13.5px; font-weight: 600; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-name a { color: var(--ink); } .pcard-name a:hover { color: var(--wine); text-decoration: none; }
.pcard-price { color: var(--wine); font-weight: 700; font-size: 15px; margin-top: auto; }
.pcard-rate { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gold-dark); }
/* Sao đánh giá SVG (stars_svg()/star_icon() trong app/view.php): on = vàng theme, off = nhạt; gradient a/b cho sao lẻ */
.stars { display: inline-block; vertical-align: middle; flex: none; } .stars .on, .stars stop.a { fill: var(--gold); stop-color: var(--gold); } .stars .off, .stars stop.b { fill: #e3d9c6; stop-color: #e3d9c6; }
.star { display: inline-block; vertical-align: -1px; fill: var(--gold); }

/* ---------- 8. Trang chủ ---------- */
/* Cột phải rộng = W sao cho 2 banner 21:9 xếp dọc (+16px khe) cao đúng bằng slider 21:9: W = S/2 - 19 → W = 100%/3 - 103px
   (desktop, 3 cột) và 100%/3 - 18px (≤1100px, 2 cột). Sai công thức là banner nhỏ bị cắt cạnh (object-fit: cover). */
.hero { display: grid; grid-template-columns: 240px minmax(0, 1fr) calc(100% / 3 - 103px); gap: 16px; margin-top: 18px; align-items: stretch; }
/* Chiều cao hàng hero do slider (tỉ lệ 1600/686) quyết định: cột danh mục không được "đẩy" hàng cao lên
   (height:0 + min-height:100%), nếu không slider bị kéo cao, nở rộng theo aspect-ratio và đè lên 2 banner nhỏ. */
.hero-cats { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; display: flex; flex-direction: column; height: 0; min-height: 100%; overflow: hidden; }
.hero-cats a { padding: 4px 16px; color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.35; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-cats a:hover { background: var(--cream); color: var(--wine); border-left-color: var(--gold); text-decoration: none; }
.hero-cats-all { margin-top: auto; color: var(--wine) !important; border-top: 1px solid var(--line); }
.hero-slider { position: relative; min-width: 0; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); aspect-ratio: 1600/686; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-slider .slide.on { opacity: 1; z-index: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--wine-dark); font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.hero-slider:hover .slide-nav { opacity: 1; } .slide-nav.prev { left: 10px; } .slide-nav.next { right: 10px; }
.slide-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slide-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.slide-dots button.on { background: var(--gold-2); width: 22px; border-radius: 5px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-side a { border-radius: var(--radius); overflow: hidden; display: block; background: var(--cream-2); min-height: 0; }
.hero-side img { width: 100%; height: 100%; object-fit: cover; }
/* Chống kéo / chọn ảnh banner (vẫn bấm được qua thẻ <a> bao ngoài) */
.hero-slider img, .hero-side img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.icon-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 22px; }
.icon-item { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; color: var(--ink); font-weight: 600; font-size: 13px; text-align: center; transition: box-shadow .15s; }
.icon-item:hover { box-shadow: var(--shadow); text-decoration: none; color: var(--wine); }
.icon-item img { width: 64px; height: 64px; object-fit: contain; }
/* Dải sản phẩm: màu --b1/--b2 và ảnh nền đặt inline từ bảng home_bands. Ảnh nền (band-img) nằm dưới lớp phủ tối
   để card sản phẩm nổi bật; ảnh cố ý mờ, ít chi tiết (docs/pipeline-band.md). */
.band { position: relative; max-width: var(--wrap); margin: 32px auto; padding: 28px 0 32px; border-radius: var(--radius); overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--b1, var(--wine-dark)), var(--b2, var(--wine-2))); isolation: isolate; }
.band-img { background-size: cover; background-position: center; }
.band-img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, color-mix(in srgb, var(--b1) 82%, transparent), color-mix(in srgb, var(--b2) 62%, transparent)); }
/* Tiêu đề dải / mục có liên kết nhưng không đổi màu khi hover (chủ shop yêu cầu) */
.band-head h2 a, .band-head h2 a:hover { color: var(--white); }
.sec-head h2 a, .sec-head h2 a:hover { color: inherit; }
.band-head h2 { color: var(--white); } .band-head h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--gold); margin-top: 8px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-img img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.post-card-body { padding: 14px 16px 16px; } .post-card-body h3 { font-size: 16px; } .post-card-body h3 a { color: var(--ink); } .post-card-body p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.intro { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.intro p { margin: 0; color: var(--ink-2); }

/* ---------- 9a. Trang danh sách (shop / danh mục / spec / tìm kiếm) ---------- */
/* Bài SEO dưới lưới sản phẩm (arc_after_html) — ngắn, h2/h3, không che danh sách */
.list-seo { margin-top: 28px; padding: 26px 30px; } .list-seo-body h2 { font-size: 21px; margin: 22px 0 10px; } .list-seo-body h2:first-child { margin-top: 0; } .list-seo-body h3 { font-size: 17px; margin: 16px 0 8px; } .list-seo-body p, .list-seo-body li { color: var(--ink-2); } .list-seo-body ul { padding-left: 22px; }
.list-head { margin: 4px 0 18px; } .list-head h1 { margin-bottom: 6px; } .list-intro { color: var(--ink-2); max-width: 900px; } .list-intro p { margin: 0 0 .6em; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px; color: var(--ink); text-align: center; font-weight: 600; font-size: 13.5px; transition: box-shadow .15s; }
.cat-card:hover { box-shadow: var(--shadow); text-decoration: none; color: var(--wine); }
.cat-card img { width: 90px; height: 90px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 6px; border: 1px solid var(--line); }
.cat-card small { color: var(--muted); font-weight: 400; font-size: 12px; }
.list-grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: sticky; top: calc(var(--head-h) + 12px); max-height: calc(100vh - var(--head-h) - 24px); overflow-y: auto; }
.filters-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 15px; }
.filters-head b { margin-right: auto; } .filters-head a { font-size: 13px; } .filters-close, .filters-foot { display: none; }
.fgroup { padding: 10px 0; border-bottom: 1px solid var(--line); } .fgroup:last-child { border-bottom: 0; }
.fgroup-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--wine-dark); margin-bottom: 6px; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ink-2); font-size: 14px; }
.fopt:hover { color: var(--wine); text-decoration: none; }
.fopt i { width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); flex: 0 0 auto; position: relative; }
.fopt.on i { background: var(--wine); border-color: var(--wine); } .fopt.on i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fopt.on { color: var(--wine); font-weight: 600; } .fopt em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.list-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-count { font-weight: 600; color: var(--ink-2); margin-right: auto; } .filters-open { display: none; }
.list-main { transition: opacity .15s; } .list-main.loading { opacity: .45; pointer-events: none; }   /* đang fetch bộ lọc tại chỗ */
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; } .sort-box select { width: auto; padding: 7px 10px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--wine-soft); color: var(--wine); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.chip:hover { border-color: var(--wine); text-decoration: none; }
.list-empty { margin: 10px 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 38px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); text-align: center; font-weight: 600; color: var(--ink); background: var(--paper); }
.pager a:hover { border-color: var(--wine); color: var(--wine); text-decoration: none; } .pager .cur { background: var(--wine); color: var(--white); border-color: var(--wine); } .pager-gap { border: 0; background: none; }
.search-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters-shade { display: none; }

/* ---------- 9b. Trang sản phẩm ---------- */
.pd-top { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 32px; margin-top: 4px; }
.pd-gallery { position: sticky; top: calc(var(--head-h) + 12px); }
.pd-main-img { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; min-height: 72px; } .pd-thumb { box-sizing: border-box; }
.pd-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; overflow: hidden; }
.pd-thumb.on, .pd-thumb:hover { border-color: var(--wine); } .pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-title { font-size: 26px; margin-bottom: 8px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; margin-bottom: 16px; align-items: center; }
.pd-brand { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 12.5px; }
.pd-meta > * { line-height: 22px; } .pd-rating { display: inline-flex; align-items: center; gap: 6px; height: 22px; } .pd-rating b { color: var(--gold-dark); font-size: 15px; line-height: 1; }
.pd-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pd-variants { margin-bottom: 16px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.pd-chip img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; background: var(--white); flex: none; }
.pd-chip-t { display: flex; flex-direction: column; }
.pd-chip small { font-weight: 400; color: var(--muted); font-size: 12px; } .pd-chip:hover { border-color: var(--wine); text-decoration: none; }
.pd-chip.on { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.pd-price-box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; }
.pd-price { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--wine); line-height: 1.1; }
.pd-price-na { font-size: 24px; color: var(--muted); }
.pd-stock { margin-top: 8px; font-weight: 600; font-size: 13.5px; } .pd-stock.in { color: var(--ok); } .pd-stock.soon { color: var(--warn); } .pd-stock.out { color: var(--muted); }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-bottom: 12px; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.qty-btn { width: 42px; border: 0; background: var(--cream-2); font-size: 20px; cursor: pointer; color: var(--ink); } .qty-btn:hover { background: var(--cream-3); }
.qty input { width: 56px; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; } .qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-points { font-size: 13.5px; color: var(--ink-2); background: var(--cream-2); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 14px; } .pd-points b { color: var(--gold-dark); }
.pd-notice { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); background: var(--paper); }
.pd-notice p { margin: 0 0 6px; padding-left: 14px; position: relative; } .pd-notice p::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); } .pd-notice p:last-child { margin: 0; }
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 36px; align-items: start; }
.pd-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 22px; }
.pd-section > h2 { font-size: 21px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 16px; }
.pd-section .sec-head h2 { font-size: 21px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; } .spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 220px; font-weight: 600; color: var(--ink-2); background: var(--cream); } .spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pd-side { position: sticky; top: calc(var(--head-h) + 12px); display: flex; flex-direction: column; gap: 16px; }
.side-h { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--wine-dark); margin-bottom: 10px; padding-left: 10px; border-left: 3px solid var(--gold); }
.side-store p { margin: 0 0 6px; font-size: 14px; }
.side-post { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.side-post:first-of-type { border-top: 0; } .side-post img { width: 72px; height: 50px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; } .side-post:hover { color: var(--wine); text-decoration: none; }
/* Gallery sản phẩm (bấm ảnh chính): hộp gọn, nền giấy, viền vàng ở ảnh nhỏ đang chọn, phím ← → Esc, vuốt trên điện thoại (product.js) */
.pd-lb { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(43, 31, 27, .78); backdrop-filter: blur(3px); animation: pd-lb-in .18s ease-out; }
@keyframes pd-lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-lb-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-lb-box { position: relative; width: min(100%, 720px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(61, 15, 30, .35); overflow: hidden; animation: pd-lb-pop .22s ease-out; }
.pd-lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.pd-lb-close:hover { background: var(--wine); color: var(--white); border-color: var(--wine); }
.pd-lb-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pd-lb-stage { position: relative; background: var(--white); height: min(calc(100vh - 220px), 520px); min-height: 260px; display: flex; align-items: center; justify-content: center; }
.pd-lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 18px; }
.pd-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 253, 249, .92); color: var(--wine); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: background .15s, color .15s; }
.pd-lb-nav:hover { background: var(--wine); color: var(--white); } .pd-lb-nav.prev { left: 12px; } .pd-lb-nav.next { right: 12px; }
.pd-lb-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pd-lb-foot b { font-family: var(--font-head); font-size: 15px; color: var(--wine-dark); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-lb-count { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-lb-thumbs { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: thin; }
.pd-lb-thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; overflow: hidden; opacity: .75; transition: border-color .15s, opacity .15s; }
.pd-lb-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pd-lb-thumbs button:hover { opacity: 1; } .pd-lb-thumbs button.on { border-color: var(--gold); opacity: 1; box-shadow: 0 0 0 2px rgba(201, 162, 74, .25); }
.pd-lb-single .pd-lb-nav, .pd-lb-single .pd-lb-thumbs { display: none; }
@media (max-width: 820px) { .pd-lb { padding: 12px; } .pd-lb-stage { height: min(calc(100vh - 190px), 70vw); } .pd-lb-nav { width: 34px; height: 34px; } .pd-lb-foot b { font-size: 14px; } }
/* Bài mô tả: bài cũ (h2/h3 thường) và bài có mục lục (muc-luc-*, product-section-title, dropcap, bảng, FAQ) */
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.article-body h2, .article-body .product-section-title { font-size: 21px; margin: 1.5em 0 .6em; color: var(--wine-dark); clear: both; }
.pd-article h2, .pd-article .product-section-title { clear: none; } .pd-article .product-section-title:first-child, .pd-article > article > .product-section-title:first-child { margin-top: 0; }
.article-body h3, .article-body .product-subsection-title { font-size: 17px; margin: 1.2em 0 .5em; color: var(--ink); font-family: var(--font); font-weight: 700; }
.article-body p { margin: 0 0 1em; } .article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 1em; } .article-body li { margin: 4px 0; }
.article-body img, .article-body .pd-img { border-radius: var(--radius-sm); margin: 1.2em auto; max-width: 100%; }
.article-body a { font-weight: 600; color: var(--wine-2); text-decoration: none; }
.article-body table, .table-main { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; background: var(--white); }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body thead th, .table-header th { background: var(--wine); color: var(--white); } .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-main caption { caption-side: top; background: var(--wine-dark); color: var(--cream-2); padding: 10px; font-weight: 700; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.article-body tbody tr:nth-child(even) { background: var(--cream); }
.article-body blockquote { border-left: 4px solid var(--gold); background: var(--cream); margin: 1em 0; padding: 10px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pd-h1 { font-size: 22px; }
.pd-price-inline { color: var(--wine); } .pd-stock-inline.in { color: var(--ok); } .pd-stock-inline.out { color: var(--muted); } .pd-stock-inline.soon { color: var(--warn); }
.pd-links { display: block; margin-top: .4em; font-size: 14.5px; } .pd-links a { color: var(--wine); }
.muc-luc-container { float: left; width: calc(50% - 12px); max-height: 320px; overflow-y: auto; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 24px 16px 0; font-size: 14px; }
.muc-luc-title { font-size: 16px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); position: sticky; top: -14px; background: var(--cream); }
.muc-luc-container ul { list-style: none; margin: 0; padding: 0; } .muc-luc-container ul ul { padding-left: 22px; }
.muc-luc-link { display: block; padding: 3px 6px; border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 400; line-height: 1.4; }
.muc-luc-item-level2 > .muc-luc-link { font-weight: 600; } .muc-luc-item-level3 { font-size: 13px; }
.muc-luc-link:hover { background: var(--wine-soft); color: var(--wine); text-decoration: none; }
.dropcap-table-contents { font-weight: 700; margin-right: 4px; } .dropcap-table-contents::after { content: '.'; }
.dropcap { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--wine); color: var(--white); font-size: 16px; font-weight: 700; margin-right: 10px; vertical-align: middle; font-family: var(--font); }
.product-description-list { list-style: none; padding-left: 4px; } .description-item { position: relative; padding-left: 18px; } .description-item::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.faq-container { clear: both; } .faq-container > h2 { text-align: left; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 12px 16px; }
.faq-question h3, .faq-question .question { margin: 0; font-size: 15.5px; font-family: var(--font); font-weight: 600; color: var(--ink); }
.faq-question:hover h3 { color: var(--wine); }
.faq-btn { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.minus-icon { display: none; } .faq-question.active .plus-icon { display: none; } .faq-question.active .minus-icon { display: inline; }
/* Mở/đóng bằng grid 0fr → 1fr: thời gian chạy đúng chiều cao thật (max-height lớn làm lúc đóng tưởng bị đơ rồi giật) */
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; padding: 0 16px; }
.faq-answer > * { overflow: hidden; min-height: 0; }
.faq-answer.active { grid-template-rows: 1fr; } .faq-answer.active > * { padding-bottom: 14px; } .faq-answer p { margin: 0; } .faq-answer-content { font-size: 15px; }
.rv-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.rv-score { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; } .rv-none { display: block; line-height: 1; } .rv-none .star { fill: var(--gold-2); width: 40px; height: 40px; } .rv-score b { display: block; font-family: var(--font-head); font-size: 40px; color: var(--gold-dark); line-height: 1; } .rv-score span { display: block; font-size: 13px; color: var(--muted); } .rv-score small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.rv-bars { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.rv-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; } .rv-bar span { width: 38px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3px; } .rv-bar em { width: 24px; font-style: normal; color: var(--muted); text-align: right; }
.rv-bar i { flex: 1; height: 8px; background: var(--cream-2); border-radius: 4px; overflow: hidden; } .rv-bar i b { display: block; height: 100%; background: var(--gold); }
.rv-form { margin-bottom: 18px; } .rv-form h3 { margin-bottom: 12px; } .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.star-pick { display: flex; gap: 4px; } .star-pick button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; } .star-pick button .star { fill: #e3d9c6; transition: transform .15s, fill .15s; }
.star-pick button:hover .star { transform: scale(1.15); } .star-pick button.on { border-color: var(--gold); background: #fff8e6; } .star-pick button.on .star { fill: var(--gold); }
.rv-item { padding: 14px 0; border-bottom: 1px solid var(--line); } .rv-item:last-child { border-bottom: 0; } .rv-item p { margin: 6px 0 0; }
.rv-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; } .rv-stars { font-weight: 700; color: var(--gold-dark); }
.rv-reply { margin-top: 10px; background: var(--cream); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; } .rv-reply p { margin: 4px 0 0; }
.qa-item { padding: 14px 0; border-bottom: 1px solid var(--line); } .qa-item:last-child { border-bottom: 0; } .qa-item p { margin: 4px 0 0; }
.qa-a { margin-top: 10px; padding-left: 16px; border-left: 3px solid var(--wine); } .qa-a b { color: var(--wine); }

/* ---------- 9c. Cẩm nang (danh sách + bài viết) ---------- */
.blog-head { margin: 4px 0 24px; } .blog-head h1 { margin-bottom: 4px; }
.sec-h { font-size: 20px; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--gold); line-height: 1.2; }
.feat-sec, .pop-sec, .posts-sec { margin-bottom: 36px; }
.feat-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.feat-big { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--wine-dark); min-height: 320px; }
.feat-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-big-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; color: var(--white); background: linear-gradient(to top, rgba(61, 15, 30, .9), rgba(61, 15, 30, .35) 60%, transparent); }
.feat-big-cap h3 { color: var(--white); font-size: 22px; margin: 8px 0 6px; } .feat-big-cap .badge { background: var(--gold); color: var(--wine-dark); } .feat-date { font-size: 13px; opacity: .9; }
.feat-small-list { display: flex; flex-direction: column; gap: 14px; }
.feat-small { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.feat-small-img { flex: none; width: 104px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); } .feat-small-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-small-cap h4 { font-family: var(--font); font-size: 14.5px; margin: 0 0 4px; line-height: 1.35; color: var(--ink); } .feat-small:hover h4 { color: var(--wine); } .feat-small:hover { text-decoration: none; } .feat-small .feat-date { color: var(--muted); }
.pop-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.pop-card { flex: none; width: 212px; scroll-snap-align: start; color: var(--ink); }
.pop-img { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); } .pop-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-card h4 { font-family: var(--font); font-size: 14px; margin: 9px 0 0; line-height: 1.35; } .pop-card:hover { text-decoration: none; } .pop-card:hover h4 { color: var(--wine); }
.post-list { display: flex; flex-direction: column; }
.list-card { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); } .list-card:first-child { padding-top: 0; }
.list-thumb { flex: none; width: 236px; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); } .list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info h3 { font-size: 19px; margin: 0 0 6px; } .list-info h3 a { color: var(--ink); } .list-info h3 a:hover { color: var(--wine); text-decoration: none; }
.list-info p { color: var(--ink-2); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-meta { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 38px; align-items: start; }
.post { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.post-cat { display: inline-block; background: var(--wine-soft); color: var(--wine); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 6px; text-transform: uppercase; letter-spacing: .4px; }
.post-title { font-size: 32px; margin: 12px 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13.5px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-cover { margin: 20px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1200/630; background: var(--cream-2); } .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 8px 0 26px; }
.toc-title { font-weight: 700; font-size: 16px; color: var(--wine-dark); margin-bottom: 10px; cursor: pointer; user-select: none; display: flex; justify-content: space-between; }
.toc-title::after { content: 'Thu gọn'; font-size: 12.5px; font-weight: 600; color: var(--muted); } .toc.collapsed .toc-list { display: none; } .toc.collapsed .toc-title::after { content: 'Mở rộng'; }
.toc-list { list-style: none; margin: 0; padding: 0; } .toc-l2 { margin: 0 0 4px; }
.toc-l2 > a { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 600; padding: 5px 0; font-size: 15px; } .toc-l2 > a:hover { color: var(--wine); text-decoration: none; }
.toc-num { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--wine); color: var(--white); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.toc-sub { list-style: none; margin: 2px 0 8px 32px; padding: 0; } .toc-sub li { margin: 2px 0; } .toc-sub a { color: var(--muted); font-size: 14px; padding: 3px 0; display: inline-block; } .toc-sub a:hover { color: var(--wine); }
.post-body { counter-reset: secn; }
.post-body h2 { counter-increment: secn; display: flex; align-items: center; gap: 13px; font-size: 24px; margin: 34px 0 14px; }
.post-body h2::before { content: counter(secn); flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--wine); color: var(--white); font-size: 17px; font-weight: 700; font-family: var(--font); display: flex; align-items: center; justify-content: center; }
.post-body h3 { font-size: 19px; }
.post-figure { margin: 18px 0; } .post-figure img { margin: 0; width: 100%; } .post-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; font-style: italic; }
.faq-block { margin: 34px 0 10px; } .faq-h { font-size: 24px; margin-bottom: 14px; }
.faq-block .faq-item { background: var(--white); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink); padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q:hover { color: var(--wine); } .faq-ic { flex: none; font-size: 22px; font-weight: 400; color: var(--wine); line-height: 1; transition: transform .2s; } .faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; } .faq-a > * { overflow: hidden; min-height: 0; } .faq-item.open .faq-a { grid-template-rows: 1fr; } .faq-a p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, var(--wine-dark), var(--wine-2)); color: var(--cream); border-radius: var(--radius); padding: 22px 24px; margin: 30px 0 0; }
.cta-box b { font-size: 18px; color: var(--white); font-family: var(--font-head); } .cta-box p { margin: 4px 0 0; color: var(--cream-2); font-size: 14.5px; }
.blog-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--head-h) + 12px); }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-list { list-style: none; margin: 0; padding: 0; } .side-list li { margin-bottom: 13px; } .side-list li:last-child { margin-bottom: 0; }
.side-list a { display: flex; gap: 11px; align-items: center; color: var(--ink); } .side-list a:hover { text-decoration: none; color: var(--wine); }
.side-list img { flex: none; width: 64px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--cream-2); }
.side-list span { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-cta { text-align: center; background: var(--cream); } .side-cta b { font-size: 17px; font-family: var(--font-head); color: var(--wine-dark); } .side-cta p { color: var(--ink-2); font-size: 14px; margin: 6px 0 14px; }
.related { margin: 44px 0 10px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.rel-card:hover { box-shadow: var(--shadow); text-decoration: none; } .rel-thumb { aspect-ratio: 16/9; background: var(--cream-2); } .rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { padding: 14px; } .rel-info h3 { font-size: 16px; font-family: var(--font); font-weight: 700; margin: 0; line-height: 1.4; color: var(--ink); } .rel-card:hover h3 { color: var(--wine); } .rel-date { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- 9d. Trang tĩnh + liên hệ ---------- */
.static-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.static-body { padding: 28px 32px; font-size: 15.5px; line-height: 1.7; } .static-body h1 { margin-bottom: .8em; } .static-updated { margin: 24px 0 0; font-size: 13px; }
.static-side .card { padding: 16px 18px; } .static-link { display: block; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; } .static-link:first-of-type { border-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-card h2 { font-size: 19px; margin-top: 1em; } .contact-card h2:first-child { margin-top: 0; }
.contact-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0 0 16px; } .contact-dl dt { font-weight: 600; color: var(--ink-2); } .contact-dl dd { margin: 0; }
.contact-actions { margin-bottom: 8px; }
.map-wrap { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); } .map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 9e. Dùng chung tài khoản / mua hàng: thông báo, pill, bảng, OTP, form ---------- */
.hide { display: none !important; }
.small { font-size: 13px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--wine-2); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.linkbtn:hover { color: var(--wine); } .linkbtn.danger { color: var(--danger); }
.msg { display: none; border-radius: var(--radius-sm); padding: 10px 13px; font-size: 14px; margin: 0 0 14px; border: 1px solid transparent; }
.msg.show { display: block; }
.msg.err { background: #fbeae9; color: var(--danger); border-color: #f0c9c6; } .msg.ok { background: #e6f3ec; color: var(--ok); border-color: #c5e2d1; }
.msg.warn { background: #fbf1df; color: var(--warn); border-color: #efd9ab; } .msg.info { background: #e7eef6; color: var(--info); border-color: #c8d7e8; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--cream-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: #e6f3ec; color: var(--ok); } .pill.warn { background: #fbf1df; color: var(--warn); } .pill.info { background: #e7eef6; color: var(--info); } .pill.danger { background: #fbeae9; color: var(--danger); }
.pill.tag { background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); } .pill.lg { font-size: 14px; padding: 6px 14px; }
.tbl-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--cream); }
.tbl .r { text-align: right; } .plus { color: var(--ok); } .minus { color: var(--danger); }
.form-narrow { max-width: 520px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; margin: 8px 0 14px; cursor: pointer; } .check input { width: 17px; height: 17px; accent-color: var(--wine); }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 62px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--wine-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
input[disabled] { background: var(--cream); color: var(--muted); }
.f-links { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 12px; font-size: 13.5px; }
.ts-wrap { display: none; margin: 0 0 12px; } .ts-wrap.show { display: block; } .ts-error { font-size: 13px; color: var(--danger); }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.otp-block { margin-top: 6px; } .otp-status { font-size: 14px; color: var(--muted); background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 12px; }
.otp-status.ok { background: #e6f3ec; color: var(--ok); } .otp-status.warn { background: #fbf1df; color: var(--warn); } .otp-status.err { background: #fbeae9; color: var(--danger); }
.otp-block .btn-outline { margin-top: 10px; }
input.otp-input { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 10px; padding: 12px 6px 12px 16px; font-variant-numeric: tabular-nums; } input.otp-input::placeholder { color: var(--line-2); font-weight: 500; letter-spacing: 10px; }
.empty { text-align: center; padding: 36px 16px; background: var(--cream); border-radius: var(--radius); margin: 10px 0; } .empty p { color: var(--muted); } .empty .btn { margin-top: 4px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.subtabs a { padding: 8px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-weight: 600; font-size: 14px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--wine); border-bottom-color: var(--gold); background: var(--wine-soft); } .subtabs a:hover { text-decoration: none; background: var(--cream); }
.oi { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.oi img { width: 56px; height: 56px; object-fit: contain; background: var(--cream); border-radius: var(--radius-sm); } .oi em { font-style: normal; color: var(--muted); } .oi b { white-space: nowrap; } .oi:last-child { border-bottom: 0; }
.sum-dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 14px 0; font-size: 14.5px; } .sum-dl dd { margin: 0; text-align: right; } .sum-dl dt { color: var(--ink-2); }
.sum-dl .total { font-weight: 700; font-size: 18px; color: var(--wine); border-top: 1px solid var(--line); padding-top: 10px; }
.sum-note { font-size: 13.5px; background: var(--cream); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/* Trang đăng nhập / đăng ký: dải đỏ vang + thẻ form */
.auth-page main, .auth-band { flex: 1; } .auth-band { background: linear-gradient(135deg, var(--wine-dark), var(--wine) 60%, var(--wine-2)); padding: 48px 0; display: flex; align-items: center; }
.auth-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.auth-pitch { color: var(--cream); max-width: 520px; } .auth-pitch h1 { color: var(--white); font-size: 36px; margin-bottom: 12px; } .auth-pitch p { color: var(--cream-2); font-size: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px; color: var(--gold-2); font-weight: 700; margin-bottom: 10px; }
.auth-pitch ul { padding-left: 18px; color: var(--cream-2); line-height: 1.8; }
.auth-card { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; width: 440px; max-width: 100%; flex-shrink: 0; border-top: 4px solid var(--gold); }
.auth-card h2 { margin: 0 0 4px; font-size: 24px; } .auth-card .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.auth-foot { text-align: center; font-size: 14px; margin-top: 16px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0 12px; } .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: flex; gap: 10px; }
.btn-social { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-weight: 600; }
.btn-social:hover { background: var(--cream); text-decoration: none; border-color: var(--gold-dark); } .btn-social.going { opacity: .55; pointer-events: none; }
.social-id { display: flex; align-items: center; gap: 12px; background: var(--cream); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; } .social-avatar { border-radius: 50%; }

/* ---------- 9f. Trang tài khoản ---------- */
.prof { display: grid; grid-template-columns: 250px 1fr; gap: 22px; margin: 22px auto 40px; align-items: start; }
.prof-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: calc(var(--head-h) + 16px); box-shadow: var(--shadow-sm); }
.prof-side .who { display: flex; gap: 10px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; } .prof-side .who b { display: block; font-size: 15px; } .prof-side .who span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.avatar.lg { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; } .avatar.xl { width: 72px; height: 72px; font-size: 30px; flex-shrink: 0; }
.prof-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 15px; }
.prof-nav a:hover { background: var(--cream); text-decoration: none; } .prof-nav a.on { background: var(--wine); color: var(--white); }
.prof-nav a em { font-style: normal; font-size: 12px; background: var(--gold); color: var(--wine-dark); border-radius: 999px; padding: 1px 8px; }
.prof-nav a.out { color: var(--danger); border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 14px; }
.prof-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; box-shadow: var(--shadow-sm); }
.prof-main h1 { font-size: 26px; } .prof-main h2 { font-size: 19px; margin: 22px 0 12px; } .prof-main h2:first-of-type { margin-top: 0; }
.acc-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; } .acc-head h1 { margin-bottom: 4px; } .acc-head p { margin: 0 0 6px; } .acc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat { display: block; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; color: inherit; } .stat:hover { text-decoration: none; border-color: var(--gold); }
.stat-h { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; } .stat-v { font: 700 28px/1.3 var(--font-head); color: var(--wine-dark); margin: 4px 0 6px; } .stat-v.big { font-size: 40px; } .stat-v small { font-size: 15px; font-family: var(--font); color: var(--muted); }
.stat p { margin: 0; font-size: 13px; }
.order-list { display: flex; flex-direction: column; gap: 6px; } .order-row { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; background: var(--cream); border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; } .order-row:hover { text-decoration: none; background: var(--cream-2); }
.order-cards { display: flex; flex-direction: column; gap: 14px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } .order-card header, .order-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--cream); }
.order-card header b { font-size: 16px; } .order-items { padding: 4px 16px; } .order-card footer .price { color: var(--wine); font-size: 16px; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.addr-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px; font-size: 14.5px; } .addr-card.default { padding-top: 34px; } .addr-card.default { border-color: var(--gold); background: var(--cream); } .addr-card p { margin: 6px 0; color: var(--ink-2); }
.addr-flag { position: absolute; top: 10px; right: 12px; font-size: 11.5px; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .5px; } .addr-card .btn-row { margin-top: 8px; gap: 14px; font-size: 13.5px; }
.addr-form { margin-top: 10px; } .addr-form h2 { margin-top: 0; }
.points-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; margin-bottom: 20px; } .points-rules { background: var(--cream); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; } .points-rules ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .link-card h2 { margin-top: 0; }

/* ---------- 9g. Giỏ hàng / thanh toán / trang QR / chi tiết đơn / tra cứu ---------- */
.cart-grid, .co-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; margin-bottom: 40px; }
.cline { display: grid; grid-template-columns: 96px 1fr auto 130px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); } .cline.off { opacity: .75; }
.cline-img img { width: 96px; height: 96px; object-fit: contain; background: var(--paper); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cline-name { font-weight: 600; color: var(--ink); display: block; margin: 2px 0 4px; } .cline-note { color: var(--danger); font-size: 13px; margin: 0 0 4px; } .cline-price { color: var(--muted); font-size: 14px; }
.cline-qty { display: flex; flex-direction: column; align-items: center; gap: 6px; } .cline-total { text-align: right; font-weight: 700; color: var(--wine); font-size: 16px; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; } .qty button { width: 36px; border: 0; background: var(--cream); font: inherit; font-size: 18px; cursor: pointer; } .qty input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 600; padding: 8px 0; -moz-appearance: textfield; } .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; }
.cart-sum, .co-sum { position: sticky; top: calc(var(--head-h) + 16px); } .cart-sum h2, .co-sum h2 { font-size: 19px; margin-bottom: 8px; } .cart-sum .btn-lg { margin-top: 12px; }
.co-sec { margin-bottom: 18px; } .co-sec h2 { font-size: 19px; margin-bottom: 14px; }
.addr-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; } .addr-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 400; font-size: 14px; cursor: pointer; margin: 0; color: var(--ink); }
.addr-opt:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); } .addr-opt input { margin-top: 3px; accent-color: var(--wine); } .addr-opt em { font-style: normal; font-size: 12px; color: var(--gold-dark); font-weight: 700; margin-left: 6px; }
.co-notes { background: var(--cream); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; } .co-notes ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.co-items { max-height: 320px; overflow-y: auto; } .co-points { background: var(--cream); border-radius: var(--radius-sm); padding: 12px; margin-top: 12px; } .points-row { display: flex; gap: 8px; } .points-row input { max-width: 160px; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pay-count { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; } .pay-count span { display: block; font-size: 12px; color: var(--muted); } .pay-count b { font: 700 28px/1.2 var(--font-head); color: var(--wine); font-variant-numeric: tabular-nums; } .pay-count.warn b { color: var(--danger); }
.pay-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
.pay-qr { text-align: center; } .pay-qr img { width: 300px; height: 300px; margin: 0 auto 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); } .pay-noqr { padding: 60px 10px; color: var(--muted); }
.pay-amount { font-size: 15px; color: var(--ink-2); } .pay-amount b { display: block; font: 700 30px/1.2 var(--font-head); color: var(--wine); }
.pay-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--warn); background: #fbf1df; border-radius: 999px; padding: 6px 14px; } .pay-wait .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); animation: pulse 1.2s infinite; } @keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.pay-info h2 { font-size: 19px; margin: 18px 0 10px; } .pay-info h2:first-child { margin-top: 0; }
.pay-dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; font-size: 15px; margin: 0 0 12px; } .pay-dl dd { margin: 0; } .pay-dl dt { color: var(--muted); } .pay-dl .linkbtn { font-size: 13px; margin-left: 6px; } .pay-code { font-family: Consolas, Menlo, monospace; font-size: 18px; letter-spacing: 1px; color: var(--wine); }
.pay-warn { background: #fbf1df; border-left: 3px solid var(--warn); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13.5px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: none; }
.steps li { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; padding-top: 38px; } .steps li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line-2); } .steps li:first-child::before { display: none; }
.steps li.done span, .steps li.now span { background: var(--wine); color: var(--white); } .steps li.done::before, .steps li.now::before { background: var(--wine); } .steps li.now { color: var(--wine); } .steps li.done { color: var(--ink-2); }
.order-pay, .order-cancel { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; border-left: 4px solid var(--warn); } .order-pay.ok { border-left-color: var(--ok); } .order-pay.info { border-left-color: var(--info); } .order-cancel { border-left-color: var(--danger); display: block; }
.order-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 40px; } .order-grid h2 { font-size: 19px; }
.track-card { margin: 10px 0 40px; } .track-card h1 { margin-bottom: 6px; }

/* ---------- 9h. Khung nhắn tin hỗ trợ (app/widgets.php, widgets.js; cụm nút liên hệ nổi: assets/chat-widget.css) ---------- */
/* Hộp chat: đáy ngang với nút "Nhắn tin hỗ trợ" (nút cuối cụm, cụm cách đáy 120px — chat-widget.css), cách cụm 16px về bên trái */
.sp-panel { position: fixed; right: 101px; bottom: 120px; z-index: 160; width: 372px; max-width: calc(100vw - 130px); height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sp-panel[hidden] { display: none; }
@media (max-height: 600px) and (min-width: 821px) { .sp-panel { right: 16px; bottom: 74px; height: calc(100vh - 90px); } }
.sp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--cream); background: linear-gradient(135deg, var(--wine-2), var(--wine-dark)); }
.sp-head-t { flex: 1; min-width: 0; } .sp-head-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp-head-t span { display: block; font-size: 12px; opacity: .85; }
/* nút đóng tròn × (cùng kiểu với nút đóng tấm lọc), nền trắng mờ trên dải wine */
.sp-hbtn { flex: none; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: var(--cream); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .15s; }
.sp-hbtn svg { width: 18px; height: 18px; } .sp-hbtn:hover { background: rgba(255,255,255,.28); } .sp-hbtn:active { transform: scale(.94); }
.sp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sp-greet { align-self: center; max-width: 94%; background: var(--wine-soft); border: 1px dashed var(--line-2); color: var(--ink-2); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; text-align: center; }
.sp-day { align-self: center; font-size: 12px; color: var(--muted); padding: 2px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.sp-msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.sp-msg p { margin: 0; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; }
.sp-msg small { font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.sp-msg.me { align-self: flex-end; align-items: flex-end; } .sp-msg.me p { background: var(--wine); color: var(--cream); border-bottom-right-radius: 4px; }
.sp-msg.them { align-self: flex-start; align-items: flex-start; } .sp-msg.them p { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sp-img { display: block; max-width: 240px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--white); } .sp-img img { display: block; width: 100%; }
.sp-msg p.sp-img-gone { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-style: italic; font-size: 13px; }
.sp-older { align-self: center; font-size: 13px; }
.sp-alert { padding: 9px 14px; background: #fbf1df; color: var(--warn); font-size: 13.5px; border-top: 1px solid var(--line); }
.sp-attach { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--cream-2); font-size: 13px; } .sp-attach img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.sp-attach span { flex: 1; min-width: 0; color: var(--ink-2); }
.sp-attach-x { flex: none; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); color: var(--wine); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.sp-attach-x svg { width: 15px; height: 15px; } .sp-attach-x:hover { background: var(--wine-soft); border-color: var(--wine-3); }
.sp-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.sp-form textarea { flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.4; }
.sp-pick { flex: none; width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--wine); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sp-pick svg { width: 22px; height: 22px; transition: transform .15s; }
.sp-pick:hover { background: var(--wine-soft); border-color: var(--wine-3); } .sp-pick:hover svg { transform: scale(1.08); }
.sp-pick:active svg { transform: scale(.96); } .sp-pick:disabled { opacity: .5; cursor: default; }
.sp-form .btn { height: 42px; }

/* ---------- 10. Toast / modal ---------- */
#rtd-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--white); padding: 11px 16px; border-radius: var(--radius-sm); font-size: 14px; opacity: 0; transform: translateY(8px); transition: all .25s; box-shadow: var(--shadow); max-width: 340px; }
.toast.show { opacity: 1; transform: none; } .toast.ok { background: var(--ok); } .toast.warn { background: var(--warn); } .toast.err { background: var(--danger); }
.modal-shade { position: fixed; inset: 0; background: rgba(43, 31, 27, .55); z-index: 190; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--paper); border-radius: var(--radius); padding: 22px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.modal .btn-row { justify-content: flex-end; margin-top: 14px; }
/* Hộp "Đã thêm vào giỏ" (rtdAddedPop, common.js): giữa màn hình, mờ dần, tự tắt sau 2 s, không chặn thao tác */
.added-pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94); z-index: 210; min-width: 260px; max-width: calc(100vw - 32px); padding: 20px 28px; text-align: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(43, 31, 27, .28); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.added-pop.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.added-pop b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--wine); margin-bottom: 4px; }
.added-pop span { display: block; font-size: 13.5px; color: var(--ink-2); }
/* Ô chọn có tìm kiếm (rtdCombo, common.js) thay cho <select> tỉnh / phường: gõ để lọc, mũi tên + Enter để chọn */
.combo { position: relative; }
.combo-src { display: none; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 240px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 80; }
.combo-list[hidden] { display: none; }
.combo-list li { padding: 8px 12px; font-size: 14px; cursor: pointer; }
.combo-list li:hover, .combo-list li.on { background: var(--wine-soft); color: var(--wine); }
.combo-list li.none { color: var(--muted); cursor: default; background: none; }

/* ---------- 11. Mobile (giữ khối này cuối file) ---------- */
@media (max-width: 1100px) {
  .pgrid-6 { grid-template-columns: repeat(4, 1fr); } .pgrid-5 { grid-template-columns: repeat(4, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr) calc(100% / 3 - 18px); } .hero-cats { display: none; }
  .mega { width: 760px; }
}
@media (max-width: 820px) {
  :root { --head-h: 64px; }
  .topbar, .catmenu { display: none; }
  .mainbar { height: 64px; } .mainbar .wrap { gap: 10px; }
  .brand img { height: 42px; }
  .search { max-width: none; } .search input, .search button { height: 40px; } .search button { padding: 0 14px; }
  /* chế độ tìm kiếm (body.search-focus, bật khi ô tìm có focus): logo thu lại mượt để ô tìm rộng ra, nút ← hiện bên trái */
  .brand { max-width: 170px; overflow: hidden; transition: max-width .32s cubic-bezier(.4, 0, .2, 1), opacity .2s, transform .32s cubic-bezier(.4, 0, .2, 1), margin .32s cubic-bezier(.4, 0, .2, 1); }
  body.search-focus .brand { max-width: 0; opacity: 0; transform: translateX(-14px); margin-right: -10px; pointer-events: none; }
  .search .search-back { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 0; min-width: 0; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 999px; background: transparent; color: var(--wine); opacity: 0; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: width .32s cubic-bezier(.4, 0, .2, 1), margin .32s cubic-bezier(.4, 0, .2, 1), opacity .2s .08s, background .15s; }
  .search .search-back svg { width: 22px; height: 22px; flex: none; }
  body.search-focus .search .search-back { width: 36px; margin-right: 4px; opacity: 1; } .search .search-back:active { background: var(--wine-soft); }
  .search input { transition: border-color .2s, box-shadow .2s; }
  body.search-focus .search input { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(92, 26, 46, .12); }
  /* khung gợi ý rộng gần hết màn hình, cuộn được, không chui dưới thanh đáy */
  .sugg { position: fixed; left: 10px; right: 10px; top: calc(var(--head-h) + 6px); border-radius: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: calc(100vh - var(--head-h) - var(--bnav-h) - 24px); max-height: calc(100dvh - var(--head-h) - var(--bnav-h) - env(safe-area-inset-bottom, 0px) - 24px); }
  .cart-btn { padding: 8px 10px; font-size: 0; gap: 0; } .cart-btn .cart-count { font-size: 12px; }
  body { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(61, 15, 30, .08); z-index: 100; }
  .bnav a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--muted); position: relative; -webkit-tap-highlight-color: transparent; }
  .bnav a:hover { text-decoration: none; }
  .bnav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bnav svg { width: 22px; height: 22px; padding: 4px 14px; box-sizing: content-box; border-radius: 999px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background-color .15s; }
  .bnav a.on { color: var(--wine); font-weight: 700; }
  .bnav a.on svg, .bnav a:active svg { background: var(--wine-soft); stroke-width: 2; }
  .bnav-n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--wine); color: var(--white); font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 17px; text-align: center; }
  .bnav-n.hide { display: none; }
  .catsheet-shade { position: fixed; inset: 0; background: rgba(43, 31, 27, .5); z-index: 110; } .catsheet-shade.open { display: block; }
  .catsheet { position: fixed; left: 0; right: 0; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); max-height: 70vh; background: var(--paper); border-radius: 14px 14px 0 0; z-index: 120; transform: translateY(110%); transition: transform .25s; flex-direction: column; }
  .catsheet.open { display: flex; transform: none; }
  .catsheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .catsheet-close { border: 0; background: var(--cream-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; }
  .catsheet-body { overflow-y: auto; padding: 8px 16px 16px; }
  .cs-sec { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cs-h { display: block; font-weight: 700; color: var(--wine-dark); padding: 6px 0; font-family: var(--font-head); font-size: 16px; }
  .cs-i { display: block; padding: 6px 0 6px 12px; color: var(--ink-2); font-size: 14px; } .cs-sub { padding-left: 26px; font-size: 13.5px; color: var(--muted); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 12px; } .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .icon-row { grid-template-columns: repeat(4, 1fr); gap: 8px; } .icon-item { padding: 10px 6px; font-size: 12px; } .icon-item img { width: 48px; height: 48px; }
  .pgrid, .pgrid-6, .pgrid-5, .pgrid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  /* danh sách: bộ lọc thành tấm trượt từ trái */
  .list-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .filters-open { display: inline-flex; }
  /* tấm lọc = cột flex: đầu cố định · thân cuộn · chân cố định với nút "Xem N sản phẩm" (chừa safe-area) */
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); max-height: none; border-radius: 0; z-index: 130; transform: translateX(-105%); transition: transform .25s; display: flex; flex-direction: column; padding: 0; overflow: hidden; box-shadow: 10px 0 32px rgba(61, 15, 30, .18); }
  .filters.open { transform: none; }
  .filters-head { flex: 0 0 auto; margin: 0; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px; font-size: 16px; }
  .filters-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cream-2); color: var(--ink-2); font: inherit; font-size: 22px; line-height: 1; -webkit-tap-highlight-color: transparent; }
  .filters-close:active { background: var(--cream-3); }
  .filters-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
  .filters-body .fopt { padding: 7px 0; }
  .filters-foot { display: block; flex: 0 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -8px 22px rgba(61, 15, 30, .07); }
  .filters-apply { width: 100%; padding: 13px 16px; font-size: 15px; border-radius: 10px; box-shadow: 0 6px 16px rgba(92, 26, 46, .22); }
  .filters-apply:active { transform: translateY(1px); }
  /* tấm lọc mở → ẩn cụm widget chat (Zalo/Messenger/gọi) để không đè lên tấm lọc */
  .chat-widgets-container { transition: opacity .2s, visibility .2s; }
  body.filters-open .chat-widgets-container, body.search-focus .chat-widgets-container { opacity: 0; visibility: hidden; pointer-events: none; }   /* cả khi đang tìm kiếm: không đè lên khung gợi ý */
  .filters-shade { position: fixed; inset: 0; background: rgba(43, 31, 27, .5); z-index: 125; } .filters-shade.open { display: block; }
  .cat-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; } .cat-card img { width: 64px; height: 64px; } .cat-card { font-size: 12.5px; padding: 10px 6px; }
  /* sản phẩm */
  .pd-top { grid-template-columns: minmax(0, 1fr); gap: 18px; } .pd-gallery, .pd-side, .blog-side { position: static; }
  .pd-title { font-size: 21px; } .pd-price { font-size: 28px; } .pd-body { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
  .pd-section { padding: 16px; } .spec-table th { width: 40%; } .pd-buy .btn-lg { flex: 1 1 140px; padding: 12px 14px; }
  .muc-luc-container { float: none; width: 100%; margin: 0 0 16px; max-height: 280px; }
  .f2 { grid-template-columns: minmax(0, 1fr); gap: 0; } .rv-summary { gap: 16px; }
  /* cẩm nang */
  .feat-grid { grid-template-columns: minmax(0, 1fr); } .feat-big { min-height: 230px; } .feat-big-cap h3 { font-size: 18px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .post { padding: 18px 16px; } .post-title { font-size: 24px; }
  .post-body h2 { font-size: 20px; } .post-body h2::before { width: 32px; height: 32px; font-size: 15px; }
  .list-card { gap: 12px; } .list-thumb { width: 130px; } .list-info h3 { font-size: 16px; } .list-info p { display: none; }
  .rel-grid { grid-template-columns: minmax(0, 1fr); } .cta-box { flex-direction: column; align-items: flex-start; } .cta-box .btn { width: 100%; }
  /* trang tĩnh + liên hệ */
  .static-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); } .static-body { padding: 18px 16px; } .contact-dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .contact-dl dd { margin-bottom: 8px; }
  /* tài khoản + mua hàng */
  .auth-band { padding: 20px 0 28px; align-items: flex-start; } .auth-band .wrap { flex-direction: column; gap: 18px; } .auth-pitch { max-width: none; } .auth-pitch h1 { font-size: 24px; } .auth-pitch ul { display: none; } .auth-card { width: 100%; padding: 20px 16px; }
  .prof { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; } .prof-side { position: static; padding: 8px; } .prof-side .who { display: none; }
  .prof-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; } .prof-nav a { white-space: nowrap; padding: 9px 12px; font-size: 14px; } .prof-nav a.out { border-top: 0; margin: 0; padding-top: 9px; }
  .prof-main { padding: 16px 14px; } .acc-head { gap: 12px; } .avatar.xl { width: 56px; height: 56px; font-size: 24px; }
  .order-row { grid-template-columns: 1fr auto; } .order-row .muted { display: none; } .points-head, .link-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl.stack thead { display: none; } .tbl.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } .tbl.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; } .tbl.stack td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; }
  .cart-grid, .co-grid, .pay-grid, .order-grid { grid-template-columns: minmax(0, 1fr); } .cart-sum, .co-sum { position: static; }
  .cline { grid-template-columns: 72px 1fr; gap: 10px 12px; } .cline-img img { width: 72px; height: 72px; } .cline-qty { grid-column: 1 / 3; flex-direction: row; justify-content: space-between; } .cline-total { grid-column: 1 / 3; }
  .co-sec { padding: 16px 14px; } .pay-qr img { width: 260px; height: 260px; } .pay-dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .pay-dl dd { margin-bottom: 8px; }
  .steps li { font-size: 11.5px; } .order-pay { flex-direction: column; align-items: flex-start; }
  .sec-head, .band-head { flex-wrap: wrap; } h1 { font-size: 24px; } h2 { font-size: 20px; } .band { border-radius: 0; }
  .foot-bottom { flex-direction: column; text-align: center; }
  #rtd-toasts { bottom: calc(var(--bnav-h) + 12px); left: 12px; right: 12px; } .toast { max-width: none; }
  /* Cụm liên hệ: thu gọn thành nút "Liên hệ" trên thanh đáy; khung chat phủ toàn màn hình (widgets.js gán height theo bàn phím) */
  .sp-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; max-width: none; height: auto; border-radius: 0; border: 0; z-index: 400; }
  body.sp-open { overflow: hidden; }
  /* iPhone: ô nhập < 16px làm trình duyệt phóng trang và đẩy thanh đáy xuống dưới thanh công cụ */
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .icon-row { grid-template-columns: repeat(4, 1fr); }
}
