.header-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: #f5f0eb;
}

.main-header, .luxury-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-header .nav-container, .luxury-header .nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hide drawer-specific header on desktop */
.drawer-header {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.3s ease;
  background: rgba(19, 69, 47, 0.05);
}

.menu-toggle:hover {
  background: rgba(19, 69, 47, 0.1);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--deep-green);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
}

.menu-toggle span:nth-child(1) { width: 22px; }
.menu-toggle span:nth-child(2) { width: 16px; margin-left: auto; }
.menu-toggle span:nth-child(3) { width: 22px; }

.luxury-header .menu-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.luxury-header .menu-toggle span {
  background-color: var(--off-white);
}

.main-header {
  background-color: rgba(255, 249, 243, 0.95);
  box-shadow: var(--shadow-medium);
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.main-header.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  padding: 0.8rem 2rem;
  background-color: rgba(255, 249, 243, 0.8);
  backdrop-filter: blur(15px);
}

.luxury-header {
  background-color: var(--deep-green);
  color: var(--off-white);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-green);
  letter-spacing: 0.02em;
}

.luxury-header .logo-text {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-header .nav-links a:hover {
  color: var(--gold);
}

.luxury-header .nav-links a {
  color: rgba(255,255,255,0.8);
}

.luxury-header .nav-links a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-green);
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  background: rgba(19, 69, 47, 0.05);
}

.luxury-header .cart-icon-btn {
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.1);
}

.cart-icon-btn:hover {
  background: rgba(19, 69, 47, 0.1);
  transform: translateY(-2px);
  color: var(--gold);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #dc322f; /* Premium red/coral */
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  line-height: 1;
}

.luxury-header .cart-badge {
  border-color: var(--deep-green);
}

.main-header.scrolled .cart-icon-btn {
  background: rgba(19, 69, 47, 0.05);
}

.main-footer {
  background-color: #0b2619; /* Slightly darker richer green */
  color: var(--off-white);
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 205, 2, 0.3), transparent);
}

.main-footer .logo img {
  height: 65px;
  margin-bottom: 3.5rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.main-footer .logo img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.footer-group-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.group-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.group-link:hover {
  color: var(--gold);
}

.group-link img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.group-link:hover img {
  opacity: 1;
}



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

  /* ── Dark overlay behind drawer ── */
  .main-header::after,
  .luxury-header::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(7, 30, 20, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 999;
  }

  .main-header.nav-open::after,
  .luxury-header.nav-open::after {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Drawer Panel ── */
  .nav-container {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #072619;
    flex-direction: column;
    padding: 0;
    transition: right 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-header.nav-open .nav-container,
  .luxury-header.nav-open .nav-container {
    right: 0;
  }

  /* ── Drawer Header (logo + close) ── */
  .drawer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .drawer-header img {
    height: 48px;
    width: auto;
    object-fit: contain;
  }

  .drawer-header span {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.02em;
    font-weight: 600;
  }

  nav {
    padding: 2.5rem 2.5rem 0;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: flex-start;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    opacity: 0;
    transform: translateX(25px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
  }

  .nav-links a::after {
    content: '›';
    font-size: 1.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--gold) !important;
  }

  .nav-links a:hover::after {
    opacity: 1;
    transform: translateX(4px);
  }

  .main-header.nav-open .nav-links a,
  .luxury-header.nav-open .nav-links a {
    opacity: 1;
    transform: translateX(0);
  }

  .main-header.nav-open .nav-links li:nth-child(1) a,
  .luxury-header.nav-open .nav-links li:nth-child(1) a { transition-delay: 0.12s; }
  .main-header.nav-open .nav-links li:nth-child(2) a,
  .luxury-header.nav-open .nav-links li:nth-child(2) a { transition-delay: 0.2s; }
  .main-header.nav-open .nav-links li:nth-child(3) a,
  .luxury-header.nav-open .nav-links li:nth-child(3) a { transition-delay: 0.28s; }
  .main-header.nav-open .nav-links li:nth-child(4) a,
  .luxury-header.nav-open .nav-links li:nth-child(4) a { transition-delay: 0.36s; }

  /* ── Drawer CTA Area ── */
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2.5rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.45s;
  }

  .main-header.nav-open .header-actions,
  .luxury-header.nav-open .header-actions {
    opacity: 1;
    transform: translateY(0);
  }

  .cart-icon-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.7) !important;
    background: rgba(255,255,255,0.07);
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50%;
    background: none;
    width: auto;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
  }

  .cart-icon-btn::after {
    content: 'Ver Carrinho';
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-left: 0.2rem;
  }

  .cart-badge {
    border-color: #072619;
  }

  .header-cta {
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .header-cta .btn {
    width: 100%;
    text-align: center;
    padding: 1.1rem !important;
  }

  /* ── Burger → X animation ── */
  .main-header.nav-open .menu-toggle,
  .luxury-header.nav-open .menu-toggle {
    background: rgba(255, 205, 0, 0.1);
    z-index: 1002;
  }

  .main-header.nav-open .menu-toggle span,
  .luxury-header.nav-open .menu-toggle span {
    background-color: var(--gold);
  }

  .main-header.nav-open .menu-toggle span:nth-child(1),
  .luxury-header.nav-open .menu-toggle span:nth-child(1) {
    width: 22px;
    transform: translateY(7px) rotate(45deg);
  }

  .main-header.nav-open .menu-toggle span:nth-child(2),
  .luxury-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  .main-header.nav-open .menu-toggle span:nth-child(3),
  .luxury-header.nav-open .menu-toggle span:nth-child(3) {
    width: 22px;
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .main-footer {
    padding: 4rem 1.5rem 3rem;
  }
  .main-footer .logo img {
    height: 55px;
    margin-bottom: 2.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
  }
  .footer-links a {
    font-size: 1.05rem;
  }
  .footer-bottom {
    gap: 1.5rem;
  }
  .footer-group-info {
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
  }
  .group-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .group-link img {
    height: 24px;
  }
}

@media (max-width: 480px) {
  .main-header {
    top: 0;
    width: 100%;
    border-radius: 0 0 16px 16px;
    padding: 0.8rem 1.25rem;
  }
  .logo img {
    height: 44px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .luxury-header {
    padding: 0.8rem 1.25rem;
    border-radius: 0;
  }
}
