section > header:not(.last-products header) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

section > header h1 {
    font-size: 2rem;
}

section > header .btn {
    padding: 0;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    background-color: var(--light-color);
    color: var(--main-color);
}

section > header .btn:hover {
    background-color: var(--hover-color);
    color: var(--light-color);
    transition: 0s;
}

section > header .btn i {
    line-height: 0;
}

section.products {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 5%;
}

@media (max-width: 992px) {
    section.products {
        display: flex;
        flex-direction: column-reverse;
    }

    section.products>main,
    section.products>aside {
        width: 95%;
        margin: 0 auto;
    }
}

.products main {
    grid-column: span 9;
    padding: 0;
}

.last-products {
    padding: 0rem 2rem;
}

.products-container {
    margin: 1rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.products-container .product {
    background-color: var(--light-color);
    box-shadow: 2px 2px 5px 5px #ddd;
}

.products-container .product:hover {
    box-shadow: 5px 5px 1px 1px var(--hover-color);
}

.products-container .product img {
    filter: grayscale(.8);
}

.products-container .product:hover img {
    filter: grayscale(0);
}

.products-container .product:hover header {
    color: var(--hover-color);
    transition: 0s;
}

.products-container .product .info {
    padding: .5rem 1rem;
}

.products-container .product .info a {
    display: flex;
    justify-content: flex-end;
    color: var(--second-color);
    text-decoration: underline;
}

.products-container .product .info a:hover {
    color: var(--hover-color);
}

@media (max-width: 992px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ASIDE STYLE */
.products aside {
    grid-column: span 3;
}

.products aside article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--light-color);
    height: fit-content;
    font-size: 1.1rem;
    font-weight: 600;
}

.products aside header {
    color: var(--font-color);
}

.products aside header h2 {
    flex-direction: row;
    justify-content: flex-start;
}

.products aside header h2 i {
    line-height: 0;
    margin: 0 .5rem;
}

.products aside article a {
    display: block;
}

.products aside article a i {
    margin: 0 .5rem;
}

@media (max-width: 1024px) {
    .products aside {
        margin-right: 0;
    }

    .products aside article {
        width: 100%;
        padding: 2rem 1rem;
    }
}

@media (max-width: 992px) {
    aside {
        display: none;
    }
}

/* PRODUCT */
main.product .image {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

main.product .image img {
    object-fit: cover;
    filter: grayscale(.8);
}

main.product .image img:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

main.product .image img:hover {
    filter: grayscale(0);
}

main.product article {
    padding: 2rem;
    background-color: var(--light-color);
}

main.product article header {
    font-size: 1.5rem;
}

main.product article p {
    font-size: 1.1rem
}

@media (max-width: 992px) {
    main.product {
        margin-top: 2rem;
    }
}

.table-products {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.table-products thead,
.table-products tr:nth-child(even) td {
    background-color: var(--light-color);
}

.table-products td,
.table-products th {
    padding: .5rem 1rem;
}

.table-products .btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.table-products .btn {
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
}

.table-products .btn:nth-child(1) {
    background-color: var(--dark-color);
}

.table-products .btn:nth-child(3) {
    background-color: rgb(247, 53, 53);
}

.table-products .btn i {
    line-height: 0;
}

.table-products tr:nth-child(even) {
    display: none;
}

.table-products tr:nth-child(even) td {
    padding: 2rem;

}

.table-products tr header {
    color: var(--dark-color);
}

.table-products .btn-delete {
    width: 20rem;
    display: flex;
    flex-direction: row;
    font-size: 1rem;
    gap: .5rem;
    padding: 1rem;
}

.table-products tr .btn:hover {
    background-color: var(--hover-color);
}