:root {
  --bg: #1c130d;          /* nâu đất đậm */
  --bg-2: #261a11;
  --bg-3: #33241a;
  --card: #2b1e14;
  --line: #4a3626;
  --gold: #d4a017;        /* vàng đậm */
  --gold-2: #f0c24b;
  --gold-dark: #9c7410;
  --text: #f3e9da;
  --muted: #bfae96;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.5em; border-radius: 999px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; font: inherit; font-weight: 600; transition: .2s;
}
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1a05; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn-ghost:hover { background: rgba(212, 160, 23, .12); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .55em; font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.35rem; color: var(--gold-2); letter-spacing: .3px; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold-dark)); color: var(--bg); font-size: 1.1rem; }
.logo-lg { font-size: 1.7rem; margin-bottom: 1rem; }

/* Warning bar */
.warning-bar { background: #000; color: #fff; text-align: center; font-size: .82rem; padding: .45em 16px; font-weight: 500; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(28, 19, 13, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--gold-2); }
.menu-btn { display: none; background: none; border: 0; color: var(--gold-2); font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { background: radial-gradient(ellipse at 75% 40%, #4a3015 0%, transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 80px 0; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .3em 0 .4em; }
.hero h1 em { color: var(--gold-2); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 40px; }
.hero-stats strong { display: block; font-family: "Playfair Display", serif; font-size: 1.8rem; color: var(--gold-2); }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-art { position: relative; height: 420px; display: grid; place-items: center; }
.hero-badge {
  width: 280px; height: 280px; border-radius: 50%;
  border: 2px solid var(--gold); outline: 1px solid var(--gold-dark); outline-offset: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, #3b2714, #1e140c);
  box-shadow: 0 0 80px rgba(212, 160, 23, .25);
  letter-spacing: 4px; color: var(--muted); font-size: .8rem; position: relative; z-index: 2;
}
.hero-badge strong { font-family: "Playfair Display", serif; font-size: 3.4rem; color: var(--gold-2); letter-spacing: 6px; line-height: 1.1; margin: 6px 0; }
.smoke { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(240, 220, 190, .18), transparent 70%); filter: blur(12px); animation: drift 9s ease-in-out infinite; }
.s1 { width: 220px; height: 220px; top: 0; left: 10%; }
.s2 { width: 160px; height: 160px; top: 20%; right: 5%; animation-delay: -3s; }
.s3 { width: 260px; height: 260px; bottom: 0; left: 30%; animation-delay: -6s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .6; } 50% { transform: translate(20px, -30px) scale(1.15); opacity: 1; } }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 60px; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--gold-2); }
.section-head h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.section-head p { color: var(--muted); margin: 0; }

