:root {
  --bg: #fffdfa;
  --line: rgba(193, 149, 33, 0.18);
  --text: #1f1a12;
  --muted: #665b45;
  --primary: #c99a2e;
  --primary-dark: #a87e20;
  --primary-soft: #fff3d6;
  --surface-text: #1b1710;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(102, 77, 18, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--surface-text);
  background: var(--bg);
  padding-top: 86px;
}

.hero-copy {
  max-width: 680px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hidden { display: none !important; }
.hidden-section { display: none; }
.loading-note {
  margin-bottom: 18px;
  color: var(--muted);
}

.hero {
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(201, 154, 46, 0.2), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 232, 179, 0.65), transparent 26%),
    linear-gradient(180deg, #fffdf7 0%, #fff4d6 100%);
  padding: 12px 0 44px;
  border-bottom: 1px solid rgba(193, 149, 33, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 225, 184, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(102, 77, 18, 0.12);
}

.brand { font-weight: 800; letter-spacing: 0.02em; font-size: 1.1rem; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(201, 154, 46, 0.18);
}
.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  background: #fffdf7;
  border: 1px solid #f0e1b8;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.95rem;
  z-index: 30;
}
.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
}
.nav-links a:hover {
  background: #fff3d6;
}
.menu-toggle {
  display: inline-flex;
  min-width: 118px;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #f0e1b8;
  background: rgba(255,255,255,0.82);
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: #3a2d18;
}
.menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-bars span {
  width: 18px;
  height: 2px;
  background: #3a2d18;
  border-radius: 999px;
  display: block;
}
.menu-toggle strong {
  font-size: 0.95rem;
  margin-left: 2px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; padding: 28px 0 10px; }

.badge,
.section-kicker,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(193, 149, 33, 0.18);
}
.section-kicker { background: var(--primary-soft); color: var(--primary-dark); }

