:root {
  --navy: #102b44;
  --muted: #6b7785;
  --line: #e2e6ea;
  --surface: #f5f7f9;
  --field: #d3dae0;
  --serif: 'Bodoni Moda', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* Typography */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; line-height: 1.2; }
.h1 { font-size: 64px; }
.h2 { font-size: 40px; }
.h3 { font-size: 28px; }
.eyebrow { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 16px; }

/* Header */
.header-top {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: .06em; }
.utils { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; gap: 40px; font-size: 14px; }
.utils a:hover, .main-nav a:hover { opacity: .65; }
.site-header { background: var(--navy); color: #fff; }
.main-nav { border-top: 1px solid rgba(255, 255, 255, .18); }
.main-nav ul { display: flex; justify-content: center; gap: 66px; }
.main-nav a { display: block; padding: 14px 0 12px; font-size: 15px; color: #fff; border-bottom: 2px solid transparent; }
.main-nav a.active { font-weight: 600; border-bottom-color: #fff; }

.breadcrumb { padding: 28px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }

/* home */
.hero { display: grid; grid-template-columns: 1fr 700px; gap: 80px; align-items: center; padding-top: 32px; }
.hero-text .h1 { margin: 28px 0 18px; }
.hero-img img { width: 100%; height: 488px; object-fit: cover; }

.section { margin-top: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.link-arrow { font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { opacity: .65; }

/* Products */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.product { scroll-margin-top: 24px; display: flex; flex-direction: column; }
.brand-line { margin-top: 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brand-line + .product-name { margin-top: 4px; }
.product:target .thumb { outline: 2px solid var(--navy); outline-offset: 4px; }
.thumb { display: block; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.thumb:hover img { transform: scale(1.03); }
.product-name { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 22px; line-height: 1.3; }
.price { margin: 10px 0 0; font-size: 15px; }
.product .price { margin-bottom: 22px; }
.product .btn, .product .link-arrow { margin-top: auto; }

.page-title { font-family: var(--serif); font-weight: 400; font-size: 52px; letter-spacing: .02em; line-height: 1.2; margin-top: 40px; }
.page-sub { color: var(--muted); margin-top: 4px; }

.tabs { display: flex; align-items: center; gap: 60px; margin-top: 48px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0 14px; cursor: pointer; color: var(--muted); font-size: 14px; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .count { margin-left: auto; font-size: 14px; color: var(--muted); padding-bottom: 14px; }
.grid-3.spaced { margin-top: 32px; margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 44px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  font-size: 14px; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* About */
.about { display: grid; grid-template-columns: 628px 1fr; gap: 80px; align-items: center; margin-top: 56px; }
.about img { width: 100%; height: 510px; object-fit: cover; }
.about .h1 { font-size: 56px; margin: 28px 0 28px; }
.about .lead-lines { font-size: 18px; color: var(--muted); }
.about .body { color: var(--muted); max-width: 340px; margin: 28px 0 40px; line-height: 1.9; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; border-top: 1px solid var(--line); margin-top: 80px; padding-top: 56px; }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: .02em; }
.values p { color: var(--muted); margin-top: 6px; }
.quote { font-family: var(--serif); font-size: 22px; margin: 56px 0 72px; }

/* Forms / account */
.form-wrap { max-width: 440px; margin: 0 auto; padding-bottom: 80px; }
.form-wrap .page-title { text-align: center; font-size: 46px; }
.form-wrap .page-sub { text-align: center; }
.form { margin-top: 48px; }
.form label { display: block; font-size: 13px; margin: 0 0 8px; }
.form input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field); background: #fff; outline: none; margin-bottom: 22px;
}
.form input:focus { border-color: var(--navy); }
.form .forgot { display: block; text-align: right; font-size: 13px; margin: -8px 0 28px; padding-right: 16px; }
.form-error { color: #b3261e; font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.form-alt { text-align: center; font-size: 14px; margin-top: 28px; }
.form-alt a { text-decoration: underline; margin-left: 4px; }
.note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 56px; }
.account-box { margin-top: 40px; border: 1px solid var(--line); padding: 32px; text-align: center; }
.account-box .btn + .btn { margin-top: 14px; }
.account-box p { margin-bottom: 6px; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 400px; gap: 80px; margin-top: 40px; padding-bottom: 100px; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 208px 1fr auto; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 208px; height: 260px; object-fit: cover; }
.cart-item .brand-line { margin-top: 0; }
.cart-item .brand-line + .product-name { margin-top: 4px; }
.cart-item .product-name { margin-top: 0; font-size: 28px; }
.cart-price { padding-right: 52px; padding-top: 4px; }
.qty { display: inline-flex; border: 1px solid var(--field); margin-top: 22px; }
.qty button { width: 40px; height: 40px; background: none; border: 0; cursor: pointer; font-size: 16px; }
.qty button:hover { background: var(--surface); }
.qty span { width: 52px; text-align: center; line-height: 40px; }
.remove { display: block; margin-top: 14px; background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.remove:hover { color: var(--navy); text-decoration: underline; }
.continue { display: inline-flex; gap: 10px; margin-top: 36px; font-size: 14px; }
.continue:hover { opacity: .65; }
.summary { background: var(--surface); padding: 24px; align-self: start; }
.summary h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 26px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.summary .row .muted { font-size: 14px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; font-size: 17px; }
.summary .btn { width: 100%; margin-top: 22px; }
.summary .secure { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; }
.empty { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* Search */
.search-title { text-align: center; font-size: 40px; margin-top: 48px; }
.search-bar { display: flex; max-width: 800px; margin: 36px auto 0; }
.search-bar input { flex: 1; height: 60px; padding: 0 20px; border: 1px solid var(--field); border-right: 0; outline: none; }
.search-bar input:focus { border-color: var(--navy); }
.search-bar button { width: 120px; height: 60px; background: var(--navy); color: #fff; border: 0; cursor: pointer; font-size: 14px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 80px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-head h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.results-head span { font-size: 14px; color: var(--muted); }

/* Support */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 52px; }
.info-card { border: 1px solid var(--line); padding: 24px; text-align: left; background: #fff; cursor: pointer; }
.info-card:hover { border-color: var(--navy); }
.info-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.info-card p { color: var(--muted); margin: 12px 0 26px; font-size: 14px; }
.faq-title { margin-top: 72px; font-size: 36px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; }
.faq-q .icon { font-size: 20px; width: 24px; text-align: center; }
.faq-a { display: none; padding: 0 48px 24px 0; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }
.contact-band { display: flex; justify-content: space-between; align-items: center; margin: 72px 0 80px; }
.contact-band h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; margin-top: 60px; padding: 36px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.footer-logo { font-family: var(--serif); font-size: 34px; line-height: 1.2; letter-spacing: .06em; }
.footer-grid p { color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-col h4 { font-weight: 500; font-size: 14px; margin-bottom: 14px; }
.footer-col a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.copyright { margin-top: 40px; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* Toast + modal */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 14px 24px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 43, 68, .45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 24px; }
.modal { background: #fff; max-width: 520px; width: 100%; padding: 40px; position: relative; }
.modal h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 16px; }
.modal p { color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.modal .btn { margin-top: 18px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero, .about, .cart { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { order: -1; }
  .hero-img img, .about img { height: 380px; }
  .grid-3, .cards-3, .values { grid-template-columns: repeat(2, 1fr); }
  .h1, .about .h1 { font-size: 48px; }
}
@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .header-top { height: auto; flex-direction: column; padding: 18px 0 6px; gap: 10px; }
  .utils { position: static; transform: none; gap: 22px; }
  .logo { font-size: 32px; }
  .main-nav ul { gap: 20px; overflow-x: auto; justify-content: flex-start; }
  .main-nav a { white-space: nowrap; font-size: 14px; }
  .grid-3, .cards-3, .values, .footer-grid { grid-template-columns: 1fr; }
  .h1, .about .h1, .page-title { font-size: 38px; }
  .tabs { gap: 24px; overflow-x: auto; }
  .cart-item { grid-template-columns: 110px 1fr; }
  .cart-item img { width: 110px; height: 138px; }
  .cart-price { grid-column: 2; padding: 0; }
  .contact-band { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .search-bar button { width: 90px; }
}
/* --- BANNER ĐỘNG--- */
.hero-slider { position: relative; padding-top: 32px; }
.hero-slides { position: relative; }
.hero-slide { display: none; grid-template-columns: 1fr 700px; gap: 80px; align-items: center; animation: heroFade .6s ease; }
.hero-slide.active { display: grid; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text .h1 { margin: 24px 0 18px; }
.hero-text .lead { max-width: 440px; }
.hero-cta { margin-top: 28px; }
.hero-img img { width: 100%; height: 488px; object-fit: cover; }

.hero-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.hero-dots { display: flex; gap: 10px; align-items: center; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0;
  background: var(--field); cursor: pointer; transition: all .3s ease;
}
.hero-dot.active { width: 28px; background: var(--navy); }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow {
  width: 40px; height: 40px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.hero-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 1100px) {
  .hero-slide { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== THIẾT KẾ v2 ===== */
:root { --rose: #c98a9a; --sand: #f3efe9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* Header gọn một hàng, dính đầu trang */
.announce { background: var(--sand); color: var(--navy); text-align: center; font-size: 12px; padding: 8px 20px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 60; }
.header-top { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-content: normal; }
.header-top .logo { font-size: 30px; grid-column: 2; }
.main-nav { grid-column: 1; grid-row: 1; border: 0; justify-self: start; }
.main-nav ul { gap: 32px; justify-content: flex-start; }
.main-nav a { padding: 8px 0; }
.utils { grid-column: 3; position: static; transform: none; justify-self: end; gap: 28px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #fff; color: var(--navy); font-size: 12px; text-align: center; line-height: 20px; margin-left: 4px; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: #fff; }

/* Thẻ sản phẩm */
.product-name a:hover { opacity: .65; }
.thumb { position: relative; }
.tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy); font-size: 12px; padding: 3px 10px; }
.product .price { margin-bottom: 18px; }

/* Trang chủ */
.hero-slider { margin-bottom: 0; }
.cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.cat-tile { position: relative; display: block; overflow: hidden; background: var(--surface); }
.cat-tile img { width: 100%; height: 440px; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.03); }
.cat-tile div { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; background: linear-gradient(transparent, rgba(16,43,68,.78)); }
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chips a { border: 1px solid var(--field); padding: 12px 26px; font-size: 14px; transition: background .2s, color .2s; }
.chips a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.perks-row { margin-top: 0; }

/* Sắp xếp */
.sort select { border: 1px solid var(--field); background: #fff; height: 38px; padding: 0 12px; margin-bottom: 8px; font-size: 14px; color: var(--navy); }
.tabs .count { margin-left: auto; padding-bottom: 8px; }
.tabs { padding-bottom: 0; }

/* Chi tiết sản phẩm */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 32px; align-items: start; }
.detail-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.detail-info { position: sticky; top: 110px; }
.detail-info .h2 { margin: 8px 0 6px; }
.price.big { font-size: 24px; margin: 18px 0; }
.body-text { color: var(--muted); max-width: 52ch; }
.notes { margin: 28px 0; border-top: 1px solid var(--line); }
.notes div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.notes dt { color: var(--muted); }
.buy-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.buy-row .qty { margin-top: 0; }
.buy-row .btn { flex: 1; }
.perks { margin-top: 24px; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.perks li::before { content: "✓ "; color: var(--navy); }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-imgs img { height: 510px; width: 100%; object-fit: cover; }
.about { grid-template-columns: 1fr 1fr; }

/* Form trong hộp thoại */
.form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--field); font: inherit; margin-bottom: 18px; resize: vertical; outline: none; }
.form textarea:focus { border-color: var(--navy); }
.modal-form { margin-top: 20px; }
.modal-form input { height: 46px; margin-bottom: 16px; }

/* Footer đầy đủ */
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-col a { display: block; margin-bottom: 8px; }
.newsletter { margin-top: 22px; max-width: 360px; }
.newsletter label { display: block; font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,.8); }
.newsletter div { display: flex; }
.newsletter input { flex: 1; height: 44px; padding: 0 14px; border: 0; color: var(--navy); min-width: 0; }
.newsletter button { height: 44px; padding: 0 18px; border: 0; background: var(--rose); color: #fff; cursor: pointer; }
.copyright { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }

@media (max-width: 1100px) {
  .detail, .about { grid-template-columns: 1fr; gap: 40px; }
  .detail-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav ul { gap: 20px; }
  .utils { gap: 18px; }
}
@media (max-width: 900px) {
  .header-top { grid-template-columns: 44px 1fr auto; height: 64px; }
  .header-top .logo { grid-column: 2; font-size: 22px; }
  .burger { display: flex; grid-column: 1; grid-row: 1; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); grid-column: auto; padding: 8px 20px 16px; border-top: 1px solid rgba(255,255,255,.18); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; overflow: visible; }
  .main-nav a { padding: 14px 0; }
  .utils { grid-column: 3; gap: 14px; font-size: 13px; }
  .utils a:first-child { display: none; }
}
@media (max-width: 700px) {
  .header-top { display: grid; flex-direction: unset; padding: 0 20px; gap: 0; }
  .cat-tiles, .about-imgs { grid-template-columns: 1fr; }
  .cat-tile img, .about-imgs img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tabs { flex-wrap: wrap; row-gap: 12px; }
  .tabs .count { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ===== Tính năng mới ===== */
.thumb-wrap { position: relative; }
.fav { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.fav.on { color: #c2415d; }
.fav-inline { position: static; border: 1px solid var(--field); border-radius: 0; width: 50px; height: 50px; flex: none; }
.quick-btn { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; border: 0; background: rgba(16,43,68,.92); color: #fff; font-size: 14px; cursor: pointer; opacity: 0; transform: translateY(100%); transition: opacity .25s, transform .25s; }
.thumb-wrap:hover .quick-btn, .quick-btn:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .quick-btn { opacity: 1; transform: none; height: 38px; font-size: 13px; } }
.quick { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 8px; }
.quick img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.modal:has(.quick) { max-width: 680px; }
.modal:has(.quick) .modal-ok { display: none; }
.modal .quick .btn { margin-top: 12px; }
.modal .quick p { margin-bottom: 8px; }
@media (max-width: 600px) { .quick { grid-template-columns: 1fr; } .quick img { max-height: 260px; } }

.filters { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; margin-top: 24px; }
.filters label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.filters select { height: 42px; min-width: 170px; border: 1px solid var(--field); background: #fff; padding: 0 12px; font-size: 14px; color: var(--navy); }
.filters .reset { height: 42px; background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 14px; color: var(--navy); }

.quiz { max-width: 720px; margin: 0 auto; padding: 56px 0 100px; }
.quiz-step { font-size: 13px; color: var(--muted); }
.quiz-bar { height: 3px; background: var(--line); margin: 10px 0 0; }
.quiz-bar span { display: block; height: 100%; background: var(--navy); transition: width .4s; }
.quiz-q { margin: 32px 0; font-size: 40px; }
.quiz-opts { display: grid; gap: 14px; }
.quiz-opt { text-align: left; padding: 20px 24px; border: 1px solid var(--field); background: #fff; font-size: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.quiz-opt:hover { border-color: var(--navy); background: var(--surface); }
.quiz .grid-3 { margin-top: 32px; }
.quiz:has(.grid-3) { max-width: none; }
.quiz-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--sand); padding: 48px 56px; }
@media (max-width: 700px) { .quiz-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; } .quiz-q { font-size: 30px; } }

.notes div:nth-child(1) dt { border-left: 3px solid #e9c46a; padding-left: 10px; }
.notes div:nth-child(2) dt { border-left: 3px solid var(--rose); padding-left: 10px; }
.notes div:nth-child(3) dt { border-left: 3px solid var(--navy); padding-left: 10px; }

.floaters { position: fixed; right: 20px; bottom: 24px; z-index: 70; display: grid; gap: 12px; justify-items: end; }
.zalo-fab { width: 54px; height: 54px; border-radius: 50%; background: #0068ff; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; font-size: 18px; }
.to-top.show { opacity: 1; pointer-events: auto; }
.utils { gap: 22px; }
@media (max-width: 900px) { .utils a[href="favorites.html"] { display: none; } }

/* ===== Khuyến mãi ===== */
:root { --wine: #a3182f; }
.announce { background: var(--wine); color: #fff; }
.announce a { text-decoration: underline; margin-left: 6px; font-weight: 500; }
.sale-band { background: var(--sand); margin-top: 56px; }
.sale-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 36px; padding-bottom: 36px; }
.sale-inner p { color: var(--muted); margin-top: 4px; }
.sale-points { display: flex; gap: 48px; }
.sale-points b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.sale-points span { font-size: 13px; color: var(--muted); }
.sale-tag { position: absolute; left: 12px; top: 46px; background: var(--wine); color: #fff; font-size: 12px; padding: 3px 10px; }
.price-now { color: var(--wine); font-weight: 600; }
.price-old { color: var(--muted); font-size: 13px; margin-left: 6px; }
.off { background: var(--wine); color: #fff; font-size: 13px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.summary .save { color: var(--wine); }
@media (max-width: 900px) { .sale-inner { flex-direction: column; align-items: flex-start; gap: 24px; } .sale-points { gap: 28px; flex-wrap: wrap; } }

/* ===== Thanh menu ===== */
.header-top { height: 88px; grid-template-columns: 1fr auto 1fr; }
.header-top .logo { grid-column: 2; font-size: 42px; }
.burger { grid-column: 1; grid-row: 1; }
.utils { grid-column: 3; grid-row: 1; }
.main-nav { grid-column: auto; grid-row: auto; justify-self: auto; position: static; border-top: 1px solid rgba(255,255,255,.18); }
.main-nav ul { justify-content: center; gap: 56px; }
.main-nav a { padding: 14px 0 12px; }
@media (max-width: 1100px) { .main-nav ul { gap: 36px; } }
@media (max-width: 900px) {
  .header-top { height: 64px; grid-template-columns: 44px 1fr auto; }
  .header-top .logo { font-size: 24px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 0 0 12px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav a { padding: 14px 0; }
}

/* ===== Tìm kiếm,Tài khoản ===== */
.header-left { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 12px; }
.header-top .logo { grid-column: 2; grid-row: 1; }
.utils.utils-right { grid-column: 3; grid-row: 1; justify-self: end; }
.utils.utils-left { grid-column: auto; justify-self: auto; }
.header-left .burger { grid-column: auto; grid-row: auto; }
@media (max-width: 900px) {
  .header-top { grid-template-columns: 1fr auto 1fr; }
}

/* ===== Khu vực quản trị ===== */
.modal:has(.no-ok) .modal-ok, .modal:has(.admin-form) .modal-ok { display: none; }
.modal:has(.admin-form), .modal:has(.order-detail) { max-width: 680px; max-height: 92vh; overflow-y: auto; }
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-danger:hover { background: #fff; color: #b3261e; }
.dlg-actions { display: flex; gap: 12px; margin-top: 18px; }
.dlg-actions .btn { margin-top: 0; flex: 1; padding: 0 20px; }

.admin-link { font-weight: 600; }
.admin-lock { max-width: 520px; margin: 60px auto 100px; text-align: center; }
.admin-lock .btn { margin-top: 28px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.stat { border: 1px solid var(--line); padding: 20px 22px; background: var(--surface); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }
.admin-tabs { margin-top: 36px; gap: 40px; }
.admin-tabs .admin-logout { margin-left: auto; }
.admin-bar { display: flex; gap: 12px; margin: 28px 0 20px; flex-wrap: wrap; }
.admin-bar input[type="search"] { flex: 1; min-width: 220px; height: 50px; padding: 0 16px; border: 1px solid var(--field); outline: none; }
.admin-bar select { height: 50px; padding: 0 12px; border: 1px solid var(--field); background: #fff; }
.admin-bar input:focus, .admin-bar select:focus { border-color: var(--navy); }
.admin-bar .btn { padding: 0 28px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.atable td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable .t-img img { width: 56px; height: 70px; object-fit: cover; background: var(--surface); }
.atable .t-act { white-space: nowrap; text-align: right; }
.atable .empty { text-align: center; padding: 40px 16px; }
.atable.mini { margin: 12px 0; border: 1px solid var(--line); }
.link-btn { background: none; border: 0; cursor: pointer; text-decoration: underline; font-size: 14px; padding: 4px 8px; }
.link-btn.danger { color: #b3261e; }
.admin-foot { margin-top: 16px; }
.admin-foot .remove { margin-left: 8px; }

.st { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.st-pending { color: #b26a00; } .st-processing { color: #1a5fb4; } .st-shipping { color: #6a3fb0; } .st-done { color: #1e7a3c; } .st-cancelled { color: #8a8f95; }
.st-select { height: 36px; padding: 0 8px; border: 1px solid currentColor; background: #fff; font-size: 13px; cursor: pointer; }

.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.af-grid.af-3 { grid-template-columns: repeat(3, 1fr); }
.af-grid input, .af-grid select, .af-img input[type="text"], .af-img input:not([type]) { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--field); margin-bottom: 16px; outline: none; background: #fff; }
.af-grid input:focus, .af-grid select:focus, .af-img input:focus { border-color: var(--navy); }
.af-check { display: flex; align-items: center; }
.af-check label { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; }
.af-check input { width: auto; height: auto; margin: 0; }
.af-img { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.af-img img { width: 84px; height: 105px; object-fit: cover; background: var(--surface); flex: none; }
.af-img > div { flex: 1; }
.af-img input[type="file"] { width: 100%; margin-bottom: 10px; font-size: 13px; }
.admin-form textarea { margin-bottom: 16px; }
.settings-wrap { padding-top: 8px; }
.warn { background: #fff4e5; border: 1px solid #f0c27b; color: #7a4a00; padding: 12px 16px; font-size: 14px; }
.order-detail p { margin-bottom: 10px; }

.my-orders-title { margin-top: 48px; }
.my-order { border: 1px solid var(--line); padding: 16px 20px; margin-top: 14px; }
.my-order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.my-order-total { margin: 8px 0 0; font-weight: 600; }

@media (max-width: 900px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } .admin-tabs { gap: 20px; } }
@media (max-width: 700px) { .af-grid, .af-grid.af-3 { grid-template-columns: 1fr; } .admin-tabs .admin-logout { margin-left: 0; } }

/* Nhãn NEW cho sản phẩm mới */
.new-tag { position: absolute; right: 12px; top: 58px; background: #d0021b; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 3px 9px; }
.new-pill { display: inline-block; margin-left: 8px; background: #d0021b; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 1px 8px; vertical-align: middle; }
