section.header {
    background-color: var(--products-background);
    padding: 30px 0;
}

section.header .container {
    width: 95%;
    max-width: 1120px;
    margin: auto;
    display: flex;
}

section.header .container .title {
    flex: 50%;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section.header .container .title h1 {
    font-size: 46px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 10px;
}

section.header .container .details {
    flex: 50%;
    flex-shrink: 0;
    flex-grow: 0;
    height: 500px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

section.header .container .details .term-feature {
    flex: calc((100% - 35px) / 8);
    width: calc((100% - 35px) / 8);
    height: calc((100% - 35px) / 8);
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

section.header .container .details .term-feature .item {
    border-radius: 30px;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: default;
    transition: width 0.2s, height 0.2s;
}

section.header .container .details .term-feature .item:hover {
    width: 20px;
    height: 20px;
}

section.header .container .details .term-feature .item:hover img {
    filter: contrast(0) brightness(100);
}

section.header .container .details .term-feature .item:hover ~ .description {
    display: block;
}

section.header .container .details .term-feature .item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

section.header .container .details .term-feature .item span {
    font-size: 16px;
    font-weight: 400;
}

section.header .container .details .term-feature .description {
    position: absolute;
    bottom: 60px;
    display: none;
    width: 230px;
    border-radius: 10px;
    background-color: var(--background);
    box-shadow: 0 0 10px 0 var(--products-category-feature-description);
    padding: 15px;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}


section.header .container .details .term-feature .description p {
    margin-bottom: 0;
}
section.header .container .details .term-feature .description .title {
    font-size: 20px;
    font-weight: 600;
}

section.header .container .title p {
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
}

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.wide {
    flex: 100%;
    flex-grow: 0;
    flex-shrink: 0;
    flex-direction: row;
    padding: 20px 0;
    gap: 20px;
}

section.products ul li.product.wide .details {
    padding-left: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

section.products ul li.product.wide>* {
    flex: calc(50% - 10px);
    flex-grow: 0;
    flex-shrink: 0;
}

section.products ul li.product h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

section.products ul li.product.wide h3 {
    font-size: 42px;
}

section.products ul li.product.wide p {
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
    margin: 10px 0 20px 0;
}

section.products ul li.product .features {
    display: flex;
    width: 80%;
    margin: auto;
}

section.products ul li.product.wide .features {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
}

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.wide .features .feature {
    border-right: 0;
    flex: 50%;
    flex-direction: row;
    font-size: 24px;
    font-weight: 900;
    padding: 30px 0;
    border-bottom: 5px solid var(--products-wide-features-separator);
}

section.products ul li.product .features .feature img {
    height: 24px;
    object-fit: contain;
}

section.products ul li.product.wide .features .feature img {
    height: 32px;
}

section.products ul li.product .features .feature:last-child {
    border: 0;
}

section.products ul li.product .features .feature:nth-last-child(-n+2) {
    border-bottom: 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 .title {
        flex: 100%;
    }

    section.header .container .details {
        display: none;
    }
    
    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 p {
        max-width: calc(100% - 50px);
        text-align: center;
    }

    section.products ul li.product.wide .features .feature {
        border-right: 1px solid var(--products-border);
        font-size: unset;
        font-weight: unset;
        padding: unset;
        border-bottom: 0;
    }

    section.products ul li.product .features .feature:nth-child(2n) {
        border: 0;
    }

    section.products ul li.product img {
        max-height: 350px;
    }

    section.products ul li.product.wide {
        flex-direction: column;
        padding: 35px 0 0 0;
    }
    
    section.products ul li.product.wide .details {
        padding: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    section.products ul li.product.wide>* {
        flex: unset;
    }

    section.products ul li.product.wide h3 {
        font-size: 32px;
    }
    
    section.products ul li.product.wide p {
        font-size: unset;
        font-weight: 400;
        line-height: 23px;
        margin: unset;
    }
    
    section.products ul li.product h3 {
        text-align: center;
    }
    
    section.products ul li.product.wide .features {
        width: 80%;
        margin: auto;
        flex-wrap: wrap;
    }
}