:root {
  --vermelho-f1: #e10600;
  --fundo-carbono: #1a1a1a;
  --fundo-card: #2a2a2a;
}

body {
  background-image: url('../public/img/fundo.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-color: var(--fundo-carbono);
  color: #ffffff;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

header {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 20px 0;
  border-bottom: 4px solid var(--vermelho-f1);
  text-align: center;
}

header h1 {
  color: var(--vermelho-f1);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  display: inline-block;
  margin: 0 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: 0.3s;
}

header nav ul li a:hover {
  color: var(--vermelho-f1);
}

.conteudo-artigo {
  max-width: 750px;
  margin: 40px auto;
  padding: 40px;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 10px;
  border: 1px solid #444;
}

/* IMAGENS PADRONIZADAS NOS ARTIGOS */
.conteudo-artigo img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.voltar {
  display: inline-block;
  margin-top: 20px;
  color: var(--vermelho-f1);
  text-decoration: none;
  font-weight: bold;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 20px auto;
  border-radius: 8px;
  border: 1px solid #444;
  max-width: 600px;
  width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.container-geral {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
}

.conteudo-principal { flex: 3; }

.noticias-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sidebar { 
  flex: 1; 
  background: rgba(34, 34, 34, 0.8); 
  padding: 20px; 
  border-radius: 8px; 
  color: white; 
  height: fit-content; 
  border: 1px solid #444;
}

.sidebar h3 { color: var(--vermelho-f1); text-align: center; margin-top: 0; }
.sidebar a { 
  color: #fff; 
  text-decoration: none; 
  font-weight: bold; 
  display: block; 
  margin-top: 15px; 
  text-align: center; 
  background: var(--vermelho-f1); 
  padding: 10px; 
  border-radius: 5px; 
  transition: 0.3s;
}
.sidebar a:hover { background: #b30500; }

.card {
  background-color: rgba(34, 34, 34, 0.8);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
  border: 1px solid #444;
  overflow: hidden; /* CORREÇÃO APLICADA: Força o corte de imagens que vazam */
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--vermelho-f1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.card h3 {
  padding: 15px;
  font-size: 1.1rem;
}

.row-produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 10px;
}

.produto-card {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.produto-card:hover {
    transform: translateY(-10px);
    border-color: var(--vermelho-f1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.produto-card img { 
    display: block; 
    width: 100%; 
    height: 150px; 
    object-fit: contain; 
    border-radius: 5px; 
    margin-bottom: 10px; 
    transition: transform 0.3s ease;
}

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

.btn-comprar { 
    display: block; 
    background: #e10600; 
    color: white; 
    padding: 8px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
    margin-top: 10px; 
    font-size: 0.8em; 
    transition: 0.3s; 
}

.btn-comprar:hover { background: #b30500; }

@media (max-width: 1024px) {
    .produto-card { flex: 0 0 calc(33.33% - 14px); max-width: 33.33%; }
}

@media (max-width: 800px) {
    .noticias-container { grid-template-columns: 1fr; }
    .container-geral { flex-direction: column; }
    .produto-card { flex: 0 0 calc(50% - 10px); max-width: 50%; }
}

@media (max-width: 480px) {
    .produto-card { flex: 0 0 100%; max-width: 100%; }
}

.logo-fixa {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 100px;
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 768px) {
    .logo-fixa {
        width: 60px;
        top: 10px;
        left: 10px;
    }
}
/* Estilo para os preços dos produtos na loja */
.preco {
    color: #e10600; /* Vermelho padrão do seu site */
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    display: block;
    text-align: center; /* Centraliza o preço no card */
}