/* =========================================
   DESIGN SYSTEM - DARK GOURMET
========================================= */
:root {
  --bg-primary: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1C1C1C;
  --primary: #E31B23;
  --primary-hover: #FF242D;
  --accent: #FFD700;
  --text-white: #FFFFFF;
  --text-gray: #A3A3A3;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-script: 'Yellowtail', cursive;

  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   TIPOGRAFIA E UTILITÁRIOS
========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.script-accent {
  font-family: var(--font-script);
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .script-accent {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--text-white);
}

.section-header p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(227, 27, 35, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 27, 35, 0.55);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

main {
  flex: 1;
}


/* =========================================
   HEADER STICKY TRANSLÚCIDO
========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8A0E13);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(227, 27, 35, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-family: var(--font-title);
  font-size: 1.75rem;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text-white);
}

.logo-text span {
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  position: relative;
  padding: 0.35rem 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition);
}

.cart-pill:hover {
  border-color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* =========================================
   SEÇÃO 1: HOME (HERO + DIFERENCIAIS)
========================================= */
.hero {
  min-height: 90vh;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.92) 25%, rgba(10, 10, 10, 0.58) 100%),
    url('https://images.unsplash.com/photo-1576618148400-f54bed99fcfd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  margin-bottom: 1rem;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: #D4D4D4;
  font-size: 1.08rem;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Grid de 3 Diferenciais */
.differentials {
  padding: 5rem 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.diff-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.diff-card:hover {
  transform: translateY(-6px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 215, 0, 0.25);
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: var(--accent);
}

.diff-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.diff-card p {
  color: var(--text-gray);
  font-size: 0.92rem;
}


/* =========================================
   SEÇÃO 2: CARDÁPIO (GRID 5 CARDS)
========================================= */
.menu-section {
  padding: 5rem 0 6rem;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cupcake-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  flex: 1 1 310px;
  max-width: 365px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.cupcake-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 27, 35, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

.card-img-wrap {
  position: relative;
  height: 245px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cupcake-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 1.45rem;
  letter-spacing: 1px;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
  color: var(--text-white);
}

.card-body p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.65rem;
  flex: 1;
}

.card-body .btn {
  width: 100%;
}

/* =========================================
   SEÇÃO 3: SOBRE (SPLIT + SELO + ESTATÍSTICAS)
========================================= */
.about-section {
  padding: 5rem 0 6rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.chef-frame {
  position: relative;
  border-radius: 16px;
}

.chef-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.since-badge {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: linear-gradient(135deg, var(--primary), #9E0F15);
  border: 2px solid var(--accent);
  color: var(--text-white);
  padding: 1.2rem 1.65rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

.since-badge span {
  display: block;
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.since-badge strong {
  font-family: var(--font-title);
  font-size: 2.3rem;
  letter-spacing: 2px;
  line-height: 1.05;
}

.about-text .script-accent {
  font-size: 2.1rem;
}

.about-text h2 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1rem;
  border-radius: 10px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.25rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}


.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background-color: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  color-scheme: dark;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.2);
}


/* =========================================
   SEÇÃO 6: CONTATO (3 CARDS + GOOGLE MAPS)
========================================= */
.contact-section {
  padding: 5rem 0 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-gray);
  font-size: 0.92rem;
}


/* =========================================
   FOOTER
========================================= */
.footer {
  background-color: #060606;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.82rem;
}


/* =========================================
   RESPONSIVIDADE (FLEXBOX & GRID)
========================================= */
@media (max-width: 992px) {
  .diff-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .since-badge {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.1rem;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PÁGINAS INTERNAS (carrinho, login, pedidos, admin)
========================================= */
section[id] {
  scroll-margin-top: 90px;
}

.pagina {
  padding: 4rem 0 5rem;
}

.pagina h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.caixa-form {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.caixa-form h1,
.caixa-form h2 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.caixa-form .btn {
  width: 100%;
}

.caixa-form a {
  color: var(--accent);
}

.texto-centro {
  text-align: center;
  color: var(--text-gray);
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.alerta {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.alerta a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.alerta-erro {
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid var(--primary);
  color: #FCA5A5;
}

.alerta-sucesso {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid #25D366;
  color: #86EFAC;
}

.tabela-rolagem {
  overflow-x: auto;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.tabela th,
.tabela td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.92rem;
}

.tabela th {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 1px;
  color: var(--accent);
}

.form-linha {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.campo-qtd {
  width: 80px;
}

.btn-pequeno {
  padding: 0.45rem 0.9rem;
  font-size: 1rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-gray);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--primary);
}

.total-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.total-carrinho strong {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--accent);
}

.mini-foto {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cartao-pedido {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.cartao-pedido-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cartao-pedido h2 {
  font-size: 1.8rem;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--accent);
}

.lista-itens {
  color: var(--text-gray);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.vazio {
  text-align: center;
  color: var(--text-gray);
  padding: 3rem 0;
}

.vazio .btn {
  margin-top: 1rem;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.inativo {
  opacity: 0.5;
}

.grade-admin {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
}

.grade-admin .caixa-form {
  max-width: none;
}

/* Contorno visível ao navegar com o teclado */
.btn:focus-visible,
.nav-link:focus-visible,
.cart-pill:focus-visible,
.btn-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 992px) {
  .grade-admin {
    grid-template-columns: 1fr;
  }
}

/* Quem desliga as animações no sistema não vê movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Tabelas (carrinho, pedidos) mais compactas no celular */
@media (max-width: 600px) {
  .tabela th,
  .tabela td {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
  }

  .tabela th {
    font-size: 1rem;
    letter-spacing: 0;
  }

  /* Tabelas do admin ficam mais largas e rolam para o lado dentro da caixa */
  .tabela:not(.tabela-carrinho) {
    min-width: 680px;
  }

  .tabela .mini-foto {
    display: none;
  }

  .tabela .campo-qtd {
    width: 60px;
  }

  /* O subtotal já mostra o valor; a coluna Preço sai para caber na tela */
  .tabela-carrinho th:nth-child(2),
  .tabela-carrinho td:nth-child(2) {
    display: none;
  }
}
