/* ===== HEADER DO CATÁLOGO ===== */
.catalog-header{
  text-align:center;
  margin-bottom:45px;
}

.catalog-title{
  font-size:2.2rem;
  font-weight:800;
  color:var(--primary);
  margin-bottom:10px;
}

.catalog-subtitle{
  font-size:1rem;
  color:var(--text-muted);
  max-width:500px;
  margin:0 auto;
}

/* ===== BOX DOS FILTROS ===== */
.filters-box{
  background:var(--bg-card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px 25px;
  margin-bottom:45px;
  box-shadow:var(--shadow);
}

/* ===== TÍTULOS DOS FILTROS ===== */
.filter-container h3,
.filter-container-marca h3{
  width:100%;
  text-align:center;
  font-size:.9rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary);
  margin-bottom:14px;
  position:relative;
}

.filter-container h3::after,
.filter-container-marca h3::after{
  content:"";
  display:block;
  width:60px;
  height:2px;
  background:var(--primary-light);
  margin:8px auto 0;
  border-radius:2px;
  opacity:.8;
}

/* ===== FILTROS ===== */
.filter-container,
.filter-container-marca{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.filter-container{
  margin-bottom:18px;
}

.filter-container-marca{
  margin-bottom:40px;
  padding-left:20px;
  position:relative;
}

.filter-container-marca::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-12px;
  height:1px;
  background:var(--line);
  opacity:.6;
}

.filter-btn{
  padding:7px 18px;
  font-size:.85rem;
  border-radius:50px;
  font-weight:600;
  cursor:pointer;
  background:transparent;
  border:1px solid var(--primary);
  color:var(--primary);
  transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
  background:var(--primary);
  color:#fff;
}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:25px;
  margin: 10px 0;
}

/* ===== CARD ===== */
.card{
  background:var(--bg-card);
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  cursor:pointer;
  transition:.3s;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 30px rgba(0,0,0,.25);
}

.card img,
.card video{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  background:var(--bg-page);
}

.card-body{
  padding:18px;
  text-align:center;
}

.card-category{
  font-size:11px;
  text-transform:uppercase;
  color:var(--primary-light);
  letter-spacing:1px;
  font-weight:700;
}

.card-title{
  margin:8px 0;
  font-size:1.05rem;
  color:var(--text);
}

.price{
  color:var(--primary);
  font-weight:800;
  font-size:1.2rem;
}

/* ===== MODAL ===== */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:none;
  z-index:1000;
}

.modal,
.modal-backdrop.active{
  display:flex;
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1001;
}

.modal.active{
  display:flex;
}

.modal-box{
  background:var(--bg-card);
  width:90%;
  max-width:900px;
  border-radius:22px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  max-height:95vh;
}

/* ===== CARROSSEL ===== */
.carousel-wrapper{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}

.carousel{
  background:var(--bg-page);
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  width:100%;
  height:100%;
}

.carousel::-webkit-scrollbar{
  display:none;
}

.carousel img,
.carousel video{
  min-width:100%;
  height:100%;
  object-fit:contain;
  scroll-snap-align:center;
  background:var(--bg-page);
}

/* BOTÕES */
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.6);
  color:#fff;
  border:none;
  width:42px;
  height:42px;
  border-radius:50%;
  cursor:pointer;
  font-size:20px;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
  transition:.3s;
}

.carousel-btn:hover{
  background:var(--primary);
}

.carousel-btn.prev{ left:12px; }
.carousel-btn.next{ right:12px; }

/* ===== INFO MODAL ===== */
.modal-info{
  padding: 35px;
  overflow-y: scroll;
  max-height: 85dvh;
}

.modal-info h2{
  color:var(--primary);
  margin:10px 0;
}

.modal-info p{
  color:var(--text-muted);
}

.whatsapp-btn{
  display:block;
  margin-top:25px;
  background:#25D366;
  color:#fff;
  padding:15px;
  text-align:center;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
}

.close-btn{
    margin-top: 15px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 100%;
    text-align: center;
    border: 2px solid;
    text-decoration: none;
    border-radius: 15px;
}

.product-meta{
  display:flex;
  gap:14px;
  justify-content:center;
  margin:10px 0 18px;
  flex-wrap:wrap;
}

.product-meta span{
  background:var(--bg-page);
  border:1px solid var(--line);
  padding:6px 14px;
  border-radius:20px;
  font-size:.8rem;
  font-weight:600;
  color:var(--text-muted);
}


/* ===== RESPONSIVO ===== */
@media(max-width:768px){
  .catalog-title{
    font-size:1.8rem;
  }

  .filters-box{
    padding:22px 18px;
  }

  .modal-box{
    grid-template-columns:1fr;
  }

  .modal-info {
    padding: 35px;
    overflow-y: scroll;
    max-height: 50dvh;
  }
  .carousel {
    background: var(--bg-page);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 50dvh;
  }
}
