@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.megaSearchActionZone {
    .add_basket_box {
        justify-content: flex-end !important;
    }

    .action-zone {
        text-align: end;
    }
}

.action-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Sayfa arka plan overlay */
.background-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 998;
}

.background-overlay.active {
    opacity: 1;
}

.bx_shadow.overlay-active {
    z-index: auto !important;
}

.skeleton-li {
    height: 30px;
    margin: 8px 0;
    border-radius: 4px;
    background: linear-gradient(
            90deg,
            #eeeeee 25%,
            #dddddd 37%,
            #eeeeee 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    list-style: none;
}


.megaSearchContentScroll {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.megaSearchContentScroll::-webkit-scrollbar {
    width: 4px;
    border-radius: 20px;
    background-color: #e4e4e6;
    border-left: 1px solid #ffffff;

}

.megaSearchContentScroll::-webkit-scrollbar-thumb {
    background-color: #0b4979;
    border-radius: 20px;

    &:hover {
        background-color: #003c68;
    }

}

/*Default Css*/
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.search-wrapper {


    .col-md-4.stock .urun-kutusu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: row;
    }

    .quick_buton svg {
        margin: 0 !important;
    }

    .add_basket_box.no_stock a {
        background-color: #ffffff !important;
        border: 1px solid #6c757d !important;
    }

    .add_basket_box.no_stock a svg path {
        fill: #6c757d !important;

    }

    .no_stock .qty-plus-minus {
        border: 1px solid #6c757d !important;
        background-color: #6c757d !important;
        color: #ffffff !important;
    }

    .qty-plus-minus span {
        line-height: 37px;
        transition: .2s ease-in;
        font-size: 14px;
        color: #fff;
        font-weight: 700;
        text-align: center;
    }

    .btn.button-cart {
        position: relative;
    }

    .quick_buton .add_basket_box.no_stock .text-center .btn.button-cart:before {
        content: '';
        position: absolute;
        top: var(--special-top, -5px);
        left: 42%;
        width: 3px;
        height: var(--special-height, 44px);
        display: block;
        transform: var(--special-transform, rotate(44deg));
        background-color: #6c757d !important;
    }

    .quick_buton .add_basket_box .text-center {
        width: auto !important;
    }

    .qty-plus-minus {
        display: flex !important;
        align-items: center !important;
        border-radius: 7px 0 0 7px !important;
    }

    .product_s_flex .qty-plus-minus {
        margin: 0 !important;
        height: 35px;
    }

    .product_s_flex .add_basket_box a {
        border-radius: 0 7px 7px 0 !important;
        width: 100%;
        min-height: 35px;
    }
}


.search_cats ul {
    list-style: none;
}

#aramaSonuc h3 {
    padding: 0px 0px 5px !important;
}

div#aramaSonuc {
    padding: 10px;
    left: 0 !important;
    transform: translate(-14%, 3%);
}

div#aramaSonuc ul li ul li {
    float: left;
    margin-right: 10px;
}

div#aramaSonuc ul.first,
ul.category-search,
ul.category-search-right {
    display: inline-grid;
    width: 100%;
}

div#aramaSonuc ul li.first,
ul.category-search,
ul.category-search-right {
}

div#aramaSonuc a {
    padding: 10px;
}


div#aramaSonuc {
    z-index: 9999;
    top: 55px;
    border-radius: 10px;
    box-shadow: 20px 20px 20px 0px #0000006e;
    margin-top: 0px;
    left: 15px;
    width: 880px;
    position: absolute;
    right: 0;
    border: 1px solid #12468f;
    background-color: white;
    padding: 25px 15px 10px;
}


.see_all_content {
    position: relative;
    background: #fff;
    width: 100%;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    margin-top: .8rem;
    height: 53px;
}

.see_all_content_pos {
    justify-content: center;
    align-items: center;
    display: flex;
    width: 50%;
    height: 100%;
}

.see_all_content_pos .searche_2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    height: 70% !important;
    min-height: 33px;
    background-color: #12468f; /* Mavi buton */
    color: #fff;
    text-align: center;
    text-decoration: none; /* Alt çizgiyi kaldırır */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform ease 0.2s !important; /* Hover efekti için animasyon */
}

