section.header {
    background-color: var(--products-background);
    padding: 40px 0 30px 0;
}

section.header .container {
    width: 95%;
    max-width: 1120px;
    margin: auto;
}

section.header .title {
    display: flex;
    gap: 100px;
    align-items: center;
}

section.header .title h1 {
    font-size: 40px;
    font-weight: 700;
}
section.header .title p {
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
    margin: 0;
}

section.header .categories {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 70px;
}

section.header .categories li {
    flex: calc((100% - 100px) / 6);
    flex-grow: 0;
    flex-shrink: 0;
}

section.header .categories li a{
    background-color: var(--background);
    width: 100%;
    display: block;
    padding: 35px 0 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    height: 100%;
    box-sizing: border-box;
}

section.header .categories li.more{
    background-color: var(--background);
    width: 100%;
    display: block;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 32px;
    font-weight: 100;
}

section.header .categories li.hidden {
    display: none;
}

section.header .categories li a img {
    max-width: 90px;
    max-height: 70px;
    margin-bottom: 10px;
}

section.header .categories li a h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

section.header .categories li a span {
    font-size: 12px;
    font-weight: 700;
    color: var(--category);
}

section.products {
    padding: 50px 0;
}

section.products h1 {
    font-size: 32px;
    font-weight: 700;
}

section.products ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

section.products ul li.product {
    box-sizing: border-box;
    border-radius: 30px;
    flex: calc(50% - 10px);
    flex-grow: 0;
    flex-shrink: 0;
    border: 1px solid var(--products-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 35px;
    overflow: hidden;
    gap: 30px;
}

section.products ul li.product h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

section.products ul li.product .features {
    display: flex;
    width: 80%;
    margin: auto;
}

section.products ul li.product .features .feature {
    box-sizing: border-box;
    border-right: 1px solid var(--products-border);
    flex: 25%;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

section.products ul li.product .features .feature img {
    height: 24px;
    object-fit: contain;
}

section.products ul li.product .features .feature:last-child {
    border: 0;
}

section.products ul li.product img {
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
}

section.pagination {
    padding: 0 0 100px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 300;
}

@media screen and (max-width: 600px) {
    section.header .container {
        max-width: calc(100% - 50px);
    }

    section.header .title {
        flex-direction: column;
        gap: 0;
        align-items: start;
    }

    section.header .title h1 {
        margin: 0 0 10px 0;
    }

    section.header .categories {
        flex-wrap: nowrap;
        overflow: auto;
        margin: 30px -25px 0 -25px;
        padding: 0 25px;
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
        scrollbar-width: none;  /* Firefox */
    }
    
    section.header .categories::-webkit-scrollbar { 
        display: none;  /* Safari and Chrome */
    }

    section.header .categories li {
        flex: 170px;
        flex-shrink: 0;
    }

    section.products ul li.product {
        flex: 100%;
    }

    section.products ul li.product .features {
        flex-wrap: wrap;
        row-gap: 30px;
    }

    section.products ul li.product .features .feature {
        flex: 50%;
    }
    
    section.products ul li.product .features .feature:nth-child(2n) {
        border: 0;
    }

    section.products ul li.product h3 {
        text-align: center;
    }

    section.products ul li.product img {
        max-height: 350px;
    }
}