@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}
:root{
    --accent:orange;
}
a{
    text-decoration: none;
    color: inherit;
}
button{
    border: none;
    background-color: transparent;
    cursor: pointer;
}
.container{
    max-width: 1240px;
    padding:0px 20px;
    margin:0 auto;
}
.wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 90px;
}
.main{
    flex: 1;
}
.dn{
    display: none;
}
body{
    background-color: #f3f4f1;
}

/* ==== header ==== */
.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #f3f4f1;
    border-bottom: 1px solid #e5e6e3;
}
.header_wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    height: 90px;
    transition: height 0.3s ease;
}
.header_left{
    display: flex;
    align-items: center;
    gap: 20px;
}
.header_right{
    justify-content: flex-end;
    display: flex;
    align-items: center;
    gap: 20px;
}
.header_center{
    display: flex;
    justify-content: center;
}
.header_logo{
    display: block;
    width: 200px;
    transition: width 0.3s ease;
}
.header_logo img{
    width: 100%;
    object-fit: contain;
    display: block;
}
.search_btn{
    width: 25px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.burger{
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.search_btn svg,
.burger svg{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 1200px) {
    .header_nav_link{
        font-size: 16px;
    }
    .header_logo{
        width: 230px;
    }
}
@media (max-width:1000px) {
    .burger{
        display: block;
    }
    .header_nav{
        display: none;
    }
    .header_logo{
        width: 220px;
    }
}
@media (max-width:900px) {
    .header_logo{
        width: 200px;
    }
    .header_wrapper{
        height: 70px;
    }
    .wrapper{
        padding-top: 70px;
    }
}

/* ==== footer ==== */
.footer_wrapper{
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 160px;
}
.footer_left{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer_logo{
    width: 200px;
}
.footer_logo img{
    width: 100%;
    object-fit: contain;
}
.footer_desc{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #414141;
}
.footer_right{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    justify-content:end
}
.footer_col{
    display: flex;
    flex-direction: column;
    gap: 10px;

}
.footer_menu_title{
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}
.footer_menu_link{
    font-size: 16px;
    color: #000;
    transition: color 0.3s ease;
}
.footer_menu_link:hover{
    color: var(--accent);
}
.under_footer{
    margin-top: 25px;
}
.under_footer_wrapper{
    display: flex;
    justify-content: flex-start;
    padding: 20px 0;
    border-top: 1px solid #000;
}
.under_footer_text{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
}
@media (max-width:1200px) {
    .footer_right{
        gap: 40px;
    }
    .footer_wrapper{
        gap: 100px;
    }
}
@media (max-width:1000px) {
    .footer_wrapper{
        gap: 40px;
    }
    .footer_right{
        gap: 20px;
    }
}
@media (max-width:900px) {
    .footer_wrapper {
        grid-template-columns: 266px 1fr;
        gap: 50px;
    }
}
@media (max-width:820px) {
    .footer_wrapper{
        grid-template-columns: 1fr;
        row-gap: 40px;
    }   
}
@media (max-width:500px) {
    .footer_right{
        grid-template-columns: 1fr 1fr;
    }
    .footer_col:last-child{
        grid-column: 1 / 3;
    }
}
@media (max-width:350px) {
    .footer_right{
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
    .footer_col:last-child{
        grid-column: 1 / 2;
    }
}

/* ==== manufacturers ==== */
.manufacturer_wrapper{
    display: flex;
    padding: 50px 0px 100px 0px;
    flex-direction: column;
}
.manufacturer_title{
    font-size: 35px;
    font-weight: 600;
    color: #000;
}
.manufacturer_body{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.manufacturer_item{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    min-height: 100px;
    background-color: #f0f0f0;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-size: 22px;
    font-weight: 600;
    color: #000;
    text-align: center;
}
.manufacturer_item:hover{
    background-color: var(--accent);
    color: #fff;
}
.manufacturer_text{
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.manufacturer_text p{
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #414141;
}
@media (max-width:700px) {
    .manufacturer_wrapper{
        padding-top: 30px;
        padding-bottom: 80px;
    }
    .manufacturer_title{
        font-size: 30px;
    }
    .manufacturer_item {
        font-size: 20px;
    }
    .manufacturer_text{
        margin-top: 50px;
    }
    .manufacturer_body{
        margin-top: 30px;
    }
}
@media (max-width:500px) {
    .manufacturer_title {
       font-size: 28px;
    }
    .manufacturer_body{
        margin-top: 20px;
    }
    .manufacturer_body {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }
}

/* ==== home ==== */
.home_products{
    margin-bottom: 60px;
}
.home_products_head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0 20px 0;
}
.home_products_cats{
    display: flex;
    gap: 30px;
}
.home_products_cat_link{
    font-size: 16px;
    font-weight: 400;
    color: #000;
    transition: color 0.3s ease;
}
.home_products_cat_link.active{
    font-weight: 600;
}
.home_products_filter{
    display: flex;
    gap: 20px;
}
.home_products_filter_btn{
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}
.home_products_body{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    row-gap: 40px;
}
.home_products_item{
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.home_products_item:hover{
    transform: translateY(4px);
}
.home_products_item_img{
    height: 380px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home_products_item_img img{
    height: 100%;
    object-fit: contain;
    display: block;
}
.home_products_item_info{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0 0 0;
}
.home_products_item_raiting{
    display: flex;
    align-items: center;
    gap: 10px;
}
.home_products_item_raiting svg{
    width: 15px;
    height: 15px;
}
.home_products_item_title{
    font-size: 18px;
    font-weight: 400;
    color: #000;
}
.home_products_item_price{
    display: flex;
    gap: 10px;
}
.home_products_item_price_old{
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: line-through;
}
.home_products_item_price_new{
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.home_about{
    margin-bottom: 100px;
}
.home_about_wrapper{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.home_about_title{
    font-size: 35px;
    font-weight: 600;
    color: #000;
}
.products_page_pagination{
    padding-top: 30px;
}
.home_products_title{
    padding-bottom: 30px;
    font-size: 35px;
    font-weight: 600;
    color: #000;
}
.home_products_page_description{
    padding: 30px 0px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #000;
}