/* =========================
   MOBILE SEARCH PAGE
========================= */

.mobile-search-page {
    position: fixed;
    margin-top: 70px;
    inset: 0;
    background: rgb(248, 249, 250);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

.mobile-search-page.show {
    transform: translateX(0);
}

/* =========================
   TOP BAR
========================= */

.mobile-search-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

.mobile-back {
    border: none;
    background: none;
    font-size: 28px;
    padding: 0;
}

.mobile-search-input {
    flex: 1;
    height: 56px;
    background: white;
    border: 1px solid #ececec;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;

    transition: all 0.2s ease;
}

.mobile-search-input i {
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.2s ease;
}

.mobile-search-input input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
}

.mobile-search-input input::placeholder {
    color: #9ca3af;
}

/* When user clicks inside */
.mobile-search-input:focus-within {
    outline: none;
    border: none;
    box-shadow: none;
}

.mobile-search-input:focus-within i {
    color: #111;
}

/* =========================
   TABS
========================= */

.mobile-search-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

.mobile-search-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-search-tabs button {
    border: none;
    background: none;
    padding: 16px 20px;
    font-size: 17px;
    white-space: nowrap;
    color: #555;
}

.mobile-search-tabs button.active {
    color: black;
    font-weight: 600;
    border-bottom: 3px solid black;
}

/* =========================
   TOP CATEGORIES
========================= */

.mobile-categories {
    padding: 24px 20px;
}

.mobile-categories::before {
    content: "Popular searches";
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 18px;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #f0f0f0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.mobile-category-item span {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.mobile-category-item::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    margin-left: auto;
    font-size: 14px;
    color: #b0b0b0;
}



/* =========================
   CLOSE BUTTON CLEAR SEARCH MOBILE
========================= */
.mobile-clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e5e5e5;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.mobile-clear-search i {
    font-size: 18px;
}

.mobile-clear-search.show {
    display: flex !important;
}

.mobile-no-vendors {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}


.carousel-item img {
    width: calc(50% - 6px);
    height: 100%;
    object-fit: fill;
    border-radius: 15px;
}



@media (max-width: 768px) {
    .carousel-item img {
        width: 100%;
    }

    .carousel-item .d-flex img:last-child {
        display: none;
    }
}


/* Hide mobile page on desktop */
@media (min-width:769px) {
    .mobile-search-page {
        display: none !important;
    }
}

/*
@media (max-width:511px) {
    .vendor-search-bar {
        width: 130px;
    }

    .vendor-search-bar::placeholder {
        font-size: 15px;
        margin-right: 5px;
    }
} */


/* Mobile 
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 38px;
        height: 38px;
    }

    .carousel-control-prev {
        left: 12px;
    }

    .carousel-control-next {
        right: 12px;
    }
}*/