/* ==========================================================================
   THE COOLKIES - ESTILOS GERAIS
   ========================================================================== */

/* Import de Fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Variáveis de Cores e Temas */
:root {
  --background: #FFFDF9;
  /* Bege Creme Claro */
  --foreground: #2d1612;
  /* Chocolate Escuro */
  --brand-red: #8B0A00;
  /* Vermelho Escuro */
  --brand-cream: #F5EFE6;
  /* Bege Secundário */
  --retro-dark: #2d1612;
  /* Bordas e Sombras */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Fredoka', sans-serif;
  --font-retro: 'Outfit', sans-serif;
}

/* Reset e Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ==========================================================================
   PADRÕES RETRÔ E UTILITÁRIOS
   ========================================================================== */

/* Bordas Quadriculadas Estilo Retrô (CSS puro) */
.checkers-red-cream {
  background-color: var(--brand-red);
  background-image:
    linear-gradient(45deg, var(--background) 25%, transparent 25%),
    linear-gradient(-45deg, var(--background) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--background) 75%),
    linear-gradient(-45deg, transparent 75%, var(--background) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.checkers-dark-cream {
  background-color: var(--retro-dark);
  background-image:
    linear-gradient(45deg, var(--background) 25%, transparent 25%),
    linear-gradient(-45deg, var(--background) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--background) 75%),
    linear-gradient(-45deg, transparent 75%, var(--background) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.checkers-red-dark {
  background-color: var(--brand-red);
  background-image:
    linear-gradient(45deg, var(--retro-dark) 25%, transparent 25%),
    linear-gradient(-45deg, var(--retro-dark) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--retro-dark) 75%),
    linear-gradient(-45deg, transparent 75%, var(--retro-dark) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Sombras Bloco Retrô */
.shadow-retro {
  box-shadow: 4px 4px 0px 0px var(--retro-dark);
}

.shadow-retro-lg {
  box-shadow: 8px 8px 0px 0px var(--retro-dark);
}

.shadow-retro-red {
  box-shadow: 4px 4px 0px 0px var(--brand-red);
}

.shadow-retro-cream {
  box-shadow: 4px 4px 0px 0px var(--background);
}

/* Efeitos de Transição e Hover */
.btn-retro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 4px solid var(--retro-dark);
  border-radius: 16px;
  font-family: var(--font-retro);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  padding: 10px 20px;
}

.btn-retro:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px var(--retro-dark);
}

.btn-primary {
  background-color: var(--brand-red);
  color: white;
}

.btn-primary:hover {
  background-color: var(--retro-dark);
  box-shadow: 4px 4px 0px 0px var(--brand-cream);
  color: white;
}

.btn-secondary {
  background-color: var(--brand-cream);
  color: var(--retro-dark);
}

.btn-secondary:hover {
  background-color: var(--brand-red);
  color: white;
  box-shadow: 4px 4px 0px 0px var(--retro-dark);
}

/* Animações Divertidas */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 25s linear infinite;
}

@keyframes wiggle {
  0% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(3deg);
  }
}

.hover-wiggle:hover {
  animation: wiggle 0.25s ease-in-out infinite alternate;
}

/* ==========================================================================
   ESTRUTURA GERAL DA PÁGINA
   ========================================================================== */

/* Container Principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-retro {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 4px solid var(--retro-dark);
  background-color: var(--brand-red);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-top-bar {
  height: 12px;
  width: 100%;
  border-bottom: 4px solid var(--retro-dark);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-avatar {
  position: relative;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 2px solid var(--retro-dark);
  background-color: white;
  padding: 2px;
  overflow: hidden;
  box-shadow: 3px 3px 0px var(--retro-dark);
  transition: transform 0.2s;
}

.logo-link:hover .logo-avatar {
  transform: rotate(12deg);
}

.logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0px var(--retro-dark);
}

.logo-subtitle {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--brand-cream);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Menu de Navegação */
.nav-menu {
  display: none;
  align-items: center;
  gap: 24px;
  font-family: var(--font-retro);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link:hover {
  color: var(--brand-cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-social {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 2px solid var(--retro-dark);
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 3px 3px 0px var(--retro-dark);
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--retro-dark);
}

.btn-cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  border: 2px solid var(--retro-dark);
  border-radius: 12px;
  font-family: var(--font-retro);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 8px 14px;
  box-shadow: 3px 3px 0px var(--retro-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cart-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--retro-dark);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--brand-red);
  color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 50%;
  height: 22px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 2px 2px 0px var(--retro-dark);
  animation: float 2s infinite ease-in-out;
}

