:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #2d2118;
  --muted: #7a6a5c;
  --line: #eadfce;
  --brand: #a4532b;
  --brand-dark: #7d3c1c;
  --accent: #c9a25e;
  --soft: #f3e8d6;
  --danger: #c0392b;
  --success: #2e7d4f;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(80, 50, 20, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.25; margin: 0 0 .5em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; border-radius: 999px;
  background: var(--brand); color: #fff; padding: 10px 22px; font: inherit; font-weight: 600;
  transition: background .15s, transform .05s; text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-light { background: var(--soft); color: var(--ink); }
.btn-light:hover { background: #ead9bf; color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 16px; }

.form label { display: block; margin-bottom: 14px; font-weight: 500; font-size: 14px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 4px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(164, 83, 43, .25); border-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
select:disabled { background: #f6f1e8; color: var(--muted); }
.radio { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 400 !important; }
.radio input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

.alert { padding: 12px 16px; border-radius: 10px; margin: 12px 0; border: 1px solid; }
.alert-success { background: #eaf6ee; border-color: #b9e0c6; color: var(--success); }
.alert-error { background: #fdecea; border-color: #f4c2bc; color: var(--danger); }
.alert-info { background: #fff6e0; border-color: #f0d79c; color: #8a6514; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }

/* ---------- Header ---------- */
.topbar { background: var(--topbar, var(--ink)); color: #e8dccb; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.site-header { background: var(--surface); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Lora", serif; font-size: 22px; font-weight: 700; white-space: nowrap; }
.logo-img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; position: relative; }
.search input { margin: 0; border-radius: 999px; padding-right: 44px; background: var(--bg); }
.search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; cursor: pointer; }
.cart-link { position: relative; color: var(--ink); padding: 6px; }
.cart-count {
  position: absolute; top: -2px; right: -6px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 4px;
}
.main-nav { border-top: 1px solid var(--line); }
.main-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { color: var(--ink); padding: 10px 14px; white-space: nowrap; font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--hero-a, #f3e3c8) 0%, var(--hero-b, #f8efe1) 60%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); color: var(--brand-dark); }
.hero p { font-size: 17px; color: #5b4a3c; max-width: 520px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px !important; font-weight: 600; color: var(--accent) !important; }
.hero-art img { width: 100%; max-width: 420px; margin-left: auto; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -26px; position: relative; }
.features div { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.features strong { display: block; color: var(--brand-dark); }
.features span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 36px; padding-bottom: 20px; }
.section-title { font-size: 26px; margin-bottom: 18px; position: relative; padding-bottom: 8px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--accent); border-radius: 2px; }
.page-title { font-size: 28px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.cat-card strong { display: block; font-family: "Lora", serif; font-size: 18px; color: var(--brand-dark); }
.cat-card span { font-size: 13px; color: var(--muted); }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(80, 50, 20, .12); }
.pc-img { position: relative; aspect-ratio: 1 / 1; background: var(--soft); display: block; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-sale, .badge-out { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--danger); }
.badge-out { left: auto; right: 10px; background: #555; }
.pc-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-body h3 { font-family: inherit; font-size: 15px; font-weight: 600; margin: 0; }
.pc-body h3 a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-unit { font-size: 12px; color: var(--muted); }
.pc-body form { margin-top: auto; }
.price strong { color: var(--brand); font-size: 17px; }
.price del { color: var(--muted); font-size: 13px; margin-left: 6px; }
.price-lg strong { font-size: 28px; }
.price-lg del { font-size: 17px; }

.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head .page-title { margin-bottom: 0; }
.list-head .breadcrumb { margin-bottom: 8px; }
.cat-desc { color: #5b4a3c; max-width: 720px; margin: 6px 0 0; }
.sort-form label { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sort-form select { width: auto; margin: 0; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 50px 16px; background: var(--surface); border-radius: var(--radius); }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--soft); }
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: 30px; }
.meta { font-size: 14px; margin-bottom: 10px; }
.lead { font-size: 16px; color: #5b4a3c; }
.buy-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: var(--soft); font-size: 18px; cursor: pointer; }
.qty input { width: 56px; text-align: center; border: 0; margin: 0; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { padding-left: 18px; color: #5b4a3c; }
.description { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 20px; box-shadow: var(--shadow); }
.rich { white-space: normal; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.cart-table-wrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 18px 18px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct-product { display: flex; align-items: center; gap: 12px; }
.ct-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.ct-product a { color: var(--ink); font-weight: 500; }
.qty-input { width: 74px; margin: 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.summary { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 130px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.row.small { font-size: 14px; }
.row.total { font-size: 18px; font-weight: 700; color: var(--brand-dark); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary .btn { margin: 14px 0 6px; }

.coupon-box label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { margin: 0; flex: 1; min-width: 0; border-radius: 999px; }
.coupon-msg { font-size: 13px; margin-top: 6px; }
.coupon-msg.error { color: var(--danger); }
.coupon-msg.success { color: var(--success); }
.coupon-tag { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 10px; border: 1px dashed var(--success); background: #eaf6ee; border-radius: 8px; font-size: 13px; color: var(--success); }
.coupon-tag button { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 14px; }
.row.discount { color: var(--success); font-weight: 600; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: #eaf6ee; color: var(--success); font-size: 36px; font-weight: 700; }
.order-code { font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: .06em; margin: 4px 0 10px; }
.bank-box { border: 2px dashed var(--accent); }

.status { font-family: "Be Vietnam Pro", sans-serif; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.status-pending { background: #fff3d6; color: #8a6514; }
.status-confirmed { background: #e2efff; color: #1e5aa8; }
.status-shipping { background: #efe4ff; color: #6a3ab2; }
.status-completed { background: #e3f4e8; color: var(--success); }
.status-cancelled { background: #f1f1f1; color: #777; }
.ship-box { background: #fff3ea; border: 1px solid #ffd2b5; border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px; font-size: 14px; }
.steps { display: flex; list-style: none; padding: 0; margin: 16px 0 20px; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 13px; color: var(--muted); position: relative; padding-top: 34px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 700; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before, .steps li.done::after { background: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg, #2d2118); color: #e5d8c6; margin-top: 50px; }

/* ---------- Khung chat ---------- */
.chat-launch { position: relative; width: 56px !important; height: 56px !important; border-radius: 50%; border: 0; background: var(--brand) !important; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: grid; place-items: center; }
.chat-launch.solo { position: fixed; right: 16px; bottom: 18px; z-index: 61; }
.chat-launch.on { background: var(--ink) !important; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; }
.chat-panel { position: fixed; right: 16px; bottom: 90px; z-index: 80; width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px);
  background: #fff; border-radius: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--brand); color: #fff; }
.chat-head small { display: block; font-size: 12px; opacity: .85; }
.chat-close { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.chat-body .msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-body .msg.user { align-self: flex-end; align-items: flex-end; }
.chat-body .msg small { font-size: 11px; color: var(--muted); margin: 0 6px 2px; }
.chat-body .bubble { padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow-wrap: anywhere; }
.chat-body .msg.user .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-body .msg.bot .bubble, .chat-body .msg.admin .bubble { border-bottom-left-radius: 4px; }
.chat-body .msg.admin .bubble { border: 1px solid var(--accent); }
.chat-body .bubble a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.chat-body .msg.user .bubble a { color: #fff; }
.typing .bubble { display: flex; gap: 4px; padding: 12px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: tdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.chat-chips[hidden] { display: none; }
.chat-chips button { border: 1px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.chat-contact { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.chat-contact[hidden] { display: none; }
.chat-contact a { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chat-contact .cz { background: #0068ff; } .chat-contact .cm { background: #a033ff; } .chat-contact .cp { background: var(--success); }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { margin: 0; border-radius: 999px; flex: 1; }
.chat-form button { width: 42px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; cursor: pointer; }
.chat-foot { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 10px 8px; }
.chat-invite { position: fixed; right: 84px; bottom: 34px; z-index: 79; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 14px; cursor: pointer; max-width: 230px; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
@media (max-width: 480px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
  .chat-invite { right: 70px; bottom: 26px; }
}

/* ---------- Chủ đề theo mùa ---------- */
.theme-bar { text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; line-height: 1.4; }
.theme-bar a:hover { text-decoration: underline; }
.theme-preview-bar { position: sticky; top: 0; z-index: 70; background: #1971c2; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }
.theme-preview-bar a { color: #fff; text-decoration: underline; margin-left: 8px; }
.logo { position: relative; }
.orn-hat { position: absolute; left: -10px; top: -14px; transform: rotate(-18deg); pointer-events: none; }
.orn-hang { position: absolute; right: 18%; top: 100%; display: flex; gap: 14px; align-items: flex-start; pointer-events: none; z-index: 2; }
.orn-hang .sw { display: block; transform-origin: top center; animation: swing 3.2s ease-in-out infinite; }
.orn-hang .sw.d2 { animation-delay: -1.4s; margin-top: -6px; }
@keyframes swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
.orn-lights { position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22'%3E%3Cpath d='M0 3 Q30 14 60 3 T120 3' stroke='%23335c3f' stroke-width='1.5' fill='none'/%3E%3Cellipse cx='15' cy='12' rx='4' ry='6' fill='%23ff4d4f'/%3E%3Cellipse cx='45' cy='12' rx='4' ry='6' fill='%23ffd43b'/%3E%3Cellipse cx='75' cy='12' rx='4' ry='6' fill='%2340c057'/%3E%3Cellipse cx='105' cy='12' rx='4' ry='6' fill='%234dabf7'/%3E%3C/svg%3E") repeat-x;
  animation: twinkle 1.6s steps(2) infinite; }
@keyframes twinkle { 50% { filter: brightness(1.35) saturate(1.3); } }
.orn-corner { position: fixed; left: 0; bottom: 0; z-index: 30; pointer-events: none; opacity: .95; line-height: 0; }
.orn-hearts { display: flex; align-items: flex-end; gap: 2px; padding: 0 0 10px 10px; }
.orn-hearts svg { animation: beat 1.8s ease-in-out infinite; }
.orn-hearts svg:nth-child(2) { animation-delay: .3s; } .orn-hearts svg:nth-child(3) { animation-delay: .6s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } }
.orn-ribbon { position: fixed; left: -46px; bottom: 26px; z-index: 30; pointer-events: none; transform: rotate(45deg); background: var(--accent); color: #000;
  font-weight: 900; letter-spacing: .2em; padding: 6px 54px; box-shadow: 0 4px 12px rgba(0,0,0,.25); font-size: 14px; }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }
.fx-toggle { position: fixed; left: 10px; bottom: 10px; z-index: 46; border: 0; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff;
  font-size: 12px; padding: 5px 10px; cursor: pointer; opacity: .65; }
.fx-toggle:hover { opacity: 1; }
@media (max-width: 760px) {
  .orn-hang { right: 8px; transform: scale(.75); transform-origin: top right; }
  .orn-corner { transform: scale(.6); transform-origin: bottom left; opacity: .85; }
  .orn-ribbon { font-size: 11px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .respect-motion .orn-hang .sw, .respect-motion .orn-lights, .respect-motion .orn-hearts svg { animation: none; }
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 24px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #f0c98e; }
.copyright { text-align: center; padding: 14px; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .08); }
.float-contact { position: fixed; right: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-contact a, .float-contact button { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; padding: 0; cursor: pointer; transition: transform .15s; }
.float-contact a:hover, .float-contact button:hover { transform: scale(1.08); color: #fff; }
.float-contact [data-tip]::before { content: attr(data-tip); position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.float-contact [data-tip]:hover::before { opacity: 1; }
.fc-zalo { background: #0068ff; font-family: Arial, sans-serif !important; letter-spacing: -.02em; }
.fc-msg { background: linear-gradient(45deg, #0099ff, #a033ff 60%, #ff5280); }
.fc-top { background: var(--brand); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, visibility .2s, transform .2s; }
.fc-top.show { opacity: 1; visibility: visible; transform: none; }
.social { display: flex; gap: 8px; margin-top: 10px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; font: 700 11px Arial, sans-serif; }
.social a:hover { color: #fff; }
.social .s-fb:hover { background: #1877f2; } .social .s-msg:hover { background: #a033ff; } .social .s-zalo:hover { background: #0068ff; }
.footer-grid.has-fanpage { grid-template-columns: 1.2fr 1fr .8fr 340px; }
.fanpage-box { background: #fff; border-radius: 8px; overflow: hidden; max-width: 340px; height: 300px; }
.fanpage-box iframe { width: 100%; max-width: 340px; display: block; }
.fanpage-link { display: inline-block; margin-top: 8px; font-size: 14px; }
.fc-phone { background: var(--success); animation: ring 2s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 79, .5); } 50% { box-shadow: 0 0 0 10px rgba(46, 125, 79, 0); } }

/* ---------- Biến thể, đánh giá, QR ---------- */
.variant-pick { margin: 14px 0 4px; }
.vp-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.vp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-item { display: flex; flex-direction: column; min-width: 92px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; line-height: 1.3; }
.vp-item small { color: var(--muted); font-size: 12px; }
.vp-item:hover { border-color: var(--brand); color: var(--ink); }
.vp-item.on { border-color: var(--brand); background: #fff3ea; box-shadow: 0 0 0 1px var(--brand) inset; }
.vp-item.out { opacity: .5; }
.price .from { color: var(--muted); font-size: 12px; margin-right: 3px; }
.stars { position: relative; display: inline-block; color: #e3d6c3; letter-spacing: 1px; line-height: 1; font-size: 14px; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5a623; }
.stars.lg { font-size: 22px; }
.stars-link { color: inherit; }
.pc-rating { font-size: 12px; color: var(--muted); }
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rs-score { font-size: 40px; font-weight: 700; color: var(--brand-dark); font-family: "Lora", serif; }
.rs-score small { font-size: 16px; color: var(--muted); }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.rv-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rv-verified { font-size: 12px; color: var(--success); background: #eaf6ee; padding: 1px 8px; border-radius: 999px; }
.review p { margin: 6px 0 0; }
.rv-reply { margin-top: 8px; background: var(--soft); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.review-form { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 10px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; color: #e3d6c3; cursor: pointer; margin: 0 !important; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a623; }
.pay-live { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fff6e0; color: #8a6514; font-weight: 500; display: flex; align-items: center; gap: 10px; justify-content: center; }
.pay-live.paid { background: #eaf6ee; color: var(--success); font-weight: 700; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-success { color: var(--success); }
.qr-box { text-align: center; margin-top: 12px; }
.qr-box img { margin: 0 auto; border-radius: 10px; border: 1px solid var(--line); }
.bct-link { display: inline-block; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.biz-info { font-size: 12px; color: #b9a891; padding-bottom: 12px; }

/* ---------- Flash sale ---------- */
.flash-section { padding-top: 28px; }
.flash-section .product-grid { background: linear-gradient(180deg, #fff1e8, #fff8f2); padding: 16px; border-radius: 0 0 var(--radius) var(--radius); }
.flash-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(90deg, #e2381b, #f5731c 60%, #ffa12b); color: #fff; padding: 14px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.flash-head.upcoming { background: linear-gradient(90deg, #7d3c1c, #a4532b 60%, #c9784d); }
.flash-title { display: flex; align-items: center; gap: 8px; font-family: "Lora", serif; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.bolt { display: inline-block; animation: bolt 1.2s infinite; }
@keyframes bolt { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-8deg); } }
.flash-timer { display: flex; align-items: center; gap: 10px; }
.ft-label { font-size: 14px; opacity: .9; }
.countdown { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.countdown b { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; background: #2d2118; color: #fff; border-radius: 6px; font-size: 18px; font-weight: 700; }
.countdown i { font-style: normal; font-weight: 700; }
.countdown .cd-days { margin-right: 6px; font-weight: 600; }
.countdown .cd-days b { background: #fff; color: #e2381b; }
.countdown.small b { min-width: 26px; height: 26px; font-size: 14px; padding: 0 4px; }
.flash-more { margin-left: auto; color: #fff; font-weight: 600; }
.flash-more:hover { color: #fff; text-decoration: underline; }
.badge-flash { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #e2381b, #f5731c); }
.product-card.is-flash .price strong { color: #e2381b; }
.flash-bar { position: relative; height: 18px; background: #ffd9c7; border-radius: 9px; overflow: hidden; }
.flash-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f5731c, #e2381b); border-radius: 9px; }
.flash-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.flash-bar.big { height: 24px; border-radius: 12px; margin-top: 8px; }
.flash-bar.big em { line-height: 24px; font-size: 13px; }
.flash-teaser { font-size: 13px; color: #a4532b; background: #fff3d6; padding: 4px 8px; border-radius: 6px; }
.flash-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #e2381b; padding: 1px 7px; border-radius: 999px; }
.flash-box { border-radius: 12px; overflow: hidden; border: 1px solid #ffc9ad; margin: 10px 0 14px; }
.flash-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(90deg, #e2381b, #f5731c); color: #fff; padding: 8px 14px; }
.flash-box-title { font-weight: 800; letter-spacing: .06em; }
.flash-box-timer { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.flash-box-body { background: #fff5ef; padding: 12px 14px; }
.flash-box .price strong { color: #e2381b; }
.flash-box .pct { background: #e2381b; color: #fff; font-size: 13px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.flash-next { background: #fff3d6; border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.main-nav a.nav-flash { color: #e2381b; font-weight: 700; }

/* ---------- Banner slider ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.slider { position: relative; overflow: hidden; background: var(--soft); }
.slides { position: relative; aspect-ratio: 1920 / 700; max-height: 640px; width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.active { opacity: 1; visibility: visible; }
.slide picture, .slide img { width: 100%; height: 100%; display: block; }
.slide img { object-fit: cover; }
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slide-caption { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.caption-box { max-width: 540px; pointer-events: auto; background: rgba(45, 33, 24, .55); color: #fff; padding: 24px 28px; border-radius: 14px; backdrop-filter: blur(2px); }
.slide-title { font-family: "Lora", serif; font-weight: 700; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.2; margin-bottom: 8px; }
.caption-box p { margin: 0 0 14px; font-size: 16px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.slider-nav.prev { left: 16px; } .slider-nav.next { right: 16px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .2s; }
.slider-dots button.active { width: 26px; background: #fff; }
.slider + .features { margin-top: 20px; }

/* ---------- Tin tức ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-img { aspect-ratio: 16 / 9; background: var(--soft); display: block; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: 12px; color: var(--muted); }
.post-body h3 { font-size: 18px; margin: 4px 0 8px; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: #5b4a3c; font-size: 14px; margin: 0 0 10px; }
.read-more { margin-top: auto; font-weight: 600; font-size: 14px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
.article h1 { font-size: clamp(26px, 3.2vw, 36px); }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-cover { border-radius: 10px; margin-bottom: 20px; width: 100%; }
.article .lead { font-size: 17px; font-weight: 500; }
.sidebar-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.sidebar-box h3 { font-size: 17px; }
.mini-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mini-item:last-child { border-bottom: 0; }
.mini-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: var(--soft); }
.mini-item span { font-size: 14px; font-weight: 500; line-height: 1.4; }
.mini-item small { display: block; color: var(--brand); font-weight: 600; }

/* Nội dung từ bộ soạn thảo */
.rich { overflow-wrap: break-word; line-height: 1.75; font-size: 16px; }
.rich img { max-width: 100%; height: auto !important; border-radius: 8px; margin: 10px 0; }
.rich h2 { font-size: 24px; margin-top: 1.4em; } .rich h3 { font-size: 20px; margin-top: 1.2em; }
.rich blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; }
.rich table { border-collapse: collapse; width: 100%; margin: 14px 0; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; }
.rich iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich pre { background: #f6f1e8; padding: 12px; border-radius: 8px; overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid.has-fanpage { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .logo { font-size: 19px; margin-right: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav { display: none; }
  body.nav-open .main-nav { display: block; }
  .main-nav .container { flex-direction: column; }
  .main-nav a { border-bottom: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 46px; }
  .hero-art { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-detail { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .footer-grid, .footer-grid.has-fanpage { grid-template-columns: 1fr; }
  .float-contact { right: 12px; bottom: 14px; gap: 8px; }
  .float-contact a, .float-contact button { width: 46px; height: 46px; }
  .float-contact [data-tip]::before { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td.ct-product { grid-column: 1 / -1; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .info h1 { font-size: 24px; }
  .flash-head { padding: 12px 14px; gap: 10px; }
  .flash-title { font-size: 19px; }
  .flash-more { margin-left: 0; font-size: 14px; }
  .flash-section .product-grid { padding: 10px; }
  .countdown b { min-width: 30px; height: 30px; font-size: 15px; }
  .slider.has-mobile .slides { aspect-ratio: 4 / 5; max-height: 560px; }
  .slider-nav { display: none; }
  .slider.has-mobile .slide-caption { align-items: flex-end; padding-bottom: 40px; }
  .caption-box { padding: 12px 14px; max-width: 80%; }
  .caption-box p { display: none; }
  .slider.has-mobile .caption-box p { display: block; }
  .slide-title { font-size: 20px; }
  .caption-box .btn-lg { padding: 8px 16px; font-size: 14px; }
  .news-grid { grid-template-columns: 1fr; }
  .article { padding: 18px; }
}
@media (max-width: 380px) {
  .pc-body { padding: 10px; }
  .features { grid-template-columns: 1fr; }
}

/* =========================================================
   Giao diện 2.5 – cổ điển, gọn trên điện thoại
   ========================================================= */
/* Nền giấy cổ nhẹ */
body.ui-vintage { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.ui-vintage .section-title { padding-bottom: 14px; }
body.ui-vintage .section-title::after { width: 96px; height: 10px; border-radius: 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='10'%3E%3Cpath d='M0 5h38M58 5h38' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M48 0l5 5-5 5-5-5z'/%3E%3Ccircle cx='40' cy='5' r='1.6'/%3E%3Ccircle cx='56' cy='5' r='1.6'/%3E%3C/svg%3E") no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='10'%3E%3Cpath d='M0 5h38M58 5h38' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M48 0l5 5-5 5-5-5z'/%3E%3Ccircle cx='40' cy='5' r='1.6'/%3E%3Ccircle cx='56' cy='5' r='1.6'/%3E%3C/svg%3E") no-repeat; }
body.ui-vintage .product-card, body.ui-vintage .description, body.ui-vintage .feat { border: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-weight: 600; white-space: nowrap; }

/* Dải cam kết */
.features .feat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.features .feat > div { background: none; box-shadow: none; padding: 0; border: 0; min-width: 0; }
.features .feat-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-size: 0; }
.features .feat-ic svg { width: 22px; height: 22px; }
.features .feat strong { font-size: 14.5px; line-height: 1.3; }
.features .feat div span { display: block; font-size: 12.5px; line-height: 1.4; }

/* Danh mục có ảnh */
.cat-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cat-bubble { flex: 0 0 auto; width: 104px; text-align: center; color: var(--ink); scroll-snap-align: start; }
.cat-bubble:hover { color: var(--brand); }
.cb-img { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--soft);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow); transition: transform .2s; }
.cat-bubble:hover .cb-img { transform: translateY(-3px); }
.cb-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-img b { font-family: "Lora", serif; font-size: 34px; color: var(--brand); }
.cat-bubble strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cat-bubble.all .cb-img { background: var(--surface); }

/* Thẻ sản phẩm */
.pc-img { overflow: hidden; }
.pc-img.has-hover .pc-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .product-card:hover .pc-img.has-hover .pc-hover { opacity: 1; } }
.badge-free { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--success); }
.pc-img .badge-free ~ .badge-out { top: 38px; }
.pc-rating { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 18px; }
.pc-sold { margin-left: auto; color: var(--muted); }

/* Câu chuyện thương hiệu */
.story { margin: 40px 0; padding: 44px 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.story-inner:not(:has(.story-img)) { grid-template-columns: 1fr; max-width: 780px; text-align: center; }
.story-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(80, 50, 20, .18); outline: 1px solid var(--accent); outline-offset: 6px; }
.story-text h2 { font-size: 30px; color: var(--brand-dark); }
.story-body { color: #5b4a3c; margin-bottom: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }

/* Khách hàng nói gì */
.testi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; }
.testi::before { content: "\201C"; position: absolute; right: 14px; top: -6px; font: 700 64px/1 "Lora", serif; color: var(--soft); }
.testi blockquote { margin: 8px 0 12px; font-style: italic; color: #4a3a2c; }
.testi figcaption { font-size: 13px; color: var(--muted); }
.testi figcaption b { color: var(--ink); }

/* Gợi ý tìm kiếm */
.suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 90; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .16); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.suggest-box[hidden] { display: none; }
.sg-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.sg-item:hover, .sg-item.on { background: var(--soft); color: var(--ink); }
.sg-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.sg-name { font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-price { font-weight: 700; color: var(--brand); font-size: 13.5px; text-align: right; white-space: nowrap; }
.sg-price del { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.search .sg-all { position: static; transform: none; display: block; width: 100%; text-align: center; padding: 10px; background: var(--bg); color: var(--brand); font: inherit; font-weight: 600; font-size: 13.5px; }
.sg-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* Trang sản phẩm: ảnh, phóng to */
.gallery-main img { cursor: zoom-in; }
.zoom-btn { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
.gal-count { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 10, 6, .92); display: none; align-items: center; justify-content: center; padding: 20px; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-on { overflow: hidden; }

/* Cam kết trong trang sản phẩm */
.trust { list-style: none; padding: 14px 16px; margin: 18px 0 0; border: 1px dashed var(--accent); border-radius: 10px; background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; color: #5b4a3c; }
.trust li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.tr-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); color: var(--success); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* Tab Mô tả / Cách dùng / Đánh giá */
.ptab-nav { display: none; }
.ptabs.tabbed .ptab-nav { display: flex; gap: 4px; margin-top: 24px; border-bottom: 2px solid var(--line); overflow-x: auto; scroll-margin-top: 80px; }
.ptab-nav button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 15.5px; color: var(--muted); padding: 10px 16px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ptab-nav button.active { color: var(--brand-dark); border-color: var(--brand); }
.ptabs.tabbed .ptab-panel { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.ptabs.tabbed .ptab-panel > h2:first-child { display: none; }
.ptab-panel[hidden] { display: none; }

/* Thanh mua dính (điện thoại) */
.buybar { display: none; }

/* Nút liên hệ gộp + menu đáy */
.fc-toggle { display: none !important; background: var(--brand); }
.fc-toggle .ic-close { display: none; }
.bottom-nav { display: none; }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .features .feat { padding: 10px; gap: 8px; }
  .features .feat-ic { width: 32px; height: 32px; }
  .features .feat-ic svg { width: 17px; height: 17px; }
  .features .feat strong { font-size: 12.5px; }
  .features .feat div span { font-size: 11px; }
  .cat-bubble { width: 80px; }
  .cb-img { width: 70px; height: 70px; }
  .cb-img b { font-size: 26px; }
  .cat-bubble strong { font-size: 12.5px; }
  .story { padding: 28px 0; }
  .story-inner { grid-template-columns: 1fr; gap: 22px; }
  .story-text h2 { font-size: 24px; }
  .testi-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
  .testi { flex: 0 0 82%; scroll-snap-align: start; }
  .trust { grid-template-columns: 1fr; }
  .ptab-nav button { padding: 10px 12px; font-size: 14.5px; }
  .pc-sold { margin-left: 0; width: 100%; }

  /* Menu đáy */
  body.has-bnav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); transition: transform .25s; }
  .bottom-nav a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; color: var(--muted); font-size: 11px; font-weight: 600; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav a.bn-flash { color: #e2381b; }
  .bn-count { position: absolute; top: 5px; left: 50%; margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
  body.has-bnav .float-contact { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-bnav .float-contact .chat-launch { display: none !important; }
  body.has-bnav .chat-invite { display: none; }
  body.has-bnav .fx-toggle { bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-bnav .orn-corner, body.has-bnav .orn-ribbon { display: none; }

  /* Gộp nút liên hệ */
  .fc-collapsible .fc-toggle { display: grid !important; order: 10; }
  .fc-collapsible .fc-msg, .fc-collapsible .fc-zalo, .fc-collapsible .fc-phone { display: none; order: 5; animation: none; }
  .fc-collapsible.open .fc-msg, .fc-collapsible.open .fc-zalo, .fc-collapsible.open .fc-phone { display: grid; animation: pop .2s ease; }
  .fc-collapsible.open .fc-toggle { background: var(--ink); }
  .fc-collapsible.open .fc-toggle .ic-open { display: none; }
  .fc-collapsible.open .fc-toggle .ic-close { display: block; }

  /* Thanh mua dính */
  .buybar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 66; background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .1); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s; }
  .buybar.show { transform: none; }
  .bb-price { flex: 1; min-width: 0; line-height: 1.2; }
  .bb-price b { display: block; color: var(--brand); font-size: 17px; }
  .bb-price del { color: var(--muted); font-size: 12px; }
  .buybar .btn { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
  body.buybar-on .bottom-nav { transform: translateY(110%); }
  body.buybar-on .float-contact { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-buybar:not(.has-bnav) { padding-bottom: 70px; }
}
@media (max-width: 380px) {
  .features { grid-template-columns: 1fr 1fr; }
  .buybar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .buybar .btn { padding: 9px 10px; font-size: 13px; }
  .bb-price b { font-size: 15px; }
}
@media (max-width: 330px) {
  .buybar .btn-light { display: none; }
}