/* ==========================================================================
   HEADER.CSS — THIẾT KẾ HEADER CAO CẤP, MODERN GLASSMORPHISM NAVBAR
   ========================================================================== */

:root {
  --forest-deep: #07281A;
  --forest-mid: #0E4229;
  --forest-edge: #12522F;
  --gold: #FFD9A0;
  --gold-soft: #FFF3DC;
  --green: #00AF51;
  --green-dark: #008530;
  --navy: #002352;
  --ink: #1a2233;
  --ink-soft: #464f5c;
  --coral: #E85D3F;
  --line: #e8e8e4;
  --bg: #ffffff;
  --radius: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #fff !important; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg) !important;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   STICKY GLASSMORPHIC HEADER
   ========================================================================== */

header.site {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 30, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.site.is-scrolled {
  background: rgba(4, 20, 13, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s ease;
}

header.site.is-scrolled .nav-row {
  height: 68px;
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo-img { height: 36px; }
  .nav-row { height: 64px; }
}

/* ==========================================================================
   MAIN MENU (PILL HOVER STYLE)
   ========================================================================== */

nav.main-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

nav.main-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

nav.main-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #D2E4D6 !important;
  border-radius: 100px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

nav.main-menu > li > a:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.09);
}

nav.main-menu > li.current-menu-item > a,
nav.main-menu > li.current_page_item > a {
  color: #00FF88 !important;
  background: rgba(0, 255, 136, 0.08);
}

/* Dropdown Submenu */
nav.main-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(7, 34, 23, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px;
  min-width: 230px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 136, 0.05);
  backdrop-filter: blur(20px);
  z-index: 100;
  animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

nav.main-menu li:hover > .sub-menu {
  display: block;
}

nav.main-menu .sub-menu li {
  width: 100%;
}

nav.main-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #E2ECE5 !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

nav.main-menu .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #00FF88 !important;
  transform: translateX(3px);
}

@media (max-width: 960px) {
  nav.main-menu { display: none; }
}

/* ==========================================================================
   NAV RIGHT (ICONS + CTA BUTTON)
   ========================================================================== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D2E4D6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  border-radius: 100px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Header CTA Button */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00AF51 0%, #008530 100%);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 175, 81, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, #00C85D 0%, #009E3A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 175, 81, 0.55);
}

@media (max-width: 600px) {
  .header-cta-btn { display: none; }
}

/* ==========================================================================
   HAMBURGER TOGGLE (ANIMATED)
   ========================================================================== */

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: #E2ECE5;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */

.mobile-menu {
  display: none;
  background: rgba(6, 26, 17, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mobile-menu.open {
  display: block;
  animation: slideDownMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownMobile {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-inner {
  padding: 20px 24px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 15.5px;
  font-weight: 600;
  color: #E2ECE5 !important;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-menu-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #00FF88 !important;
}

.mobile-menu-links .sub-menu {
  list-style: none;
  margin: 0;
  padding-left: 20px;
}

.mobile-menu-links .sub-menu a {
  font-size: 14px;
  opacity: 0.85;
  padding: 10px 16px;
}

.mobile-menu-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-block {
  display: flex;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Global button utility */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -8px rgba(0,175,81,.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 15.5px;
}