/* ==========================================================================
   SEÇÕES DA PÁGINA (HERO, PROMOS, MENU)
   ========================================================================== */

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--brand-red);
  color: white;
  padding: 60px 0;
  overflow: hidden;
  border-bottom: 4px solid var(--retro-dark);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    text-align: center;
    justify-items: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.hero-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--retro-dark);
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-retro);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px 0px var(--retro-dark);
}

@media (min-width: 768px) {
  .hero-badge {
    align-self: flex-start;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--brand-cream);
  text-shadow: 4px 4px 0px var(--retro-dark);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-slogan {
  font-family: var(--font-retro);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-cream);
  text-shadow: 2px 2px 0px rgba(45, 22, 18, 0.8);
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 253, 249, 0.9);
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    width: auto;
  }
}

.hero-buttons .btn-retro {
  flex-grow: 1;
}

.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  width: 280px;
}

@media (min-width: 768px) {
  .hero-illustration {
    height: 380px;
    width: 380px;
  }
}

.hero-sunburst {
  position: absolute;
  height: 90%;
  width: 90%;
  border-radius: 50%;
  border: 4px dashed rgba(255, 253, 249, 0.15);
  background-color: rgba(255, 253, 249, 0.05);
}

.hero-mascot-img {
  position: relative;
  width: 78%;
  height: 78%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--retro-dark);
  box-shadow: 6px 6px 0px var(--retro-dark);
}

.hero-tag-bubble {
  position: absolute;
  top: 10%;
  right: 0;
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  border: 3px solid var(--retro-dark);
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  text-transform: uppercase;
  transform: rotate(12deg);
  box-shadow: 3px 3px 0px var(--retro-dark);
}

/* Promo da Semana Section */
.promos {
  background-color: var(--brand-cream);
  border-bottom: 4px solid var(--retro-dark);
  padding: 0;
}

.promos-top-checkers {
  height: 20px;
  border-bottom: 4px solid var(--retro-dark);
}

.promos-bottom-checkers {
  height: 20px;
  border-top: 4px solid var(--retro-dark);
}

.section-padding {
  padding: 60px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}

.section-logo-small {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px rgba(45, 22, 18, 0.15);
}

.section-subtitle {
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--retro-dark);
  margin-top: 4px;
}

.section-divider {
  height: 4px;
  width: 60px;
  background-color: var(--brand-red);
  border-radius: 2px;
  margin-top: 12px;
}

.promos-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .promos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promo-card {
  position: relative;
  background-color: white;
  border: 4px solid var(--retro-dark);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 4px 0px 0px var(--retro-dark);
  opacity: 0.88;
  transition: all 0.25s;
}

.promo-card:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px 0px var(--retro-dark);
}

.promo-card.active {
  opacity: 1;
  background-color: var(--brand-red);
  color: white;
  transform: scale(1.03);
  box-shadow: 8px 8px 0px 0px var(--retro-dark);
  z-index: 10;
}

.promo-card-active-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-red);
  color: white;
  border: 3px solid var(--retro-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0px var(--retro-dark);
  white-space: nowrap;
}

.promo-card.active .promo-card-active-tag {
  background-color: #f1c40f;
  color: var(--retro-dark);
}

.promo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.promo-card-day {
  font-family: var(--font-retro);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 2px solid var(--retro-dark);
  background-color: var(--brand-cream);
  color: var(--retro-dark);
}

.promo-card.active .promo-card-day {
  background-color: white;
}

.promo-card-icon {
  font-size: 1.5rem;
}

.promo-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.promo-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 500;
  opacity: 0.9;
}

.promo-card-rule-box {
  border: 2px dashed var(--retro-dark);
  border-radius: 16px;
  padding: 12px;
  background-color: var(--brand-cream);
  color: var(--retro-dark);
}

