@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP&display=swap');

:root {
    --main-bg-color: #421715;
    --contrast-color: #8A9B7C;
    --back-color: #F5F1E6;
    --font-size: 25px;
}

*{
     font-family: "LINE Seed JP", sans-serif;
}

.no_display{
    display: none !important;
}

header{
    color: white !important;
}

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex-grow: 100!important;
}

body{
    background-color: white  !important;
}

h2{
    font-size: calc(var(--font-size) - 3px) !important;
}

.bg-main-color {
    background-color: var(--main-bg-color) !important;
}

.bg-contrast-color {
    background-color: var(--contrast-color) !important;
}

.font-main-color {
    color: #0303B8 !important;
}

.font-contrast-color {
    color: #0303B8 !important;
}

.dropdown, .nav-link {
    color: #0303B8 !important;
    font-size: var(--font-size) !important;
}






/* Админ */
.green{
    color: green;
    text-align:center;
}

/* Header */
header{
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-bg-color);
    padding: 10px 5%;
    color: white;
}

#logo_block{
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo{
    width: 70px;
    height: 70px;
    margin: 0px 10px;
}

#logo_text{
    font-family: "Playfair Display SC", serif;
    font-weight: 600;
    font-size: calc(var(--font-size) + 5px);
    color: white;
}

#main_info div{
    margin: 0px 10px;
    /* color: #0303B8; */
}


/* Меню */

.navbar{
    width: 100% ;
    margin: auto ;
    margin-bottom: 15px;
    background-color: #6B2522 !important;
    /* background-color: #723B30 !important; */
}

.navbar button{
    background-color: transparent !important;
}

.sticky{
    position: fixed !important;
    top: 0px;
    z-index: 1000;
}

.navbar a{
    color: white !important;
}

.container-fluid{
    width: 90% !important;
}

.dropdown-divider{
    border: solid white 1px ;
}

.dropdown-menu{
    background-color: #723B30 !important;
}

.dropdown-menu li:hover{
    background-color: white !important;
}
.dropdown-menu li a{
    font-size: calc(var(--font-size) - 5px) !important;
}
.dropdown-menu li:hover a{
    color: #0303B8 !important;
}

#list{
    width: 30px;
    height: 30px;
}

/* Поиск */
#search_mob{
    display: none;
}

#search_mob input{
    display: none;
}

#search{
    width: 400px !important;
    margin: 0px 25px !important;
    justify-content: center;
    align-items: center;
}

#search input:focus{
    border: solid white 2px !important;
    outline: none !important;
}

#search input{
    padding-left: 10px;
    padding-right: 30px;
}

.form-control{
    border-radius: calc(var(--bs-border-radius) - 2px) !important;
}

#search button{
    width: 20px !important;
    height: 20px !important;
    padding: 10px;
    background: url(../img/search.svg) no-repeat 50%/cover;
    background-color: transparent !important;
    border: none !important;
    margin-left: -30px;
}


#not_found_search{
    margin: auto;
    text-align: center;
    color: red;
}
/*Тележка*/
#cart{
    position: fixed;
    left: 93vw;
    top: 88vh;
    width: 90px;
    height: 90px;
    border: dotted #6600CC 15px;
    background-color: #6600CC;
    border-radius: 100%;
    background: #6600CC url(../img/cart4.svg) 50%/contain no-repeat;
}

#cart:before{
    content: "0";
    top: -50px;
    left: -30px;
    font-size: 50px;
    font-weight: 900;
    width: 90px;
    height: 90px; 
    position: relative;
    text-shadow: 3px 3px 3px lightgray;
}

/* Все категории */
#all_category{
    width: 90%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
    cursor: pointer;
}

#all_category > div{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: stretch;
    margin-bottom: 15px;
    width: 24%;
    height: 370px;
    border-radius: 11px;
}

.name_category{
    height: 85px;
    padding: 10px;
    font-size: calc(var(--font-size) - 3px);
    color: white;
    font-weight: 600;
    background-color: rgba(0,0,0,0.5);
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

#category_apparat{
    background: #0303B8 url(../img/category_apparat.jpg) 50%/cover;
}

