/* ==================== 1. RESET E VARIÁVEIS GLOBAIS ==================== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* Evita rolagem horizontal indesejada */
  background-color: #ff8fdd27;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Evita que o header fixo cubra o topo das seções */
}

/* ==================== 2. CABEÇALHO / HEADER ==================== */
.header {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.img img {
  width: 180px;
  height: auto;
  display: block;
}

/* Navegação Desktop */
.nav-menu ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-menu a, .link-nav {
  text-decoration: none;
  color: #d81b60;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
}

.nav-menu a:hover {
  color: #a51449;
  transform: translateY(-2px);
}

/* Carrinho no Header */
.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d81b60;
  text-decoration: none;
  font-weight: bold;
}

#cart-count {
  background-color: #a51449;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 7px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Botão Menu Hambúrguer */
.btn-menu-mobile {
  display: none;
  background: none;
  border: none;
  color: #d81b60;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==================== 3. HERO SECTION (HOME) ==================== */
.heroSection {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
              url('/assets/Inserir\ um\ título\ \(5\).webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 10%;
  padding-right: 5%;
}

.buttonContent {
  max-width: 600px;
}

.heroSection h2 {
  color: #ffffff;
  font-size: 3.2rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.btn-hero {
  display: inline-block;
  text-align: center;
  background-color: #d81b60;
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(216, 27, 96, 0.4);
}

.btn-hero:hover {
  background-color: #ad1457;
  transform: translateY(-3px);
}

/* ==================== 4. SEÇÃO CARDÁPIO E PRODUTOS ==================== */
.secao-produtos {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.titulo-secao {
  text-align: center;
  margin-bottom: 40px;
}

.titulo-secao h2 {
  font-size: 2.2rem;
  color: #d81b60;
  margin-bottom: 10px;
}

.titulo-secao p {
  color: #666;
  font-size: 1rem;
}

/* Container de Cards Ajustado */
.grid-cardapio {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Garante mesma altura para os cards na horizontal */
  flex-wrap: wrap;
  gap: 30px;
}

/* Cards de Produtos */
.card-bolo-custom {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Empurra o rodapé para a base */
}

/* Slider de Imagens */
.slider-automatico {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.slides-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideAnimation 12s infinite;
}

.slides-track img {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-automatico:hover .slides-track {
  animation-play-state: paused;
}

.tag-fotos {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  pointer-events: none;
}

/* Animações Sequenciais dos Card Carrosséis */
.track-cupcake {
  animation: slideAnimation 12s infinite;
  animation-delay: 3s;
}

.track-doces {
  animation: slideAnimation 12s infinite;
  animation-delay: 4.5s;
}

@keyframes slideAnimation {
  0%   { transform: translateX(0%); }
  28%  { transform: translateX(0%); }
  33%  { transform: translateX(-33.333%); }
  61%  { transform: translateX(-33.333%); }
  66%  { transform: translateX(-66.666%); }
  95%  { transform: translateX(-66.666%); }
  100% { transform: translateX(0%); }
}

/* Corpo do Card */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1; /* Ocupa o espaço intermediário dinamicamente */
}

.card-body h3 {
  font-size: 1.25rem;
  color: #333;
}

.descricao {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.campo-opcao {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.campo-opcao label {
  font-size: 0.8rem;
  font-weight: bold;
  color: #444;
}

.select-opcao {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  background-color: #fafafa;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-opcao:focus {
  border-color: #d81b60;
}

/* Visual para recheios desabilitados via JavaScript */
.select-opcao:disabled {
  background-color: #e9ecef;
  color: #8c959f;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.65;
}

/* Rodapé do Card Alinhado */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Força o alinhamento na margem inferior do card */
  padding: 15px 20px;
  border-top: 1px solid #eee;
}

.preco {
  font-size: 0.85rem;
  color: #555;
}

.preco strong {
  color: #d81b60;
  font-size: 1.1rem;
}

.btn-adicionar {
  background-color: #d81b60;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-adicionar:hover {
  background-color: #ad1457;
}

/* ==================== 5. SEÇÃO CHECKOUT E AGENDAMENTO ==================== */
.secao-checkout {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.checkout-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.carrinho-painel, 
.agendamento-painel {
  flex: 1;
  min-width: 320px;
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.carrinho-painel h3, 
.agendamento-painel h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

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

.cart-item-placeholder {
  color: #0e0b0b;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

/* Itens Dinâmicos Adicionados ao Carrinho */
.item-carrinho-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;
  border-left: 4px solid #d81b60;
  border-radius: 6px;
  gap: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-item strong {
  font-size: 0.9rem;
  color: #333;
}

.info-item small {
  font-size: 0.75rem;
  color: #666;
}

.preco-item-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #d81b60;
  font-size: 0.9rem;
}

.btn-remover {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-remover:hover {
  opacity: 1;
}

.carrinho-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px dashed #ddd;
  font-size: 1.1rem;
}

.carrinho-total strong {
  font-size: 1.5rem;
  color: #d81b60;
}

/* Formulário de Agendamento */
.campo-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.campo-form label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #444;
}

.campo-form input, 
.campo-form select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.campo-form input:focus, 
.campo-form select:focus {
  border-color: #d81b60;
}

.btn-finalizar {
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, transform 0.2s;
}

.btn-finalizar:hover {
  background-color: #1eb954;
  transform: translateY(-2px);
}

/* ==================== 6. RODAPÉ / FOOTER ==================== */
.rodape {
  background-color: #2b2b2b;
  color: #f1f1f1;
  padding-top: 40px;
  margin-top: 60px;
}

.rodape-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.rodape-bloco {
  flex: 1;
  min-width: 250px;
}

.rodape-logo {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.rodape-slogan {
  font-size: 0.9rem;
  color: #b3b3b3;
  line-height: 1.4;
}

.rodape-bloco h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.redes-sociais {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redes-sociais a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, transform 0.2s;
}

.redes-sociais a:hover {
  color: #d81b60;
  transform: translateX(3px);
}

.redes-sociais i {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.icone-insta { color: #e1306c; }
.icone-face  { color: #1877f2; }
.icone-whats { color: #25d366; }

.redes-sociais a:hover i {
  transform: scale(1.2);
}

.rodape-direitos {
  border-top: 1px solid #404040;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #888888;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background-color: #222222;
}

.dev-link {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}

.dev-link:hover {
  color: #d81b60;
  text-decoration: underline;
}

/* ==================== 7. RESPONSIVIDADE (MEDIA QUERIES) ==================== */
@media (max-width: 768px) {
  .btn-menu-mobile {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px 0;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .heroSection {
    padding: 0 20px;
    justify-content: center;
    text-align: center;
  }

  .heroSection h2 {
    font-size: 2.2rem;
  }

  .checkout-container {
    flex-direction: column;
  }

  .rodape-container {
    flex-direction: column;
  }
}