/* ================= TOKENS ================= */
:root {
  --primary: #ff5b00;
  --primary-dark: #e04f00;
  --primary-soft: #fff1e8;
  --text: #212121;
  --text-2: #595959;
  --text-3: #8a8a8a;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --star: #ffb400;
  --green: #08875c;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .14);
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.mt { margin-top: 18px; }

.ico { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.ico--sm { width: 16px; height: 16px; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 8px;
  font-weight: 600; transition: .2s; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { border: 1px solid var(--text); background: #fff; }
.btn--outline:hover { background: var(--bg-2); }
.btn--sm { height: 36px; padding: 0 16px; }
.btn--block { width: 100%; }
.btn--social { width: 100%; border: 1px solid var(--line); margin-bottom: 10px; }
.btn--social:hover { background: var(--bg-2); }

/* ================= HEADER ================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,.1); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.header__burger { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.header__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo__text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }

.header__search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--bg-2);
  color: var(--text-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: .2s;
}
.header.scrolled .header__search { opacity: 1; visibility: visible; transform: none; }
.header__search input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: var(--text); }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hdr-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 10px; border-radius: 8px;
  font-weight: 500; color: var(--text);
}
.hdr-link:hover { background: var(--bg-2); }
.hdr-cart { position: relative; }
.badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
  color: #fff; background: var(--primary); border-radius: 999px;
}
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 220px; padding: 8px 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.dropdown.open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu li { padding: 9px 16px; cursor: pointer; }
.dropdown__menu li:hover { background: var(--bg-2); }
.dropdown__menu li.active { color: var(--primary); font-weight: 600; }

/* Category bar */
.catbar { border-bottom: 1px solid var(--line); }
.catbar__inner {
  display: flex; gap: 28px; height: 44px; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar__item {
  display: flex; align-items: center; white-space: nowrap;
  color: var(--text-2); font-weight: 500;
  border-bottom: 2px solid transparent;
}
.catbar__item:hover { color: var(--text); }
.catbar__item.active { color: var(--text); border-color: var(--primary); font-weight: 600; }
.catbar__item--hot { color: var(--primary); }

/* Drawer */
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 300;
  width: 300px; max-width: 85vw; padding: 16px;
  background: #fff; overflow-y: auto;
  transform: translateX(-100%); transition: transform .25s;
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer__close { font-size: 20px; }
.drawer__nav { display: flex; flex-direction: column; margin-top: 12px; }
.drawer__nav a { padding: 12px 4px; font-weight: 500; }
.drawer__nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.overlay {
  position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: .25s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ================= HERO ================= */
.hero { position: relative; height: 420px; display: flex; align-items: center; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)),
    var(--bg-2) center/cover no-repeat;
}
.hero__content { position: relative; text-align: center; color: #fff; }
.hero__title { font-size: 44px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero__sub { font-size: 16px; margin: 10px 0 28px; opacity: .95; }

.search {
  position: relative; max-width: 720px; margin: 0 auto;
  display: flex; gap: 8px; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.search__field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--text-3); }
.search__field input { flex: 1; height: 44px; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--text); }
.search__btn { height: 48px; padding: 0 32px; font-size: 16px; border-radius: 10px; }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  padding: 18px; text-align: left; color: var(--text);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none;
}
.suggest.show { display: block; }
.suggest__title { font-weight: 700; margin-bottom: 10px; }
.suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 6px 14px; border-radius: 999px; background: var(--bg-2);
  font-size: 13px; cursor: pointer; transition: .15s;
}
.chip:hover { background: var(--primary-soft); color: var(--primary); }
.suggest__list li {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; cursor: pointer;
}
.suggest__list li:hover { background: var(--bg-2); }
.suggest__list img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.suggest__list small { display: block; color: var(--text-3); }
.suggest mark { background: none; color: var(--primary); font-weight: 700; }

/* Quick categories */
.quickcats { position: relative; margin-top: -36px; z-index: 2; }
.quickcats__grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
  padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.quickcat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 4px; border-radius: 10px; text-align: center;
  font-size: 13px; font-weight: 500; transition: .15s;
}
.quickcat:hover { background: var(--bg-2); }
.quickcat__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
}

