/* =========================================================
   CATÁLOGO - GRID DE PRODUCTOS
========================================================= */

.catalogo-grid,
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 28px;
  justify-content: center;
  align-items: start;
}

/* Tarjeta del producto */
.catalogo-grid .card,
.grid-3 .card{
  width: 280px;
  min-height: 420px;
  text-align: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(233,30,99,0.08);
}

/* Imagen del catálogo */
.catalogo-grid .prod-img,
.grid-3 .prod-img{
  width: 100%;
  max-width: 210px;
  height: 210px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  padding: 10px;
}

/* Nombre */
.catalogo-grid .card h3,
.grid-3 .card h3{
  font-size: 1.1rem;
  margin: 10px 0;
}

/* Descripción */
.catalogo-grid .card p,
.grid-3 .card p{
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Precio + botón */
.catalogo-grid .row,
.grid-3 .row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1000px){
  .catalogo-grid,
  .grid-3{
    grid-template-columns: repeat(2, 280px);
  }
}

@media (max-width: 650px){
  .catalogo-grid,
  .grid-3{
    grid-template-columns: 1fr;
  }

  .catalogo-grid .card,
  .grid-3 .card{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

.product-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}

.product-card-link:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(233,30,99,.16);
}

/* Cards de productos: precio siempre abajo */
.grid-3 .card,
.grid-3 .product-card-link{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Empuja precio y botón hacia abajo */
.grid-3 .card .row,
.grid-3 .product-card-link .row,
.product-card-bottom{
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* Precio centrado */
.grid-3 .card strong,
.grid-3 .product-card-link strong{
  text-align: center;
}

.product-card-link{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-card-bottom{
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.product-card-bottom{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
}

.product-card-bottom strong{
  font-size: 1.2rem;
  font-weight: 800;
}

.product-card-bottom .btn{
  margin-top: 2px;
}

.ver-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 16px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-weight:900;
  font-size:.9rem;
  box-shadow:0 8px 20px rgba(233,30,99,.22);
}

/* =========================================================
   RESPONSIVE CATALOG
========================================================= */
.catalogo-grid,
.grid-3{
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap:clamp(16px, 3vw, 28px);
  width:100%;
}

.catalogo-grid .card,
.grid-3 .card,
.grid-3 .product-card-link{
  width:100%;
  max-width:340px;
  min-height:auto;
  justify-self:center;
}

.catalogo-grid .prod-img,
.grid-3 .prod-img{
  height:clamp(170px, 24vw, 210px);
}

@media (min-width: 1180px){
  .catalogo-grid,
  .grid-3{
    grid-template-columns:repeat(3, minmax(260px, 320px));
  }
}

@media (max-width: 640px){
  .catalogo-grid .card,
  .grid-3 .card,
  .grid-3 .product-card-link{
    max-width:100%;
  }
}

.catalog-tabs{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin:0 auto 28px;
}

.catalog-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--primary);
  font-weight:900;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(233,30,99,.08);
}

.catalog-tab.is-active,
.catalog-tab:hover{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.empty-catalog{
  max-width:620px;
  margin:0 auto 28px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  text-align:center;
  box-shadow:0 8px 24px rgba(233,30,99,.08);
}

@media (max-width: 560px){
  .catalog-tabs{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }

  .catalog-tab{
    width:100%;
  }

  .catalogo-grid .prod-img,
  .grid-3 .prod-img{
    height:clamp(160px, 54vw, 210px);
  }
}
