/* ─── Hero Banner ───────────────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  height: 280px;
  display: flex;
  align-items: center;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, #F1EDE3 0%, #EDE5D8 55%, #E6DCCD 100%);
  border: 1px solid var(--border-glass);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(116, 24, 32, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(116, 24, 32, 0.15) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-content p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; }

.hero-decoration {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.08;
  line-height: 1;
}

/* ─── Discount Styles ──────────────────────────────────────────────────── */
.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-right: 2px;
}

.discount-tag {
  background: rgba(47, 125, 79, 0.15);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.discount-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.discount-input {
  text-align: center;
}

/* ─── Notification Bell ─────────────────────────────────────────────────── */
.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: 1px solid rgba(116, 24, 32, 0.3);
  cursor: pointer;
  font: inherit;
  color: var(--wine-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.notif-bell-btn:hover { background: rgba(116, 24, 32, 0.1); }

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: notifPulse 2s ease infinite;
}

@keyframes notifPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(179, 38, 30, 0); }
}

/* Dropdown */
/* ─── Navbar dropdown menus (admin) ──────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #EAE3D6;
  border: 1px solid rgba(116, 24, 32, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(66, 7, 13, 0.195);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  transform: scale(0.95) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s ease;
}
.nav-dropdown.open .nav-dropdown-menu {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
/* Hover en desktop también abre */
@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
}

.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem !important;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(116, 24, 32, 0.1);
  color: var(--wine-gold-light);
}
.nav-dropdown-item.active {
  background: rgba(116, 24, 32, 0.14);
  color: var(--wine-gold-light);
}

@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; padding: 12px 16px !important; border-radius: 8px !important; font-size: 0.975rem; gap: 10px; }
  .nav-dropdown-toggle .nav-caret { margin-left: auto; }
  /* En mobile el submenú se despliega inline (no flotante) */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    display: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: rgba(66, 7, 13, 0.036);
    margin: 2px 0 2px 0.75rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-item { font-size: 0.95rem; }
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  background: #EAE3D6;
  border: 1px solid rgba(116, 24, 32, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(66, 7, 13, 0.21);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: scale(0.9) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
}

.notif-dropdown.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.notif-mark-all-btn {
  background: none;
  border: none;
  color: var(--wine-gold);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}

.notif-mark-all-btn:hover { color: var(--wine-gold-light); }

.notif-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wine-red) transparent;
}

.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--wine-red); border-radius: 2px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(66, 7, 13, 0.048);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: background 0.2s ease;
  cursor: default;
}

.notif-item:hover { background: rgba(66, 7, 13, 0.036); }

.notif-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.notif-icon-order        { background: rgba(43, 108, 176, 0.15); }
.notif-icon-stock_warning { background: rgba(168, 95, 0, 0.15); }
.notif-icon-stock_danger  { background: rgba(179, 38, 30, 0.15); }

.notif-text { flex: 1; line-height: 1.4; }
.notif-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Limits legend */
.limits-legend {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.limits-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@media (max-width: 420px) {
  .notif-dropdown { width: calc(100vw - 2rem); right: -1rem; }
}

