/* =========================
   SHOP / CATÁLOGO (PHP)
   - Filtros, toolbar, carrito full-page
   ========================= */

.small-link{ color:#B0000F; text-decoration: none; font-weight:600; font-size: .9rem; }
.small-link:hover{ text-decoration: underline; }

/* Layout catálogo con filtros */
.catalog-layout{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.filter-panel{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  height: fit-content;
}

.filter-panel h3{
  margin: 0 0 1rem;
  color: #1A1A1A;
}

.filter-field{ margin-top: 1rem; text-align: left; }
.filter-field label{ display:block; font-weight: 600; margin-bottom: .4rem; color:#1A1A1A; }
.filter-input,
.filter-field select{
  width: 100%;
  border: 1px solid #ddd;
  padding: .85rem 1rem;
  border-radius: 8px;
  font-family: inherit;
}

.filter-row{
  display:flex;
  gap: .8rem;
}

.filter-actions{
  display:flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.2rem;
}

.btn-outline{
  background: #fff;
  color: #1A1A1A;
  border: 1px solid #ddd;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-outline:hover{
  border-color: #B0000F;
  color: #B0000F;
}

.checkbox-line{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-top: 1rem;
  text-align:left;
}

/* Toolbar resultados */
.catalog-toolbar{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem 1.2rem;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.catalog-toolbar .found{
  color: #333;
  font-weight: 600;
}

.catalog-toolbar .sort{
  display:flex;
  align-items:center;
  gap: .6rem;
}

.catalog-toolbar .sort span{ color:#555; font-size: .95rem; }

/* Carrito full page */
.cart-page{
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.cart-card-page{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.cart-head-page,
.cart-row-page{
  display:grid;
  grid-template-columns: 1.4fr .7fr .6fr .4fr;
  gap: 1rem;
  align-items:center;
  padding: 1rem 1.2rem;
}

.cart-head-page{
  background: #f7f7f7;
  font-weight: 700;
  color: #1A1A1A;
  border-bottom: 1px solid #eee;
}

.cart-row-page{ border-bottom: 1px solid #eee; }
.cart-row-page:last-child{ border-bottom: 0; }

.cart-prod{
  display:flex;
  align-items:center;
  gap: 1rem;
  min-width: 0;
}

.cart-prod img{
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

.cart-prod .name{ font-weight: 600; color:#1A1A1A; }
.cart-prod .meta{ font-size: .85rem; color:#555; margin-top:.2rem; }

.qty-controls{ display:flex; align-items:center; gap:.5rem; }
.qty-btn{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.qty-input{
  width: 56px;
  text-align:center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: .55rem .5rem;
}

.price-right{ text-align:right; font-weight:700; color:#B0000F; }

.remove-btn{
  border: 1px solid #ddd;
  background: #fff;
  padding: .55rem .75rem;
  border-radius: 8px;
  cursor:pointer;
  font-weight:600;
}
.remove-btn:hover{ border-color:#B0000F; color:#B0000F; }

.cart-summary-page{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 1rem 1.2rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.cart-summary-page .total{
  font-size: 1.1rem;
  font-weight: 800;
  color: #1A1A1A;
}

.cart-actions-page{
  display:flex;
  justify-content: flex-end;
  gap: .8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px){
  .catalog-layout{ grid-template-columns: 1fr; }
  .filter-panel{ position: static; }
}

@media (max-width: 700px){
  .cart-head-page{ display:none; }
  .cart-row-page{ grid-template-columns: 1fr; }
  .price-right{ text-align:left; }
}
