@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    line-height: 150%;
    color: var(--primary);

    --primary:#272A33;
}

.limiter{
    max-width: 1440px;
    margin: 0 auto;
}

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav .menuList{
    display: flex;
    gap: 80px;

    a{
        font-size: 16px;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.3s ease;

        &:hover{
            color: #ee753e;
        }
    }
}

.main{
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 80px 0;

    
    h2{
        text-transform: uppercase;
        font-size: 36px;
        font-weight: 700;
    }

    section{
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}

.btn{
    width: fit-content;
    padding: 8px 30px 12px;
    border: none;
    border-radius: 8px;
    color: #FFF;
    background-color: var(--primary);
    cursor: pointer;
    transition: background-color 0.3s ease;

    font-size: 18px;

    &:hover{
        background-color: #ee753e;
    }
}

.productCards{
    display:flex;
    flex-wrap: wrap;
    gap: 30px;

    .card{
        max-width: 705px;
        width: 100%;
        display:flex;
        border: 1px solid #E0E6ED;
        border-radius: 8px;

        .productImage{
            width: 220px;
            background-color: #EEF3F8;
            overflow: hidden;
            flex-shrink: 0
        }

        .cardInfo{
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 30px;

            .productName{
                font-size: 18px;
            }

            .availability{
                display: flex;
                align-items: center;
                gap: 10px;

                .availabilityIcon{
                    height: 18px;
                    
                    &.available svg{
                        fill: #4FCF36;
                    }

                    &.order svg{
                        fill: #ee753e;;
                    }

                }
                
            }

            .productAbout{
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

        }
    }
}

.catalogBtn{
    margin: 0 auto;
}

.aboutCompany{
    display: flex;
    gap: 30px;

    .companyImgs{
        display: grid;
        grid-template-columns: repeat(2, 335px);
        grid-template-rows: 202px auto;
        gap: 30px;

        div:nth-child(1){
            grid-area: 1 / 1 / 2 / 3;
            background-image: url("./img/about1.png");
            background-repeat: no-repeat;
            background-size: contain;
        }

        div:nth-child(2) {
            grid-area: 2 / 1 / 3 / 2;
            background-image: url("./img/about2.png");
            background-repeat: no-repeat;
            background-size: contain;
        }
        
        div:nth-child(3){
            grid-area: 2 / 2 / 3 / 3;
            background-image: url("./img/about3.png");
            background-repeat: no-repeat;
            background-size: contain;
        }
    }

    .companyInfo{
        display: flex;
        flex-direction: column;
        gap: 30px;

        .aboutText{
            display: flex;
            flex-direction: column;
            gap: 20px;

            .bulletPoint{
                display: flex;
                align-items: center;
                gap: 15px;

                svg{
                    fill: #ee753e;
                    width: 24px;
                    height: 24px;
                    flex-shrink: 0;
                }
            }
        }
    }
}

.mobile{
    display: none;
}

.burgerMenu{
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF;
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
}

@media screen and (max-width: 1440px) {
    .limiter{
        max-width: 1160px;
    }
    
    .productCards .card{
        max-width: 565px;
    }
    
    .aboutCompany .companyImgs{
        grid-template-columns: repeat(2, 270px);
        grid-template-rows: 162px auto;
    }
}

@media screen and (max-width: 1160px) {

    .limiter{
        max-width: 768px;
    }

    .header{
        padding: 15px 0;
        position: relative;
    }

    .nav .menuList{
        display: none;
        position: absolute;
        left: 0;
        top: 80px;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: #FFF;

        a{
            padding: 20px 0;
            border-bottom: 1px solid #D5DFE9;
        }
    }

    .nav .mobile{
        display: block;
    }

    .main{
        padding: 50px 0;
        gap: 50px;
    }
    
    .productCards .card{
        max-width: 100%;
    }
    
    .aboutCompany{
        flex-direction: column;

        .companyImgs{
            grid-template-columns: repeat(2, 367px);
            grid-template-rows: 220px 176px;
        }
    }   
}

@media screen and (max-width: 768px) {
    .limiter{
        max-width: 576px;
    }
    
    
    .aboutCompany{
        flex-direction: column;

        .companyImgs{
            grid-template-columns: repeat(2, 275px);
            grid-template-rows: 165px 132px;
        }
    }   
}

@media screen and (max-width: 576px) {
    .limiter{
        max-width: 360px;
    }

    .productCards {
        gap: 20px;
    }
    .productCards .card{
        max-width: 100%;
        width: 170px;
        flex-direction: column;

        .productImage, .productImage img{
            width: 170px;
            height: 170px;
        }

        .cardInfo{
            padding: 10px;
            gap: 10px;

            .btn{
                width: 100%;
            }

            .productName, .btn{
                font-size: 16px;
            }

            .availability{
                font-size: 14px;
            }
        }
    }
    
    .aboutCompany{
        flex-direction: column;

        .companyImgs{
            grid-template-columns: repeat(2, 172px);
            grid-template-rows: 103px 82px;
            gap: 15px;
        }
    }   
}