.promo-card.active .promo-card-rule-box {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.promo-rule-label {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}

.promo-rule-text {
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.promos-alert {
  margin-top: 40px;
  text-align: center;
}

.promos-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-red);
  color: white;
  border: 3px solid var(--retro-dark);
  padding: 10px 20px;
  border-radius: 16px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  box-shadow: 4px 4px 0px var(--retro-dark);
}

/* Cardápio Section */
.menu-section {
  background-color: var(--background);
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Design de Faixas Individuais de Cookies */
.cookie-row {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 4px solid var(--retro-dark);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 6px 6px 0px var(--retro-dark);
  transition: all 0.3s ease;
  width: 100%;
}

.cookie-row-img-col {
  width: 100%;
  position: relative;
}

.cookie-row-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background-color: rgba(245, 239, 230, 0.4);
  overflow: hidden;
  border-bottom: 4px solid var(--retro-dark);
}

@media (min-width: 768px) {
  .cookie-row-img-wrapper {
    aspect-ratio: 1.1;
    border-bottom: none;
    border-right: 4px solid var(--retro-dark);
  }

  .cookie-row.row-reverse .cookie-row-img-wrapper {
    border-right: none;
    border-left: 4px solid var(--retro-dark);
  }
}

.cookie-row-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cookie-row:hover .cookie-row-img-wrapper img {
  transform: scale(1.04);
}

.cookie-row-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #f1c40f;
  color: var(--retro-dark);
  border: 2px solid var(--retro-dark);
  border-radius: 10px;
  padding: 4px 10px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  box-shadow: 2px 2px 0px var(--retro-dark);
  z-index: 5;
}

.cookie-row-qty-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--brand-red);
  color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 10px;
  padding: 4px 8px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  box-shadow: 2px 2px 0px var(--retro-dark);
  z-index: 5;
}

.cookie-row-info-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .cookie-row-info-col {
    padding: 40px;
  }
}

.cookie-row-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-row-weight {
  font-family: var(--font-retro);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(45, 22, 18, 0.6);
  background-color: var(--brand-cream);
  padding: 4px 8px;
  border-radius: 6px;
}

.cookie-row-price {
  font-family: var(--font-retro);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-red);
  white-space: nowrap;
}

.cookie-row-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--retro-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cookie-row-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(45, 22, 18, 0.75);
  font-weight: 500;
  margin-bottom: 20px;
}

.cookie-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cookie-tag-badge {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--retro-dark);
  background-color: rgba(245, 239, 230, 0.7);
  border: 1.5px solid var(--retro-dark);
  border-radius: 8px;
  padding: 3px 8px;
}

.cookie-row-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-icon-cart {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

@media (min-width: 768px) {
  .cookie-row {
    flex-direction: row;
  }

  .cookie-row.row-reverse {
    flex-direction: row-reverse;
  }

  .cookie-row-img-col {
    width: 45%;
  }

  .cookie-row-info-col {
    width: 55%;
  }
}

/* Animações de Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reviews Section */
.reviews-section {
  background-color: rgba(245, 239, 230, 0.5);
  border-top: 4px solid var(--retro-dark);
  border-bottom: 4px solid var(--retro-dark);
}

.reviews-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: white;
  border: 4px solid var(--retro-dark);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 4px 4px 0px var(--retro-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #f1c40f;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-comment {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(45, 22, 18, 0.8);
  margin-bottom: 20px;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--brand-cream);
  padding-top: 14px;
  margin-top: auto;
}

.review-author {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.review-tag {
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--brand-red);
  background-color: var(--brand-cream);
  border: 2px solid var(--retro-dark);
  border-radius: 12px;
  padding: 3px 8px;
  box-shadow: 2px 2px 0px var(--retro-dark);
}

/* Footer Section */
.footer {
  background-color: var(--retro-dark);
  color: var(--brand-cream);
}

.footer-top-checkers {
  height: 12px;
  border-bottom: 2px solid var(--retro-dark);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding: 60px 0 40px 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
    justify-items: center;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-avatar {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: white;
  padding: 1px;
}

.footer-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: white;
}

.footer-slogan {
  font-family: var(--font-retro);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
}

.footer-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(245, 239, 230, 0.6);
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-contacts span {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  .footer-contacts span {
    justify-content: center;
  }
}

.footer-hours-box {
  border: 1px solid rgba(245, 239, 230, 0.15);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.footer-hours-label {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.85);
}