.stok {
    /* Arama sonuç stok arttırmayı sağa  kaydırır*/
    padding-left: 40px !important;
}

.see_all_content_pos .searche_2:hover {
    color: white !important;
    transform: scale(1.07); /* 1.5 kat büyüt */
}

.see_all_content i {
    -webkit-text-stroke: 1px #fff;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}


.search_products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-height: 500px;
    min-height: 180px;
    overflow-y: hidden;
    overflow-x: hidden;
}

.iconn {
    margin-left: 10px;
    color: #333;
}

#aramaSonuc .list-group-item {
    border: none;
}

#aramaSonuc .quantity {
    /* float: right;*/
    font-size: 11px;
}

#aramaSonuc_1 .list-group-item {
    border: none
}

#aramaSonuc_1 .quantity {
    float: right;
}

.list-group-item a.cat-category-name {
    font-size: 13px;
}

ul.child-cat {
    padding-left: 20px;
}


.template-liste-table td.product-fiyat {
    max-width: 70px;
}

.search {
    position: relative;
    display: flex;
    z-index: 999;
}


#aramaResim {
    width: 50px;
    position: absolute;
    top: 0;
    z-index: 9;
}


.no_stock .qty-plus-minus {
    margin: 0 !important;
}

/*Mobile search cards*/
.search-product-list {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    align-items: center;
    padding: .5rem;

    .search-product-item {

        border: 1px solid #103B96;
        border-radius: 6px;

        .search-product-row {
            display: grid;
            grid-template-columns: .2fr 1fr;
            gap: .5rem;
            align-items: center;
            padding: .5rem !important;

            * {
                margin: 0 !important;
                padding: 0 !important;
            }

            .search-product-image {
                position: relative;
                height: 80px;
                width: 80px;
                overflow: hidden;

                img {
                    height: 100%;
                    width: 100%;
                    object-fit: contain;
                    border-radius: 6px;
                    aspect-ratio: 1/1;
                }
            }

            .search-product-content {
                display: grid;
                grid-template-columns: 1fr;
                align-items: center;
                gap: .5rem;
                width: 100%;
                padding-left: 10px;

                .content-top {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 4px;

                    .search-product-brand {
                        font-size: 12px;
                        font-weight: 600;
                        color: #6c757d;
                        text-transform: uppercase;
                        letter-spacing: .3px;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        max-width: 50%;
                    }

                    .search-product-code {
                        font-size: 12px;
                        color: #999;
                        text-decoration: none;

                        b {
                            font-weight: 600;
                            color: #555;
                        }
                    }
                }

                .content-bottom {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: center;

                    .search-product-title {
                        font-size: 14px;
                        font-weight: 500;
                        color: #222;
                        line-height: 1.35;
                        text-decoration: none;

                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;

                        transition: color .2s ease;

                        &:hover {
                            color: #007bff;
                        }
                    }

                    .megaSearchActionZone {
                        width: 100%;

                        .quick_buton {
                            justify-content: flex-end;
                        }

                        .nostock_basket_box {
                            width: auto;
                        }


                        .action-zone {
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            margin-top: .5rem;
                            gap: .5rem;
                        }
                    }

                    .qty-plus-minus {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 6px 0 0 6px !important;
                    }
                    .button-cart {
                        width: 100% !important;
                        border-radius: 0 6px  6px 0 !important;

                    }
                }
            }

        }
    }

    .search-empty-result {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .5rem;
        gap: .5rem;

        p {
            margin: 0;
            text-align: center;
        }

        img {
            width: 100px;
        }
    }
}

/*Media Queries*/

@media (min-width: 1px) and (max-width: 1279px) {
    .d_special_none {
        display: none;
    }

    .tab_search_title li a {
        background-color: #fff;
        z-index: 0;
        width: 100%;
        text-align: center !important;
        display: inline-block;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    div#aramaSonuc {
        padding-top: 0;
        transform: unset;

        .tab_search_content.tab-content.overflow_sonuc {
            max-height: 55vh !important;
        }
    }
}

@media screen and (min-width: 1280px) and (max-width: 1440px) {
    div#aramaSonuc {
        width: 180%;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
    div#aramaSonuc {
        width: calc(150% - 45px);
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #aramaSonuc_1 {
        top: 40px;
        padding-left: 22px;
    }
}