/* Toolbar */
.toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); padding: .5em 1.1em; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 500; transition: .2s; }
.tab:hover { color: var(--gold-2); border-color: var(--gold-dark); }
.tab.active { background: var(--gold); color: #2a1a05; border-color: var(--gold); }
.search { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: .65em 1.1em; border-radius: 999px; font: inherit; width: 260px; max-width: 100%; }
.search:focus { outline: none; border-color: var(--gold); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: var(--gold-dark); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 40%, #3e2b1c, #22170f); display: grid; place-items: center; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 62%; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #2a1a05; font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--gold); font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.card-title { font-family: "Be Vietnam Pro", sans-serif; font-size: 1.05rem; font-weight: 600; margin: 4px 0 6px; }
.card-origin { color: var(--muted); font-size: .85rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.card-price { color: var(--gold-2); font-weight: 700; }
.card-btn { font-size: .82rem; color: var(--gold-2); border: 1px solid var(--gold-dark); padding: .35em .9em; border-radius: 999px; }
.card:hover .card-btn { background: var(--gold); color: #2a1a05; border-color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.f-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: rgba(212, 160, 23, .12); color: var(--gold-2); border: 1px solid var(--gold-dark); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px 22px; border-radius: var(--radius); border: 1px dashed var(--gold-dark); }
.steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #2a1a05; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Contact */
.contact { background: linear-gradient(135deg, #3a2512, #1c130d); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold-2); }
.contact p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.contact-list a:hover { color: var(--gold-2); }
.contact-btns { display: grid; gap: 14px; }
.chat-btn { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-radius: var(--radius); font-size: 1.05rem; transition: transform .2s, filter .2s; }
.chat-btn span { font-size: .9rem; opacity: .85; }
.chat-btn:hover { transform: translateX(4px); filter: brightness(1.1); }
.chat-btn.zalo { background: #0068ff; color: #fff; }
.chat-btn.messenger { background: linear-gradient(90deg, #0a7cff, #a033ff); color: #fff; }
.chat-btn.phone { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1a05; }

/* Footer */
.footer { background: #120c08; border-top: 1px solid var(--line); padding: 40px 0 30px; text-align: center; }
.footer-warn { color: var(--muted); max-width: 640px; margin: 16px auto; font-size: .9rem; }
.copy { color: #7d6d58; font-size: .82rem; margin: 0; }

/* Floating chat */
.float-chat { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.fc { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 1.3rem; transition: transform .2s; }
.fc:hover { transform: scale(1.08); }
.fc-zalo { background: #0068ff; color: #fff; font-weight: 700; font-size: .85rem; animation: pulse 2s infinite; }
.fc-mess { background: linear-gradient(135deg, #0a7cff, #a033ff); }
.fc-phone { background: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, .6); } 70% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.modal-box { position: relative; background: var(--bg-2); border: 1px solid var(--gold-dark); border-radius: 18px; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1.1fr; box-shadow: var(--shadow); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.modal-img { background: radial-gradient(circle at 50% 40%, #3e2b1c, #1c130d); display: grid; place-items: center; min-height: 320px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img svg { width: 55%; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5)); }
.modal-info { padding: 32px 28px; }
.tag { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.modal-info h3 { font-size: 1.8rem; margin: 6px 0 8px; }
.price { color: var(--gold-2); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.modal-info p { color: var(--muted); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.hint { font-size: .82rem; font-style: italic; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle, #3a2512, #0f0a06); display: grid; place-items: center; padding: 16px; }
.age-gate.hide { display: none; }
.age-box { text-align: center; max-width: 440px; background: rgba(38, 26, 17, .9); border: 1px solid var(--gold-dark); border-radius: 20px; padding: 40px 28px; box-shadow: var(--shadow); }
.age-box h2 { font-size: 1.9rem; color: var(--gold-2); }
.age-box p { color: var(--muted); }
.age-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 16px; }
.age-box small { color: #8a7a64; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--gold); color: #2a1a05; padding: .7em 1.3em; border-radius: 999px; font-weight: 600; z-index: 300; transition: transform .3s; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* Cart button */
.cart-btn { position: relative; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; flex-shrink: 0; }
.cart-btn:hover { border-color: var(--gold); }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.2); } }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #2a1a05; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
button.card-btn { background: none; font: inherit; font-size: .82rem; cursor: pointer; }
button.card-btn:hover { background: var(--gold) !important; color: #2a1a05 !important; border-color: var(--gold) !important; }
.card:hover .card-btn { background: none; color: var(--gold-2); border-color: var(--gold-dark); }

/* Quantity */
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--gold-dark); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; color: var(--gold-2); width: 38px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: rgba(212, 160, 23, .15); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.qty-sm button { width: 30px; height: 30px; font-size: 1rem; }
.qty-sm span { min-width: 22px; font-size: .9rem; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 110; }
.drawer[hidden] { display: none; }
.drawer-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg-2); border-left: 1px solid var(--gold-dark); display: flex; flex-direction: column; animation: slide .25s ease; box-shadow: var(--shadow); }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; color: var(--gold-2); font-size: 1.4rem; }
.drawer-head .modal-close { position: static; }
.drawer-step { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; }
.drawer-step[hidden] { display: none; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ci-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: radial-gradient(circle, #3e2b1c, #22170f); display: grid; place-items: center; overflow: hidden; }
.ci-img svg { width: 70%; height: auto; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ci-info b { font-size: .95rem; }
.ci-info span { color: var(--muted); font-size: .8rem; }
.ci-info .qty { justify-self: start; }
.ci-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px; align-self: flex-start; }
.ci-remove:hover { color: #e36a5a; }
.drawer-foot { margin-top: auto; padding-top: 16px; }
.btn-block { width: 100%; }
.checkout { gap: 12px; }
.checkout label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.checkout input, .checkout select, .checkout textarea { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: .7em .9em; border-radius: 10px; font: inherit; width: 100%; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--gold); }
.checkout .check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.checkout .check input { width: 18px; height: 18px; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.link-back { background: none; border: 0; color: var(--gold-2); cursor: pointer; font: inherit; padding: 0; text-align: left; }
.form-error { color: #ff8a7a; margin: 0; min-height: 1.2em; font-size: .9rem; }
.done { text-align: center; align-items: center; gap: 6px; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: #2a1a05; font-size: 2.2rem; display: grid; place-items: center; margin: 20px 0 8px; }
.done p { color: var(--muted); margin: 4px 0; }
.done b { color: var(--gold-2); }
.done .modal-actions { justify-content: center; margin: 12px 0 20px; }

/* Responsive */
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .cart-btn { margin-left: auto; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .hero-art { height: 300px; }
  .hero-badge { width: 220px; height: 220px; }
  .hero-badge strong { font-size: 2.6rem; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .modal-box { grid-template-columns: 1fr; }
  .modal-img { min-height: 220px; }
  .search { width: 100%; }
  .hero-stats { gap: 24px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .features, .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-title { font-size: .95rem; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}
