/* Facesmooth web — giao diện app 3 cột theo Santagift (HA 22/10/2026)
   Thanh trái (menu) · cột giữa (feed/lưới) · cột phải (nổi bật). Màu theo bộ nhận diện Facesmooth.
   Không phụ thuộc jQuery/Bootstrap của theme Haravan cũ. */
:root {
  --primary: #0A6B52; --on-primary: #FFFFFF; --primary-hover: #07513E;
  --pc: #EAF8F4; --on-pc: #07513E;               /* primary container */
  --sc: #DFF6F0; --on-sc: #0B3A2E;               /* secondary container */
  --accent: #3CCAA9;
  --bg: #FFFFFF; --on-bg: #0B3A2E; --var: #5C716B;
  --low: #F3F8F6; --outline: #D3E5DF;
  --sale: #B3261E; --sale-bg: #FFE5E3;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --top: 0px; --bot: 0px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body.fs-app { font-family: var(--font); background: var(--bg); color: var(--on-bg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
.fs-app a { color: inherit; text-decoration: none; }
.fs-app img { display: block; max-width: 100%; }
.fs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-app svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fs-app button { font-family: inherit; cursor: pointer; }
.fs-app :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Thanh trái ─────────────────────────────────────────── */
.fs-sb {
  position: fixed; inset: 0 auto 0 0; width: min(85%, 320px); z-index: 60;
  display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--pc);
  transform: translateX(-100%); transition: transform .28s ease, width .2s ease; overflow-y: auto;
}
.fs-sb.open { transform: none; box-shadow: 8px 0 32px rgba(10,107,82,.12); }
.fs-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fs-scrim.on { opacity: 1; pointer-events: auto; }
.sb-dau { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--pc); }
.sb-logo { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.sb-toggle { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--primary); border-radius: 10px; }
.sb-toggle:hover { background: var(--pc); }
.sb-search { padding: 12px 16px; border-bottom: 1px solid var(--pc); }
.sb-search form { display: flex; align-items: center; gap: 8px; background: var(--sc); color: var(--on-sc); border-radius: var(--r-pill); padding: 8px 12px; }
.sb-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--on-sc); outline: none; }
.sb-search input::placeholder { color: var(--var); }
.sb-nav { flex: 1; padding: 12px; }
.sb-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sb-hr { border: 0; border-top: 1px solid var(--pc); margin: 8px 0; }
.sb-label { padding: 8px 16px 4px; font-size: 11px; font-weight: 500; color: var(--var); }
.sb-muc { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--r-pill); color: var(--primary); font-size: 14px; font-weight: 600; transition: background .15s; }
.sb-muc:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.sb-muc.on { background: var(--primary); color: var(--on-primary); }
.sb-muc.nho { font-weight: 500; padding: 8px 16px; }
.sb-cuoi { padding: 16px 20px; border-top: 1px solid var(--pc); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--var); }

