/* Ajax Ascora Search Form */
#as-wc-searchform .search-input-group {
    display: flex;
    margin: 10px 0;
    background: #ffffff;
    border-color: #E6E6E6;
    border: 2px solid #e6e6e6;
    align-items: stretch;
    transition: border-color .3s;
    align-items: center;
}

#as-wc-searchform .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

#as-wc-searchform input[type="search"] {
    padding: 5px 10px;
    flex: 3;
}

#as-wc-searchform #s:focus {
    outline: none;
}

#as-wc-searchform #product_cat option {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#as-wc-searchform .search-submit {
    padding: 0 25px;
    box-shadow: none !important;
    border: none;
    cursor: pointer;
}

#as-wc-searchform input,
#as-wc-searchform select,
#as-wc-searchform button {
    border-radius: 0;
    border: 0;
    display: inline-block;
    height: 45px;
    cursor: pointer;
    margin: 0;
}

#as-wc-searchform .product_cat {
    position: relative;
    padding: 0 10px;
    background-color: #fff;
}

.product_cat::after {
    position: absolute;
    border-right: 2px solid #e6e6e6;
    width: 3px;
    height: 55%;
    content: "";
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* Woo Search */
.ascora-select-wrap {
    position: relative;
    max-width: 150px;
    min-width: 95px;
}

.ascora-selected {
    display: block;
    padding: 8px 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* hide native arrow but keep select functional */
.ascora-select-wrap select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* =========================================================
   ASCORA AJAX LIVE SEARCH – MERGED + CLEAN VERSION
   ========================================================= */

/* Wrapper must be relative */
.ascora-wc-product-search {
    position: relative;
    width: 100%;
}

/* Result box */
.as-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Matches form width */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    z-index: 900;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.as-search-results ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-search-results li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
}

.as-search-results li img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.as-search-results li:hover {
    background: #f9f9f9;
}

/* OLD ITEM STYLE (kept for compatibility) */
.as-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.as-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.as-item:hover {
    background: #f7f7f7;
}

/* =========================================================
   LOADING SPINNER ON INPUT
   ========================================================= */

/* Main input */
#s {
    padding-right: 40px;
    /* Spinner space */
    position: relative;
    /* Needed for ::after */
}

/* Loading active state */
#s.loading {
    cursor: wait;
}

#s {
    position: relative;
    padding-right: 40px;
}

/* Spinner element */

#s.loading {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"><path fill="%23000" d="M43.935,25.145c0-10.318-8.364-18.682-18.683-18.682c-10.318,0-18.682,8.364-18.682,18.682h4.068c0-8.071,6.543-14.614,14.614-14.614c8.071,0,14.615,6.543,14.615,14.614H43.935z"><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.8s" repeatCount="indefinite"/></path></svg>');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 10px center;
}

/* Woocommerce Header Style */
.ascora-woo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.ascora-woo-header .as-wo-search {
    flex: 1;
}

.ascora-woo-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-layout-woocommerce .ascora-woocommerce-menu-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header account icon */
.ascora-header-account {
    display: inline-block;
    margin-left: 20px;
    /* menu থেকে space */
}

.ascora-account-icon svg {
    width: 1.5em;
    height: 1.5em;
}

/* ---------------------------
   Ascora Mini Cart - Slide Out
----------------------------*/
#ascora-slide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: none;
    z-index: 998;
}

#ascora-slide-cart {
    width: 460px;
    height: 100vh;
    background: #fff;
    position: fixed;
    top: 0;
    right: -460px;
    transition: right .35s ease;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, .15);
}

.logged-in #ascora-slide-cart {
    top: 32px;
}

#ascora-slide-cart.active {
    right: 0;
}

.ascora-slide-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    float: right;
}

.ascora-mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ascora-mini-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mini-thumb img {
    width: 80px;
    border-radius: 6px;
    height: auto;
}

.mini-content {
    flex: 1;
}

