:root {
  --cor-primaria: #1d4ed8;
  --cor-secundaria: #3b82f6;
  --cor-destaque: #22c55e;
  --cor-fundo-claro: #f3f4f6;
  --cor-texto: #374151;
  --cor-texto-leve: #6b7280;
  --cor-escura: #111827;
}

body.dark-mode {
  background-color: var(--cor-escura);
  color: #f9fafb;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #0f172a;
  color: #f9fafb;
}

body.dark-mode .card-produto {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #f9fafb;
  -webkit-text-fill-color: #f3f4f6;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card-produto {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 26px;
  text-align: center;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
  max-width: 400px;
  margin: auto;
}

.card-produto:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 56px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  border-color: rgba(37, 99, 235, 0.24);
}

.card-produto img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.card-produto img:hover {
  transform: scale(1.8);
}

.card-produto h3 {
  font-size: 1.5rem;
  color: var(--cor-primaria);
  margin-bottom: 8px;
}

.card-produto p {
  color: #4b5563;
  margin-bottom: 16px;
}

.card-produto ul {
  list-style-type: disc;
  list-style-position: inside;
  text-align: left;
  color: #4b5563;
  margin-bottom: 16px;
  padding-left: 20px;
}

.card-produto a {
  margin-top: auto;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 12px 0;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.24);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: block;
}

.card-produto a:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.24);
}
