*{
    box-sizing: border-box;
}

main>div {
    padding: 0 5em;
}

#products {
    width: 100%;
}

.cards-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    .card {
        height: fit-content;
        width: 300px;
        cursor: pointer;
        overflow: hidden;
        margin: 0 auto;

        .img-container{
            overflow: hidden;
        }

        .card-img-top {
            height: 100%;
            border-radius: 0.75rem 0.75rem 0 0;
            overflow: hidden;
            transition: 0.2s ease;
        }

        .card-img-top:hover {
            transform: scale(1.3);
        }

        .card-body {
            padding: 1rem;
        }

        .btn_cart {
            background-color: var(--lime-green);
            color: white;
            width: 50px;
            margin-top: 5px;
            border: none;
            transition: 0.3s ease;

        }

        .btn_cart:hover {
            background-color: var(--dark-green);
        }
    }

}


.pagination {
    /* padding-left: 10em; */

    .page-item {
        .page-link {
            background-color: var(--lime-green);
            color: white;
            padding: 8px 16px;
            transition: background-color 0.3s ease;
            border: var(--black);
        }

        .page-link:focus {
            background-color: var(--medium-green);
            border: var(--black);
            color: white;
        }

        .page-link:hover {
            background-color: var(--light-green);
        }

        #first-page {
            border-radius: 30px 0 0 30px;
        }

        #last-page {
            border-radius: 0 30px 30px 0;
        }
    }
}

/* CSS para filtros estilo PCComponentes */
.filters {
    width: 250px;
    padding: 20px;
    height: min-content;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.filter-section {
    margin-bottom: 20px;
     
    & h2{
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
        color: #2c3e50;
    }
}

.filter-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

select,
input[type="number"] {
    width: 100%;
    padding: 3px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    cursor: pointer;
    color: #34495e;
}

.filter-section label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #949494;
    border-radius: 4px;
    margin-right: 8px;
    background-color: transparent;
    transition: background-color 0.3s, border-color 0.3s;
}

.filter-section label input[type="checkbox"]:checked {
    background-color: var(--lime-green, #27ae60);
    border-color: var(--lime-green, #00581b);
    box-shadow: inset 0 0 0 2px white;
}

.apply-filters {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.apply-filters:hover {
    background-color: #2ecc71;
}

.product {
    h2 {
        color: #00581b;
    }

    .img-container {
        overflow: hidden;
    }

    #mainImage {
        transition: 0.4s ease;
    }

    #mainImage:hover {
        transform: scale(2);
    }

    .prod-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: justify;
    }

    img {
        cursor: pointer;
    }

    .price {
        font-size: 2.5em;
        font-weight: 900;
        color: var(--light-green);
    }

    .btn-buy {
        display: flex;
        justify-content: end;
        gap: 25px;
    }

}

@media (width <=1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (width <=768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {



    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .d-md-flex {
        display: none !important;
    }

    .d-flex {
        justify-content: center;
    }

    .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 1068px) {
    #home {
        justify-content: start;
        padding: 5em 2em 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
        text-align: left;
    }

    h3 {
        text-align: left;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
    }

    main>div {
        padding: 0 0;
    }

    #filters {
        display: none;
    }

    .products {
        width: fit-content;
    }

    .pagination {
        width: min-content;
        margin: 25px auto;
        display: flex;
        flex-direction: row;
    }

   


}