#category_equipment{
    background: #0303B8 url(../img/category_equipment.jpg) 50%/cover;
}

#category_pump{
    background: #0303B8 url(../img/category_pump.jpg) 50%/cover;
}

#category_equipmentAnimal{
    background: #0303B8 url(../img/category_equipmentAnimal.jpg) 50%/cover;
}

#category_watering{
    background: #0303B8 url(../img/category_watering.jpg) 50%/cover;
}

#category_chains{
    background: #0303B8 url(../img/category_chains.jpg) 50%/cover;
}

#category_components{
    background: #0303B8 url(../img/category_components.jpg) 50%/cover;
}

#category_other{
    background: #0303B8 url(../img/category_other.jpg) 50%/cover;
}

#no_category{
    display: none !important;
}


/* Товары */

#category{
    width: max-content;
    margin-left: 6%;
    background-color: var(--main-bg-color);
    color: white;
    padding: 10px 30px;
    font-size: var(--font-size) !important;
}

.flex{
    display: flex;
}

#product{
    width: 90%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.tovar{
    padding: 10px;
    background-color: #E9E1D5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:flex-start;
    margin: 10px 0.75%;
    width: 18.5%;
}

.foto_product{
    background-position: 50% 50%;
    background-size: cover;
    background-clip: border-box;
    background-repeat: no-repeat;
    width: 100%;
    height: 300px;
    display: block;
    margin: 0 auto;
    cursor: cell;
}

#zoom{
    display: none;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

#zoom img{
    display: block;
    width: 500px;
}

#zoom_text{
    width: 30%;
    color: white;
    font-size: var(--font-size);
    padding: 10px;
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
}
#zoom_dis{
    font-size: calc(var(--font-size) - 2px);
}
#zoom_price{
    margin-top: 10px;
    font-weight:600;
    font-size: calc(var(--font-size) + 1px);
}

#close_btn{
    display: none;
    position: fixed;
    top: 5vh;
    left: 90vw;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.btn-primary{
    background-color: var(--main-bg-color) !important;
    /* background-color: #0303B8 !important; */
    border-color: #723B30 !important;
}

.btn-outline-success{
    border: solid #4e583c 3px !important;
    color: #4e583c !important;
}

.product_info{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.description{
    /* height: 50px; */
}

.name{
    font-size: calc(var(--font-size) - 3px) !important;
    /* height: 50px; */
}

.price{
    font-size: calc(var(--font-size)) !important;
    color: #4e583c;
    font-weight: 600;
    /* height: 50px; */
}

tr .text-end{
    font-size: calc(var(--font-size) - 10px) !important;
    color: #4e583c;
    font-weight: 600;
    /* height: 50px; */
}

/* Корзина */

.cart-total-box button{
    background-color: var(--main-bg-color);
    color: white;
}

#cart_mob{
    display: none;
}

#cart_mob_no{
    display: block;
}


/* О нас */


.info_city{
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    height: 400px;
    margin-bottom: 15px;
    background-color: var(--main-bg-color);
    border: solid var(--main-bg-color) 10px;
}

.info_city h1{
    font-size: var(--font-size) !important;
}

.big_part{
    width: 70%;
    height: 100%;
}

.small_part{
    width: 30%;
    color: white;
    padding: 15px;
}

.city{
    font-size: calc(var(--font-size) + 10px) !important;
}

/*---------------------*/
#main_about_us{
    display: flex;
    width: 90%;
    margin: auto;
}

.right{
    width: 50%;
}

.left{
    width: 50%;
}

.two_cols{
    display: flex;
    justify-content: space-between;
}

#main_section{
    text-align: justify;
    width: 90%;
    margin: auto;
    font-size: var(--font-size)  !important;
}





/*footer*/

.footer {
  background-color: var(--main-bg-color);
  color: white;
}

.footer p, .footer li{
  color: white !important;
}

.footer a {
  color: white;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

#logo_block {
  cursor: pointer;
}