.mini-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.mini-price-row {
    margin-bottom: 8px;
}

.mini-line-price {
    font-size: 15px;
    font-weight: 600;
}

.mini-short-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.mini-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mini-qty {
    width: 26px;
    height: 26px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
}

.mini-remove {
    color: #d00;
    font-size: 13px;
    text-decoration: underline;
}

.ascora-mini-footer {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.mini-btn {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.mini-btn.outline {
    border: 2px solid #000;
}

.mini-btn.primary {
    background: #0b2471;
    color: #fff;
}

.ascora-cart-icon {
    position: relative;
    cursor: pointer;
}

.ascora-cart-icon svg {
    width: 1.5em;
    height: 1.5em;
}

.ascora-cart-icon span {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: #260ab3;
    color: #fff;
    font-size: 12px;
    width: 20px;
    /* width & height same */
    height: 20px;
    display: flex;
    /* center text */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* makes it round */
}

.ascora-loading {
    padding: 40px;
    text-align: center;
    font-size: 16px;
    opacity: .6;
}

/* =========================================================
   Quick View Template
   ========================================================= */
/* Quick View */
.ascora-qv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
}

.ascora-quick-view-modal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ascora-qv-content {
    width: 900px;
    max-width: 90%;
    background: #fff;
    margin: 50px auto;
    padding: 25px;
    position: relative;
}

.ascora-qv-close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 24px;
}

.ascora-qv-wrapper {
    display: flex;
    gap: 20px;
}

.qv-left {
    width: 60%;
}

.qv-right {
    width: 40%;
}

.qv-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-swiper {
    width: 100%;
    height: auto;
}

.qv-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qv-swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.qv-swiper-pagination-bullet-active {
    background: #e74c3c;
}



/* fa-chevron-right */
.swiper-button-next.asp-next:after,
.swiper-button-prev.asp-prev:after {
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 16px;
    background: rgba(93, 90, 90, 0.8);
}

.qv-swiper-button-prev.swiper-button-prev::after,
.qv-swiper-button-next.swiper-button-next::after {
    background: rgba(93, 90, 90, 0.8);
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
}

/* Ascora-wishlist page */
.ascora-wishlist-wrapper {
    max-width: 900px;
    margin: 40px auto;
}

.ascora-wishlist-title {
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.ascora-wishlist-empty {
    text-align: center;
    padding: 40px 0;
}

.ascora-wishlist-empty i {
    font-size: 45px;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.ascora-wishlist-empty p {
    font-size: 18px;
    margin-bottom: 15px;
}

.ascora-wishlist-empty .ascora-btn {
    display: inline-block;
}

.ascora-wishlist-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 25px;
}

.ascora-wishlist-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
}

.wl-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wl-thumb img {
    width: 120px;
    height: auto;
    border-radius: 10px;
}

.wl-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.wl-price {
    font-size: 16px;
    margin-bottom: 10px;
}

.wl-actions {
    display: flex;
    gap: 10px;
}

.wl-actions .ascora-btn {
    padding: 8px 14px;
    border-radius: 6px;
}

.wl-remove i {
    font-size: 18px;
}

/* Ascora-mini Cart */

#ascora-mini-cart-wrapper .ascora-mini-footer {
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f7f7f7;
}

.ascora-wishlist-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* parent must be relative */
.ascora-wishlist-item {
    position: relative;
}

.loading-gif.hidden {
    display: none;
}

/* loading overlay / spinner */
.ascora-wishlist-item .loading-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-150%, -150%);
    width: 24px;
    /* চাইলে বড় করুন */
    height: 24px;
    z-index: 2;
}

/* Ascora Filter */
/* Ascora Filter */



/* Widgets */
.ascora-price-widget {
    margin: 15px 0;
}

.ascora-price-slider-widgets-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    align-items: center;
}

.ascora-button.widgets-button {
    margin-top: 0;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 400;
}