/* ================= SECTIONS ================= */
.section { padding: 40px 0 8px; }
.section.container { padding-left: 16px; padding-right: 16px; }
.section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.section__title { font-size: 24px; font-weight: 700; }
.see-all { color: var(--primary); font-weight: 600; margin-right: 8px; }
.see-all:hover { text-decoration: underline; }

.slider-nav { display: flex; align-items: center; gap: 8px; }
.slider-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--text);
  display: grid; place-items: center; transition: .15s;
}
.slider-btn:hover:not(:disabled) { box-shadow: var(--shadow); border-color: #ccc; }
.slider-btn:disabled { opacity: .35; cursor: default; }

.slider {
  display: grid; grid-auto-flow: column; gap: 16px;
  grid-auto-columns: calc((100% - 32px) / 3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 6px;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; }
.slider--cards { grid-auto-columns: calc((100% - 48px) / 4); }

/* Promo */
.promo {
  position: relative; height: 170px; border-radius: var(--radius); overflow: hidden;
  padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.promo::after {
  content: ""; position: absolute; right: -30px; bottom: -40px;
  width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.14);
}
.promo__tag { font-size: 12px; font-weight: 600; opacity: .9; }
.promo__title { font-size: 20px; font-weight: 800; line-height: 1.25; max-width: 80%; }
.promo__code {
  position: relative; z-index: 1; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--text);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.promo__code b { color: var(--primary); letter-spacing: .5px; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 500; white-space: nowrap; transition: .15s;
}
.tab:hover { border-color: var(--text); }
.tab.active { background: var(--text); color: #fff; border-color: var(--text); }

/* Destination grid */
.dest-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
}
.dest { position: relative; border-radius: var(--radius); overflow: hidden; animation: fadeUp .4s both; }
.dest:first-child { grid-column: span 2; grid-row: span 2; }
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dest:hover img { transform: scale(1.06); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6)); }
.dest__info { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; }
.dest__name { font-size: 20px; font-weight: 700; }
.dest:first-child .dest__name { font-size: 28px; }
.dest__count { font-size: 13px; opacity: .9; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* Activity card */
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.3); color: #fff; transition: .15s;
}
.card__fav svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.card__fav.on svg { fill: var(--primary); stroke: var(--primary); }
.card__fav.on { background: #fff; }
.card__label {
  position: absolute; top: 10px; left: 10px;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
  background: var(--primary); color: #fff;
}
.card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: 12px; color: var(--text-3); }
.card__title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card__tags span { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--bg-2); color: var(--text-2); }
.card__rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.card__rating b { color: var(--text); }
.card__rating .star { color: var(--star); }
.card__price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.card__price small { color: var(--text-2); font-size: 12px; }
.card__price strong { font-size: 17px; font-weight: 700; }
.card__price del { color: var(--text-3); font-size: 12px; }
.card__add {
  margin-top: 8px; height: 34px; border-radius: 8px; border: 1px solid var(--primary);
  color: var(--primary); font-weight: 600; font-size: 13px; transition: .15s;
}
.card__add:hover { background: var(--primary); color: #fff; }

/* Flash */
.flash { background: linear-gradient(180deg, var(--primary-soft), #fff); padding-bottom: 24px; margin-top: 32px; }
.flash__title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.countdown { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-2); }
.countdown span { margin-right: 4px; font-weight: 500; }
.countdown b { min-width: 30px; padding: 3px 6px; border-radius: 6px; background: var(--text); color: #fff; text-align: center; }
.stock { height: 6px; border-radius: 3px; background: #ffe0cc; overflow: hidden; }
.stock i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.stock-text { font-size: 11px; color: var(--primary); font-weight: 600; }

/* Themes */
.theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.theme { text-align: center; }
.theme__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 10px; }
.theme__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.theme:hover .theme__img img { transform: scale(1.08); }
.theme__name { font-weight: 600; }

/* Grid of cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.card-grid .card { animation: fadeUp .4s both; }

/* Why */
.why { background: var(--bg-2); margin-top: 40px; padding: 48px 0; }
.why .section__title { margin-bottom: 28px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item { text-align: center; padding: 8px; }
.why__icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; background: #fff; box-shadow: var(--shadow);
}
.why__item h3 { font-size: 16px; margin-bottom: 6px; }
.why__item p { color: var(--text-2); }

/* App banner */
.appbanner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 40px; border-radius: 16px;
  background: linear-gradient(120deg, #ff5b00, #ff8a3d);
  color: #fff; overflow: hidden;
}
.appbanner h2 { font-size: 28px; margin-bottom: 8px; }
.appbanner p { max-width: 460px; opacity: .95; }
.appbanner__stores { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px; background: #111; color: #fff;
}
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; }
.store small { font-size: 10px; font-weight: 400; opacity: .8; }
.appbanner__qr { text-align: center; font-size: 13px; }
.qr {
  width: 120px; height: 120px; padding: 8px; margin-bottom: 8px; border-radius: 10px; background: #fff;
  display: grid; grid-template-columns: repeat(21, 1fr);
}
.qr i { background: #fff; }
.qr i.b { background: #111; }

/* Newsletter */
.newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 32px; border: 1px solid var(--line); border-radius: 16px;
}
.newsletter h3 { font-size: 18px; }
.newsletter p { color: var(--text-2); }
.newsletter__form { display: flex; gap: 8px; flex: 1; max-width: 440px; }
.newsletter__form input, .input {
  flex: 1; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; outline: none; width: 100%;
}
.newsletter__form input:focus, .input:focus { border-color: var(--primary); }

/* ================= FOOTER ================= */
.footer { margin-top: 48px; background: #1a1a1a; color: #c7c7c7; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__col a { display: block; padding: 4px 0; }
.footer__col a:hover { color: #fff; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span {
  padding: 4px 8px; border-radius: 4px; background: #fff; color: #333;
  font-size: 11px; font-weight: 700;
}
.social { display: flex; gap: 8px; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #333; color: #fff; font-weight: 700; font-size: 13px;
}
.social a:hover { background: var(--primary); }
.footer__bottom { border-top: 1px solid #333; padding-top: 16px; padding-bottom: 20px; font-size: 12px; color: #8a8a8a; }

/* ================= MODAL / TOAST / TOTOP ================= */
.modal {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .2s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal__box {
  position: relative; width: 100%; max-width: 400px; padding: 28px 24px;
  background: #fff; border-radius: 16px; transform: scale(.95); transition: .2s;
}
.modal.show .modal__box { transform: none; }
.modal__box h3 { font-size: 20px; }
.modal__box .muted { margin-bottom: 20px; }
.modal__box .input { margin-bottom: 10px; }
.modal__close { position: absolute; top: 14px; right: 16px; font-size: 18px; color: var(--text-3); }
.divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; color: var(--text-3); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tiny { margin-top: 12px; font-size: 11px; color: var(--text-3); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 500;
  padding: 10px 18px; border-radius: 8px; background: rgba(33,33,33,.92); color: #fff;
  transform: translate(-50%, 20px); opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.totop {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg); font-size: 20px;
  opacity: 0; visibility: hidden; transition: .2s;
}
.totop.show { opacity: 1; visibility: visible; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hide-md { display: none; }
  .slider--cards { grid-auto-columns: calc((100% - 32px) / 3); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .quickcats__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .hide-sm { display: none; }
  .header__burger { display: flex; }
  .header__inner { gap: 10px; }
  .header__search { display: none; }
  .logo__text { font-size: 20px; }

  .hero { height: 340px; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: 14px; margin-bottom: 20px; }
  .search__btn { padding: 0 18px; font-size: 14px; }

  .section__title { font-size: 20px; }
  .slider { grid-auto-columns: 85%; }
  .slider--cards { grid-auto-columns: 62%; }
  .slider-btn { display: none; }

  .dest-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }

  .appbanner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .appbanner__qr { display: none; }
  .newsletter { padding: 20px; }
  .newsletter__form { max-width: none; }
}

@media (max-width: 480px) {
  .quickcats__grid { grid-template-columns: repeat(4, 1fr); padding: 10px; gap: 4px; }
  .quickcat { font-size: 11px; }
  .quickcat__icon { width: 40px; height: 40px; font-size: 20px; }
  .search { flex-direction: column; }
  .search__btn { width: 100%; }
  .hero { height: 380px; }
  .card__title { font-size: 13px; }
  .card__price strong { font-size: 15px; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
}
