/* Fix All Categories dropdown overlapping issue:
   Keep the search section above the primary menu
   and ensure the categories dropdown appears on top. */

.u-header .u-header__section {
    position: relative;
    z-index: 1010;
}

/* Keep the primary menu layer below the search/dropdown section */
.primary-menu-wide {
    position: relative;
    z-index: 1;
}

/* Ensure the All Categories dropdown stays above other header elements */
.custom-search-categories-select .dropdown-menu,
.custom-search-categories-select.bootstrap-select .dropdown-menu {
    z-index: 1050;
}





/* Sticky Header  */
#header {
    position: sticky;
    top: -32px;
    z-index: 1050;
    background: #fff;
    transition: box-shadow 0.2s ease;
}
#header.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Dynamic Theme Color */
/* bg-primary, btn-primary, border-primary */
.bg-primary {
    background-color: var(--color) !important;
}
.bg-primary:hover {
    background-color: var(--hover-color) !important;
}

.btn-primary {
    background-color: var(--color) !important;
    color: var(--text-color) !important;
    border-color: var(--color) !important;
}
.btn-primary:hover {
    background-color: var(--hover-color) !important;
}

.border-primary {
    border-color: var(--color) !important;
}

.text-primary {
    color: var(--text-color) !important;
}

/* End Dynamic Theme Color */



.cart-items-scroll {
    max-height: 330px;
    overflow-y: auto;
}

.cart-items-scroll::-webkit-scrollbar {
    width: 5px;
}

.cart-items-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.cart-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Buttons stay outside the scroll area */
.cart-actions {
    background: #fff;
}

.font-weight-medium { font-weight: 600; }




/* Add to Cart Button Spinner */
.cart-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cartSpinner 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes cartSpinner {
    to {
        transform: rotate(360deg);
    }
}




/* Header Search Bar */
.search-result-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    border: 1px solid #eee;
    z-index: 9999;
    max-height: 450px;
    overflow-y: auto;
}
.search-result-box::-webkit-scrollbar { width: 6px; }
.search-result-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

.sr-title {
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.sr-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
    text-decoration: none !important;
}
.sr-item:hover { background: #f4f8ff; color: #0d6efd; }

.sr-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #eee;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 12px;
}
.sr-info { min-width: 0; flex: 1; }
.sr-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-price { font-size: 13px; color: #e53935; font-weight: 700; }

.sr-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef3ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}
.sr-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    background: #fafafa;
    color: #0d6efd;
    position: sticky;
    bottom: 0;
}
.sr-footer:hover { background: #eef3ff; }
.sr-empty { padding: 30px 16px; text-align: center; color: #999; }

/*End Header Search Bar */



.u-sidebar {
    z-index: 2000 !important; /* header-er cheye beshi */
}

/* jodi backdrop/overlay thake */
.u-sidebar-backdrop,
.u-unfold-backdrop {
    z-index: 1999 !important;
}


/* Start CSS For Product Card 2 */
.product-card-actions .btn {
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
}
.product-card-actions .btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

/* End CSS For Product Card 2 */