/* Widgets Slider */
.ascora-price-widget h3 {
    font-size: 1em;
    margin-bottom: 10px;
}

.ascora-price-widget .ui-slider-horizontal .ui-slider-handle {
    top: -.3em;
    background: #fff;
}

.ascora-price-widget .ui-slider .ui-slider-handle {
    width: .9em;
    height: .9em;
}

.ui-slider-horizontal {
    /* top: 0.3em !important; */
    background: #cfc5c5;
    height: 0.4em !important;
}

.ui-slider-horizontal .ui-slider-range {
    background-color: #34b9c8;
}

/* Category Mega Menu */
/* Category Mega Menu */
.ascora-mega-wrapper {
    position: relative;
}

.ascora-mega-wrapper .ascora-mega-trigger {
    background-color: #9b1e9d;
    color: #fff;
    padding: 10px 15px;
    font-size: 16px;
    min-width: 270px;
    cursor: pointer;
    position: relative;
}

.ascora-mega-wrapper .ascora-mega-trigger::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    opacity: 0.5;
    font-size: 15px;
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.ascora-mega-wrapper .ascora-mega-menu .mega-item>a {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0 15px;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-item.has-subcat>a::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    margin-inline-start: auto;
    opacity: 0.5;
    font-size: 15px;
}



.ascora-mega-wrapper .ascora-mega-menu .mega-item .mega-item-icon img {
    width: 18px;
    height: auto;
    margin-right: 18px;
}

.ascora-mega-wrapper .ascora-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    display: block;
}

.ascora-mega-wrapper:hover .ascora-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

}


