#title{
    font-family: "Arsenal SC", system-ui;
    text-align: center;
    background-color: rgb(235, 235, 235);
}

#title h1{
  margin-top: 8px;
  margin-bottom: 0px;
}

body{
    background-color: rgb(235, 235, 235);
}

.grid-container {
    background-color: rgb(230,230,230);
    display: grid;
    grid-template-columns: 1fr 4fr; /* 1/3 para filtros, 2/3 para productos */
    gap: 20px; /* Espacio entre las columnas */
    margin: 20px;
    margin-top: 6px;
}

.filters {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  display: flex; /* Cambiamos grid a flex */
  flex-direction: column;
}

#filt-title{
    font-family: "Arsenal SC", system-ui;
    font-size: 25px;
}

#grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaciado entre checkboxes */
  max-height: 300px; /* Fija una altura máxima */
  overflow-y: auto; /* Permite desplazamiento interno si hay muchas categorías */
}

#separation-line{
  border: 1px solid #ccc;
  width: 90%;
  margin-top: 9px;
  margin-bottom: 10px;
}

/* Macro categoría */
.macroCategory {
    margin-bottom: 1px; /* Espacio entre cada grupo de macro categorías */
    margin: 0px; /* Separar de la siguiente macro categoría */
    font-weight: bold;
    font-family: "Arsenal SC", system-ui;
    font-size: 18px;
    background-color: rgb(235,235,235);
    padding-top: 19px;
}

.macroCategory input{
   float: left;
   margin-right: 10px;
   height: 20px;
   width: 20px;
}

.subcategory{
    padding-left: 20px; /* Indentación para diferenciar de macro categorías */
    margin: 0px; /* Separar de la siguiente macro categoría */
    font-family: "Arsenal SC", system-ui;
    font-size: 15px;
    padding-top: 18px;
    background-color: rgb(240,240,240);
}
.subcategory input{
    float: left;
    margin-right: 10px;
    size: 10px;
    height: 15px;
   width: 15px;
 }

 /*-------- Order by ---------*/
 
 #product-title{
  margin: 0px;
  padding: 0px;
  gap:0px
 }

 #ordenar{
  margin-top: 12px;
  float: right;
  margin-left: 65%;
  margin-right: 0px;
  padding-bottom: 5px;
  font-family: "Arsenal SC", system-ui;
  text-align: center;
  font-size: 20px;
  margin-bottom: 0px;
 }

 .dropbtn {
    background-color:rgb(235, 235, 235);
    color: black;
    font-size: 18px;
    border: none;
    cursor: pointer;
    font-family: "Rokkitt", serif;
    padding: 10px 40px;
    border-radius: 4px;
  }
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    font-family: "Rokkitt", serif;
    text-align: center;
    font-size: 15px;

    left: 50%;
    transform: translateX(-50%); 
}  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    text-align: center;
    padding: 12px ;
    text-decoration: none;
    display: block;
  }
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #f1f1f1}
  
  /* Show the dropdown menu on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Change the background color of the dropdown button when the dropdown content is shown */
  .dropdown:hover .dropbtn {
    background-color: rgb(221, 221, 221);
  }
  
/*-------- Product Slots --------*/

.products {
    grid-template-rows: 0.7fr 8fr;
    display: grid;

}

figure{
  margin: 6px;
  background-color: rgb(221, 221, 221);
  box-shadow: 0px 0px 0px 4px rgba(221, 221, 221);
  border-radius: 5px;
}

.images-p img
{
  width: 250px; /* La imagen cubre todo el ancho del contenedor */
  height: 250px; /* La imagen cubre toda la altura del contenedor */
  object-fit: cover; /* La imagen se ajusta para cubrir todo el contenedor, recortando lo necesario */
  border-radius: 5px;
  box-shadow: 4px 4px 6px rgba(53, 53, 53, 0.4);
}
.images-p 
{
  background-color: rgb(235, 235, 235);
  margin: 0px;
  padding: 0;
  margin-right: 30px;
  display: block;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente (si el contenedor tiene altura) */
  flex-wrap: wrap; /* Permite que las imágenes se ajusten en múltiples líneas si es necesario */
}