/* ── Khung chính + cột phải ─────────────────────────────── */
.fs-wrap { display: flex; min-height: 100dvh; padding-top: var(--top); padding-bottom: var(--bot); }
.fs-main { flex: 1; min-width: 0; }
.fs-rail {
  display: none; flex-direction: column; gap: 20px; width: 288px; flex: none; position: sticky; top: 0;
  height: 100dvh; overflow-y: auto; border-left: 1px solid var(--pc); padding: 20px 16px; background: var(--bg);
}
.rail-card { background: var(--pc); border-radius: var(--r-lg); padding: 16px; }
.rail-mini { font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); margin: 0 0 8px; }
.rail-big { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.35; text-transform: uppercase; color: var(--on-pc); }
.rail-note { margin: 10px 0 0; font-size: 11.5px; color: var(--on-pc); line-height: 1.5; }
.rail-btn { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: var(--on-primary) !important; border-radius: var(--r-pill); padding: 10px 16px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rail-btn:hover { background: var(--primary-hover); }
.rail-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--var); }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rail-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--pc); border-radius: var(--r-md); background: var(--bg); transition: background .15s; }
.rail-item:hover { background: var(--pc); }
.rail-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); background: var(--low); flex: none; }
.rail-item b { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rail-item span { font-size: 12px; font-weight: 700; color: var(--primary); }
.rail-all { margin-top: 10px; display: flex; justify-content: center; padding: 10px; border: 1px solid var(--pc); border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.rail-all:hover { background: var(--pc); }
.rail-cuoi { margin-top: auto; border-top: 1px solid var(--pc); padding-top: 8px; font-size: 11.5px; color: var(--var); }
.rail-cuoi details { border-bottom: 1px solid var(--pc); }
.rail-cuoi summary { cursor: pointer; list-style: none; padding: 10px 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); display: flex; justify-content: space-between; }
.rail-cuoi summary::-webkit-details-marker { display: none; }
.rail-cuoi summary::after { content: "⌄"; font-size: 14px; line-height: 1; }
.rail-cuoi details[open] summary::after { content: "⌃"; }
.rail-cuoi details a { display: block; padding: 6px 0; color: var(--on-bg); }
.rail-cuoi details a:hover { color: var(--primary); }
.rail-cuoi details p { margin: 0 0 8px; line-height: 1.5; }

/* ── Feed trang chủ (cột giữa, khung 9:16) ──────────────── */
.fs-feed {
  height: calc(100dvh - var(--top) - var(--bot)); overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain; scrollbar-width: none; background: var(--bg);
}
.fs-feed::-webkit-scrollbar { display: none; }
.fs-slide {
  position: relative; height: calc(100dvh - var(--top) - var(--bot)); scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; width: min(calc((100dvh - var(--top) - var(--bot)) * 9 / 16), 100%); margin: 0 auto;
  background: var(--low); border-left: 1px solid var(--outline); border-right: 1px solid var(--outline);
}
.slide-anh { position: absolute; inset: 0; display: block; }
.slide-anh img { width: 100%; height: 100%; object-fit: contain; padding: 12% 6% 34%; }
.slide-hero { background: var(--pc); display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.hero-mini { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin: 0 0 14px; }
.hero-h { margin: 0; font-size: clamp(34px, 5.4vh, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; color: var(--on-pc); }
.hero-h em { font-style: normal; color: var(--primary); }
.hero-p { margin: 18px 0 0; font-size: 15px; color: var(--var); max-width: 28ch; }
.hero-cta { margin-top: 26px; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; background: var(--primary); color: var(--on-primary) !important; padding: 13px 24px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero-cta:hover { background: var(--primary-hover); }
.hero-ve { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--var); display: flex; align-items: center; gap: 6px; }
.slide-badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--sale); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-pill); }
.slide-duoi { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 56px 14px 18px; background: linear-gradient(to bottom, transparent, rgba(243,248,246,.94) 46%); }
.slide-brand { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--on-bg); margin-bottom: 8px; }
.slide-brand svg { color: var(--primary); width: 15px; height: 15px; stroke-width: 2.4; }
.pbar { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--outline); border-radius: var(--r-lg); padding: 8px 10px; }
.pbar img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--low); flex: none; }
.pbar .tt { min-width: 0; flex: 1; }
.pbar .tt b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar .tt span { font-size: 15px; font-weight: 800; color: var(--primary); }
.pbar .tt s { margin-left: 6px; font-size: 11px; color: var(--var); font-weight: 500; }
.buy { flex: none; background: var(--primary); color: var(--on-primary) !important; border-radius: var(--r-pill); padding: 10px 16px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.buy:hover { background: var(--primary-hover); }
.slide-cap { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--var); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Trang con (lưới sản phẩm, trang chữ…) ──────────────── */
.fs-page { max-width: 760px; margin: 0 auto; }
.pg-head { position: sticky; top: var(--top); z-index: 20; display: flex; align-items: center; justify-content: center; min-height: 52px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline); padding: 0 52px; }
.pg-head h1 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); text-align: center; }
.pg-back { position: absolute; left: 6px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--primary); border-radius: 50%; }
.pg-back:hover { background: var(--pc); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 12px; border-bottom: 1px solid var(--outline); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 6px 14px; border: 1px solid var(--outline); border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--on-bg); background: var(--bg); }
.chips a:hover { background: var(--pc); }
.chips a.on { background: var(--sc); border-color: var(--sc); color: var(--primary); }
.fs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
@media (min-width: 640px) { .fs-grid { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--bg); border-radius: var(--r-lg); box-shadow: 0 1px 6px rgba(11,58,46,.10); overflow: hidden; display: flex; flex-direction: column; }
.card-anh { position: relative; display: block; aspect-ratio: 1; background: var(--low); }
.card-anh img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.card-badge { position: absolute; top: 8px; left: 8px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); }
.card-het { position: absolute; top: 8px; right: 8px; background: var(--outline); color: var(--var); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.card-tt { padding: 10px 12px 12px; display: flex; align-items: flex-end; gap: 8px; flex: 1; }
.card-tt .tx { flex: 1; min-width: 0; }
.card-tt h3 { margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.card-tt .gia { margin-top: 4px; font-size: 14px; font-weight: 800; color: var(--primary); }
.card-tt .goc { display: block; font-size: 11px; color: var(--var); text-decoration: line-through; font-weight: 500; }
.card-go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--sc); color: var(--primary); border-radius: 50%; }
.card-go:hover { background: var(--primary); color: var(--on-primary); }
.rong-trong { padding: 48px 20px; text-align: center; color: var(--var); font-size: 14px; }
.rong-trong a { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; }

