/* Fonte, cores e reset básico */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
  }
  a {
    text-decoration: none;
    transition: color .3s;
  }
  
  /* Navbar */
  .navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    padding: 1rem;
    position: relative;
  }
  
  .navbar-nav {
    margin-left: auto;
  }
  .nav-link:hover {
    color: #E3001B !important;
  }
  
  /* Imagens de cards/carrosséis */
  .post-img {
    height: 200px;
    object-fit: cover;
  }
  .ad-img {
    height: 300px;
    object-fit: cover;
  }
  .esp-img {
    height: 300px;
    object-fit: cover;
  }
  
  /* Títulos de sessão */
  .section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    margin: 4rem 0 2rem;
    color: #155ae1;
  }
  
  /* Cards gerais */
  .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  }
  .card:hover {
    transform: translateY(-5px);
  }
  
  /* Formulário de contato */
  .contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  }
  
  /* Footer */
  .footer {
    background: #222;
    color: #eee;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
  }
  .footer a {
    color: inherit;
    margin: 0 .5rem;
  }
  .footer a:hover {
    color: #E3001B;
  }
  
  /* Botões de ação */
  .btn-danger {
    background: #155ae1;
    border: none;
  }
  .btn-danger:hover {
    background: #C20018;
  }
  
  /* ===============================
   Estilos QUE AFETAM APENAS ESTA PÁGINA
   =============================== */

/* Link “Voltar à Loja” */
.back-btn {
  display: inline-block;
  margin: 20px 0;
  text-decoration: none;
  color: #E3001B;
  font-size: 1rem;
  transition: color 0.3s;
}
.back-btn:hover {
  color: #C20018;
}

/* Container principal (mídia + informações) */
.container-loja {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px auto 40px;
  max-width: 1100px;
}

/* Painel de mídia (miniaturas) */
.media-panel {
  flex: 1 1 300px;
  max-width: 400px;
  background: #fafafa;
  padding: 20px;
}

/* Grid de miniaturas */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.gallery img,
.gallery video {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery img:hover,
.gallery video:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Painel de informações (título, descrição, preço, botões) */
.info-panel {
  flex: 2 1 400px;
  padding: 30px;
  position: relative;
}

/* Título do anúncio */
.info-panel h1 {
  margin-top: 0;
  font-size: 2.2rem;
  color: #222;
  display: inline-block;
  margin-right: 10px;
}

/* Formulário de favorito */
.favorite-form {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.favorite-checkbox {
  display: none;
}
.favorite-label {
  font-size: 1.6rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s;
}
.favorite-checkbox:checked + .favorite-label {
  color: #FFD700;
}

/* Categoria */
.category {
  color: #777;
  margin: 12px 0;
  font-size: 1rem;
}

/* Descrição */
.description {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

/* Preço */
.price {
  font-size: 1.8rem;
  color: #E3001B;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Estoque */
.stock {
  margin-bottom: 18px;
  color: #555;
  font-size: 1rem;
}

/* Botões de ação (adicionar ao carrinho / continuar comprando) */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.actions button,
.actions a.button {
  flex: 1;
  min-width: 140px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

/* Botão “Adicionar ao carrinho” */
.actions button {
  background: #28a745;
  color: #fff;
}
.actions button:hover {
  background: #20a337;
}
.actions button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Botão “Continuar Comprando” */
.actions a.button {
  background: #6c757d;
  color: #fff;
}
.actions a.button:hover {
  background: #5a6268;
}

/* Modal de visualização (somente aqui) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 1000;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
.modal-content img,
.modal-content video {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

/* Responsividade para este layout */
@media (max-width: 992px) {
  .container-loja {
    flex-direction: column;
    margin: 20px 10px 40px;
  }
  .media-panel,
  .info-panel {
    max-width: 100%;
  }
  .actions {
    flex-direction: column;
  }
}
/* DEIXE APENAS filtros e faça um seletor específico para a seção de filtros */
.filtros {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* REMOVA qualquer regra global .grid */
/* Se precisar de margem extra só na loja, use um seletor próprio: */
.loja-grid {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}
body { background:#fff; color:#333; font-family:'Poppins',sans-serif; margin:0; padding:0; }

.fa-shopping-cart { color:#333; }
.badge-bg { background:#E3001B; }
.filtros, .grid { margin:2rem auto; max-width:1200px; padding:0 1rem; }
.card-produto { background:#f9f9f9; border:none; border-radius:8px; overflow:hidden; transition:transform .2s; }
.card-produto:hover { transform:scale(1.02); }
.card-produto img { width:100%; height:180px; object-fit:cover; }
.card-produto .info { padding:1rem; }
.card-produto h5 { font-size:1rem; margin-bottom:.5rem; }
.card-produto p { font-weight:bold; }
.esgotado { color:#aaa; text-transform:uppercase; }
.btn-success, .btn-secondary { width:100%; }