/* Search - Start */
.search-wrapper {
    display: flex;
    flex-grow: 1;
}
.search-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}
.search-wrapper.in-search .search-background {
    visibility: visible;
    pointer-events: all;
}
.search-wrapper .search-box .icon {
    content: "";
    position: absolute;
    top: 13px;
    /* Left - Right */
    left: initial;
    right: 14px;
    /* Left - Right */
    width: 17px;
    height: 17px;
    background: url(/wp-content/themes/shop/img/icons/black/search.svg) no-repeat center center;
    background-size: contain;
    /* filter: url(#primary-color); */
    transition: all 0.5s ease;
    cursor: pointer;
    z-index: 2;
}
.search-wrapper.in-search .search-box .icon {
    background: url(/wp-content/themes/shop/img/icons/black/close.svg) no-repeat center center;
    background-size: contain;
}
.search-wrapper .search-box .input {
    font-family: var(--font-family-1);
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    background: #f9f9f9;
    color: #676767;
    padding: 14px 14px 14px 14px;
    transform: translateY(0px);
}
.search-inline-pc {
    display: none;
}
.search-popup-mob {
    display: none;
}
.search-call-mob {
    display: none;
}
/* Search Result - Start */
#search-results {
    position: fixed;
    top: var(--header-height);
    display: flex;
    flex-direction: column;
    width: 628px;
    height: fit-content;
    min-height: 250px;
    max-height: 50vh;
    padding: 0 15px;
    background: var(--white);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: 0px 2px 5px rgb(0 0 0 / 10%);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2;
}
.no-result {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}
.category-tabs {
    position: sticky;
    top: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: calc(30px + 16px);
    padding: 15px 0;
    margin: 0 0 15px 0;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
	 z-index: 1;
}
.category-tabs::-webkit-scrollbar {
    height: 6px;
}
.category-tabs a {
    display: flex;
    color: #c7c7c7;
    min-width: max-content;
    font-size: 16px;
    line-height: 16px;
}
.category-tabs a.active,
.category-tabs a:hover {
    color: var(--primary);
}
.view-all-results {
    position: sticky;
    bottom: -1px;
    display: flex;
    padding: 15px 0;
    margin-top: auto;
    background: #fff;
}
.tab-content {
    display: flex;
}
.tab-pane {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.tab-pane.active {
    display: flex;
}
.product-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}
.product-item > a.product-link {
	display: flex;
	width: 50px;
}
.product-item > a.product-link > img {
    width: 50px;
    height: 50px;
	 min-width: 50px;
    object-fit: cover;
    border-radius: 5px;
}
.product-item > .product-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-grow: 1;
    gap: 15px;
}
.product-item .product-title-ajax {
    font-family: var(--font-family-1);
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: var(--black);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}
.product-item .price {
    margin-left: auto;
    margin-right: 10px;
    font-family: var(--font-family-2);
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
}
.product-item .quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
}
.product-item .quantity-wrapper .qty {
    width: 40px;
    height: 32px;
    padding: 5px 5px 3px 5px;
    text-align: center;
}
.product-item .quantity-wrapper .change {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    line-height: 18px;
    padding-top: 2px;
}
.product-item .quantity-wrapper .change:hover {
    background: #f8f8f8;
}
.product-item .add-to-cart-container .add_to_cart_button,
.added_to_cart {
    display: none;
}
.product-item .add-to-cart-container .btn.search-to-cart {
    height: 32px !important;
    width: 32px !important;
    padding: 0;
}
.product-item .add-to-cart-container .btn.search-to-cart span {
    display: none;
}

/* Search Result - Start */
@media (min-width: 1481px) {
    .search-inline-pc {
        position: relative;
        display: flex;
        width: 100%;
        z-index: 2;
    }
    .search-wrapper.in-search .search-background {
        visibility: visible;
        pointer-events: all;
    }
}
@media (max-width: 1480px) {
    .search-call-mob {
        display: flex;
        margin-left: auto;
        cursor: pointer;
        width: 26px;
        min-width: 26px;
    }
    .search-wrapper {
        position: fixed;
        display: flex;
        justify-content: center;
        width: 100%;
        z-index: 10;
    }
    .search-background {
        background: #00000000;
        backdrop-filter: blur(2px);
    }
    .search-background.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    .search-popup-mob {
        position: fixed;
        top: calc(var(--header-height) / 2);
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 60%;
        max-width: 800px;
        padding: 10px;
        border-radius: 10px;
        background: #f8f8f8;
        z-index: 2;
        display: flex;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .search-popup-mob.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    .search-popup-mob input {
        background: #fff;
    }
    .search-wrapper .search-box .icon {
        top: calc(14px + 10px);
        right: calc(14px + 10px);
    }
    #search-results {
        top: calc(var(--header-height) / 2 + 61px);
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .search-background {
        background: rgb(0 0 0 / 5%);
        backdrop-filter: blur(0px);
    }
    .search-popup-mob {
        top: var(--header-height);
        width: 100%;
        border-radius: 0px;
    }
    #search-results {
        top: calc(var(--header-height) + 61px);
        width: 100%!important;
        max-height: 70vh;
    }
    .product-item {
        align-items: flex-start;
    }
    .product-item > .product-content {
        gap: 5px 10px;
    }
    .product-item .product-title-ajax {
        width: calc(100% - 50px - 10px);
        padding-right: calc(32px + 10px);    
        font-size: 14px;
        line-height: 18px;
    }
    .product-item .price {
        margin-left: 0;
        margin-right: 60%;
        font-size: 14px;
        line-height: 14px;
    }
    .product-item .quantity-wrapper .change {
        height: 24px;
        width: 24px;
        font-size: 16px;
        line-height: 16px;
        padding-top: 2px;
    }
    .product-item .quantity-wrapper .qty {
        width: 24px;
        height: 24px;
    }
    .add-to-cart-container {
        position: absolute;
        top: 0;
        right: 0;
    }
}
/* Search - End */
