:root {
  --brand: #FF6B2C;
  --brand-dark: #E2521A;
  --brand-soft: #FFF1EA;
  --accent: #1FA88A;
  --accent-soft: #E6F7F2;
  --sun: #FFC93C;
  --ink: #2A2420;
  --muted: #7A6F68;
  --line: #EFE7E1;
  --bg: #FFFBF8;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(60, 30, 10, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); background: var(--bg); 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 { max-width: 100%; display: block; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.only-mobile { display: none !important; }

/* Buttons */
.btn { background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; transition: .2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-soft); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--line); }
.btn--block { width: 100%; }
.link { color: var(--brand); font-weight: 600; font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; font-size: 18px; position: relative; }
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn .lbl { font-size: 14px; font-weight: 600; }
.badge { position: absolute; top: 0; left: 24px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.badge:empty, .badge[data-zero] { display: none; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* Top bar */
.topbar { background: var(--ink); color: #F5E9E1; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.topbar select { background: transparent; color: #fff; border: 0; font: inherit; font-weight: 600; }
.topbar select option { color: var(--ink); }
.topbar__promo { color: var(--sun); font-weight: 600; }
.topbar__right { display: flex; gap: 18px; }
.topbar__right a:hover { color: var(--sun); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header.scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__mark { width: 40px; height: 40px; }
.logo__text { font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.logo__text b { color: var(--brand); }
.logo--light .logo__text { color: #fff; font-size: 24px; }
.nav { display: flex; gap: 4px; }
.nav__link { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav__link:hover { background: var(--brand-soft); color: var(--brand); }
.caret { font-size: 11px; }
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; gap: 24px; }
.mega h4 { font-size: 15px; margin-bottom: 10px; color: var(--brand); }
.mega a { display: block; font-size: 14px; padding: 4px 0; color: var(--muted); }
.mega a:hover { color: var(--ink); }
.mega a.all { color: var(--accent); font-weight: 600; margin-top: 4px; }
.mega__promo { background: linear-gradient(135deg, var(--brand), #FF9A5C); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.mega__promo b { font-size: 18px; line-height: 1.3; }
.search { flex: 1; position: relative; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 44px; min-width: 160px; }
.search:focus-within { border-color: var(--brand); background: #fff; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; font-size: 14px; }
.search__suggest { position: absolute; top: 50px; left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: none; }
.search__suggest.show { display: block; }
.search__suggest a { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 14px; }
.search__suggest a:hover { background: var(--brand-soft); }
.header__actions { display: flex; gap: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; }
.hero__slider { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 2.4 / 1; }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.6,.05,.3,1); }
.slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 0 56px; color: #fff; position: relative; overflow: hidden; }
.slide h1, .slide h2 { font-size: clamp(22px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.slide p { margin: 10px 0 20px; opacity: .92; font-size: clamp(13px, 1.3vw, 16px); }
.slide .tag { display: inline-block; background: rgba(255,255,255,.22); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.slide__art { height: 100%; display: grid; place-items: center; }
.slide__art svg { width: 100%; max-height: 92%; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 24px; line-height: 1; box-shadow: var(--shadow); }
.hero__nav.prev { left: 14px; } .hero__nav.next { right: 14px; }
.dots { position: absolute; bottom: 14px; left: 56px; display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.5); transition: .3s; }
.dots button.active { width: 26px; background: #fff; }
.hero__side { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.welcome { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.welcome .btn { grid-column: 1 / -1; }
.welcome__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 24px; }
.welcome p { font-size: 12px; color: var(--muted); }
.perks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks span { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.perks b { font-size: 13px; display: block; } .perks small { font-size: 12px; color: var(--muted); }

/* Sections */
.section { margin-top: 48px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.section__head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.scroll-ctrl { display: flex; gap: 6px; }
.scroll-ctrl button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 20px; background: #fff; }
.scroll-ctrl button:hover { border-color: var(--brand); color: var(--brand); }
.hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

/* Vouchers */
.voucher { flex: 0 0 300px; scroll-snap-align: start; display: grid; grid-template-columns: 96px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.voucher__left { background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; text-align: center; position: relative; }
.voucher__left::after { content: ""; position: absolute; right: -6px; top: 0; bottom: 0; width: 12px; background: radial-gradient(circle at 6px 8px, #fff 4px, transparent 4.5px) 0 0 / 12px 16px repeat-y; }
.voucher.ship .voucher__left { background: var(--accent); }
.voucher__left small { font-size: 11px; opacity: .9; }
.voucher__left b { font-size: 20px; line-height: 1.2; }
.voucher__right { padding: 12px 14px 12px 18px; display: flex; flex-direction: column; gap: 4px; }
.voucher__right p { font-size: 13px; font-weight: 600; line-height: 1.35; }
.voucher__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.voucher__code { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--brand); }
.voucher .btn { padding: 6px 14px; font-size: 13px; }
.voucher .btn.saved { background: var(--accent); }

/* Deals */
.deals { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.deal { border-radius: 20px; padding: 24px; color: #fff; position: relative; overflow: hidden; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; transition: .25s; }
.deal:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.deal:first-child { grid-row: span 2; }
.deal h3 { font-size: 22px; line-height: 1.2; font-weight: 800; max-width: 70%; position: relative; z-index: 1; }
.deal:first-child h3 { font-size: 30px; }
.deal .btn { position: relative; z-index: 1; }
.deal__art { position: absolute; right: -10px; bottom: -10px; width: 55%; opacity: .95; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; transition: .2s; }
.cat:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; background: #fff; }
.tab.active, .tab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Products */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; animation: fade .35s both; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.product__img { aspect-ratio: 1; background: var(--bg); position: relative; display: grid; place-items: center; }
.product__img svg { width: 78%; height: 78%; }
.product__off { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.product__fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 15px; }
.product__fav.on { color: var(--brand); }
.product__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__brand { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.product__name { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.product__rating { font-size: 12px; color: var(--muted); }
.product__rating b { color: #E9A800; }
.product__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.product__price b { color: var(--brand); font-size: 16px; }
.product__price s { color: var(--muted); font-size: 12px; }
.product .btn { margin-top: 8px; padding: 8px; font-size: 13px; }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 88px; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.3px; transition: .2s; }
.brand:hover { border-color: var(--brand); color: var(--brand); }

/* Blog */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .2s; }
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post__img { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 64px; }
.post__body { padding: 16px; }
.post__cat { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.post h3 { font-size: 16px; line-height: 1.4; margin-top: 6px; }

/* Club */
.club { background: linear-gradient(120deg, var(--ink), #4A3428); color: #fff; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.pill { display: inline-block; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: 1px; }
.club h2 { font-size: 30px; line-height: 1.2; margin: 12px 0; }
.club p { opacity: .85; margin-bottom: 20px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tier { border-radius: 16px; padding: 18px; color: var(--ink); }
.tier b { display: block; font-size: 16px; } .tier small { font-size: 13px; opacity: .8; }
.t1 { background: #F3E9E2; } .t2 { background: #E3E8EE; } .t3 { background: var(--sun); } .t4 { background: linear-gradient(135deg, #C8F1FF, #E9D8FF); }

/* Trust */
.trust { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 600; text-align: center; }

/* Footer */
.footer { background: var(--ink); color: #D9CCC4; margin-top: 56px; padding-top: 48px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer__grid > div > a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--sun); }
.footer__about p { margin: 12px 0; }
.footer .small { color: #B3A59C; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { padding: 6px 12px; border: 1px solid #5A4B42; border-radius: 999px; font-size: 13px; }
.newsletter { display: flex; gap: 6px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 0 14px; font: inherit; }
.footer__bottom { border-top: 1px solid #45382F; margin-top: 36px; padding: 18px 0; font-size: 13px; color: #9C8E85; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(30,20,15,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
.overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: .3s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer .row { display: flex; justify-content: space-between; }
.ship-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ship-progress div { height: 100%; background: var(--accent); width: 0; transition: .3s; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 60px; height: 60px; background: var(--bg); border-radius: 12px; display: grid; place-items: center; }
.cart-item__img svg { width: 80%; height: 80%; }
.cart-item p { font-size: 13px; line-height: 1.35; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty div { font-size: 56px; }

/* Mobile menu */
.mobile-menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85%); background: #fff; z-index: 100; transform: translateX(-100%); transition: .3s; overflow-y: auto; padding: 20px; }
.mobile-menu.open { transform: none; }
.mobile-menu h4 { margin: 16px 0 6px; color: var(--brand); }
.mobile-menu a { display: block; padding: 6px 0; font-size: 15px; }

/* Fab, cookie, toast */
.fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 24px rgba(31,168,138,.4); z-index: 40; }
.cookie { position: fixed; left: 20px; bottom: 20px; max-width: 420px; background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.15); padding: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.cookie div { display: flex; gap: 8px; justify-content: flex-end; }
.cookie.hide { display: none; }
.toast { position: fixed; left: 50%; top: 90px; transform: translate(-50%, -20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .3s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(4, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero__side { display: none; }
  .nav__link { padding: 10px 8px; }
}
@media (max-width: 900px) {
  .nav, .topbar__promo { display: none; }
  .only-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .cats, .brands { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .deals { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .deal:first-child { grid-column: span 2; grid-row: auto; }
  .blog { grid-template-columns: 1fr 1fr; }
  .club { grid-template-columns: 1fr; padding: 28px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header__inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .logo { flex: 1; }
  .search { order: 3; flex-basis: 100%; }
  .hero__slider { aspect-ratio: 1.4 / 1; }
  .slide { grid-template-columns: 1fr; padding: 24px; align-content: center; }
  .slide__art { position: absolute; right: -20px; bottom: -10px; width: 55%; height: 60%; opacity: .9; }
  .slide__text { position: relative; z-index: 1; max-width: 75%; }
  .dots { left: 24px; }
  .hero__nav { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat__ico { width: 52px; height: 52px; font-size: 24px; }
  .deals { grid-template-columns: 1fr; }
  .deal:first-child { grid-column: auto; }
  .deal h3, .deal:first-child h3 { font-size: 22px; max-width: 62%; }
  .deal__art { width: 42%; }
  .blog { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .club h2 { font-size: 24px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__right a:not(:first-child) { display: none; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .section__head h2 { font-size: 20px; }
}