.footer-hours-text {
  font-size: 0.7rem;
  color: rgba(245, 239, 230, 0.7);
  margin-top: 2px;
  line-height: 1.4;
}

.footer-instagram-btn {
  border: 2px solid white;
  background-color: var(--brand-red);
  color: white;
  box-shadow: 3px 3px 0px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-instagram-btn:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: white !important;
  border-color: white !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0px 6px 15px rgba(220, 39, 67, 0.35);
}

.footer-copyright {
  border-top: 1px solid rgba(245, 239, 230, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(245, 239, 230, 0.4);
  font-weight: 500;
}

/* ==========================================================================
   CARTEIRA / SACOLA DESLIZANTE (CART DRAWER)
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: var(--background);
  border-left: 4px solid var(--retro-dark);
  box-shadow: -8px 0px 0px 0px rgba(45, 22, 18, 0.1);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-checkers {
  height: 12px;
  border-bottom: 4px solid var(--retro-dark);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: var(--brand-red);
  color: white;
  border-bottom: 4px solid var(--retro-dark);
}

.cart-drawer-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--retro-dark);
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Esconder barra de rolagem */
.cart-drawer-body::-webkit-scrollbar {
  display: none;
}

.cart-drawer-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Seção Compra Rápida */
.quick-order-box {
  background-color: white;
  border: 4px solid var(--retro-dark);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 4px 4px 0px var(--retro-dark);
}

.quick-order-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.quick-order-desc {
  font-size: 0.72rem;
  color: rgba(45, 22, 18, 0.6);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}

.quick-order-fields {
  display: flex;
  gap: 8px;
}

.input-retro {
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  border: 2px solid var(--retro-dark);
  border-radius: 12px;
  background-color: rgba(245, 239, 230, 0.3);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--retro-dark);
  transition: background-color 0.2s;
}

.input-retro:focus {
  outline: none;
  background-color: white;
}

.quick-order-status {
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 8px;
}

.quick-order-status.success {
  color: #27ae60;
}

.quick-order-status.fail {
  color: var(--brand-red);
}

/* Lista de Itens */
.cart-items-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  border: 4px dashed rgba(45, 22, 18, 0.2);
  border-radius: 20px;
}

.cart-empty-mascot {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1);
  margin-bottom: 12px;
}

.cart-empty-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(45, 22, 18, 0.6);
  font-size: 0.95rem;
}

.cart-empty-subtext {
  font-size: 0.72rem;
  color: rgba(45, 22, 18, 0.4);
  margin-top: 4px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 3px 3px 0px var(--retro-dark);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--retro-dark);
  object-fit: cover;
  background-color: var(--brand-cream);
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: var(--font-retro);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--brand-red);
  margin-top: 2px;
}

.cart-item-qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--retro-dark);
  border-radius: 10px;
  background-color: rgba(245, 239, 230, 0.5);
  overflow: hidden;
}

.qty-btn {
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.qty-btn:hover {
  background-color: white;
}

.qty-val {
  font-family: var(--font-retro);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0 4px;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--retro-dark);
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
}

.btn-remove-item:hover {
  color: var(--brand-red);
  background-color: rgba(139, 10, 0, 0.05);
}

/* Formulário de Dados */
.cart-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid rgba(45, 22, 18, 0.1);
  padding-top: 24px;
}

