.container-productos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0px;
  max-width: 100%;
  margin: 0 auto;
}

.product-box {
  flex: 0 0 calc(33.333% - 20px);
  box-sizing: border-box;
  /* padding: 20px; */
  
}

.product-info {
  border-radius: 8px;
  border: 1px solid #eee;
}

.product-info:hover {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.img-producto {

}

.pagination a {
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: black;
}

.pagination a.active {
  background-color: #000000;
  color: white;
}

.pagination a:hover {
  background-color: #ddd;
}
/*SIDEBAR*/
/* =========================
   SIDEBAR FILTERS (SCOPED)
   ========================= */
.sidebar-filters{
  width: 300px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.sidebar-filters .sidebar-filters__title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 650;
}

/* Card */
.sidebar-filters .filter-group{
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fff;
}

/* Remove default marker */
.sidebar-filters .filter-group > summary::-webkit-details-marker{ display:none; }
.sidebar-filters .filter-group > summary{ list-style:none; }

.sidebar-filters .filter-group__summary{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
}
.sidebar-filters .filter-group__summary:hover{ background:#f5f5f5; }

/* Label fills the row so indicator sits on the far right */
.sidebar-filters .filter-group__label{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

/* Checkbox left-aligned */
.sidebar-filters .filter-group__label input[type="checkbox"]{
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(1px);
}

/* Text */
.sidebar-filters .filter-group__name{
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform:uppercase;
}

/* Body */
.sidebar-filters .filter-group__body{
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

/* Sub items */
.sidebar-filters .filter-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 6px;
  border-radius: 10px;
  user-select: none;
}
.sidebar-filters .filter-item:hover{ background: #f7f7f7; }

.sidebar-filters .filter-item input{
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.sidebar-filters .filter-note{
  margin: 0;
  font-size: 12px;
  opacity: .7;
  padding: 4px 2px;
}

/* + / − indicator on the right */
.sidebar-filters .filter-group__chev{
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #eaeaea;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}


/* Actions + buttons */
.sidebar-filters .sf-actions{
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.sidebar-filters .sf-btn{
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  flex: 1;
  font-weight: 600;
}
.sidebar-filters .sf-btn--ghost{
  background: #fff;
  color: #111;
  border-color: #ddd;
}
.sidebar-filters .sf-btn:hover{ opacity: .92; }

/* ====== (Opcional) Marcas: si estás usando el JS que genera labels ======
   Solo pega esto debajo si tu bloque de marcas vive dentro del mismo aside
*/
.sidebar-filters .brand-side-container{
  display: grid;
  gap: 10px;
}
.sidebar-filters .brand-side-container label{
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, opacity .2s ease, border-color .2s ease;
  font-size: 14px;
  font-weight: 600;
}
.sidebar-filters .brand-side-container label:hover{
  background: #f5f5f5;
  opacity: 0.9;
}
.sidebar-filters .brand-side-container label input.brand-filter{
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(1px);
}
.sidebar-filters .brand-side-container label:has(input.brand-filter:checked){
  background: #fff;
  border-color: #ddd;
  opacity: 1;
}
.sidebar-filters .brand-side-container label:focus-within{
  border-color: #ccc;
}

/* Actions + buttons (namespaced) */

.sf-actions {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    width: 85%;
}

.sf-actions .sf-btn{
   background: #01ff00;
  color: #111;
  border-color: #01ff00;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  flex: 1;
  font-weight: 600;
}
.sf-actions .sf-btn:hover{ opacity: .92; }
/* ====== BRANDS (scoped) ====== */
.sidebar-filters .brand-side-container{
  display: grid;
  gap: 10px;
}

/* Cada marca es un label -> lo hacemos card */
.sidebar-filters .brand-side-container label{
  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;

  padding: 10px 12px;
  cursor: pointer;
  user-select: none;

  transition: background .2s ease, opacity .2s ease, border-color .2s ease;
}

/* Hover suave */
.sidebar-filters .brand-side-container label:hover{
  background: #f5f5f5;
  opacity: 0.9;
}

/* Checkbox alineado */
.sidebar-filters .brand-side-container label input.brand-filter{
  transform: translateY(1px);
  cursor: pointer;
}

/* Texto (tu HTML lo imprime como texto plano después del input) */
.sidebar-filters .brand-side-container label{
  font-size: 14px;
  font-weight: 600;
}

/* Estado seleccionado: un poquito más "activo" */
.sidebar-filters .brand-side-container label:has(input.brand-filter:checked)
{
  background: #fff;
  border-color: #ddd;
  opacity: 1;
}

/* Opcional: focus visible accesible */
.sidebar-filters .brand-side-container label:focus-within{
  border-color: #ccc;
}
/* sub niveles */
.filter-subgroup{
  border-left: 1px solid #eee;
  margin-left: 6px;
}

.filter-subsummary{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}

.filter-subbody{
  padding-left:16px;
  display:grid;
  gap:6px;
}

/* nivel 2 */
.filter-item.sub{
  padding-left:8px;
  font-size:13px;
  color:black;
  text-transform:uppercase;
}

/* nivel 3 */
.filter-item.sub2{
  padding-left:18px;
  font-size:13px;
   color:black;
    text-transform:uppercase;
}
/* Nivel principal */
.filter-group__chev::before{
  content: "+";
}

.filter-group[open] > .filter-group__summary .filter-group__chev::before{
  content: "−";
}

/* Subniveles */
.filter-subsummary .filter-group__chev::before{
  content: "+";
}

.filter-subgroup[open] > .filter-subsummary .filter-group__chev::before{
  content: "−";
}
.filter-subsummary .filter-group__chev::before{
  content: "+";
}

.filter-subgroup[open] > .filter-subsummary .filter-group__chev::before{
  content: "−";
}
/*RESPONSIVE*/

@media (max-width: 600px) {
    .sidebar-filters {width:100% !Important;}
    
    .catalogo-interno .col-sm-9 {
  width: 100% !Important;
  padding-left:0px !Important;
}
.product-box {
  flex: 0 0 calc(100%) !Important;
  box-sizing: border-box;
  padding: 0px !Important;
}
.catalogo-interno .magni {
  right: 20px !Important
}
}
