.crumbs{
  font-size:13px;
  color:rgba(11,15,20,.65);
  margin-bottom:18px;
}
.crumbs a:hover{ text-decoration: underline; }

.catalog-head{margin-bottom:20px}
.catalog-title{
  margin:0 0 8px;
  font-size: clamp(26px, 2.3vw, 34px);
  letter-spacing:-.3px;
}
.catalog-subtitle{
  margin:0;
  color:var(--muted);
  max-width: 72ch;
}

.section-title{
  margin:28px 0 14px;
  font-size: 18px;
  letter-spacing:-.2px;
}

/* categorías */
.cat-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 1024px){ .cat-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .cat-grid{ grid-template-columns: 1fr;} }

.category-card{
  text-align:left;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(11,15,20,.10);
  box-shadow: 0 10px 28px rgba(11,15,20,.06);
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover{
  transform: translateY(-2px);
  border-color: rgba(20,87,255,.25);
  box-shadow: 0 16px 34px rgba(11,15,20,.10);
}
.cat-ico{
  width:40px;height:40px;
  border-radius:12px;
  display:grid;place-items:center;
  background: rgba(255,196,0,.14);
  border:1px solid rgba(255,196,0,.26);
  font-size:18px;
}
.category-card b{display:block; font-size:14.5px}

.category-card small{
  display:block;
  color:rgba(11,15,20,.70);
  margin-top:6px;
  font-size:14px;       /* antes heredado ~12–13px */
  line-height:1.45;     /* mejora lectura */
}

/* En pantallas grandes se percibe mejor */
@media (min-width: 1024px){
  .category-card small{
    font-size:14.5px;   /* mini boost solo en desktop */
  }
}

.category-card small{
  letter-spacing: 0.1px;
}

.cat-cta{margin-left:auto; color:rgba(20,87,255,.95); font-weight:600; padding-top:2px}

/* controles */
.catalog-controls{ margin-top: 18px; }
.controls-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:flex-end;
  padding:16px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(11,15,20,.10);
}
.control{display:flex; flex-direction:column; gap:6px; min-width: 220px}
.control label{font-size:12px; color:rgba(11,15,20,.70); font-weight:600}
.control input, .control select{
  height:42px;
  border-radius:12px;
  border:1px solid rgba(11,15,20,.12);
  padding:0 12px;
  outline:none;
}
.control input:focus, .control select:focus{
  border-color: rgba(20,87,255,.45);
  box-shadow: 0 0 0 4px rgba(20,87,255,.10);
}
.control.check{flex-direction:row; align-items:center; min-width:auto; gap:10px}
.control.check input{width:18px;height:18px}

.active-cat{
  margin:10px 4px 0;
  font-size: 12.5px;
  color: rgba(11,15,20,.70);
}

/* Productos (mínimo premium) */
#productsGrid.p-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
@media (max-width: 1024px){ #productsGrid.p-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ #productsGrid.p-grid{ grid-template-columns: 1fr;} }

.product-card{
  background:#fff;
  border:1px solid rgba(11,15,20,.10);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(11,15,20,.06);
  display:flex;
  flex-direction:column;
}
.product-card__media{
  height:190px;
  background:#f3f5f8;
}
.product-card__media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.product-card__body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.product-card__title{ margin:0; font-size:14.5px; letter-spacing:-.2px; }
.product-card__brand{ font-size:12px; color:rgba(11,15,20,.65); font-weight:600; }
.product-card__desc{ margin:0; font-size:13px; color:rgba(11,15,20,.70); line-height:1.45; }
.product-card__cta{ align-self:flex-start; margin-top:6px; }

/* Empty state */
.empty-state{
  background:#fff;
  border:1px solid rgba(11,15,20,.10);
  border-radius:16px;
  padding:16px;
}
.empty-state h3{ margin:0 0 6px; }
.empty-state p{ margin:0; color:rgba(11,15,20,.70); }

/* =========================================================
   PRODUCT CARDS — Imagen 16:9 a borde perfecto (premium)
   Objetivo: imagen full-bleed (sin bandas), bordes limpios
========================================================= */

/* Grid (si ya lo tienes, puedes omitir esta parte) */
#productsGrid.p-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
@media (max-width: 1024px){ #productsGrid.p-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ #productsGrid.p-grid{ grid-template-columns: 1fr;} }

.product-card{
  background:#fff;
  border:1px solid rgba(11,15,20,.10);
  border-radius:16px;
  overflow:hidden; /* clave para que el borde recorte perfecto */
  box-shadow: 0 10px 28px rgba(11,15,20,.06);
  display:flex;
  flex-direction:column;
}

/* Contenedor de media con ratio fijo 16:9 */
.product-card__media{
  aspect-ratio: 16 / 9;  /* clave */
  width:100%;
  background:#f2f4f7;
  overflow:hidden;
}

/* Imagen a borde completo */
.product-card__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;      /* llena toda el área */
  object-position: center;/* centra el recorte */
}

/* Cuerpo */
.product-card__body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.product-card__title{ margin:0; font-size:14.5px; letter-spacing:-.2px; }
.product-card__brand{ font-size:12px; color:rgba(11,15,20,.65); font-weight:600; }
.product-card__desc{ margin:0; font-size:13px; color:rgba(11,15,20,.70); line-height:1.45; }
.product-card__cta{ align-self:flex-start; margin-top:6px; }

/* Variante sin recorte (si lo necesitas en casos puntuales) */
.product-card__media--contain img{
  object-fit: contain;
  padding: 6px; /* aire premium */
  background:#fff;
}