:root {
  --bg-dark: #0e0e10;
  --bg-charcoal: #18181b;
  --bg-light: #f8f8fa;
  --bg-white: #ffffff;
  --text-dark: #111113;
  --text-muted: #6b7280;
  --text-light: #f4f4f5;
  --border: #e4e4e7;
  --gold: #c9a25d;
  --gold-dark: #a8823e;
  --crimson: #b91c1c;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP BAR */
.topbar {
  background: var(--bg-dark);
  color: #d4d4d8;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201, 162, 93, 0.25);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-badge {
  color: var(--gold);
  font-weight: 500;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bg-dark);
}
.logo-brand span { color: var(--gold-dark); }
.logo-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-dark); }

/* MEGA MENU */
.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: -120px;
  width: 680px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mega-item:hover { background: var(--bg-light); }
.mega-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}
.mega-item-title { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.mega-item-sub { font-size: 11px; color: var(--text-muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 170px;
}
.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--bg-dark);
  color: var(--bg-white);
}
.btn-primary:hover { background: #27272a; }
.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--bg-dark); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-zalo {
  background: #0068ff;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
}
.btn-zalo:hover { background: #0054cc; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.cart-badge {
  background: var(--crimson);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,14,16,0.92) 0%, rgba(14,14,16,0.6) 55%, rgba(14,14,16,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 64px 0;
}
.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(201, 162, 93, 0.6);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.hero p {
  font-size: 17px;
  color: #e4e4e7;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* SECTIONS */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-light { background: var(--bg-light); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.section-title { font-size: clamp(24px, 3vw, 34px); }

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-charcoal);
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 16px; }
.cat-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cat-card-desc { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* PRODUCT GRID: 4 desktop, 3 tablet, 2 mobile */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-charcoal);
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-hot { background: var(--crimson); color: #fff; }
.badge-new { background: var(--bg-dark); color: var(--gold); border: 1px solid var(--gold); }
.badge-lux { background: var(--gold); color: var(--bg-dark); }

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-sku {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.product-price-box { margin-bottom: 12px; }
.price-main { font-size: 16px; font-weight: 700; color: var(--crimson); }
.price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.price-contact { font-size: 14px; font-weight: 600; color: var(--gold-dark); }

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-actions .btn { padding: 8px 10px; font-size: 12px; border-radius: 6px; }
.compare-check {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* TRUST / WHY US */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 93, 0.25);
  border-radius: var(--radius);
  padding: 26px;
}
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
}
.trust-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.trust-card p { font-size: 14px; color: #d4d4d8; }

/* ARTICLES */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.article-body { padding: 18px; }
.article-cat { font-size: 11px; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; }
.article-title { font-size: 17px; font-weight: 700; margin: 6px 0 8px; line-height: 1.4; }
.article-summary { font-size: 13px; color: var(--text-muted); }

/* FOOTER */
.site-footer {
  background: var(--bg-dark);
  color: #d4d4d8;
  padding: 56px 0 24px;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 12px;
  color: #a1a1aa;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* FLOATING ACTION BUTTONS (Zalo, FB, Hotline) */
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.04); }
.float-zalo { background: #0068ff; }
.float-fb { background: #1877f2; }
.float-hotline { background: var(--crimson); }

/* COMPARE BAR */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg);
  z-index: 850;
  display: none;
  align-items: center;
  gap: 16px;
}
.compare-bar.active { display: flex; }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* FORMS & TABLES */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { background: var(--bg-light); font-weight: 600; }

/* PRODUCT DETAIL */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.filter-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .filter-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-grid, .article-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .search-box { display: none; }
  .product-actions { grid-template-columns: 1fr; }
  .float-btn span.label { display: none; }
}
