@media (max-width: 992px) {
    .new-top-mob-menu {
    background-color: #555050;
    /*height: 60px;*/
    position: fixed;
    width: 100%;
    padding: 0px 10px 0px 10px;
    z-index: 1010;
    /*z-index: 1009;*/
    top: 0;
    left: 0;
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Додати тінь для стилю */
}
}

@media (min-width: 992px) {
    .new-top-mob-menu {
    display: none !important;
}
}
@media (max-width: 992px) {
    .mob-top-hide {
        display: none;
    }
}

/*@media (max-width: 767px) {
    .col-sm-12 .pos15 {margin-top: 62px;}
}*/

.search_fix_mob_new_top {
    width: 80%;
        /*margin-top: 7px;
        margin-bottom: 7px;*/}


body {
    margin-top: 60px; /* Зробити відступ під висоту фіксованого блоку */
}

@media (min-width: 992px) {
    .new-top-mob-menu {
        position: static; /* Відключити фіксацію для великих екранів */
        box-shadow: none;
    }
    body {
        margin-top: 0;
    }
}

.tr_menu-contact-top{
        position: relative;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: #e4071b;
    margin-left: 1.2rem;
    cursor: pointer;
    top: 8px;
}

.additional-tel-top-menu {
    line-height: 2.8rem;
    font-size: 2.8rem;
    position: absolute;
    font-size: 2.3rem;
    color: var(--color-white);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*.tr_menu-contact-top {
        min-width: 69px;
    margin-left: 0px;
        background-color: #ff6600;
    padding: 27px 27px;

}*/

/*@media (max-width: 992px) {
    .new-top-mob-menu .search_fix_mob {
        width: 85%;
    }
}*/

@media (max-width: 991px) {
    .fix-pc {
        display: none;
    }
}

#phone .drop-chats-icon-info {
    #phone .drop-icon-info {
    margin-left: 2px;
    position: absolute;
    top: calc(50% - 10px);
    text-align: center;
    width: 20px;
    height: 20px;
    background: #3f3f3f;
    border-radius: 50%;
    right: -23px;
    line-height: 14px;
}
}

    #phone2 {
    /* padding: 10px 0; */
    position: relative;
    padding: 10px 0px 0px 0px;
    right: 5px;
}

.top-chats {

    padding: 12px 15px !important;
    left: -170px;

}

@media (max-width: 991px) {
#search .categories{
    display: none;
}
}

@media (max-width: 992px) {
    .search_fix_mob_top {
        width: 100%;
        /*margin-top: 7px;
        margin-bottom: 7px;*/
    }
}

@media (max-width: 992px) {
#search .dropdown-menu.autosearch {
    top: 55px !important;
    left: 50% !important;
    transform: translate(-50%, 0%) !important;}
}


#mob-info-contact .contact-header .drop-contacts-top {
    display: block;
    position: relative;
    box-shadow: none;
    padding: 0px;
    width: 100%;
    margin-top: 0px;
}

@media (max-width: 992px) {

.header_mobile_logo {
        width: 40px;
    min-width: 40px;
    height: 40px;
    margin-right: 15px;
    overflow: hidden;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    margin-top: 10px;
    /*background-color: #379526;*/
    justify-content: center;
    align-items: center;
    display: flex;
border-radius: 4px;}

.header_mobile_logo img {
    max-width: 40px;
    min-height: 40px;
    -o-object-fit: contain;
    object-fit: contain;}
}

@media (max-width: 991px) {
    .header_v_1, 
    .container-top {
        display: none;
    }
}

