/* ─── Responsive ────────────────────────────────────────────────────────── */
/* ─── Hamburger Button ───────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Nav ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; position: relative; }

  .nav-hamburger { display: flex; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(241, 237, 227, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1rem 1.25rem;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(66, 7, 13, 0.18);
  }

  .navbar-links.open { display: flex; }

  .navbar-links li { width: 100%; }

  .navbar-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.975rem;
    border-radius: 8px;
    gap: 10px;
  }

  .navbar-links a span { display: inline !important; }

  .navbar-links .btn-logout {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.975rem;
    border-radius: 8px;
    gap: 10px;
    justify-content: flex-start;
  }

  .notif-wrapper { width: 100%; }
  .notif-bell-btn {
    width: 100%;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    justify-content: flex-start;
    font-size: 0.975rem;
    gap: 10px;
  }

  .user-badge {
    width: 100%;
    border-radius: 8px;
    padding: 10px 16px;
    justify-content: flex-start;
  }

  /* ─── Resto de mobile ─────────────────────────────────────────────────── */
  .wine-detail-grid { grid-template-columns: 1fr; }
  .wine-detail-image { max-height: 300px; aspect-ratio: auto; }
  .form-row { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease forwards; }

.wine-card { animation: fadeUp 0.4s ease forwards; }
.wine-card:nth-child(2) { animation-delay: 0.05s; }
.wine-card:nth-child(3) { animation-delay: 0.10s; }
.wine-card:nth-child(4) { animation-delay: 0.15s; }
.wine-card:nth-child(5) { animation-delay: 0.20s; }
.wine-card:nth-child(6) { animation-delay: 0.25s; }

/* ─── Cart Badge (navbar) ───────────────────────────────────────────────── */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--wine-red-light);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
  0%   { transform: scale(0.5); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