.singleImg {
    transition: transform .2s;
    margin-bottom: 7px;
    font-size: 17px;
    
}
  
.singleImg:hover {
    transform: scale(1.02); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.titulo {
  margin-left: 9px;
  font-size: 17px;
}

.precio {
  font-family: "Arsenal SC", system-ui;
  font-size: 18px;
  text-align: right;
  margin-right: 20px;
  float: right;
  margin-bottom: 7px;
}


/*-------- Product Slots --------*/

/*-------- Paginator ---------*/
.pagination{
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: "Rokkitt", serif;
  font-size: 20px;
  margin-left: 37%;
}

.pagination a {
  text-decoration: none;
  padding: 8px 16px;
  margin: 0 4px;
  background-color: rgb(243, 243, 243);
  color: #000;
  border-radius: 4px;
}

.pagination .current {
  font-weight: bold;
  color: #fff;
  background-color: #333;
  padding: 8px 16px;
  border-radius: 4px;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination .first, .pagination .last {
  font-size: 0.9em;
}

/*-------- Paginator ---------*/

@media (max-width: 1024px) {

    .images-p img
  {
    width: 150px; /* La imagen cubre todo el ancho del contenedor */
    height: 150px; /* La imagen cubre toda la altura del contenedor */
    object-fit: cover; /* La imagen se ajusta para cubrir todo el contenedor, recortando lo necesario */
    border-radius: 5px;
    box-shadow: 4px 4px 6px rgba(53, 53, 53, 0.4);
  }
  .images-p
  {
    background-color: rgb(235, 235, 235);
    margin: 0px;
    padding: 0;
    margin-right: 30px;
    display: block;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente (si el contenedor tiene altura) */
    flex-wrap: wrap; /* Permite que las imágenes se ajusten en múltiples líneas si es necesario */
  }
  .pagination{
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: "Rokkitt", serif;
    font-size: 18px;
    margin-left: 20%;
  }
  .filters {
  background-color: #f4f4f4;
  padding: 20px;
  padding-right: 80px;
  border-radius: 8px;
  display: flex; /* Cambiamos grid a flex */
  flex-direction: column;
  }

  #filt-title{
      font-family: "Arsenal SC", system-ui;
      font-size: 15px;
  }
  .macroCategory {
    margin-bottom: 1px; /* Espacio entre cada grupo de macro categorías */
    margin: 0px; /* Separar de la siguiente macro categoría */
    font-weight: bold;
    font-family: "Arsenal SC", system-ui;
    font-size: 14px;
    background-color: rgb(235,235,235);
    padding-top: 19px;
  }

  .macroCategory input{
    float: left;
    margin-right: 10px;
    height: 15px;
    width: 15px;
  }

  #grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaciado entre checkboxes */
  overflow-y: auto; /* Permite desplazamiento interno si hay muchas categorías */
  width: 180%;
  }

   #ordenar{
  margin-top: 12px;
  float: right;
  margin-left: 45%;
  margin-right: 0px;
  padding-bottom: 5px;
  font-family: "Arsenal SC", system-ui;
  text-align: center;
  font-size: 16px;
  margin-bottom: 0px;
 }
 .dropdown-content {
  font-size: 16px;
  min-width: 130px;
 }

  .dropbtn {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 4px;
  }

  .titulo {
    margin-left: 9px;
    font-size: 14px;
    margin-right: 5px;   
  }

  .precio {
    font-family: "Arsenal SC", system-ui;
    font-size: 15px;
    text-align: right;
    margin-right: 20px;
    float: right;
    margin-bottom: 7px;
  }
  .singleImg {
    margin-left: 1px;
  }
}

  @media (max-width: 540px) {
    #ordenar{
        margin-left: 15%;
        font-size: 13px;
    }
    .dropbtn{
      font-size: 13px;
      padding: 10px 10px;
    }
     .dropdown-content {
      font-size: 13px;
      min-width: 100px;
    }
  }

  @media (max-width: 460px) {
    .images-p img
    {
      width: 100px; /* La imagen cubre todo el ancho del contenedor */
      height: 100px; /* La imagen cubre toda la altura del contenedor */
      object-fit: cover; /* La imagen se ajusta para cubrir todo el contenedor, recortando lo necesario */
      border-radius: 5px;
      box-shadow: 4px 4px 6px rgba(53, 53, 53, 0.4);
    }
    .grid-container {
      display: grid;
      grid-template-columns: 1fr 2.2fr;
      gap: 10px;
      width: 100%;
      margin: 5px;
    }
    #filt-title{
      font-family: "Arsenal SC", system-ui;
      font-size: 15px;
      white-space: nowrap;
    }
    .grid-container > * {
      min-width: 0;
    }
    .macroCategory {
      font-size: 12px;
    }
    .subcategory{
      font-size: 10px;
    }
      .filters {
      padding: 20px;
      padding-right: 60px;
    }
    figure{
      width: 110px; /* La imagen cubre todo el ancho del contenedor */
      height: 120px;
    }
    .titulo{
      font-size: 9px;
      margin-left: 1px;
      padding-bottom: 10px;
    }
    .precio{
      font-size: 10px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-top: 4px;
    }
    figcaption{
      padding-bottom: 6px;
    }
    .singleImg {
      transition: transform .2s;
      margin-bottom: 4px;
      font-size: 17px;
      margin-left: 5px;
    }
    #ordenar{
      margin-left: 5%;
      font-size: 12px;
    }
    .dropbtn{
      font-size: 12px;
      padding: 10px 10px;
    }
     .dropdown-content {
      font-size: 12px;
      min-width: 100px;
    }
    .macroCategory {
      font-size: 13px;
    }
    .subcategory{
      font-size: 13px;
      padding-left: 5px;
    }
   .macroCategory input{
      height: 15px;
      width: 15px;
    }
  .subcategory input{
      float: left;
      margin-right: 10px;
      size: 10px;
      height: 15px;
      width: 15px;
  }
  .filters {
    padding-left: 3px;
    padding-right: 62px;
  }
  .current {
    font-size: 14px;
  }
  .pagination .current {
    padding: 4px 10px;
  }
}

    @media (max-width: 385px) {
      figure{
      width: 83px; /* La imagen cubre todo el ancho del contenedor */
      height: 86px;
    }
      .images-p img{
      width: 70px; /* La imagen cubre todo el ancho del contenedor */
      height: 70px; /* La imagen cubre toda la altura del contenedor */
      object-fit: cover; /* La imagen se ajusta para cubrir todo el contenedor, recortando lo necesario */
      border-radius: 5px;
      box-shadow: 4px 4px 6px rgba(53, 53, 53, 0.4);
    }
    .singleImg {
      transition: transform .2s;
      margin-bottom: 0px;
      margin-left: 6px;
    }
    #ordenar{
      margin-left: 0%;
      font-size: 11px;
    }
    .dropbtn{
      font-size: 11px;
      padding: 10px 4px;
    }
     .dropdown-content {
      font-size: 11px;
      min-width: 90px;
    }
    .titulo{
      font-size: 6px;
      margin-left: 0px;
      padding-bottom: 20px;
      margin-right: 1px;  
    }
    .precio{
      font-size: 7px;
      margin-right: 0px;
      margin-top: 7px;
    }
    .filters {
    padding-left: 3px;
    padding-right: 52px;
    }
    .macroCategory {
      font-size: 12px;
    }
    .subcategory{
      font-size: 12px;
      padding-left: 5px;
    }
   .macroCategory input{
      margin-right: 3px ;
      height: 14px;
      width: 14px;
    }
  .subcategory input{
      margin-right: 10px;
      size: 10px;
      height: 14px;
      width: 14px;
      margin-right: 3px ;
  }.current {
    font-size: 12px;
  }
  .pagination .current {
    padding: 2px 6px;
  }
  
}