.cursor-pointer {
  cursor: pointer;
}



 /* Под категориями */
 
 #add{
    width: 95%;
    margin: auto;
    display: flex;
    height: 600px;
    margin-top: 50px;
 }
 
 #add_text{
    width: 35%;
    background-color: var(--main-bg-color);
    color: white;
    padding: 15px 30px;
 }
 
 #add_text h1{
    text-align: center;
    font-size: var(--font-size)  !important;
 }
 
  #add_text p{
    text-align: justify;
    font-size: calc(var(--font-size) - 7px)  !important;
 }
 
 #add_foto{
    width: 65%;
    background: url('../img/add.jpg') 50%/cover;
 }
 
@media screen and (min-width: 1650px) {
    .tovar{
        width: 15%;
    }
    
} 

@media screen and (max-width: 1650px) {
   #all_category{
       width: 100%;
   }
   
   .name_category{
        font-size: calc(var(--font-size) - 5px);
    }
    
    #add_foto {
        width: 65%;
        background: url(../img/add.jpg) 10% / cover;
    }
    
    #add_text {
        width: 45%;
    }
    
} 

@media screen and (max-width: 1500px) {
    #search{
        width: 300px !important;
    }
} 

@media screen and (max-width: 1450px) {
    #all_category{
       width: 90%;
    }
    
    #all_category > div{
       width: 32%;
       height: 300px;
    }
    
    #no_category{
        display: block  !important;
    }
   
   .name_category{
        font-size: calc(var(--font-size) - 5px);
    }
    
    #add {
        height: 400px;
        margin-top: 10px;
        flex-wrap: wrap;
        height: max-content;
    }
    
    #add_foto {
        width: 100%;
        background: url(../img/add.jpg) 50% 70% / cover;
        height: 550px;
    }
    
    #add_text {
        width: 100%;
    }
    
    .tovar{
        width: 23%;
    }
    
    td {
        max-width: 400px;
    }
    
    
} 

@media screen and (max-width: 1400px) {
    .small_part, .big_part{
        width: 100%;
        display: flex;
        justify-content: space-evenly;
    }
    .big_part{
        height: 300px;
    }
    .small_part br{
        display: none;
    }
    
     .small_part div{
         display: flex;
         flex-direction: column;
     }
    
    .info_city{
        flex-wrap: wrap;
        height: min-content;
    }
    
    #second_city{
        flex-direction: column-reverse;
    }
    
    .city{
        font-size: calc(var(--font-size) - 0px) !important;
    }
}

@media screen and (max-width: 1400px) {
    nav{
        flex-wrap: wrap !important;
    }
    #search{
        display: none !important;
    }
    #search_mob{
        width: 100%;
        display: flex;
        justify-content: center;
        
    }
    #search_mob input{
        display: block;
    }
    
     #search_mob input{
         width: 30%;
     }
     
     .collapse, .navbar-collapse{
         display: flex !important;
     }
     
     #search_mob button{
        width: 20px !important;
        height: 20px !important;
        padding: 10px;
        background: url(../img/search.svg) no-repeat 50% / cover;
        background-color: transparent !important;
        border: none !important;
        margin-left: -28px;
        margin-top: 11px;
     }
}


 
@media screen and (max-width: 1150px) {
    :root {
        --font-size: 20px;
    }

    header{
        padding: 10px 20px;
    }
    
    #logo{
        width: 50px;
        height: 50px;
        margin: 0px 5px;
    }
    
    #all_category{
       width: 100%;
    }
    
    #all_category > div{
       width: 32%;
       height: 250px;
    }
    
    #no_category{
        display: block !important;
    }
    
    .name_category{
        font-size: calc(var(--font-size) + 0px);
    }
    
      
    #add {
        height: 400px;
        margin-top: 10px;
        flex-wrap: wrap;
        height: max-content;
    }
    
    #add_foto {
        width: 100%;
        background: url(../img/add.jpg) 50% 60% / cover;
        height: 350px;
    }
    
    #add_text {
        width: 100%;
    }
    
    #add_text br{
        display: none;
    }
    
    #product {
        width: 100%;
    }
    
    td {
        max-width: 400px;
    }
    
    tr .text-end{
         font-size: calc(var(--font-size) - 5px) !important;
    }
    
    #search_mob input {
        width: 40%;
    }
}

