*{
  font-family: "Lato", sans-serif;
}
/* ===== SEÇÃO ===== */
.secao-catalogo-l {
  background: #f8f9fb;
}

/* ===== BARRA SUPERIOR ===== */
.barra-marcas {
  width: auto;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.filtro-marcas-topo {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap; /* Impede que as marcas quebrem linha */
    overflow-x: auto;  /* Adiciona scroll horizontal se houver muitas */
    padding: 10px 0;
    scrollbar-width: none; /* Esconde scroll no Firefox */
    -ms-overflow-style: none; /* Esconde scroll no IE */
    max-width: auto;
}

.filtro-marcas-topo::-webkit-scrollbar {
    display: none; /* Esconde scroll no Chrome/Safari */
}

.filtro-marcas-topo button {
    white-space: nowrap; /* Mantém o nome da marca em uma linha só */
}

.filtro-marcas-topo button {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: .3s;
}

.filtro-marcas-topo button.ativo,
.filtro-marcas-topo button:hover {
  background: #c48a3a;
  border-color: #c48a3a;
  color: #fff;
}

/* ===== BOTÃO ORÇAMENTO ===== */
.btn-orcamento {
  margin-right: 100px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c48a3a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: .2s ease;
}

.btn-orcamento:hover {
  background: #d6a969;
}

.badge-orcamento {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #000000;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ===== LAYOUT ===== */
.catalogo-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.catalogo-conteudo {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

/* ===== FILTRO LATERAL ===== */
.filtro-tipos-lateral {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.filtro-tipos-lateral h2 {
  margin-bottom: 20px;
}

.filtro-tipos-lateral button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: .3s;
}

.filtro-tipos-lateral button.ativo,
.filtro-tipos-lateral button:hover {
  background: #c48a3a;
  color: #fff;
}

/* ===== GRID ===== */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ===== CARD ===== */
.produto-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: .3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.produto-text-card{
  font-family: "Lato", sans-serif;
  display: flex;
  align-items: start;
  flex-direction: column;
  width: 80%;
}
.produto-card.hidden {
    display: none !important;
}

.produto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.produto-card > img{
  width: 90%;
  height: 60%;
}

.produto-card header {
  padding: 15px;
}

.produto-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.produto-card p {
  font-size: 12px;
  color: #6b7280;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1100px) {
  .catalogo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .catalogo-conteudo {
    grid-template-columns: 1fr;
  }

  .filtro-tipos-lateral {
    display: none;
  }
}

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .catalogo-grid {
    grid-template-columns: 1fr;
  }
}

.btn-detalhes {
  width: 90%;
  padding: 12px 18px;
  margin: auto 0;
  background-color: #c48a3a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  
  }

.btn-detalhes > a {
  text-decoration: none;
  color: #ffffff;
}

.btn-detalhes:hover::after {
  left: 100%;
}

/* ==============================
   AJUSTES NECESSÁRIOS
============================== */

/* Remove regra antiga do botão com <a> */
.btn-detalhes > a {
  all: unset;
}

/* Garante que o texto não empurre o botão */
.produto-text-card {
  margin-top: 10px;
  margin-bottom: 15px;
}

/* ==============================
   MODAL PRODUTO PROFISSIONAL
============================== */

.produto-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.produto-modal.ativo {
  display: flex;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.produto-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 850px;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fechar-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f2f2f2;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.fechar-modal:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

/* GRID INTERNO */
.produto-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* IMAGEM */
.produto-modal-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* INFO */
.produto-modal-info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.produto-modal-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  text-transform: capitalize;
}

/* QUANTIDADE */
.produto-quantidade {

  margin-top: 15px;
  margin-bottom: 25px;
  gap: 10px;
  display: flex;
}

.produto-quantidade label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.produto-quantidade input {
  width: 100px;
  height: 40px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.produto-quantidade input:focus {
  border-color: #c48a3a;
}

/* BOTÃO */
.btn-adicionar-orcamento {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c48a3a, #a06f2c);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-adicionar-orcamento:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(196,138,58,0.4);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .produto-modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .produto-modal-info {
    margin-top: 20px;
  }

  .produto-quantidade input {
    margin: 0 auto;
  }
}

.produto-unidade {
  margin-bottom: 25px;
}

.produto-unidade label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.produto-unidade select {
  width: 70px;
  height: 40px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.produto-unidade select:focus {
  border-color: #c48a3a;
}

.paginacao-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.paginacao-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paginacao-btn:hover:not(:disabled) {
    border-color: #0056b3;
    color: #0056b3;
    background: #f8faff;
}

.paginacao-btn.ativo {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.paginacao-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.paginacao-seta {
    font-size: 1.2rem;
}