/* =========================================================================
   POD 24H - ESTILOS VISUAIS PREMIUM (IDÊNTICO AOS SCREENSHOTS)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #060c18;
  --bg-surface: #0a1325;
  --bg-card: #0f1c35;
  --border-subtle: #1e2c47;
  --border-active: #38bdf8;
  --primary-cyan: #38bdf8;
  --primary-blue: #0284c7;
  --accent-purple: #7c3aed;
  --accent-red: #ef4444;
  --whatsapp: #25D366;
  --whatsapp-hover: #20ba5a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #060c18;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Header Glass */
.header-glass {
  background: rgba(6, 12, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 44, 71, 0.7);
}

/* Hero Section Neon Glow */
.hero-glow {
  background: radial-gradient(circle at 75% 30%, rgba(2, 132, 199, 0.15) 0%, rgba(6, 12, 24, 0) 65%);
}

.mascot-glow {
  box-shadow: 0 0 50px -10px rgba(56, 189, 248, 0.35);
  border: 2px solid rgba(56, 189, 248, 0.4);
}

/* Pills de Categoria */
.category-pill {
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
.category-pill.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}
.category-pill:not(.active):hover {
  background-color: #172554;
  border-color: #38bdf8;
  color: #ffffff;
}

/* Cards de Produtos */
.product-card {
  background-color: #0d1729;
  border: 1px solid #1a2744;
  border-radius: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px -4px rgba(56, 189, 248, 0.15);
}

/* Container de Imagem */
.product-img-box {
  background: #ffffff;
  border-radius: 0.85rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

/* Badges */
.badge-oferta {
  background-color: #6366f1;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.badge-esgotado {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Botão Tenho Interesse (WhatsApp) */
.btn-whatsapp {
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
}
.btn-whatsapp:hover {
  background-color: #16a34a;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

/* Botão Esgotado no Card */
.btn-sold-out {
  background-color: #1e293b;
  color: #94a3b8;
  cursor: not-allowed;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
}

/* Botão Flutuante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.75rem;
  height: 3.75rem;
  background-color: #22c55e;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.6);
}

/* Interruptor Toggle (Switch) para Admin */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ef4444; /* Vermelho = Esgotado */
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #22c55e; /* Verde = Disponível */
}
input:checked + .slider:before {
  transform: translateX(24px);
}

/* Toasts de Notificação */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  background: #0f1c35;
  border: 1px solid #1e2c47;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slide-in 0.3s ease forwards;
}
@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modais */
.modal-overlay {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}