.ascora-mega-wrapper .ascora-mega-menu .mega-item:hover {
    background-color: #e5e5e5;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-item {
    position: relative;
    min-width: 270px;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-sub {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translatex(-10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    display: flex;
    column-gap: 20px;
    padding: 20px;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-item:hover>.mega-sub {
    opacity: 1;
    visibility: visible;
    transform: translatex(0);
}


.ascora-mega-wrapper .ascora-mega-menu .mega-sub .sub-item {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-sub .sub-item .sub-item-img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-sub .sub-item .sub-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-sub .sub-item a {
    display: block;
    max-width: 200px;
}

/* যদি mega-sub এর ভেতরে কোথাও sub-item-img থাকে */
.mega-sub:has(.sub-item-img) .sub-item:not(:has(.sub-item-img))::before {
    content: "";
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    display: block;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-sub .sub-item .sub-sub-items {
    margin-top: 10px;
    margin-left: 5px;
}

.ascora-mega-wrapper .ascora-mega-menu .mega-sub .sub-item .sub-sub-items a {
    color: #838383;
    margin: 5px 0;
}

/* .sticky-header .header-layout-woocommerce .ascora-woocommerce-menu-center {
    display: none;
} */

/* Ascora Woocommerce Responsive header */
.ascora-responsive-woo-header .ascora-row {
    position: relative;
    align-items: center;
}

@media (max-width: 991px) {
    .acora-only-pc-woo-header {
        display: none;
    }
}

@media screen and (min-width: 991px) {
    .ascora-responsive-woo-header {
        display: none;
    }
}

/* Mobail Responsive Menu */
/* Mobail Responsive Menu */
.ascora-mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    min-width: 320px;
    background: #fff;
    transform: translateX(-100%);
    transition: .3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.logged-in .ascora-mobile-drawer {
    top: 32px;
}

.ascora-mobile-drawer.active {
    transform: translateX(0);
}

/* Header */
.ascora-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Tabs */
.ascora-mobile-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.ascora-mobile-tabs .tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: 0;
    font-weight: 600;
    opacity: .6;
}

.ascora-mobile-tabs .tab-btn.active {
    opacity: 1;
    border-bottom: 2px solid #000;
    border-radius: 0;
}

/* Content */
.ascora-mobile-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-tab-content {
    display: none;
}

.mobile-tab-content.active {
    display: block;
}

/* Overlay */
.ascora-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 1001;
}

.ascora-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

a.mobile-toggle {
    font-size: 22px;
}

/* Mobile Search */
/* Search Box */
.search-ascora-mobile .search-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #D8CCBA;
}

.search-ascora-mobile input {
    width: 100%;
    height: 44px;
    padding: 0 5px 0 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.search-ascora-mobile input:focus,
.search-ascora-mobile button:focus {
    outline: none;
}

/* submit icon */
.search-ascora-mobile .search-submit {
    background: none;
    border: 0;
    cursor: pointer;
}

/* Ascora-Mobile Menu */
.ascora-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ascora-mobile-menu li {
    position: relative;
    background: #ffffff;
    transition: background 0.25s ease;
    min-height: 40px;
    border-top: 1px solid #D8CCBA;
}

.ascora-mobile-menu ul.ascora-mobile-menu-list>li:last-child {
    border-bottom: 1px solid #D8CCBA;
}

.ascora-mobile-menu li.open {
    background: #f4f6f8;
    /* 👈 open হলে bg change */
}

.ascora-mobile-menu li a {
    line-height: 45px;
    padding-left: 16px;
}

.menu-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item-inner a {
    flex: 1;
    text-decoration: none;
}

.submenu-toggle {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.submenu-toggle:hover {
    background-color: #555;
}

.submenu-toggle i {
    transition: transform 0.25s ease;
}

li.open>.menu-item-inner .submenu-toggle i {
    transform: rotate(180deg);
}

.ascora-mobile-menu .sub-menu {
    display: none;
}

.ascora-mobile-menu ul ul li a {
    padding-left: 32px;
}

.ascora-mobile-menu ul ul ul li a {
    padding-left: 45px;
}

.ascora-mobile-menu ul ul ul ul li a {
    padding-left: 60px;
}

.ascora-mobile-menu ul ul ul ul ul li a {
    padding-left: 75px;
}

/* Category Mobail Menu */
/* basic */
.ascora-mega-menu a {
    display: block;
    line-height: 45px;
}

/* title row */
.ascora-mega-wrapper-mobaile .mega-title,
.ascora-mega-wrapper-mobaile .sub-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    background: #fff;
}

/* toggle */
.ascora-mega-wrapper-mobaile .submenu-toggle {
    width: 40px;
    text-align: center;
    cursor: pointer;
}

.ascora-mega-wrapper-mobaile .submenu-toggle i {
    transition: transform 0.3s ease;
}

/* sub menus hidden */
.ascora-mega-wrapper-mobaile .mega-sub,
.ascora-mega-wrapper-mobaile .sub-sub-items {
    display: none;
}

/* active state */
.ascora-mega-wrapper-mobaile .mega-item.active>.mega-title,
.ascora-mega-wrapper-mobaile .sub-item.active>.sub-title {
    background: #f3f3f3;
}

.ascora-mega-wrapper-mobaile .mega-item.active>.mega-title i,
.ascora-mega-wrapper-mobaile .sub-item.active>.sub-title i {
    transform: rotate(180deg);
}

/* indent */
.ascora-mega-wrapper-mobaile .sub-item a {
    padding-left: 32px;
}


.ascora-mega-wrapper-mobaile a.sub-sub-item {
    padding-left: 48px;
    line-height: 42px;
    display: block;
}

.ascora-mega-wrapper-mobaile .sub-sub-items {
    padding-left: 16px;
}

.ascora-mega-wrapper-mobaile .mega-title a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ascora-mega-wrapper-mobaile .mega-item.active>.mega-title .submenu-toggle,
.ascora-mega-wrapper-mobaile .sub-item.active>.sub-title .submenu-toggle {
    background-color: #838383;
}

.ascora-mobile-content li.open>.menu-item-inner>.submenu-toggle {
    background-color: #838383;
}