/* ── Trang sản phẩm ─────────────────────────────────────── */
.sp { padding: 12px; display: grid; gap: 16px; }
.sp-anh { background: var(--low); border-radius: var(--r-lg); aspect-ratio: 1; overflow: hidden; width: 100%; max-width: 520px; margin: 0 auto; }
.sp-thumbs { max-width: 520px; margin: 0 auto; width: 100%; }
.sp-anh img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.sp-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sp-thumbs button { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--low); overflow: hidden; }
.sp-thumbs button.on { border-color: var(--primary); }
.sp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sp h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.sp-gia { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sp-gia b { font-size: 26px; font-weight: 800; color: var(--primary); }
.sp-gia s { font-size: 14px; color: var(--var); }
.sp-gia i { font-style: normal; background: var(--sale-bg); color: var(--sale); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); }
.sp-bien { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-bien span { padding: 6px 14px; border: 1px solid var(--outline); border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; }
.sp-nut { display: grid; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border: 2px solid var(--primary); }
.btn.dac { background: var(--primary); color: var(--on-primary) !important; }
.btn.dac:hover { background: var(--primary-hover); }
.btn.vien { background: var(--bg); color: var(--primary) !important; }
.btn.vien:hover { background: var(--pc); }
.sp-mota { font-size: 14px; line-height: 1.7; color: var(--on-bg); }
.sp-mota ul { padding-left: 20px; margin: 8px 0 14px; }
.sp-mota p { margin: 0 0 10px; }
.sp-mota img { height: auto; border-radius: var(--r-md); }
.sp-mota h3 { margin: 16px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.sp-lq { padding: 0; }
.sp-lq h3 { padding: 0 12px; margin: 8px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }

/* ── Trang chữ / liên hệ / tìm kiếm ─────────────────────── */
.prose { padding: 20px 16px 40px; font-size: 15px; line-height: 1.75; }
.prose h2, .prose h3 { color: var(--primary); line-height: 1.3; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose img { height: auto; border-radius: var(--r-md); }
.lh-luoi { display: grid; gap: 10px; padding: 16px 12px 32px; }
.lh-the { background: var(--pc); border-radius: var(--r-lg); padding: 16px 18px; }
.lh-the dt { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.lh-the dd { margin: 0; font-size: 15px; font-weight: 600; word-break: break-word; }
.lh-the a { text-decoration: underline; }
.tim { padding: 12px; }
.tim form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--outline); border-radius: var(--r-pill); padding: 8px 14px; background: var(--sc); }
.tim input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; outline: none; min-width: 0; }
.tim p { margin: 12px 4px 0; font-size: 13px; color: var(--var); }

/* ── Thanh trên + thanh dưới (điện thoại) ───────────────── */
.fs-top {
  position: fixed; inset: 0 0 auto 0; height: 56px; z-index: 50; display: flex; align-items: center; gap: 4px; padding: 0 8px;
  background: var(--bg); border-bottom: 1px solid var(--pc);
}
.fs-top .ic { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--primary); border-radius: 50%; }
.fs-top .lg { flex: 1; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.fs-bottom {
  position: fixed; inset: auto 0 0 0; height: 64px; z-index: 50; display: flex; background: var(--bg); border-top: 1px solid var(--pc);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.fs-bottom a, .fs-bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--var); font-size: 10.5px; font-weight: 600; }