@media (max-width: 991px) {
    .new-top-mob-menu .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        cursor: auto;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

@media (max-width: 991px) {
/*    .new-top-mob-menu .dropdown-menu {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 400px;
        background-color: #fff;
        z-index: 1000;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        overflow: visible;
        padding-top: 50px;
    }
}*/

.new-top-mob-menu .dropdown-menu {
    display: none;
position: fixed;
        bottom: 58px;
        left: 0;
        right: 0;
        background-color: #dddddd !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        overflow: visible;
        padding-top: 50px;
        top: auto;
        border-radius: 0.8rem;
        margin-left: 1.2rem;
        margin-right: 1.2rem;
        margin-bottom: 1.2rem;
        color: black;
}

@media (max-width: 991px) {
    .new-top-mob-menu .close-menu-btn {
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #ffffff;
        color: #000000;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1100;
    }
}

@media (max-width: 991px) {
    .new-top-mob-menu .close-menu-btn:hover {
        background-color: #ff4444;
    }
}

@media (max-width: 991px) {
#search .btn-lg {
    padding: 10px 10px;
    background-image: none;
    background-color: #000000;
    text-shadow: none;
    border: 1px solid #000000;
}
}

@media (max-width: 991px) {
.fa-search:before {
    color: white;}
}

.header_mobile_logo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header_mobile_logo.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Блокування прокручування сторінки */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Напівпрозорий фон для блокування натискань */
.menu-overlay-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1009;
    /*z-index: 1006;*/
}

.live-search {
    max-height: 300px; /* Обмежує висоту блоку */
    overflow-y: auto; /* Додає вертикальний скрол */
    overflow-x: hidden; /* Прибирає горизонтальний скрол */
    position: absolute; /* Відносне розташування для випадаючого списку */
    width: 100%; /* Ширина контейнера */
    background-color: #fff; /* Фон */
    border: 1px solid #ccc; /* Рамка */
    border-radius: 4px; /* Закруглення кутів */
    z-index: 9999; /* Пріоритет поверх інших елементів */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тінь */
}

.live-search ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.live-search ul li {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.live-search ul li:hover {
    background-color: #f9f9f9;
}

.live-search {
    -webkit-overflow-scrolling: touch; /* Плавний скрол для iOS */
    overflow-y: auto; /* Увімкнення вертикального скролу */
}





.live-search {
    position: relative; /* Для відносного розташування дочірніх елементів */
    max-width: 100%; /* Адаптивна ширина */
}

.live-search ul {
    max-height: 200px; /* Обмеження висоти списку */
    overflow-y: auto; /* Вертикальна прокрутка */
    margin: 0;
    padding: 0;
    list-style: none; /* Забираємо маркери списку */
}

@media (max-width: 991px) {
.live-search ul li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Лінія між елементами для наочності */
    }
}


@media (min-width: 992px) {
.live-search ul li .product-price .price {
    font-size: 20px;
    }
}

.live-search ul li a {
    color: #000000 ;
}

.live-search .result-text {
    background-color: #edfaea !important;
}

@media (min-width: 992px) {
.live-search ul li:last-child {
    border-bottom: none; /* Прибираємо лінію для останнього елемента */
    }
}

.live-search .view-all-results {
    color: #000000 !important;
}

.live-search ul li .product-name {
    margin-top: 10px;
}

.live-search .product-image img {
    width: 50px; /* Фіксована ширина зображення */
    height: 50px; /* Фіксована висота зображення */
    margin-right: 10px;
    object-fit: cover; /* Зберігаємо пропорції */
}

.live-search .product-name {
    flex: 1; /* Розтягуємо текст назви */
}

.live-search .product-price {
    margin-left: auto; /* Вирівнюємо ціну праворуч */
    font-weight: bold;
    color: #333;
}

.result-text {
    text-align: center ;
    margin-top: 10px;
}

.live-search ul li {
    min-height: 60px !important;
}

@media (max-width: 991px) {
.live-search ul li a {
    display: flex !important;
    }
.live-search ul li .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    font-size: 16px !important;
    display: grid;
    }
.live-search {
    position: fixed !important;
        margin-top: 55px !important;
    }
}

input[type="text"].form-control {
    font-size: 16px;
} 