.cart-form-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 400px) {
  .cart-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .col-span-2 {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.form-label {
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-error-msg {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-red);
}

/* Rodapé do Carrinho e Cálculos */
.cart-drawer-footer {
  border-top: 4px solid var(--retro-dark);
  background-color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-promo-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: #fef9e7;
  border: 2px solid rgba(241, 196, 15, 0.3);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7d6608;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
}

.cart-summary-row.discount {
  color: var(--brand-red);
}

.cart-summary-total {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  border-top: 2px solid rgba(45, 22, 18, 0.08);
  padding-top: 8px;
  margin-top: 4px;
}

.cart-summary-total span:last-child {
  color: var(--brand-red);
}

.btn-checkout {
  width: 100%;
  height: 52px;
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAIS (CONFIRMAÇÃO E ADMIN)
   ========================================================================== */

/* Base Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background-color: var(--background);
  border: 4px solid var(--retro-dark);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 8px 8px 0px var(--retro-dark);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-card-checkers {
  height: 12px;
  border-bottom: 4px solid var(--retro-dark);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 32px;
  width: 32px;
  border-radius: 10px;
  border: 2px solid var(--retro-dark);
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--retro-dark);
  transition: all 0.15s;
  z-index: 20;
}

.modal-close-btn:hover {
  background-color: var(--brand-red);
  color: white;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-mascot-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(45, 22, 18, 0.7);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Área de Texto com a Mensagem do Pedido */
.order-text-container {
  width: 100%;
  margin-bottom: 20px;
}

.order-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--retro-dark);
  color: var(--brand-cream);
  font-family: var(--font-retro);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 2px solid var(--retro-dark);
}

.order-text-copy-shortcut {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-textarea {
  width: 100%;
  height: 160px;
  border: 2px solid var(--retro-dark);
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--retro-dark);
  background-color: white;
  resize: none;
  outline: none;
}

/* Ocultar barra de rolagem */
.order-textarea::-webkit-scrollbar {
  display: none;
}

.order-textarea {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 440px) {
  .modal-actions {
    flex-direction: row;
  }

  .modal-actions .btn-retro {
    flex-grow: 1;
  }
}

.modal-note {
  font-size: 0.6rem;
  color: rgba(45, 22, 18, 0.45);
  margin-top: 12px;
  line-height: 1.4;
}

/* ==========================================================================
   PAINEL DE CONFIGURAÇÕES E DASHBOARD DE ADMINISTRAÇÃO PREMIUM
   ========================================================================== */

/* Layout do Dashboard */
.admin-dashboard-container {
  display: flex;
  min-height: calc(100vh - 78px);
  background-color: #f7f5ee;
  color: var(--retro-dark);
  font-family: var(--font-sans);
}

/* Sidebar */
.admin-sidebar {
  width: 280px;
  background-color: #1a0805;
  color: var(--brand-cream);
  display: flex;
  flex-direction: column;
  border-right: 3px solid var(--retro-dark);
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.admin-sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px dashed rgba(245, 239, 230, 0.12);
}

.admin-sidebar-logo {
  width: 48px;
  height: 48px;
}

.admin-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
}

.admin-sidebar-subtitle {
  font-family: var(--font-retro);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #d12c1f;
  font-weight: 800;
  display: block;
  letter-spacing: 1px;
}

.admin-sidebar-menu {
  flex-grow: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: none;
  color: rgba(245, 239, 230, 0.65);
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.admin-sidebar-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.admin-sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  padding-left: 20px;
}

.admin-sidebar-item.active {
  background-color: var(--brand-red);
  color: white;
  box-shadow: 0px 4px 10px rgba(139, 10, 0, 0.2);
}

.admin-sidebar-item .nav-badge {
  background-color: white;
  color: var(--brand-red);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: auto;
  font-weight: 900;
  border: 1.5px solid var(--retro-dark);
}

.admin-sidebar-footer {
  padding: 20px;
  border-top: 2px dashed rgba(245, 239, 230, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--font-retro);
  font-weight: 800;
  color: #e5d9c3;
}

.admin-btn-logout {
  background: none;
  border: 2px solid rgba(245, 239, 230, 0.15);
  color: var(--brand-cream);
  padding: 10px 14px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-btn-logout:hover {
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  border-color: var(--brand-cream);
}

/* Painel de Conteúdo Principal */
.admin-main-panel {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #fbfaf6;
}

.admin-topbar {
  background-color: white;
  border-bottom: 2px solid rgba(45, 22, 18, 0.06);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.admin-topbar-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--retro-dark);
  margin: 0;
}

.admin-topbar-actions {
  display: flex;
  gap: 12px;
}

.admin-content-scroller {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
}

/* Elementos Visuais do Dashboard Geral */
.admin-stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 30px;
}

.admin-stat-card {
  background-color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 4px 4px 0px var(--retro-dark);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-stat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--retro-dark);
}

.admin-stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--retro-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: var(--brand-cream);
  color: var(--retro-dark);
  flex-shrink: 0;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.admin-stat-label {
  font-family: var(--font-retro);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(45, 22, 18, 0.45);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--retro-dark);
  margin: 0;
  line-height: 1;
}

