/* Тут стили специфичные для проекта */

.tepl_half_link_orange_hover_green{
    border-bottom: 1px dashed #d9b048;
    color: #d9b048;
    font-size: 21px;
    text-decoration: none;
    cursor: pointer;
}
.tepl_half_link_orange_hover_green:hover,
.tepl_half_link_orange_hover_green:focus,
.tepl_half_link_orange_hover_green:focus:hover{
    text-decoration: none;
    color: #32cd32;
    border-bottom: 1px dashed #32cd32;
}
.tepl_half_link_orange_hover_green:hover .md_arrow_bottom{
    border-color: #32cd32;
}


/* Плитка каталога */
/* на маленькой ширине они меньше чтобы влазили 2 колонки */
/* от 360 пикселей ширины */
.tepl_catalog_tile{
    box-shadow: 0 0 4px rgba(00, 0, 250, 0.25);
    min-width: 160px;
    max-width: 160px;
    min-height: 260px;
    max-height: 260px;
    margin: 5px;
    border: 1px solid lightgrey;
    border-radius: 10px;
    display: flex;
    align-items: baseline;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.tepl_catalog_tile:hover{
    box-shadow: 0 0 4px rgba(00, 0, 250, 0.75);
}
/* Когда правило для 550 было задано то */
/* при 545 3 столбца а при 555 - 2 столбца и лишь при 600 снова три */
/* поэтому задал праавило от 600 */
@media (max-width: 600px) {
    .tepl_catalog_tile{
        min-width: 150px;
        max-width: 150px;
        margin: 4px;
    }
}
@media (max-width: 390px) {
    .tepl_catalog_tile{
        /* При 145 140 не влазит на ширине 360, сделал 140 */
        min-width: 137px;
        max-width: 137px;
        margin: 3px;
    }
}


/* Кнопки фильтрации по категориям */
/* на маленькой ширине они меньше чтобы влазили 2 колонки */
/* от 360 пикселей ширины */
.tepl_cat_filter_button{
    white-space: nowrap;
    background-color: white;
    border-radius: 20px;
    padding: 5px;
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 10px;
    min-width: 230px;
    max-width: 230px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}
.tepl_cat_filter_button:hover{
    color: #d9b048;
    background-color: #404040;
}
.tepl_cat_filter_button_active{
    background-color: #404040;
    color: #32cd32;
}
.tepl_cat_filter_button_active:hover{
    color: #32cd32;
}
@media (max-width: 540px) {
    .tepl_cat_filter_button{
        font-size: 15px;
        min-width: 160px;
        max-width: 160px;
        padding: 5px;
        margin-right: 5px;
        margin-left: 5px;
        margin-top: 5px;
        text-align: left;
    }
}
@media (max-width: 390px) {
    .tepl_cat_filter_button{
        font-size: 14px;
        /* При 160 не влазит на ширине 370, при 150 не влазит, сделал 145 */
        min-width: 145px;
        max-width: 145px;
        padding: 4px;
        margin-right: 4px;
        margin-left: 4px;
        margin-top: 4px;
        text-align: left;
    }
}


/* Картинка на плитке */
/* на маленькой ширине они меньше чтобы влазили 2 колонки */
/* от 360 пикселей ширины */
.tepl_item_img{
    width: 120px;
    max-height: 150px;
    object-fit: contain;
}
@media (max-width: 390px) {
    .tepl_item_img{
        width: 100px;
        max-height: 150px;
        object-fit: contain;
    }
}


/* Цена товара на плитке */
/* "по запросу" не влазит на маленькой ширине, поэтому шрифнт меньше */
/* чтоб на 360 нормально смотрелось */
.tepl_item_tile_price{
    font-size: 16px;
    margin: 10px;
    line-height: 20px;
    max-height: 20px;
    overflow-x: hidden;
    overflow-y: hidden;
    color: red;
}
@media (max-width: 390px) {
    .tepl_item_tile_price{
        font-size: 14px;
    }
}


/* Шапка с 1050 переходит в компаткный режим */
.tepl_header_hided_before_1050{
}
@media (max-width: 1050px) {
    .tepl_header_hided_before_1050{
        display: none;
    }
}
.tepl_header_hided_after_1050{
    display: none;
}
@media (max-width: 1050px) {
    .tepl_header_hided_after_1050{
        display: flex;
    }
}

/* Лого и дескрипт чтобы на моб. норм смотрелись */
.tepl_logo_and_desript{
    display: flex;
    position: relative;
    flex-grow: 1;
}
@media (max-width: 540px) {
    .tepl_logo_and_desript{
        flex-direction: column;
    }
}
.tepl_logo_outer_div{
    width: 175px;
    position: relative;
}
@media (max-width: 540px) {
    .tepl_logo_outer_div{
        width: 135px;
    }
}
.tepl_descript_div{
    width: 230px;
    position: relative;
    margin-top: 21px;
}
@media (max-width: 540px) {
    .tepl_descript_div{
        width: auto;
        flex-grow: 1;
        margin-top: 0px;
        text-align: center;
    }
}
.tepl_descript_text{
    line-height: 17px;
    margin-left: 15px;
    margin-top: 15px;
    padding-right: 10px;
    color: #7d7d7d;
    font-size: 16px;
    font-weight: bold;
    max-width: 340px;
}
@media (max-width: 540px) {
    .tepl_descript_text{
        margin: 0px auto;
    }
}


.sv_menu_item{
    background-color: rgb(245, 245, 245);;
    border-radius: 25px;
    margin: 5px 10px;
}
.sv_menu_active{
    border-bottom: none;
}
.sv_menu_active .sv_menu_item{
    border-left: none;
}
.sv_menu_item:hover{
    background-color: lightgray;
    border-radius: 25px;
}