.hero-copy h1 { margin: 16px 0; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; }
.hero-copy p,
.section-head p,
.showcase-top p,
.contact-banner p,
.about-card p,
.trust-card p,
.footer-text,
.admin-auth-card p,
.panel-head p,
.admin-product-info span,
.admin-product-info small {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #e2ba58); color: white; box-shadow: 0 10px 24px rgba(201, 154, 46, 0.24); }
.btn-secondary { background: rgba(255,255,255,0.8); color: var(--surface-text); border-color: var(--line); }
.full { width: 100%; }

.hero-card,
.about-grid,
.trust-grid,
.product-showcase,
.footer-columns,
.admin-grid-2 {
  display: grid;
  gap: 22px;
}
.hero-card { grid-template-columns: 1fr; }
.about-grid { grid-template-columns: 1.2fr 0.8fr; }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-columns { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
.admin-grid-2 { grid-template-columns: 1fr 1fr; }

.mini-card,
.showcase-card,
.contact-banner,
.about-card,
.trust-card,
.admin-auth-card,
.admin-panel {
  background: #fff;
  border: 1px solid #f0e1b8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-card,
.showcase-card,
.about-card,
.trust-card,
.admin-auth-card,
.admin-panel { padding: 28px; }
.mini-card.accent { background: linear-gradient(135deg, rgba(201,154,46,0.18), rgba(255,255,255,0.95)); }
.mini-card h3,
.showcase-top h3,
.about-card h3,
.trust-card h3,
.admin-auth-card h1,
.panel-head h2 { margin: 0 0 8px; }
.price { margin-top: 18px; font-weight: 800; font-size: 2rem; color: var(--primary-dark); }
.section { padding: 82px 0; }
.alt { background: #fff8ea; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin: 14px 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; }
.section-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 12px 24px rgba(201, 154, 46, 0.18);
}
.section-head.left .section-logo { margin-left: 0; }

.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about-list li { padding: 14px 16px; background: #fffaf0; border: 1px solid #f3e3b3; border-radius: 14px; font-weight: 600; }
.about-card.highlight { background: linear-gradient(135deg, #d6aa43, #fff6dd); }

.showcase-card { position: relative; overflow: hidden; }
.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), #e2ba58);
}
.showcase-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.product-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffaf0;
  border: 1px solid #f3e3b3;
  box-shadow: 0 12px 24px rgba(201, 154, 46, 0.1);
  flex-shrink: 0;
  overflow: hidden;
}
.product-logo.logo-large {
  width: 84px;
  height: 84px;
}
.product-logo.logo-wide {
  width: 128px;
  height: 84px;
}
.product-logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.price-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.price-list li { padding: 12px 14px; background: #fffaf0; border: 1px solid #f3e3b3; border-radius: 14px; font-weight: 700; }

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3d6;
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-banner { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.contact-banner-stack { flex-direction: column; align-items: flex-start; }
.contact-branding { display: flex; align-items: center; gap: 14px; }
.contact-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(201, 154, 46, 0.16);
}
.contact-cta-button { margin-top: 6px; }
.footer { background: #1d170f; color: #f1e6c9; padding: 28px 0; }
.footer-rich h4 { margin: 0 0 10px; }
.footer-brand { margin-bottom: 12px; }
.mobile-zalo-fab {
  display: none;
}

.admin-shell { padding: 26px 0 50px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-topbar-actions { display: flex; gap: 12px; }
.admin-auth-card { max-width: 520px; margin: 36px auto; }
.admin-form-grid { display: grid; gap: 14px; }
.admin-form-grid.narrow { max-width: 420px; }
label { display: grid; gap: 8px; font-weight: 600; font-size: 0.95rem; }
input, textarea {
  width: 100%;
  border: 1px solid #ecdba9;
  background: #fffdf7;
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: #122033;
}
input:focus, textarea:focus { outline: 2px solid rgba(201, 154, 46, 0.18); border-color: rgba(201, 154, 46, 0.42); }
.full-width { grid-column: 1 / -1; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.panel-head.between,
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.admin-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-message { margin-top: 10px; color: var(--muted); }
.form-message.success { color: #087443; }
.form-message.error { color: #b42318; }
.image-preview-wrap { min-height: 40px; }
.image-preview { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; border: 1px solid #f0e1b8; background: #fffaf0; }
.admin-products-list { display: grid; gap: 12px; }
.admin-product-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #f0e1b8; border-radius: 16px; background: #fffdf7; }
.admin-product-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; background: #fffaf0; border: 1px solid #f3e3b3; }
.admin-product-info { display: grid; gap: 4px; }
.admin-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-small { padding: 10px 14px; }

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .trust-grid,
  .product-showcase,
  .footer-columns,
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-banner { align-items: stretch; }
  .admin-product-item { grid-template-columns: 72px 1fr; }
}

@media (max-width: 640px) {
  body {
    padding-top: 76px;
    padding-bottom: 16px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    top: 8px;
    width: calc(100% - 16px);
    padding: 10px 12px;
    border-radius: 14px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-wrap {
    gap: 8px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .menu-toggle {
    justify-self: end;
    min-width: 108px;
    height: 42px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .menu-bars span {
    width: 16px;
  }

  .menu-toggle strong {
    font-size: 0.88rem;
  }

  .nav-links {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 190px;
    width: min(220px, calc(100vw - 24px));
    padding: 8px;
    border-radius: 14px;
  }

  .hero-actions,
  .footer-columns,
  .admin-topbar-actions,
  .admin-form-actions,
  .admin-item-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-links a {
    padding: 10px 12px;
    background: rgba(255,255,255,0.72);
    border: 1px solid #f0e1b8;
    border-radius: 12px;
    text-align: center;
  }

  .hero {
    padding: 4px 0 18px;
  }

  .hero-grid {
    gap: 16px;
    padding-top: 12px;
  }

  .hero-copy h1 {
    font-size: 1.72rem;
    line-height: 1.16;
    margin: 12px 0 10px;
  }

  .hero-copy p {
    font-size: 0.94rem;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .badge {
    font-size: 0.74rem;
    padding: 7px 11px;
  }

  .mini-card h3 {
    font-size: 1.2rem;
  }

  .hero-actions .btn,
  .contact-banner .btn,
  .admin-topbar-actions .btn,
  .admin-form-actions .btn,
  .admin-item-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .showcase-card,
  .about-card,
  .mini-card,
  .contact-banner,
  .trust-card,
  .admin-auth-card,
  .admin-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .showcase-top {
    gap: 12px;
    margin-bottom: 14px;
  }

  .showcase-top h3 {
    font-size: 1.06rem;
    margin-bottom: 4px;
  }

  .showcase-top p,
  .section-head p,
  .about-card p,
  .trust-card p,
  .contact-banner p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .product-logo {
    width: 64px;
    height: 64px;
  }

  .product-logo.logo-large {
    width: 72px;
    height: 72px;
  }

  .product-logo.logo-wide {
    width: 104px;
    height: 72px;
  }

  .price-list {
    gap: 8px;
    margin-bottom: 16px;
  }

  .price-list li {
    padding: 11px 12px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 1.52rem;
    line-height: 1.18;
  }

  .section-logo {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
  }

  .contact-banner {
    gap: 12px;
  }

  .contact-branding {
    gap: 10px;
  }

  .contact-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .trust-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .mobile-zalo-fab {
    display: flex;
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 50;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 104, 255, 0.22);
    border: 3px solid #ffffff;
    overflow: hidden;
  }

  .mobile-zalo-fab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .admin-product-item {
    grid-template-columns: 1fr;
  }

  .admin-product-thumb {
    width: 88px;
    height: 88px;
  }
}