/* Área de Gráficos CSS e Progresso */
.dashboard-details-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .dashboard-details-row {
    grid-template-columns: 1fr;
  }
}

.admin-detail-card {
  background-color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 4px 4px 0px var(--retro-dark);
  text-align: left;
}

.admin-detail-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gráfico de Barras CSS */
.css-chart-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.css-chart-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.css-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.css-chart-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.css-chart-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--retro-dark);
  display: inline-block;
}

.css-chart-bar-bg {
  height: 14px;
  background-color: var(--brand-cream);
  border: 2px solid var(--retro-dark);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.css-chart-bar-fill {
  height: 100%;
  transition: width 0.8s ease-out;
}

/* Lista de Produtos Campeões de Venda */
.bestsellers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bestseller-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid var(--retro-dark);
  border-radius: 12px;
  background-color: #fffdf9;
  box-shadow: 2px 2px 0px var(--retro-dark);
}

.bestseller-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-red);
  width: 24px;
  text-align: center;
}

.bestseller-name {
  font-size: 0.8rem;
  font-weight: 700;
  flex-grow: 1;
  text-align: left;
}

.bestseller-sales {
  font-family: var(--font-retro);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--brand-cream);
  padding: 2px 8px;
  border: 2.5px solid var(--retro-dark);
  border-radius: 8px;
}

/* Área de Filtros e Busca */
.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-search-wrapper {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.admin-search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(45, 22, 18, 0.4);
  font-size: 0.9rem;
}

.admin-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  font-size: 0.8rem;
}

.admin-filters-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-btn {
  background-color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 2px 2px 0px var(--retro-dark);
}

.admin-filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--retro-dark);
}

.admin-filter-btn.active {
  background-color: var(--brand-red);
  color: white;
}

/* Tabela Administrativa do Cardápio */
.admin-table-container {
  background-color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 16px;
  box-shadow: 4px 4px 0px var(--retro-dark);
  overflow-x: auto;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: var(--brand-cream);
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--retro-dark);
  padding: 14px 20px;
  border-bottom: 3px solid var(--retro-dark);
}

.admin-table td {
  padding: 12px 20px;
  font-size: 0.8rem;
  border-bottom: 1.5px dashed rgba(45, 22, 18, 0.1);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--retro-dark);
  object-fit: cover;
  flex-shrink: 0;
}

.admin-table-actions {
  display: flex;
  gap: 6px;
}

/* Switch no Cardápio (Visual Compacto) */
.table-switch-label {
  width: 36px;
  height: 20px;
  border-radius: 10px;
}

.table-switch-label::after {
  width: 12px;
  height: 12px;
}

.switch-input:checked + .table-switch-label::after {
  left: 18px;
}

/* Caixa de Alertas Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background-color: white;
  border: 2px solid var(--retro-dark);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 4px 4px 0px var(--retro-dark);
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--retro-dark);
  min-width: 250px;
  max-width: 380px;
  transform: translateX(120%);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInToast {
  to {
    transform: translateX(0);
  }
}

.toast.toast-success {
  background-color: #2ecc71;
  color: white;
}

.toast.toast-error {
  background-color: var(--brand-red);
  color: white;
}

.toast.toast-info {
  background-color: #3498db;
  color: white;
}

/* Detalhes de Listas de Pedidos e Avaliações */
.admin-order-item-card {
  text-align: left;
  border: 2px solid var(--retro-dark);
  box-shadow: 4px 4px 0px var(--retro-dark);
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-order-item-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--retro-dark);
}

.admin-review-item-card,
.admin-client-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border: 2px solid var(--retro-dark);
  box-shadow: 4px 4px 0px var(--retro-dark);
  background-color: white;
  border-radius: 16px;
  padding: 16px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-review-item-card:hover,
.admin-client-item-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--retro-dark);
}

.order-items-detail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: var(--brand-cream);
  border-radius: 8px;
  border: 1.5px solid var(--retro-dark);
}

.order-item-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Seletor de Estrelas de Avaliação Interativo */
.star-rating-input {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}

.star-rating-input i {
  font-size: 2.2rem;
  cursor: pointer;
  color: transparent; /* Estrelas vazias (visual vazado/outline retrô) */
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
  -webkit-text-stroke: 1.5px var(--retro-dark);
}

