:root {
  --bg: #fff9f5;
  --card: #ffffff;
  --text: #191919;
  --muted: #6e6e73;
  --line: #ebe5df;
  --brand: #ff5a1f;
  --brand-dark: #e54812;
  --dark: #171717;
  --soft: #fff0e9;
  --green: #0e9f6e;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(50, 25, 10, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(235, 229, 223, 0.9);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: white; box-shadow: 0 9px 24px rgba(255,90,31,.28); }
.nav-links { display: flex; gap: 28px; color: #4d4d4d; font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--brand); }
.btn { border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 15px; font-size: 13px; }
.btn-dark { color: #fff; background: var(--dark); }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 13px 30px rgba(255,90,31,.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--line); }
.hero { padding: 72px 0 42px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .11em; color: var(--brand); margin-bottom: 16px; }
.hero h1 { margin: 0; font-size: clamp(45px, 6vw, 76px); line-height: .99; letter-spacing: -.05em; max-width: 800px; }
.hero h1 span { color: var(--brand); }
.hero-copy > p { max-width: 670px; color: var(--muted); font-size: 17px; line-height: 1.8; margin: 24px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 40px; }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong { font-size: 23px; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-card { position: relative; min-height: 465px; padding: 28px; border-radius: 34px; background: linear-gradient(145deg, #ffdfd3, #fff4ef 50%, #ffd6c8); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-card:before { content: ""; width: 340px; height: 340px; background: #fff; opacity: .45; filter: blur(2px); border-radius: 50%; position: absolute; right: -120px; top: -100px; }
.hero-product-visual { position: relative; z-index: 1; height: 250px; display: grid; place-items: center; font-size: 150px; transform: rotate(-8deg); filter: drop-shadow(0 30px 30px rgba(80,30,10,.18)); }
.floating-badge { position: absolute; top: 25px; left: 25px; z-index: 2; padding: 9px 12px; border-radius: 999px; color: #fff; background: var(--dark); font-weight: 800; }
.hero-product-info { position: relative; z-index: 2; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-radius: 22px; padding: 20px; }
.hero-product-info h3 { margin: 12px 0 10px; font-size: 22px; }
.price-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.price-row strong { font-size: 24px; color: var(--brand); }
.price-row del { color: #999; }
.countdown { margin-top: 13px; color: #505050; font-size: 13px; font-weight: 600; }
.store-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.store-pill.shopee { background: #fff0ea; color: #ec4b1a; }
.store-pill.tiktok { background: #f2f2f2; color: #111; }
.store-pill.lazada { background: #f3edff; color: #6339b5; }
.section { padding: 58px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.035em; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 18px 14px; display: flex; flex-direction: column; text-align: left; min-height: 140px; transition: .2s ease; }
.category-card span { font-size: 30px; margin-bottom: auto; }
.category-card strong { margin-top: 18px; }
.category-card small { color: var(--muted); margin-top: 4px; }
.category-card:hover, .category-card.active { transform: translateY(-3px); border-color: #ffc5af; box-shadow: 0 14px 35px rgba(54,29,16,.07); }
.category-card.active { background: var(--soft); }
.deals-section { background: #fff; border-top: 1px solid #f0ebe6; border-bottom: 1px solid #f0ebe6; }
.deals-head { align-items: end; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.searchbox { background: #faf8f6; border: 1px solid var(--line); height: 45px; border-radius: 13px; padding: 0 13px; display: flex; align-items: center; gap: 8px; }
.searchbox input { border: 0; outline: 0; background: transparent; min-width: 180px; }
.filters select { border: 1px solid var(--line); border-radius: 13px; background: #faf8f6; padding: 0 12px; height: 45px; outline: 0; color: #444; }
.deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.deal-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; transition: .2s ease; display: flex; flex-direction: column; }
.deal-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(55,31,18,.08); }
.deal-image { position: relative; min-height: 210px; display: grid; place-items: center; font-size: 84px; background: linear-gradient(145deg, #fff7f2, #f8f4f0); }
.discount-badge { position: absolute; top: 14px; left: 14px; background: var(--brand); color: white; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 800; }
.favorite { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.deal-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deal-title { margin: 13px 0 10px; font-size: 15px; line-height: 1.55; min-height: 47px; }
.deal-price { margin-top: auto; }
.deal-price strong { display: block; color: var(--brand); font-size: 20px; }
.deal-price del { color: #9a9a9a; font-size: 13px; }
.deal-saving { color: var(--green); font-size: 12px; font-weight: 700; margin: 7px 0 12px; }
.deal-card .btn { width: 100%; padding: 12px 14px; border-radius: 12px; }
.deal-meta { color: var(--muted); font-size: 11px; }
.empty-state { text-align: center; padding: 55px 0; }
.empty-state > div { font-size: 50px; }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { color: var(--muted); }
.voucher-box { background: var(--dark); color: white; border-radius: 30px; padding: 44px; display: grid; grid-template-columns: 1fr .9fr; gap: 50px; align-items: center; }
.eyebrow.light { color: #ff9e7b; }
.voucher-box h2 { margin: 0 0 15px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.voucher-box p { color: #bdbdbd; line-height: 1.7; }
.voucher-list { display: grid; gap: 12px; }
.voucher-item { background: #242424; border: 1px solid #333; padding: 14px 14px 14px 18px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.voucher-item div { display: flex; flex-direction: column; gap: 4px; }
.voucher-item b { color: #ff9e7b; }
.voucher-item span { color: #bcbcbc; font-size: 12px; }
.copy-btn { border: 0; background: white; border-radius: 11px; padding: 10px 12px; font-size: 12px; font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.step > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--brand); font-weight: 800; }
.step h3 { margin: 20px 0 8px; }
.step p { color: var(--muted); line-height: 1.65; margin: 0; }
footer { background: #f0ebe6; padding: 44px 0 20px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 250px; gap: 40px; }
.footer-grid p { color: var(--muted); max-width: 520px; line-height: 1.7; }
.footer-grid > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.footer-grid > div:last-child a { color: #5d5d5d; font-size: 14px; }
.footer-brand { margin-bottom: 12px; }
.copyright { margin-top: 35px; border-top: 1px solid #ddd5ce; padding-top: 18px; color: #777; font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; transform: translateY(20px); opacity: 0; pointer-events: none; background: #171717; color: #fff; padding: 13px 16px; border-radius: 12px; transition: .25s ease; z-index: 100; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 380px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-head { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; width: 100%; }
  .voucher-box { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1180px); }
  .topbar .btn-sm { display: none; }
  .nav { height: 66px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 47px; }
  .hero-copy > p { font-size: 15px; }
  .hero-stats { gap: 22px; }
  .hero-card { min-height: 340px; }
  .hero-product-visual { height: 190px; font-size: 110px; }
  .section { padding: 42px 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-grid { grid-template-columns: 1fr; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .searchbox { grid-column: 1 / -1; }
  .searchbox input { width: 100%; min-width: 0; }
  .filters select { width: 100%; }
  .voucher-box { padding: 28px 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
.deal-product-img { width: 100%; height: 210px; object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.deal-icon-fallback { min-height: 210px; width: 100%; display: grid; place-items: center; font-size: 84px; }
.voucher-chip { align-self: flex-start; background: #fff3ed; color: #d24c1c; border: 1px dashed #ffb99e; border-radius: 8px; padding: 5px 7px; font-size: 10px; font-weight: 800; margin-bottom: 10px; }

/* Mẫu sản phẩm và danh sách shop */
.category-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.subcategory-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 20px; }
.subcategory-label { font-size: 12px; color: var(--muted); font-weight: 700; margin-right: 5px; }
.subcategory-bar button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 13px; font-size: 12px; font-weight: 700; }
.subcategory-bar button.active, .subcategory-bar button:hover { color: #d44716; background: var(--soft); border-color: #ffc5af; }
.subcategory-bar small { font-weight: 500; color: var(--muted); margin-left: 3px; }
.store-pill.multi-shop { background: #fff0e9; color: #d44716; }
.offers-backdrop { position: fixed; z-index: 120; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(18,18,18,.55); overflow-y: auto; }
.offers-dialog { width: min(770px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 25px 85px rgba(0,0,0,.25); }
.offers-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.offers-header h2 { margin: 0; font-size: clamp(23px, 4vw, 30px); }
.offers-dialog > p { color: var(--muted); font-size: 13px; }
.offers-close { width: 38px; height: 38px; border: 0; border-radius: 10px; font-size: 24px; flex-shrink: 0; }
.offers-list { display: grid; gap: 10px; margin-top: 22px; }
.offer-row { border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 14px; }
.offer-row > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.offer-row > div:first-child strong { width: 100%; overflow-wrap: anywhere; }
.offer-row small { color: var(--muted); }
.offer-price { display: grid; gap: 4px; color: var(--brand); white-space: nowrap; }
.offer-price del { color: var(--muted); font-size: 11px; }
.footer-link-list { display: flex; flex-direction: column; gap: 10px; }
.footer-extra { white-space: pre-line; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .offer-row { grid-template-columns: 1fr auto; }
  .offer-row .btn { grid-column: 1 / -1; }
  .offers-dialog { padding: 20px; }
}
