/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f4f4;
  color: #333;
}

/* HEADER */
header {
  background: #c40d0d;
  color: #fff;
  padding: 35px 15px;
  text-align: center;
}

header h1 {
  font-size: 28px;
}

header p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.9;
}

/* LAYOUT PRINCIPAL */
.container {
  max-width: 1280px;
  margin: auto;
  padding: 20px;
}

/* Layout com anúncios */
.layout-ads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Conteúdo central */
.content {
  width: 100%;
}

/* CARD */
.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card h2 {
  margin-bottom: 15px;
}

/* FORM */
label {
  margin-top: 12px;
  display: block;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: #16a34a;
}

/* BOTÃO */
button {
  margin-top: 20px;
  padding: 14px;
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: #15803d;
}

/* RESULTADO */
.resultado {
  margin-top: 25px;
  padding: 25px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  line-height: 1.7;
}

.resultado h3 {
  color: #facc15;
  margin-bottom: 10px;
}

.resultado hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 12px 0;
}

/* ALERTAS */
.alerta {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
}

.alerta.seguro {
  background: #064e3b;
  border-left: 6px solid #10b981;
  color: #ecfdf5;
}

.alerta.atencao {
  background: #78350f;
  border-left: 6px solid #f59e0b;
  color: #fffbeb;
}

.alerta.perigo {
  background: #7f1d1d;
  border-left: 6px solid #ef4444;
  color: #fee2e2;
}

/* SEO TEXTO */
.seo-text {
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.8;
}

.seo-text h2 {
  margin-bottom: 10px;
  color: #111;
}

/* ====== ANÚNCIOS ====== */
.ads {
  background: #e5e7eb;
  border-radius: 10px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
}

/* Topo */
.ads-top {
  max-width: 1280px;
  margin: 20px auto;
}

/* Entre seções */
.ads-middle,
.ads-content {
  margin: 25px 0;
}

/* Laterais */
.ads-side {
  display: none;
}

/* FOOTER */
footer {
  text-align: center;
  font-size: 12px;
  padding: 20px;
  color: #555;
}

/* ===============================
   CARRINHO FLUTUANTE - PLANILHAS
   =============================== */

.cart-float {
  position: fixed;
  right: 20px;
  bottom: 30%;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  text-decoration: none;

  padding: 14px 16px;
  border-radius: 50px;

  font-size: 14px;
  font-weight: bold;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ícone */
.cart-float span {
  line-height: 1.1;
  text-align: left;
}

/* Hover */
.cart-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* Mobile: menor e mais discreto */
@media (max-width: 768px) {
  .cart-float {
    right: 15px;
    bottom: 20px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .cart-float span {
    display: none; /* só o ícone no mobile */
  }
}


/* ====== DESKTOP ====== */
@media (min-width: 1024px) {
  header h1 {
    font-size: 34px;
  }

  .layout-ads {
    grid-template-columns: 300px 1fr 300px;
    align-items: start;
  }

  .ads-side {
    display: block;
    min-height: 600px;
    position: sticky;
    top: 20px;
  }
}