.fs-bottom .on { color: var(--primary); }

/* ── Chip chat nổi (Zalo) ───────────────────────────────── */
.fs-chat { position: fixed; right: 16px; bottom: calc(var(--bot) + 16px); z-index: 45; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary) !important; box-shadow: 0 8px 24px rgba(10,60,46,.3); }
.fs-chat:hover { background: var(--primary-hover); }
.fs-chat svg { width: 24px; height: 24px; }

/* ── Điện thoại: chừa thanh trên/dưới ───────────────────── */
@media (max-width: 767px) {
  :root { --top: 56px; --bot: 64px; }
  .slide-anh img { padding: 10% 4% 38%; }
  .fs-slide { border: 0; width: 100%; }
  .sb-toggle[data-fs="thu"] { display: none; }
}
/* ── Máy tính ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .fs-top, .fs-bottom, .fs-scrim { display: none; }
  .fs-sb { width: 256px; transform: none; z-index: 40; }
  .fs-wrap { margin-left: 256px; transition: margin-left .2s; }
  .sb-thu .fs-sb { width: 76px; }
  .sb-thu .fs-wrap { margin-left: 76px; }
  .sb-thu .sb-nhan, .sb-thu .sb-label, .sb-thu .sb-cuoi, .sb-thu .sb-search, .sb-thu .sb-nho-ds { display: none; }
  .sb-thu .sb-dau { justify-content: center; padding-left: 0; padding-right: 0; }
  .sb-thu .sb-dau .sb-logo { display: none; }
  .sb-thu .sb-toggle { margin-left: 0; }
  .sb-thu .sb-muc { justify-content: center; padding-left: 0; padding-right: 0; }
  .fs-chat { bottom: 24px; }
}
@media (min-width: 1024px) { .fs-rail { display: flex; } }
@media (max-width: 767px) { .sb-dong { display: grid !important; } }
.sb-dong { display: none; }
/* ── Giỏ hàng · thanh toán · tra đơn (HA 22/10) ─────────── */
.fs-app [hidden] { display: none !important; }
.sb-dem { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--sc); color: var(--on-sc); font-size: 11px; font-weight: 800; }
.sb-muc.on .sb-dem { background: var(--on-primary); color: var(--primary); }
.fs-top .ic.cart { position: relative; }
.fs-top .ic.cart .sb-dem, .fs-bottom a .sb-dem { position: absolute; top: 4px; right: 2px; margin: 0; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; background: var(--primary); color: var(--on-primary); }
.fs-bottom a .sb-dem { left: 55%; right: auto; top: 6px; }
.sp-bien button { padding: 6px 14px; border: 1px solid var(--outline); border-radius: var(--r-pill); background: var(--bg); color: var(--on-bg); font-size: 12.5px; font-weight: 600; }
.sp-bien button.on { background: var(--sc); border-color: var(--primary); color: var(--primary); }
.sp-bien button.het { opacity: .5; text-decoration: line-through; }
.btn { cursor: pointer; font-family: inherit; }
.btn:disabled, .btn.tat { opacity: .5; pointer-events: none; }
.gh { padding: 12px 14px 40px; display: grid; gap: 12px; }
.gh-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gh-dong { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--outline); border-radius: var(--r-md); background: var(--bg); }
.gh-anh { flex: none; width: 64px; height: 64px; background: var(--low); border-radius: 10px; overflow: hidden; }
.gh-ds.nho .gh-anh { width: 48px; height: 48px; }
.gh-anh img { width: 100%; height: 100%; object-fit: contain; }
.gh-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gh-tt b { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-bien { font-size: 11.5px; color: var(--var); }
.gh-gia { font-size: 14px; font-weight: 800; color: var(--primary); }
.gh-het { font-size: 11.5px; font-weight: 700; color: var(--sale); }
.gh-sl { display: flex; align-items: center; gap: 4px; flex: none; }
.gh-sl button { width: 30px; height: 30px; border: 1px solid var(--outline); border-radius: 50%; background: var(--bg); color: var(--primary); font-size: 16px; font-weight: 700; line-height: 1; }
.gh-sl button:hover { background: var(--pc); }
.gh-sl span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 700; }
.gh-sl .gh-xoa { margin-left: 6px; border: 0; color: var(--var); font-size: 13px; }
.gh-tong { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 4px 0; border-top: 1px dashed var(--outline); font-size: 14px; }
.gh-tong b { font-size: 20px; font-weight: 800; color: var(--primary); }
.gh-ghichu { margin: 0; font-size: 12px; color: var(--var); line-height: 1.5; }
.gh-ghichu a { color: var(--primary); text-decoration: underline; }
.gh-loi { margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--sale-bg); color: var(--sale); font-size: 13px; font-weight: 600; }
.co-form { display: grid; gap: 12px; padding-top: 4px; }
.co-form h3 { margin: 8px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.co-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--var); }
.co-form input, .co-form textarea { font: inherit; font-size: 16px; font-weight: 500; color: var(--on-bg); padding: 11px 14px; border: 1px solid var(--outline); border-radius: var(--r-md); background: var(--bg); width: 100%; }
.co-form input:focus, .co-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.co-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .co-3 { grid-template-columns: repeat(3, 1fr); } }
.co-bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-pt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--pc); font-size: 13px; }
.co-pt b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.co-ok { text-align: center; padding: 16px 4px; display: grid; gap: 12px; }
.co-ok h2 { margin: 0; font-size: 22px; color: var(--primary); }
.co-ma { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--on-bg); }
.co-so { margin: 0; display: grid; gap: 6px; text-align: left; }
.co-so > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.co-so dt { color: var(--var); } .co-so dd { margin: 0; font-weight: 700; }
.co-so .t { padding-top: 8px; border-top: 1px dashed var(--outline); } .co-so .t dd { font-size: 18px; color: var(--primary); }
.lu-the { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--outline); border-radius: var(--r-lg); background: var(--bg); }
.lu-tt { margin: 0; font-size: 16px; font-weight: 800; color: var(--primary); }
.lu-ph { margin: 0; font-size: 13px; color: var(--var); }
.fs-toast { position: fixed; left: 50%; bottom: calc(var(--bot) + 24px); transform: translate(-50%, 20px); z-index: 80; background: var(--on-bg); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fs-toast.on { opacity: 1; transform: translate(-50%, 0); }
/* ── Feed kiểu dabugs: ảnh tràn khung, vuốt ngang đổi ảnh, cột nút phải, chấm trang (HA 22/10) ── */
.car { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car::-webkit-scrollbar { display: none; }
.car-i { flex: 0 0 100%; position: relative; scroll-snap-align: center; scroll-snap-stop: always; display: block; overflow: hidden; background: var(--low); }
.car-i .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.8) saturate(1.1); transform: scale(1.2); }
.car-i .fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.act { position: absolute; right: 10px; bottom: 200px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.act button, .act .act-lk { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(11,58,46,.42); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }
.act button span, .act .act-lk span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.act svg.i { width: 24px; height: 24px; stroke-width: 1.9; }
.act button.on svg { fill: currentColor; }
.act button[data-fs="like"].on { color: #ff6b87; }
.act button[data-fs="save"].on { color: var(--accent); }
.act-av { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.act-av img { width: 78%; height: auto; }
.dots { position: absolute; z-index: 4; display: flex; align-items: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.dots i.on { background: var(--accent); }
.dots .cnt { margin-left: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.mb-info { display: none; }
@media (min-width: 768px) {
  .car-i .fg { padding: 12% 6% 34%; }
  .dots { top: 16px; left: 50%; transform: translateX(-50%); }
  .act button, .act .act-lk { background: rgba(10,107,82,.85); }
}
@media (max-width: 767px) {
  :root { --bot: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body.template-index { --top: 0px; }
  .slide-hero, .slide-duoi, .slide-badge { display: none; }
  .fs-chat { display: none; }
  .fs-feed, .fs-slide { background: #0B2A22; }
  .fs-slide::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, rgba(0,0,0,.6)); z-index: 2; pointer-events: none; }
  /* thanh trên: ô tìm kiếm + giỏ + Zalo, trong suốt phủ lên ảnh ở trang chủ */
  .fs-top { gap: 2px; padding: 0 6px; }
  .fs-top .sr-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 4px; padding: 0 14px; border-radius: var(--r-pill); background: var(--low); color: var(--var); font-size: 14px; font-weight: 500; }
  .fs-top .sr-pill svg { width: 18px; height: 18px; }
  .template-index .fs-top { background: transparent; border-bottom: 0; }
  .template-index .fs-top::before { content: ""; position: absolute; inset: 0 0 -30px 0; background: linear-gradient(rgba(0,0,0,.5), transparent); pointer-events: none; z-index: -1; }
  .template-index .fs-top .ic { color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
  .template-index .fs-top .sr-pill { background: rgba(255,255,255,.22); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); }
  /* thông tin dưới ảnh: Mua ngay + chấm trang */
  .mb-info { display: block; position: absolute; left: 12px; right: 76px; bottom: 16px; z-index: 3; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
  .mb-tt { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mb-gia { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
  .mb-gia s { margin-left: 8px; font-size: 12px; font-weight: 500; opacity: .8; }
  .mb-buy { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-pill); background: rgba(11,58,46,.82); color: #fff !important; font-size: 14px; font-weight: 700; text-shadow: none; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }
  .dots { left: 146px; bottom: 16px; height: 42px; }
  .act { bottom: 20px; }
  .slide-anh img { padding: 0; }
  /* thanh dưới tối: Cửa hàng · Đơn hàng · Trang chủ · Giỏ hàng · Đã lưu */
  .fs-bottom { background: #0B2A22; border-top: 0; height: var(--bot); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fs-bottom a, .fs-bottom button { position: relative; color: rgba(255,255,255,.62); }
  .fs-bottom .on { color: #fff; }
  .fs-bottom .on::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 3px 3px; background: var(--accent); }
}
/* ── Trang Hậu mãi / Tôi: danh sách mục ─────────────────── */
.menu-ds { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; }
.menu-ds a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--outline); border-radius: var(--r-lg); background: var(--bg); }
.menu-ds a:hover { background: var(--pc); }
.menu-ds a > svg.i:first-child { width: 24px; height: 24px; color: var(--primary); }
.menu-ds span:not(.sb-dem) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.menu-ds b { font-size: 14px; font-weight: 700; }
.menu-ds em { font-style: normal; font-size: 12px; color: var(--var); }
.menu-ds .go { width: 18px; height: 18px; color: var(--var); }
.menu-ds .sb-dem { margin-left: 0; }
@media print { .fs-sb, .fs-rail, .fs-top, .fs-bottom, .fs-chat { display: none !important; } .fs-wrap { margin: 0 !important; } }
