/* =========================
   🔧 VARIÁVEIS GLOBAIS
   ========================= */
:root {
  /* Cores base do site */
  --color-primary: #315b1c;
  --color-secondary: #6e9c57;
  --color-bg: #9de79d;
  --color-text: #151518;
  --color-white: #f5f5f5;
  --color-muted: #262222;

  /* Layout */
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(30,30,30,0.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

  /* Variáveis dinâmicas (podem ser sobrepostas por tema ou JS) */
  --page-bg-color: var(--color-bg);
  --highlight-color: var(--color-primary);
}

/* =========================
   🎨 TEMAS DE PÁGINA (customizáveis)
   ========================= */

/* Página inicial */
.tema-home {
  --highlight-color: #394e2e;
  --color-text: #0f0f0f;
  --color-white: #ffffff;
}

/* Página de produtos */
.tema-bolos-tradicionais {
  --page-bg-color: #ffffff;
  --highlight-color: #d97706;
  --color-text: #000000;
}

/* Página de contato */
.tema-cardapio {
  --page-bg-color: #99eb96;
  --highlight-color: #0744ec;
  --color-text: #111010;
}

/* Página “sobre” */
.tema-paes {
  --page-bg-color: #99eb96;
  --highlight-color: #151416;
  --color-text: #1b1919;
}

/* Página de tortas */
.tema-tortas {
  --page-bg-color: #99eb96;
  --highlight-color: #000000;
  --color-text: #000000;
}

.tema-brownie {
  --page-bg-color: #99eb96;
  --highlight-color: #000000;
  --color-text: #000000;
}

/* =========================
   💅 ESTILOS GERAIS
   ========================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg-color, var(--color-bg));
  color: var(--color-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition: background 220ms ease, color 180ms ease;
}

/* Containers */
.container { max-width: var(--max-width); margin: 0 auto; padding: 24px; }

/* =========================
   🧭 HEADER / NAVEGAÇÃO
   ========================= */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #eeeeee;
  position: relative; /* IMPORTANTE */ }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 56px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.nav a:hover { color: var(--highlight-color); }
.hamburger { display: none; background: none; border: 0; font-size: 28px; }

/* =========================
   ⚡ BOTÕES
   ========================= */
.btn { border: 0; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-weight: 700; transition: 0.18s ease; }
.btn-primary { background: var(--highlight-color); color: var(--color-white); }
.btn-outline { background: transparent; border: 2px solid var(--highlight-color); color: var(--highlight-color); }
.btn-outline:hover { background: var(--highlight-color); color: var(--color-white); }
.btn-ghost { background: transparent; color: var(--highlight-color); }
.btn-small { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.whatsapp { background: var(--color-secondary); color: var(--color-white); border-radius: 10px; }

/* =========================
   🏠 HERO / BANNERS
   ========================= */
.hero { padding: 40px 0; }

.hero-inner { 
  display: flex; 
  gap: 24px; 
  align-items: center; 
  justify-content: space-between; 
}

.hero-text h1 { 
  font-size: 46px; 
  margin: 0; 
  color: var(--highlight-color); 

  text-shadow:
    0 0 5px rgba(0,255,136,0.8),
    0 0 10px rgba(0,255,136,0.6),
    0 0 20px rgba(0,255,136,0.4);
}

.lead { 
  font-size: 36px;
  font-weight: bold;
  color: #000000; /* texto preto */

  /* efeito neon escuro */
  text-shadow:
    0 0 4px rgba(0, 255, 136, 0.4),
    0 0 8px rgba(0, 255, 136, 0.3),
    0 0 12px rgba(0, 255, 136, 0.2);
}

.hero-image img { 
  max-width: 520px; 
  border-radius: 16px; 
  box-shadow: var(--shadow); 
  width: 100%; 
  height: auto; 
}

/* =========================
   🧱 CARDS E GRID
   ========================= */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { 
  background: var(--color-white); 
  border-radius: 25px; 
  overflow: hidden; 
  box-shadow: var(--shadow);
 }
.card img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover;
}
.card-body { padding: 12px; }
.card-meta {
   margin-top: 8px; 
   font-weight: 800; 
   color: #0b0b0b; 
   }

/* =========================
   💬 OUTRAS SEÇÕES
   ========================= */
.about, .contact { 
  margin-top: 36px; 
  padding: 18px; 
  background: var(--color-white); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
}
.showcase { margin-top: 20px; }

.more-link { 
  text-align: center; 
  margin-top: 12px; 
}

/* =========================
   ⚙️ BOTÕES DE AÇÃO
   ========================= */
.remover-item {
  margin-left: 8px;
  background-color: var(--highlight-color);
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 2px 6px;
  transition: transform .12s ease, filter .12s ease;
}
.remover-item:hover { transform: translateY(-1px); filter: brightness(.95); }

/* =========================
   📱 RESPONSIVIDADE
   ========================= */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column-reverse; }
  .hero-image img { max-width: 100%; }
  .hamburger {
    display: block;
    cursor: pointer;
  }

  .nav {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  flex-direction: column;
  width: 220px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.3s ease;
}

.nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .logo { height: 46px; }
  .hero-text h1 { font-size: 28px; }
}

/* =========================
   🔧 PAINEL DE EDIÇÃO DE CORES (injetado via JS)
   ========================= */
#theme-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--highlight-color);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 9998;
  font-weight: 700;
  border: none;
}

/* painel */
#theme-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 320px;
  max-width: calc(100% - 32px);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10,10,10,0.12);
  padding: 12px;
  font-size: 14px;
  z-index: 9999;
  display: none;
}

#theme-panel.open { display: block; }
#theme-panel h4 { margin: 0 0 8px 0; font-size: 15px; }
.theme-row { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.theme-row label { min-width: 100px; font-weight:600; }
.theme-row input[type="color"] { width: 48px; height: 36px; border: none; padding:0; background: transparent; cursor:pointer; border-radius:6px; }

/* ações do painel */
.theme-actions { display:flex; gap:8px; margin-top:8px; }
.theme-actions button { flex:1; padding:8px 10px; border-radius:8px; border: none; cursor:pointer; font-weight:700; }
.theme-actions .save { background: var(--highlight-color); color: var(--color-white); }
.theme-actions .reset { background: transparent; border: 1px solid #ddd; color: #333; }

/* responsivo painel */
@media (max-width:420px) {
  #theme-panel { width: 92%; right: 4%; bottom: 76px; }
  #theme-toggle { right: 8px; bottom: 12px; }
}

.img-link {
  display: block;
  position: relative;
}

.img-link img {
  width: 100%;
  border-radius: 20px 20px 0 0;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.img-link img:hover {
  transform: scale(1.03);
}
.remove-btn {
  background: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #333;
}

.remove-btn:hover {
  background: #59cb81;
  transform: translateY(-2px);
}

.remove-btn:active {
  transform: translateY(0);
  background: #e4e4e4;
}

#dados-cliente{ 
  width: 100%;
  max-width: 1000px;
  padding: 15px;
  margin: 20px auto;
  border-radius: 12px; 
  background: rgb(68, 116, 66);
}

.cart-icon {
  background: #406f36;       /* verde do layout */
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
}

.cart-icon:hover {
  background: #2f5228;
}

#cart-count {
  background: #fff;
  color: #406f36;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

/* =========================
   🛒 CARRINHO RESPONSIVO
   ========================= */

@media (max-width: 768px) {

  #dados-cliente {
    width: 95%;
    padding: 15px;
  }

  #dados-cliente input {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

}