.star-rating-input i.active {
  color: #f39c12; /* Estrelas ativas douradas */
}

.star-rating-input i:hover {
  transform: scale(1.25);
  color: #f1c40f;
}

/* Modais Administrativos Refinados */
.admin-modal-card {
  max-width: 580px;
  width: 90%;
}

.admin-modal-body-scroller {
  max-height: 70vh;
  overflow-y: auto;
  padding: 24px;
}

/* ==========================================================================
   GERENCIAMENTO DE TELAS (SINGLE PAGE APPLICATION)
   ========================================================================== */
.app-view {
  display: none !important;
}

.app-view.active-view {
  display: block !important;
}

#view-login.app-view.active-view,
#view-register.app-view.active-view {
  display: flex !important;
}

/* Abas do Dashboard Administrativo */
.admin-tab-content {
  display: none !important;
}

.admin-tab-content.active {
  display: block !important;
}

/* ==========================================================================
   POLIMENTO RESPONSIVO MOBILE
   ========================================================================== */
@media (max-width: 768px) {

  /* Cabeçalho no Mobile */
  .header-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  /* Vitrine de Cookies no Mobile */
  .cookie-row {
    flex-direction: column !important;
    /* Força empilhamento e ignora row-reverse */
    text-align: center;
    gap: 16px;
  }

  .cookie-row-img-col {
    max-width: 100%;
    width: 100%;
  }

  .cookie-row-img-wrapper {
    aspect-ratio: 16/10;
    /* Formato paisagem melhor para mobile */
    max-height: 240px;
    width: 100%;
  }

  .cookie-row-info-col {
    width: 100%;
    align-items: center;
    padding: 0;
  }

  .cookie-row-header-meta {
    justify-content: center;
    width: 100%;
  }

  .cookie-tags-wrapper {
    justify-content: center;
  }

  .cookie-row-actions {
    width: 100%;
    justify-content: center;
  }

  /* Gaveta do Carrinho Mobile */
  .cart-drawer {
    max-width: 100% !important;
    /* Ocupa 100% da largura no mobile */
    border-left: none;
  }

  /* Dashboard Admin no Mobile */
  #view-admin {
    padding-left: 0;
    padding-right: 0;
  }

  .admin-dashboard-container {
    flex-direction: column;
    min-height: auto;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 4px solid var(--retro-dark);
  }

  .admin-sidebar-brand {
    padding: 16px;
    justify-content: center;
  }

  .admin-sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }

  .admin-sidebar-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }

  .admin-sidebar-item {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.72rem;
    width: auto;
  }

  .admin-sidebar-item:hover {
    padding-left: 14px; /* Disable shift effect on mobile hover */
  }

  .admin-sidebar-footer {
    display: none; /* Hide footer in sidebar, options available in Topbar or main screen */
  }

  .admin-topbar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .admin-topbar-title {
    font-size: 1.3rem;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-content-scroller {
    padding: 16px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .admin-stat-card {
    padding: 16px;
  }

  .dashboard-details-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .admin-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-search-wrapper {
    max-width: 100%;
  }

  .admin-filters-group {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-filter-btn {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    font-size: 0.65rem;
  }

  /* Tabelas/Cards Adm Mobile */
  .admin-table-container {
    border-radius: 12px;
  }

  .admin-table th, 
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .admin-table-img {
    width: 32px;
    height: 32px;
  }

  .admin-order-item-card {
    padding: 14px;
  }

  .admin-order-item-card div,
  .admin-review-item-card div {
    font-size: 0.72rem !important;
  }

  #dashboard-tab-content-promos .admin-section-fields {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* Ajuste no Slogan do Hero */
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-slogan {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 0.85rem;
  }

  /* Modal de Review e Formulários de Login/Cadastro */
  .modal-card {
    border-radius: 20px;
    border-width: 3px;
  }

  .modal-body {
    padding: 24px 16px;
  }

  .input-retro {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Login & Cadastro Cards responsivos */
  #view-login .modal-card,
  #view-register .modal-card {
    max-width: 100%;
    box-shadow: 4px 4px 0px var(--retro-dark);
    border-width: 3px;
  }
}