/* Đáng Mua: tím = thương hiệu, tin cậy; vàng = hành động chính; đỏ = giá. Theo logo mẫu 03 (out/logo/gpt). Ưu tiên điện thoại. */
:root {
  --violet: #6500cc; --violet-d: #33006b; --violet-l: #f4ecff; --gold: #ffcc00; --gold-d: #f2b700; --red: #d9202b;
  --bg: #f7f5fb; --card: #fff; --ink: #1d1830; --muted: #676278; --line: #e9e4f2;
  --radius: 16px; --shadow: 0 1px 2px rgba(51, 0, 107, .05), 0 6px 18px rgba(51, 0, 107, .07);
  --s1: #4a0096; --s2: #6500cc; --s3: #7d1be0; --glow: rgba(255, 204, 0, .34); --page: #f7f5fb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--page); color: var(--ink); overflow-x: hidden; transition: background .5s;
  font: 15px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--violet); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.i { width: 20px; height: 20px; flex: none; }
.flag { width: 20px; height: 14px; border-radius: 2px; flex: none; }

/* dải công bố + đầu trang trắng: logo là ảnh nền trắng */
/* dòng chữ chạy hot deal: bấm là sổ ra nhiều món */
.notice { display: block; margin: 0; padding: 7px 16px; background: var(--gold); color: var(--violet-d); font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
a.notice:hover { text-decoration: underline; }
.ticker { display: flex; align-items: stretch; height: 36px; background: var(--violet-d); color: #fff; font-size: 13px; }
.hotbtn { flex: none; padding: 0 12px; border: 0; background: var(--gold); color: var(--violet-d); font: inherit; font-weight: 800; cursor: pointer; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { background: #ffe066; } }
.run { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; scrollbar-width: none; }
.run::-webkit-scrollbar { display: none; }
.run a { padding: 0 12px; color: #fff; white-space: nowrap; }
.runin { display: inline-flex; width: max-content; animation: run 70s linear infinite; }
.run:hover .runin, .run:focus-within .runin { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
.runin button { flex: none; padding: 0 16px; border: 0; background: none; color: #eadcff; font: inherit; white-space: nowrap; cursor: pointer; }
.runin button:hover { color: #fff; text-decoration: underline; }
.runin b { color: var(--gold); }
.runin span { color: var(--gold); font-weight: 700; }
.savesite { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border: 0; background: #4d0a96; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.savesite .i { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 480px) { .savesite span { display: none; } }
.hotpanel, .pop { position: fixed; left: 50%; transform: translateX(-50%); top: 40px; z-index: 50; width: min(1000px, calc(100vw - 16px)); padding: 14px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 16px 50px rgba(51, 0, 107, .4); }
.hotpanel { max-height: calc(100vh - 56px); overflow-y: auto; }
.hotpanel[hidden] { display: none; }
.pop { width: min(440px, calc(100vw - 16px)); left: auto; right: 8px; transform: none; font-size: 14px; }
.pop ol { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; }
.popnote { margin: 0 0 10px; color: var(--muted); }
.pop .row .all { margin: 0; }
.all.alt { background: var(--gold); color: var(--violet-d); }
.joins { display: grid; gap: 8px; }
.join { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 14px; border-radius: 12px; background: var(--violet-l); color: var(--violet-d); text-decoration: none; }
.join span { font-weight: 700; color: var(--violet); }
button.join { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.sharenext { margin-top: 12px; }
.join.soon { background: var(--bg); color: var(--muted); }
.join.soon span { font-weight: 500; color: var(--muted); }
kbd { padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); font: inherit; font-size: 12px; }
.hothead { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 16px; color: var(--violet-d); }
.hothead button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.hotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (min-width: 600px) { .hotgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hotgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hot { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.hot .pic { display: block; }
.hot .pic .off { font-size: 11px; top: 5px; left: 5px; padding: 1px 5px; }
.hot .nm { margin: 0 7px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot b { margin: 0 7px; color: var(--red); font-size: 13.5px; }
.hotpanel .all { display: flex; width: fit-content; margin: 0 auto; }
/* thông báo nhỏ */
.toast { position: fixed; left: 50%; bottom: 76px; z-index: 60; transform: translate(-50%, 16px); max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold); font-weight: 700; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
/* gợi ý khi di chuột: trái tim, giỏ, nút lên xuống */
@media (hover: hover) { [data-tip] { position: relative; }
  [data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 5px); right: 0; z-index: 45; padding: 4px 9px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }
  .scroller [data-tip]:hover::after { top: 50%; right: calc(100% + 6px); transform: translateY(-50%); } }
.top { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(51, 0, 107, .06); }
.bar { display: flex; align-items: center; gap: 10px; min-height: 66px; position: relative; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { display: block; width: 70px; height: 56px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.search:focus-within { background: #fff; border-color: var(--violet); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 4px 0 14px; font: inherit; font-size: 16px; color: var(--ink); outline: 0; -webkit-appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-right: 2px; border: 0; border-radius: 50%; background: var(--violet); color: #fff; cursor: pointer; }
.baricons { display: flex; align-items: center; gap: 4px; flex: none; }
.ic { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 6px; border: 0; border-radius: 12px; background: none; color: var(--violet-d); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.ic:hover { background: var(--violet-l); }
.ic small { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
.ic small:empty { display: none; }
.cart { position: relative; }
.cart i { position: absolute; top: 6px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-d); box-shadow: 0 0 0 2px #fff; }
.cart i[hidden] { display: none; }
.ic .wide { display: none; }
@media (min-width: 900px) { .ic .wide { display: inline; } .bar { gap: 24px; min-height: 72px; } .search { height: 48px; } .cart small { right: auto; left: 20px; } }

/* hàng menu: khu đất vàng. Dải phẳng full ngang, chỉ mục sự kiện được nổi */
.tools { background: #fff; border-bottom: 1px solid var(--line); }
.toolsin { position: relative; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.toolsin::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 11px; border: 0; border-bottom: 2.5px solid transparent; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip .i { width: 18px; height: 18px; color: var(--violet); }
.chip:hover, .tools .chip.on { color: var(--violet); border-bottom-color: var(--violet); }
.homechip { display: none; }
@media (min-width: 900px) { .homechip { display: inline-flex; } .toolsin { gap: 6px; } }
.chip.event { align-self: center; min-height: 34px; margin: 0 3px; padding: 0 10px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #fff4bf, #ffdf6b); color: var(--violet-d); font-weight: 700; }
.chip.event .i { color: var(--violet-d); }
.chip.event small { margin-left: 2px; padding: 1px 6px; border-radius: 6px; background: var(--violet-d); color: #fff; font-size: 11px; font-weight: 700; }
.chip.event:hover, .tools .chip.event.on { border-bottom: 0; color: var(--violet-d); filter: brightness(1.04); }
.chip.event[hidden] { display: none; }
/* chip trong trang (nhóm hàng, lọc, chọn quà): viên bo tròn */
main .chip { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; }
main .chip:hover { border-color: var(--violet); }
main .chip.on { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 700; }
.catmenu { flex: none; }
.catmenu summary { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-right: 3px; padding: 0 12px; border-radius: 10px; cursor: pointer; background: var(--violet); color: #fff; font-weight: 700; font-size: 14px; list-style: none; white-space: nowrap; }
.catmenu summary .i { width: 17px; height: 17px; }
.catmenu summary::-webkit-details-marker { display: none; }
.catmenu[open] summary { background: var(--violet-d); }
.tools .catmenu { align-self: center; }
.panel { position: fixed; left: 12px; right: 12px; top: 88px; bottom: 72px; z-index: 40; overflow-y: auto; padding: 12px; display: grid; gap: 12px; align-content: start; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 14px 44px rgba(51, 0, 107, .32); }
@media (min-width: 600px) { .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .panel { left: 50%; right: auto; width: min(1168px, calc(100vw - 32px)); transform: translateX(-50%); bottom: auto; max-height: 72vh; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dept { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dept .head { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--c); font-weight: 700; text-decoration: none; }
.dept.on .head { text-decoration: underline; }
.dept .subs { display: flex; flex-wrap: wrap; gap: 6px; }
.dept .subs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; text-decoration: none; }

/* khối đầu trang */
main.wrap { padding-top: 12px; padding-bottom: 28px; }
.lead-hero { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 20px 16px 16px; border-radius: 22px; color: #fff; transition: background .5s;
  background: radial-gradient(420px 260px at 92% -10%, var(--glow), transparent 70%), radial-gradient(360px 300px at -8% 112%, rgba(255, 255, 255, .13), transparent 70%), linear-gradient(135deg, var(--s1), var(--s2) 62%, var(--s3)); }
.kicker { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--violet-d); font-size: 13px; font-weight: 800; }
.lead-hero h1 { margin: 0; font-size: clamp(25px, 6.6vw, 40px); line-height: 1.16; font-weight: 800; letter-spacing: -.5px; }
.lead-hero .pitch p { margin: 8px 0 0; color: #efe3ff; }
.lead-hero .count { color: #fff; font-weight: 500; }
.count b { display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; margin-right: 1px; border-radius: 8px; background: #fff; color: var(--violet-d); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-hero .row { margin-top: 14px; }
.lead-hero .row .cta { flex: 1 1 auto; padding: 0 12px; font-size: 14.5px; white-space: nowrap; }
.lead-hero .wide { display: none; }
@media (min-width: 600px) { .lead-hero .wide { display: inline; } .lead-hero .row .cta { flex: 0 1 auto; padding: 0 18px; font-size: 15px; } }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 13px; background: var(--gold); color: var(--violet-d); font-weight: 800; text-decoration: none; }
.cta:hover { background: var(--gold-d); }
.lead-hero .cta:not(.ghost) { position: relative; overflow: hidden; }
.lead-hero .cta:not(.ghost)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.cta.ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 4px 7px; border-radius: 13px; background: #fff; color: var(--red); text-decoration: none; overflow: hidden; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.tile b { font-size: 11px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.tile .off { top: 4px; left: 4px; font-size: 11px; padding: 1px 5px; }
@media (min-width: 900px) { .lead-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; padding: 32px; gap: 32px; }
  .tiles { gap: 12px; } .tile { padding: 10px 8px; } .tile b { font-size: 15px; } }
.trust { list-style: none; display: flex; gap: 8px 22px; margin: 12px 0 0; padding: 0; overflow-x: auto; scrollbar-width: none; font-size: 13px; color: var(--muted); }
.trust::-webkit-scrollbar { display: none; }
.trust li { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.trust .i { width: 17px; height: 17px; color: var(--violet); }

/* lưới ngành bằng ảnh món thật */
.deptgrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 84px; gap: 12px 8px; overflow-x: auto; padding: 14px 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: none; }
.deptgrid::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .deptgrid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(10, minmax(0, 1fr)); overflow: visible; padding: 16px 10px; } }
.depttile { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; text-decoration: none; color: var(--ink); }
.depttile .ico { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; overflow: hidden; font-size: 28px; background: var(--l); transition: transform .15s; }
.depttile:hover .ico { transform: translateY(-2px); }
.depttile .ico i { font-style: normal; }
.depttile .ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.depttile b { font-size: 12.5px; font-weight: 600; line-height: 1.2; margin-top: 3px; }
.depttile small { font-size: 11px; color: var(--muted); }

/* trang chủ: cột ngành (Tiki) + các ô ngành riêng (Shopee) */
.home { display: grid; gap: 16px; }
.homemain { min-width: 0; }
.side { display: none; }
@media (min-width: 1100px) { .home { grid-template-columns: 186px minmax(0, 1fr); align-items: start; }
  .side { position: sticky; top: 84px; display: grid; gap: 1px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 10px 6px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: thin; }
  .side b { padding: 2px 8px 6px; font-size: 14px; color: var(--violet-d); }
  .side a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border-radius: 9px; color: var(--ink); font-size: 13.5px; text-decoration: none; }
  .side a i { font-style: normal; }
  .side a:hover, .side a.on { background: var(--violet-l); color: var(--violet); font-weight: 600; } }
.deptrow { margin-top: 16px; padding: 14px 12px 8px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 84px; }
.deptrow:has(.cover) { padding: 0; overflow: hidden; }
.cover { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 12px 14px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 72%, #000)); }
.cover .ct { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 0 9px; align-items: center; }
.cover i { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .92); font-style: normal; font-size: 24px; }
.cover h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.cover small { font-size: 12.5px; opacity: .92; }
.cover img { position: absolute; right: 8px; bottom: -14px; width: 104px; height: 104px; object-fit: contain; border-radius: 16px; background: #fff; padding: 5px; transform: rotate(5deg); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); transition: transform .3s; }
.cover:hover img { transform: rotate(1deg) scale(1.05); }
.rowbody { min-width: 0; padding: 10px 12px 8px; }
@media (min-width: 900px) { .deptrow:has(.cover) { display: grid; grid-template-columns: 188px minmax(0, 1fr); }
  .cover { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 18px 14px; }
  .cover .ct { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .cover i { grid-row: auto; }
  .cover img { right: 50%; bottom: 14px; transform: translateX(50%) rotate(-3deg); width: 138px; height: 138px; }
  .cover:hover img { transform: translateX(50%) rotate(0) scale(1.05); } }
.eyebrow { margin: 0 0 3px; color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead-hero .eyebrow, .cover .eyebrow { color: var(--gold); }
section > .eyebrow + h2 { margin-top: 0; }
section > .eyebrow { margin-top: 26px; }
.deals > .eyebrow, .tool .eyebrow, .signup .eyebrow, .hero .eyebrow { margin-top: 0; }
/* lối vào theo ý định */
.doors { margin-top: 14px; }
.doors > .eyebrow { margin-top: 18px; font-size: 13px; }
.doorgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
@media (min-width: 760px) { .doorgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.doorgrid a { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.doorgrid a:first-child { grid-column: span 2; background: linear-gradient(120deg, #fff6c9, #ffe680); }
@media (min-width: 760px) { .doorgrid a:first-child { grid-column: auto; } }
.doorgrid a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(51, 0, 107, .15); }
.doorgrid i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 3px; border-radius: 12px; background: var(--violet-l); color: var(--violet); font-style: normal; }
.doorgrid a:first-child i { background: var(--violet); color: var(--gold); }
.doorgrid b { font-size: 15px; color: var(--violet-d); }
.doorgrid span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
/* góc theo khoảnh khắc */
.moments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; }
.moments::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .moments { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.moment { position: relative; display: block; height: 176px; padding: 14px; overflow: hidden; border-radius: 18px; background: var(--l); color: var(--c); text-decoration: none; scroll-snap-align: start; transition: transform .15s; }
.moment:hover { transform: translateY(-2px); }
.mtxt { position: relative; z-index: 1; display: grid; gap: 1px; max-width: 74%; }
.mtxt b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.mtxt small { font-size: 12.5px; color: var(--ink); opacity: .75; }
.mimgs img { position: absolute; bottom: -10px; width: 92px; height: 92px; padding: 5px; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.mimgs img:nth-child(1) { left: 12px; transform: rotate(-6deg); z-index: 1; }
.mimgs img:nth-child(2) { left: 88px; bottom: -2px; transform: rotate(3deg); z-index: 3; }
.mimgs img:nth-child(3) { left: 166px; transform: rotate(8deg); z-index: 2; }
/* khép trang: số thật + 3 bước */
.how { margin-top: 18px; padding: 22px 16px; border-radius: 22px; background: var(--violet-d); color: #fff; }
.how .eyebrow { margin-top: 0; color: var(--gold); }
.how h2 { display: block; margin: 0 0 12px; font-size: clamp(19px, 5vw, 26px); font-weight: 800; color: #fff; }
.proof { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; font-size: 13px; color: #d9c8f5; }
.proof b { display: block; font-size: clamp(22px, 6vw, 30px); font-weight: 800; line-height: 1.15; color: var(--gold); font-variant-numeric: tabular-nums; }
.steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; counter-reset: st; font-size: 13.5px; color: #e4d8f7; }
.steps li { position: relative; padding: 10px 12px 10px 48px; border-radius: 14px; background: rgba(255, 255, 255, .08); counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--violet-d); font-weight: 800; }
.steps b { display: block; color: #fff; font-size: 14.5px; }
@media (min-width: 760px) { .how { padding: 30px; } .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ngành trước, ngành sau */
.nextdept { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.nextdept a { display: grid; gap: 1px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--c); text-decoration: none; }
.nextdept a:last-child { text-align: right; }
.nextdept small { color: var(--muted); font-size: 12px; }
.nextdept b { font-size: 14.5px; }
/* cửa hàng theo shop */
.shopcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .shopcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.shopcard { display: grid; gap: 1px; padding: 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.shopcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(51, 0, 107, .15); }
.spics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; min-height: 58px; margin-bottom: 7px; }
.spics:empty { display: block; }
.spics:empty::before { content: attr(data-l); display: grid; place-items: center; height: 58px; border-radius: 10px; background: var(--violet-l); color: var(--violet); font-size: 24px; font-weight: 800; }
.spics img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg); border-radius: 8px; padding: 2px; }
.shopcard b { font-size: 15px; }
.shopcard small { font-size: 12px; color: var(--muted); }
.shopcard em { margin-top: 4px; color: var(--violet); font-size: 13px; font-style: normal; font-weight: 700; }
.sg.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-radius: 14px; box-shadow: 0 16px 34px rgba(51, 0, 107, .28); border-bottom: 0; }
.sg.quick small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.sg.quick a { padding: 6px 11px; border-radius: 999px; background: var(--violet-l); color: var(--violet-d); font-size: 13px; text-decoration: none; }
/* món vừa xem */
.seen[hidden] { display: none; }
.seen .card, .itemtools + .x { box-shadow: var(--shadow); }
/* trang món */
.itemtools { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.askworth { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: var(--violet-l); color: var(--violet-d); text-decoration: none; font-size: 13px; }
.askworth i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--violet); font-style: normal; }
.askworth span { flex: 1; display: grid; }
.askworth b { font-size: 14.5px; }
/* Lướt deal */
.swipewrap { max-width: 440px; margin: 0 auto; text-align: center; }
.swipewrap h1 { margin: 0 0 4px; font-size: 21px; font-weight: 800; color: var(--violet-d); }
.swipe { position: relative; min-height: 520px; margin: 8px 0 12px; }
.sw-card { position: relative; padding: 12px; background: #fff; border-radius: 22px; box-shadow: 0 10px 34px rgba(51, 0, 107, .16); touch-action: pan-y; user-select: none; cursor: grab; }
.sw-pic { position: relative; display: block; aspect-ratio: 1; }
.sw-pic img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sw-name { margin: 8px 4px 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.sw-card .price { margin: 4px; font-size: 22px; }
.sw-card .shop { margin: 0 4px; font-size: 13px; }
.sw-card .buy.big { margin: 10px 0 0; }
.sw-tag { position: absolute; top: 18px; z-index: 3; padding: 4px 12px; border-radius: 10px; font-weight: 800; opacity: 0; transition: opacity .1s; }
.sw-tag.like { left: 18px; background: #0b6b3a; color: #fff; }
.sw-tag.skip { right: 18px; background: var(--ink); color: #fff; }
.to-like .sw-tag.like, .to-skip .sw-tag.skip { opacity: 1; }
.sw-end { padding: 40px 18px; display: grid; gap: 10px; justify-items: center; cursor: default; }
.swipebtns { display: flex; justify-content: center; gap: 20px; }
.swipebtns button { display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; background: #fff; color: var(--muted); box-shadow: 0 6px 20px rgba(51, 0, 107, .2); cursor: pointer; }
.swipebtns .i { width: 28px; height: 28px; }
#sw-like { --i-fill: currentColor; background: var(--violet); color: #fff; }
/* Tiện ích */
.tool { display: grid; gap: 14px; margin-top: 14px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 84px; }
.tool h2 { display: block; margin: 0 0 4px; font-size: 19px; color: var(--violet-d); }
.tool.wide { display: block; }
.fields { display: grid; gap: 8px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields label { display: grid; gap: 3px; font-size: 13px; font-weight: 600; }
.fields input { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; font-size: 16px; font-weight: 400; }
.fields input:focus { outline: 0; border-color: var(--violet); }
.result { align-self: center; padding: 14px; border-radius: 14px; background: var(--violet-l); font-size: 14px; }
.result p { margin: 4px 0; }
.result .big { font-size: 28px; font-weight: 800; color: var(--violet-d); line-height: 1.15; }
.result small { font-size: 13px; font-weight: 500; }
.verdict { display: inline-block; padding: 3px 10px; border-radius: 8px; font-weight: 700; }
.verdict.good { background: #d9f5e4; color: #0b6b3a; }
.verdict.ok { background: #fff3c4; color: #6b5200; }
.verdict.warn { background: #ffe3e3; color: #a51d24; }
.giftout { margin-top: 12px; }
.tool .chips { padding: 0; margin-bottom: 8px; }
@media (min-width: 760px) { .tool:not(.wide) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding: 22px; } }
/* Bản đồ */
.mindmap { padding: 16px 0; }
.hub { display: grid; justify-items: center; gap: 2px; width: fit-content; margin: 0 auto 10px; padding: 12px 22px; background: #fff; border-radius: 22px; box-shadow: 0 8px 26px rgba(51, 0, 107, .16); text-align: center; }
.hub p { margin: 0; font-weight: 800; color: var(--violet-d); }
.branches { position: relative; display: grid; gap: 12px; padding-top: 20px; }
.branches::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 20px; background: var(--violet); }
@media (min-width: 760px) { .branches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .branches::after { content: ""; position: absolute; top: 20px; left: 16%; right: 16%; height: 2px; background: var(--violet); } }
.branch { position: relative; padding: 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .branch { margin-top: 14px; } .branch::before { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; background: var(--violet); } }
.branch h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 16.5px; color: var(--violet-d); }
.branch i { font-style: normal; }
.leaves { display: flex; flex-wrap: wrap; gap: 6px; }
.leaves a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: 999px; background: var(--violet-l); color: var(--violet-d); font-size: 13px; text-decoration: none; }
.leaves a:hover { background: var(--violet); color: #fff; }
/* chuyển động: thanh tiến độ, khối hiện dần, tim bay */
.progress { position: fixed; top: 0; left: 0; z-index: 70; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), #ff8a00); pointer-events: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.burst { position: fixed; z-index: 65; color: var(--red); font-size: 15px; pointer-events: none; animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(1.3); opacity: 0; } }
.pic img { transition: transform .25s; }
@media (hover: hover) { .card:hover .pic img { transform: scale(1.04); } }
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--l); }
.rowhead h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 17px; font-weight: 700; color: var(--c); }
.rowhead h2 i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--l); font-style: normal; font-size: 17px; }
.rowhead .more { font-size: 13px; }
.subchips { display: flex; gap: 6px; padding: 8px 0 2px; overflow-x: auto; scrollbar-width: none; }
.subchips::-webkit-scrollbar { display: none; }
.subchips a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; text-decoration: none; }
.subchips a:hover { background: var(--violet-l); color: var(--violet); }
.deptrow .card { box-shadow: none; border: 1px solid var(--line); }
.railwrap { position: relative; margin-top: 8px; }
.railbtn { display: none; }
@media (hover: hover) and (min-width: 900px) { .railbtn { position: absolute; top: 34%; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--violet-d); box-shadow: 0 2px 10px rgba(51, 0, 107, .28); cursor: pointer; }
  .railbtn.prev { left: -8px; } .railbtn.next { right: -8px; } }
/* nút lên đầu, xuống cuối */
.scroller { position: fixed; right: 12px; bottom: 74px; z-index: 28; display: grid; gap: 6px; }
.scroller[hidden] { display: none; }
.scroller button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--violet); box-shadow: 0 3px 12px rgba(51, 0, 107, .16); cursor: pointer; }
.scroller button:hover { background: var(--violet); color: #fff; }
.scroller button[hidden] { display: none; }
.scroller button[data-go="top"] .i { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 900px) { .scroller { top: 50%; bottom: auto; transition: top .25s ease-out; } }
/* trạng thái món trong Bộ sưu tập */
.st { margin: 6px 12px 0; font-size: 12px; line-height: 1.35; color: #0b6b3a; }
.st.good { color: #0b6b3a; font-weight: 700; }
.st.up { color: #a15c00; }
.st.gone { color: var(--red); }
.st + .buy { margin-top: 10px; }

/* chọn nhanh theo nhu cầu */
.needs h2 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.needgrid { display: grid; gap: 8px; }
@media (min-width: 700px) { .needgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.needgrid a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.needgrid a:hover { box-shadow: inset 0 0 0 1.5px var(--violet), var(--shadow); }
.needgrid b { color: var(--violet); font-size: 15.5px; }
.needgrid span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.hint { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
/* danh sách: sắp xếp, lọc, phân trang như các sàn lớn */
.listing { margin-top: 16px; padding: 14px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 84px; }
.listing > h2 { margin: 0 0 4px; font-size: 18px; color: var(--violet-d); }
.listing .chips { padding-top: 0; margin-bottom: 10px; }
.listing .card { box-shadow: none; border: 1px solid var(--line); }
.sortbar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 6px 8px; border-radius: 12px; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar span { flex: none; color: var(--muted); font-size: 13px; padding-right: 2px; }
.sortbar button { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.sortbar button[hidden] { display: none; }
.sortbar button.on { background: var(--violet); color: #fff; font-weight: 700; }
.listing .smart { margin: 0 0 12px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin-top: 16px; }
.pager button { min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.pager button:hover:not([disabled]) { border-color: var(--violet); color: var(--violet); }
.pager button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: default; }
.pager span { padding: 0 2px; color: var(--muted); }
.pager small { flex-basis: 100%; text-align: center; color: var(--muted); }

/* tiêu đề, tab, lưới */
section > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; margin: 26px 0 10px; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.deals { margin-top: 24px; }
.tabs { display: none; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.js .tabs { display: flex; }
.js .tabpane h2 { display: none; }
.tabpane h2 { font-size: 19px; margin: 20px 0 10px; }
.deals { padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.deals .card { box-shadow: none; border: 1px solid var(--line); }
.tabs button { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--violet); box-shadow: none; color: #fff; }
.tabpane .all { display: flex; width: fit-content; margin: 14px auto 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px, 44%); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 0 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
@media (min-width: 600px) { .rail { grid-auto-columns: calc((100% - 30px) / 4); } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 40px) / 5); } }

/* thẻ món */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(51, 0, 107, .07), 0 12px 28px rgba(51, 0, 107, .13); } }
.pic { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; background: #fff; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; background: var(--violet-l); color: var(--violet-d); text-align: center; }
.ph b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ph small { font-size: 12px; opacity: .8; }
.off { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--violet-d); font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 8px; }
.card h3 { margin: 8px 12px 0; font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--ink); text-decoration: none; }
.price { margin: 6px 12px 0; color: var(--red); font-weight: 800; font-size: 17px; line-height: 1.25; }
.price s { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.shop { margin: 2px 12px 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy { display: flex; align-items: center; justify-content: center; min-height: 42px; margin: 10px 12px 12px; margin-top: auto; border-radius: 11px; background: var(--violet-l); color: var(--violet); font-weight: 700; text-decoration: none; font-size: 14.5px; transition: background .15s, color .15s; }
.card .shop + .buy { margin-top: 10px; }
.buy:hover { background: var(--violet); color: #fff; }
.buy:active, .all:active, .cta:active { transform: scale(.98); }
/* ảnh shop hỏng: trang chủ bỏ hẳn thẻ cho sạch, trang tìm kiếm vẫn giữ để không mất món */
.tile:not(:has(img)) { display: none; }
.tabpane .card:not(:has(.pic img)), .rail .card:not(:has(.pic img)) { display: none; }
.save { --i-fill: none; position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--muted); box-shadow: 0 1px 4px rgba(51, 0, 107, .18); cursor: pointer; }
.save.on { --i-fill: currentColor; color: var(--red); }
.savebig { --i-fill: none; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.savebig.on { --i-fill: currentColor; color: var(--red); border-color: var(--red); }

/* khu vực để lại thông tin */
.signup { display: grid; gap: 16px; margin-top: 28px; padding: 20px 16px; border-radius: 22px; background: linear-gradient(135deg, #fff8d6, #fff3b0 55%, #ffe680); box-shadow: var(--shadow); }
.signup h2 { margin: 0 0 6px; font-size: clamp(20px, 5.4vw, 27px); line-height: 1.22; font-weight: 800; letter-spacing: -.3px; color: var(--violet-d); }
.signup .pitch p { margin: 0 0 10px; color: #4a3f22; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #3d3320; }
.ticks li { display: flex; gap: 7px; align-items: flex-start; }
.ticks .i { color: var(--violet); margin-top: 1px; }
.lead { display: grid; gap: 10px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(120, 90, 0, .14); }
.lead label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.lead small { font-weight: 400; color: var(--muted); }
.lead input:not([type=checkbox]) { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.lead input:focus { outline: 0; border-color: var(--violet); }
.lead .agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); cursor: pointer; }
.lead .agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--violet); }
.lead button { min-height: 48px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.lead button:hover { background: #5300a8; }
.lead button[disabled] { opacity: .6; cursor: wait; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.thanks { position: fixed; left: 50%; top: 50%; z-index: 70; display: flex; align-items: center; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 14px; border: 2px solid var(--gold); border-radius: 18px; background: #fff; color: var(--violet-d); box-shadow: 0 18px 50px rgba(51, 0, 107, .32); transform: translate(-50%, -50%); animation: thanksin .36s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes thanksin { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } }
.thanks p { flex: 1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.thanksheart { --i-fill: currentColor; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--violet-l); color: var(--violet); }
.thanksheart .i { width: 22px; height: 22px; }
.thanks button { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.thanks button:hover { background: var(--violet-l); color: var(--violet-d); }
.thanks button .i { width: 16px; height: 16px; }
.msg { margin: 0; font-size: 14px; font-weight: 600; }
.msg:empty { display: none; }
.msg.good { color: #0b6b3a; }
.msg.bad { color: var(--red); }
.alt { margin: 0; font-size: 13px; color: var(--muted); }
@media (min-width: 800px) { .signup { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; padding: 30px; gap: 30px; } }

/* trang trong */
.hero { background: var(--card); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero.tinted { background: linear-gradient(120deg, var(--l), #fff 70%); }
.hero h1 { margin: 0 0 6px; font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; color: var(--violet-d); }
.hero p { margin: 6px 0; color: var(--muted); }
.all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.subgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; }
@media (min-width: 600px) { .subgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .subgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.subtile { display: flex; flex-direction: column; gap: 2px; text-align: center; text-decoration: none; color: var(--ink); }
.subtile .thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--l, var(--bg)); }
.subtile .thumb i { font-style: normal; font-size: 30px; }
.subtile .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
.subtile b { font-size: 13px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.subtile small { font-size: 11px; color: var(--muted); }
.shopgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .shopgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .shopgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .shopgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shoptile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 0; text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.shoptile .mono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 24px; font-weight: 800; color: var(--c); background: var(--l); }
.shoptile b { margin-top: 4px; font-size: 15px; padding: 0 8px; }
.shoptile small { font-size: 12px; color: var(--muted); padding: 0 8px; }
.shoptile .buy { align-self: stretch; margin-top: auto; }
.shoptile small + .buy { margin-top: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.quick { flex-wrap: wrap; overflow: visible; }

/* trang món */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.item { display: grid; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.pic.big { border-radius: 12px; }
.item h1 { font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; margin: 0 0 6px; }
.item .price { margin: 4px 0; font-size: 27px; }
.item .price s { font-size: 14px; }
.item .price .off { position: static; font-size: 14px; vertical-align: 3px; }
.item .shop { margin: 6px 0; font-size: 15px; white-space: normal; }
.buy.big { margin: 12px 0; min-height: 52px; font-size: 17px; font-weight: 800; background: var(--gold); color: var(--violet-d); }
.buy.big:hover { background: var(--gold-d); color: var(--violet-d); }
.buybar { display: none; }
.note { color: var(--muted); font-size: 14px; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.note.good { color: var(--violet-d); background: var(--violet-l); font-weight: 600; }
.chart { margin: 12px 0 0; }
.chart svg { width: 100%; height: auto; background: var(--bg); border-radius: 10px; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (min-width: 760px) { .item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 18px; gap: 24px; } }
.qreview { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff8e1; font-size: 14px; }
.qreview .stars { color: var(--gold-d); font-size: 18px; letter-spacing: 1px; }
.qreview p { margin: 4px 0 0; }

/* gợi ý khi gõ: điện thoại rộng theo màn hình, máy tính theo ô tìm */
.suggest { position: absolute; left: 12px; right: 12px; top: calc(100% - 6px); z-index: 35; }
.suggest[hidden] { display: none; }
@media (min-width: 900px) { .search { position: relative; } .suggest { left: 0; right: 0; top: calc(100% + 4px); } }
.sg { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--line); }
.sg:first-child { border-radius: 14px 14px 0 0; }
.sg:last-child { border-radius: 0 0 14px 14px; box-shadow: 0 16px 34px rgba(51, 0, 107, .28); border-bottom: 0; }
.sg img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.sg span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg b { display: block; color: var(--red); font-size: 13px; }
.sg.cat { font-weight: 700; color: var(--violet-d); }
.sg.all { justify-content: center; color: var(--violet); font-weight: 700; }
/* bộ lọc */
.smart { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.smart select { flex: 1 1 130px; min-width: 0; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.smart label { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; font-size: 14px; }

/* chân trang */
.disc { font-size: 13px; color: var(--muted); }
.foot { margin-top: 10px; background: var(--violet-d); color: #d9c8f5; padding: 26px 0; font-size: 13px; }
.footline { margin: 0 0 16px; font-size: 19px; font-weight: 800; color: #fff; }
.footcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 16px; }
@media (min-width: 760px) { .footcols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footcols > div { display: grid; align-content: start; gap: 0; }
.footcols b { margin-bottom: 4px; color: var(--gold); font-size: 13.5px; }
.footcols a { display: flex; align-items: center; min-height: 38px; color: #efe6fb; font-size: 14px; text-decoration: none; }
.footcols a:hover { color: var(--gold); text-decoration: underline; }
.foot .disc { color: #bfaae2; margin: 6px 0; font-size: 12.5px; }
.foot a { color: inherit; }
.copy { opacity: .7; font-size: 12px; margin: 10px 0 0; }
.prose h2 { font-size: 17px; margin: 18px 0 4px; color: var(--violet-d); }
.prose p { color: var(--ink); }
.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px 10px; }

/* thanh dưới và nút mua cố định trên điện thoại */
@media (max-width: 899px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -4px 14px rgba(51, 0, 107, .07); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; }
  .tabbar .i { width: 22px; height: 22px; color: var(--violet); }
  .cart { display: none; }
  .tabbar a { position: relative; }
  .tabbar small { position: absolute; top: 5px; left: 56%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
  .tabbar small:empty { display: none; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -4px 14px rgba(51, 0, 107, .1); }
  .buybar .price { margin: 0; font-size: 18px; white-space: nowrap; }
  .buybar .buy.big { flex: 1; margin: 0; min-height: 46px; }
}
@media (min-width: 900px) { .tabbar { display: none; } }
/* máy tắt hiệu ứng: bỏ chuyển cảnh, nhấp nháy. Dòng chữ chạy vẫn chạy chậm (chủ yêu cầu), di chuột hoặc bấm Tab vào là dừng */
/* máy tắt hiệu ứng: bỏ chuyển cảnh. Điểm nhấn nhấp nháy vẫn giữ theo yêu cầu của chủ, nhịp chậm dưới 2 lần mỗi giây để an toàn cho mắt */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .reveal { transform: none; } }

/* banner đầu trang: tràn hết chiều ngang */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stage { position: relative; margin: -12px calc(50% - 50vw) 0; overflow: hidden; color: #fff; }
.slide { display: none; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--a), var(--b)); }
.slide.on { display: block; animation: slidein .55s ease-out; }
@keyframes slidein { from { opacity: .35; } }
.slide::before { content: ""; position: absolute; top: 50%; left: 72%; width: 1500px; height: 1500px; margin: -750px; background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 10deg, transparent 10deg 20deg); animation: spin 60s linear infinite; pointer-events: none; }
.slide::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 12% 22%, #fff, transparent), radial-gradient(2.5px 2.5px at 34% 78%, #ffe680, transparent), radial-gradient(2px 2px at 48% 16%, #fff, transparent), radial-gradient(3px 3px at 62% 86%, #ffe680, transparent), radial-gradient(2px 2px at 88% 14%, #fff, transparent), radial-gradient(2.5px 2.5px at 7% 72%, #fff, transparent); animation: twinkle 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: .25; } }
.stagein { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 22px 16px 34px; }
.scopy h2 { margin: 6px 0 6px; font-size: clamp(31px, 8.4vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; color: #fff; text-shadow: 0 3px 16px rgba(0, 0, 0, .25); }
.scopy h2 em { font-style: normal; color: var(--gold); }
.slogan { margin: 0 0 10px; max-width: 560px; font-size: clamp(14.5px, 3.8vw, 19px); line-height: 1.4; color: #fff; opacity: .96; }
.stag { display: inline-block; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
.kicker { animation: blink 1.1s ease-in-out infinite; }
.stage .count { margin: 0 0 10px; font-weight: 500; }
.stage .count b { min-width: 44px; height: 42px; font-size: 22px; }
.stage .row { margin: 0; }
.stage .cta { min-height: 50px; padding: 0 18px; font-size: 15.5px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.stage .cta:not(.ghost) { position: relative; overflow: hidden; }
.stage .cta:not(.ghost)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 3.5s ease-in-out infinite; }
.stage .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.stage .tile:nth-child(5) { display: none; }
.stage .tile { padding: 8px 4px 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); transition: transform .2s; overflow: visible; }
.stage .tile:hover { transform: translateY(-4px) rotate(-1deg); }
.tile:not(:has(img)) { display: none; }
.burst-off { position: absolute; top: -8px; left: -6px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; clip-path: polygon(50% 0, 62% 14%, 80% 8%, 82% 26%, 100% 32%, 90% 50%, 100% 68%, 82% 74%, 80% 92%, 62% 86%, 50% 100%, 38% 86%, 20% 92%, 18% 74%, 0 68%, 10% 50%, 0 32%, 18% 26%, 20% 8%, 38% 14%); animation: throb 1s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.18) rotate(8deg); } }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
.dots button { width: 26px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dots button::before { content: ""; display: block; height: 4px; margin: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.dots button.on::before { background: var(--gold); }
.stagebtn { display: none; }
@media (min-width: 900px) { .stagein { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; gap: 30px; min-height: 410px; padding: 34px 56px 44px; }
  .stage .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stage .tile:nth-child(5) { display: flex; }
  .stage .tile:nth-child(1) { transform: rotate(-3deg); } .stage .tile:nth-child(2) { transform: translateY(14px); } .stage .tile:nth-child(3) { transform: rotate(3deg); }
  .stage .tile:nth-child(4) { transform: rotate(2deg) translateX(30%); } .stage .tile:nth-child(5) { transform: rotate(-2deg) translateX(30%); }
  .stage .tile b { font-size: 15px; }
  .burst-off { width: 56px; height: 56px; font-size: 14px; top: -14px; left: -12px; }
  .stagebtn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; }
  .stagebtn:hover { background: rgba(255, 255, 255, .4); }
  .stagebtn.prev { left: 12px; } .stagebtn.next { right: 12px; } }
.home { margin-top: 14px; }
/* hôm nay có gì đặc biệt */
.todaybar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: linear-gradient(100deg, #ffe066, #ffcc00); color: var(--violet-d); font-size: 14px; text-decoration: none; box-shadow: var(--shadow); }
.todaybar b { color: var(--red); font-size: 16px; }
.todaybar .bolt { padding: 2px 9px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 800; animation: blink .9s ease-in-out infinite; }
.todaybar em { margin-left: auto; font-style: normal; font-weight: 800; }
@keyframes blink { 50% { opacity: .35; } }
/* điểm nhấn nhấp nháy: nhịp dưới 2 lần mỗi giây */
.chip.flash { color: var(--red); font-weight: 800; animation: chipflash 1s ease-in-out infinite; }
.chip.flash .i { color: var(--red); }
@keyframes chipflash { 50% { background: #ffe066; } }
.doorgrid a:first-child { animation: doorflash 1.2s ease-in-out infinite; }
@keyframes doorflash { 50% { box-shadow: 0 0 0 3px var(--red), 0 8px 26px rgba(217, 32, 43, .4); } }
.card.flashy { animation: cardflash 1.1s ease-in-out infinite; }
@keyframes cardflash { 0%, 100% { box-shadow: 0 0 0 2px var(--gold-d), 0 4px 14px rgba(242, 183, 0, .35); } 50% { box-shadow: 0 0 0 3px var(--red), 0 8px 26px rgba(217, 32, 43, .45); } }
.card.flashy .off { animation: throb 1s ease-in-out infinite; }
.hotflag { position: absolute; top: 36px; left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; animation: blink .9s ease-in-out infinite; }
.pickflag { position: absolute; bottom: 6px; left: 6px; padding: 2px 8px; border-radius: 7px; background: rgba(51, 0, 107, .88); color: var(--gold); font-size: 11px; font-weight: 700; }
.cover em { grid-column: 2; font-style: normal; font-size: 12.5px; font-weight: 600; opacity: .95; }
@media (min-width: 900px) { .cover em { grid-column: auto; font-size: 13.5px; line-height: 1.3; } .cover small { margin-top: 4px; } }
/* ô tìm tại chỗ */
.findbox, .minifind { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.findbox:focus-within, .minifind:focus-within { border-color: var(--violet); }
.findbox input, .minifind input { flex: 1; min-width: 0; height: 44px; padding: 0 6px 0 14px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: 0; -webkit-appearance: none; }
.findbox button, .minifind button { display: flex; align-items: center; gap: 5px; flex: none; height: 38px; margin-right: 3px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.findbox button .i, .minifind button .i { width: 17px; height: 17px; }
.hero .findbox { margin: 8px 0; max-width: 560px; }
.rowtop { display: grid; gap: 6px; }
.minifind input { height: 40px; font-size: 14.5px; }
.minifind button { width: 36px; height: 34px; padding: 0; justify-content: center; }
.minifind button span { display: none; }
@media (min-width: 900px) { .rowtop { grid-template-columns: minmax(0, 1fr) 240px; align-items: center; } .minifind input { font-size: 14px; } }
.footfind { margin-top: 18px; padding: 18px 0; background: linear-gradient(100deg, #efe2ff, #fff4bf); }
.footfind .wrap { display: grid; gap: 8px; }
.footfind b { color: var(--violet-d); font-size: 16px; }
@media (min-width: 760px) { .footfind .wrap { grid-template-columns: auto minmax(0, 560px); align-items: center; gap: 18px; justify-content: center; } }