@media screen and (max-width: 1000px) {
    :root {
        --font-size: 18px;
    }
    
    #all_category{
       width: 100%;
    } 
    
    #all_category > div{
       width: 32%;
       height: 250px;
    }
    
    #no_category{
        display: block !important;
    }
    
    .name_category{
        font-size: calc(var(--font-size) - 2px);
    }
    
     #add {
        height: 400px;
        margin-top: 10px;
        flex-wrap: wrap;
        height: max-content;
    }
    
    #add_foto {
        width: 100%;
        background: url(../img/add.jpg) 50% 60% / cover;
        height: 350px;
    }
    
    #add_text {
        width: 100%;
    }
    
    #add_text br{
        display: none;
    }
       
    .tovar{
        width: 30%;
    }
    
    td {
        max-width: 300px;
    }
    
    .container{
        max-width: 890px !important;
    }
    
    #search_mob input {
        width: 50%;
    }
    
    .dropdown-menu li a {
        font-size: calc(var(--font-size) - 3px) !important;
    }
    
    #zoom img{
        width: 400px;
    }

}


@media screen and (max-width: 800px) {
    :root {
        --font-size: 16px;
    }

    #logo{
        width: 40px;
        height: 40px;
    }
    
    #all_category{
       width: 100%;
       justify-content: space-between;
    } 
    
    #all_category > div{
       width: 32%;
       height: 150px;
    }
    
    #no_category{
        display: block !important;
    }
    
    .name_category{
        font-size: calc(var(--font-size) - 0px);
    }
    
    #add {
        height: 400px;
        margin-top: 10px;
        flex-wrap: wrap;
        height: max-content;
    }
    
    #add_foto {
        width: 100%;
        background: url(../img/add.jpg) 50% 60% / cover;
        height: 250px;
    }
    
    #add_text {
        width: 100%;
    }
    
    #add_text br{
        display: none;
    }
    
    .tovar{
        width: 48%;
    }
    
    td {
        max-width: 300px;
    }
    
    tr .text-end{
         font-size: calc(var(--font-size)) !important;
    }
    
    .container{
        max-width: 800px !important;
    }
    
    
    #cart_mob_no{
        display: none;
    }
    
    #cart_mob{
        display: block;
    }
    
    #cart_mob img{
        width: 200px;
    }
    
    .cart_tovar{
        display: flex;
    }
    
    #search_mob input {
        width: 60%;
    }
    
    #zoom img{
        width: 300px;
    }
    
}
@media screen and (max-width: 650px) {
    :root {
        --font-size: 16px;
    }
    
    main{
        /* padding: 0px; */
    }
    
    .info_city {
        width: 95%;
        border: solid var(--main-bg-color) 3px;
    }

    #logo{
        width: 40px;
        height: 40px;
    }
    
    #all_category{
       width: 100%;
       justify-content: space-between;
    } 
    
    #all_category > div{
       width: 48%;
       height: 150px;
    }
    
    #no_category{
        display: none !important;
    }
    
    .name_category{
        font-size: calc(var(--font-size) - 0px);
    }

    
    #add_foto {
        width: 100%;
        background: url(../img/add.jpg) 50% 60% / cover;
        height: 200px;
    }
    
    .tovar{
        width: 48%;
    }
    
    #search_mob input {
        width: 90%;
    }
   
    #zoom img{
        width: 200px;
    }
    
    #zoom_text{
        width: 50%;
    }
    
    #close_btn {
        top: 30vh;
        left: 90vw;
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 550px) {
    :root {
        --font-size: 16px;
    }

    #logo{
        width: 30px;
        height: 30px;
    }
    
    #logo_block,#main_info{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }
    
    #logo_block br {
      display: none;
    }
    
    header{
        flex-wrap: wrap;
        padding: 5px;
    }
    
    .small_mob_no{
        display: none;
    }
   
    #cart_mob img {
        width: 150px;
    }
}