#container-catalogo{
    position: relative;
    max-width: 1300px;
    margin: 50px auto;
}

.grid-catalogo{
    display: grid;
    grid-template-columns: 290px auto;
    column-gap: 70px;
    padding: 0px 30px;
}

#menu-filtro{
    position: sticky;
    top: 20px;
    height: 900px;
    overflow-y: auto;
}

.btn-cerrar-filtro {
    display: none;
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #1d4200;
}

.btn-cerrar-filtro:hover {
    color: #ff0000;
}

#menu-filtro.activo-menu-filtro {
    right: 0;
}

/* Para barra de scroll vertical */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #eaeaea;
}

::-webkit-scrollbar-thumb {
    background-color: #1d4200;
    border-radius: 5px;
}

.grid-btn-filtro{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px
}

.btn-filtro{
    color: #1d4200;
    background: white;
    height: 35px;
    border: 1px solid #1d4200;
    border-radius: 20px;
    cursor: pointer;
    transition: all 100ms ease-in-out;    
}

.btn-borrar-filtro {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #1d4200;
    background: white;
    height: 35px;
    border: 1px solid #1d4200;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    align-content: center;
    transition: all 100ms ease-in-out;
}

.max-width-100px{
    min-width: 90px;
    width: 130px;
}

#cards-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
    justify-content: center;
    align-content: start;
    gap: 50px 15px;
}

.card-arreglo {
    max-width: 260px;
    height: 330px;
    padding: 8px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 2px 25px #dfdfdf;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-arreglo:hover {
    transform: translateY(-5px);
}

.imagen-arreglo{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-footer{
    margin: 10px 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #1d4200;
}

.card-footer i{
    font-size: 18px;
    cursor: pointer;
}

.card-footer i:hover {
    color: #1d4200;
}

.card-arreglo-nombre{
    display: flex;
    justify-content: space-between;
    flex-flow: wrap;
    margin-bottom: 5px;
}

.card-arreglo-categoria{
    display: none;
}

.btn-filtro:hover{
    background-color: #1d4200;
    color: white;
}

.btn-borrar-filtro:hover {
    background-color: #1d4200;
    color: white;
}

.accordion {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ebeeef;
    border-radius: 8px;
}

.accordion-header {
    background-color: #f1f1f1;
    color: #1d4200;
    cursor: pointer;
    padding: 18px 18px;
    border: none;
    outline: none;
    transition: background-color 0.3s;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #e2e2e2;
}

.accordion-content {
    background-color: #fff;
    font-size: 16px;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion-content ul {
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 18px;
}

.accordion-content:hover {
    overflow-y: auto;
}

.accordion-content ul li{
    position: relative;
    list-style: none;
}

.accordion-content.show {
    max-height: 200px;
}

.checkbox-container{
    margin: 20px 0px 20px 20px;
}

.custom-checkbox-container {
    display: inline-block;
    align-content: center;
    cursor: pointer;
    user-select: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: black;
    z-index: 50;
}

.categoria-id{
    margin-left: 20px;
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkmark {
    position: absolute;
    height: 14px;
    width: 14px;
    background-color: white;
    border-radius: 2px;
    border: 2px solid #1d4200;
    z-index: 20;
}

.custom-checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox:checked+.custom-checkmark::after {
    display: block;
}

.custom-checkmark::after {
    left: 4px;
    top: 0px;
    width: 2px;
    height: 6px;
    border: solid #1d4200;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.price-range{
    padding: 18px;
}

#label-price{
    display: flex;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    
    color: black;
    justify-content: space-between;
    margin-bottom: 8px;
}

#label-price > i{
    font-style: normal;
}

.price-range #price{
    width: 100%;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: #eeeeee;
    border-radius: 5px;
    height: 6px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 4px solid #1d4200;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 8px;
    height: 8px;
    background-color: white;
    border: 4px solid #1d4200;
    border-radius: 50%;
    cursor: pointer;
}

.dialog-modal {
    position: fixed;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.dialog-modal.opening {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.dialog-modal.closing {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.icon-close-modal{
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
}

.img-modal{
    margin: 7px;
}

.img-modal img{
    display: block; 
    width: 100%;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-modal img:hover{
    transform: scale(1.2);
}

.box-modal{
    display: grid;
    width: 580px;
    grid-template-columns: 2fr 1fr;
}

.form-modal{
    z-index: 100;
    background-color: white;
    align-content: center;
}

.info-modal{
    display: flex;
    color: #1d4200;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    flex-direction: column;
    padding: 20px;
    gap: 50px;
}

.name-arreglo{
    display: flex;
    justify-content: space-between;
}

.detalle-categoria{
    display: flex;
    justify-content: space-between;
}

.price-arreglo{
    margin-top: 8px;
    font-size: 14px;
}

.type-arreglo ul li{
    margin: 18px 0px 0px 25px;
}

.btn-ok-modal{
    border:none;
    width: 130px;
    height: 35px;
    border-radius: 50px;
    background-color: #1d4200;
    font-size: 15px;
    color: white;
    align-content: center;
    cursor: pointer;
}

.box-btn-modal{
    text-align: center;
}

.btn-ok-modal > i{
    margin-right: 10px;
    font-size: 20px;
}

.filtro-movil,#header-aside{
    display: none;
}

.icon-close-aside{
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
}

#menu-filtro.activo-menu-filtro{
    right: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 100;
}

/* Cuando el menú está activo, el overlay se muestra */
#overlay.activo-menu-filtro {
    opacity: 1;
    visibility: visible;
}



.mensaje-ayuda{
    font-family: 'Open Sans', sans-serif;
    background: #dde9d3f3;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
}

.mensaje-ayuda a {
    color: #1d4200;
    font-weight: bold;
}




@media (max-width: 875px) {

    .filtro-movil {
        display: flex;
        flex-wrap: row wrap;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: 30px;
    }
    
    .btn-cerrar-filtro {
        display: block;
    }

    #header-aside{
        display: block;
        text-align: center;
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        padding-bottom: 20px;
        margin-bottom: 10px;
        line-height: 1.5;
        align-content: center;
        border-bottom: 1px solid #ccc;
    }

    #menu-filtro {
        position: fixed;
        top: 0;
        right: -100%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        z-index: 101;
        padding-top: 30px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .accordion-content{
        overflow-y: auto;
    }

    .grid-catalogo {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 750px) {

    #cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        justify-items: center;
        gap: 30px 15px;
        padding: 20px;
        width: 100%;
        max-width: 749px;
        margin: 0 auto;
    }

    .card-arreglo {
        width: 260px;
        height: 330px;
        padding: 12px;
        background: white;
        border-radius: 10px;
        box-shadow: 0px 2px 25px #dfdfdf;
        cursor: pointer;
    }
}

@media (max-width: 630px) {

    #cards-container {
        grid-template-columns: 1fr 1fr;
        padding: 0px;
    }

    .card-arreglo {
        width: 100%;
    }

}


@media (max-width: 590px) {
    .box-modal {
        max-width: 300px;
        grid-template-columns: 1fr;
    }
    .info-modal {
        gap: 15px;
    } 
}

@media (max-width: 480px) {
    #cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 338px) {
    .dialog-modal[open] {
            width: 100%;
    }
    .box-modal {
            width: 100%;
    }
}
