/* ============================================================
   CAFÉ CREYENTES — Header & Drawer
   ============================================================ */

/* HEADER GLOBAL */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 11, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}

#header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

/* LEFT: Hamburger */
.menu-toggle {
  justify-self: start;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 20px;
  cursor: pointer;
  transition: all .2s;
}
.menu-toggle i {
  font-size: 20px;
  line-height: 1;
}
.menu-toggle:hover, .menu-toggle:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

/* CENTER: Logo */
.logo-container {
  justify-self: center;
  text-align: center;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cream);
  margin: 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.logo:hover .logo-name, .logo:focus-visible .logo-name {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(200, 169, 110, 0.35);
}

/* RIGHT: Cart */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 18px;
  transition: all .2s;
}
.cart-btn:hover, .cart-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  color: #0d0d0b;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-badge.show {
  display: flex;
}

/* ============================================================
   DRAWER
   ============================================================ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 1990;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 8px 0 40px rgba(0, 0, 0, .5);
}
.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 2px;
  margin: 0;
}
.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 16px;
  transition: all .2s;
}
.drawer-close:hover, .drawer-close:focus-visible {
  color: var(--text);
  border-color: var(--gold);
  outline: none;
}

.drawer-nav {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 16px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
}
.drawer-nav a:hover, .drawer-nav a:focus-visible {
  color: var(--gold);
  background: rgba(200, 169, 110, 0.08);
  border-left-color: var(--gold);
  transform: translateX(4px);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .drawer-nav a {
    transition: none !important;
    transform: none !important;
  }
}

