/*
 * Bazarban /products -> Bazaro product-default.html visual layer
 * Scoped to .bb-products-page so existing storefront contracts stay intact.
 */

.bb-products-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
    --bb-black: #141414;
    --bb-text: #6d6868;
    --bb-muted: #8b8b8b;
    --bb-border: rgba(20, 20, 20, .10);
    --bb-soft: #f0efed;
    --bb-image-bg: #f5f5f5;
    --bb-sale: #de1518;
    --bb-status: #de1518;
    --bb-star: #ff9c05;
    color: var(--bb-text);
    background: #fff;
}

.bb-products-page *,
.bb-products-page *::before,
.bb-products-page *::after {
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .bb-products-page .container {
        max-width: 1410px !important;
    }
}

/* --------------------------------------------------------------------------
   Bazaro-style breadcrumb / hero
   -------------------------------------------------------------------------- */
.bb-products-hero {
    margin-top: 0 !important;
    background: var(--bb-soft);
    padding: 28px 0 34px;
    overflow: hidden;
}

.bb-products-hero__copy {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}

.bb-products-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 50px;
    font-size: 14px;
    color: rgba(20, 20, 20, .65);
}

.bb-products-breadcrumb a,
.bb-products-breadcrumb strong {
    color: inherit;
    font-weight: 400;
}

.bb-products-breadcrumb a:hover {
    color: var(--bb-black);
}

.bb-products-hero__title {
    margin: 0 0 8px;
    color: var(--bb-black);
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.3px;
}

.bb-products-hero__subtitle {
    margin: 0;
    max-width: 470px;
    color: rgba(20, 20, 20, .62);
    font-size: 15px;
    line-height: 1.8;
}

.bb-products-quick-categories {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
}

.bb-products-quick-category {
    flex: 0 0 auto;
    width: 104px;
    text-align: center;
    color: var(--bb-black) !important;
    text-decoration: none !important;
}

.bb-products-quick-category__media {
    width: 94px;
    height: 94px;
    margin: 0 auto 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 6px solid #fff;
    background: #dedbd7;
    color: var(--bb-black);
    font-size: 28px;
    font-weight: 700;
    transition: transform .3s ease, background .3s ease;
}

.bb-products-quick-category__media i {
    font-size: 24px;
}

.bb-products-quick-category__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.bb-products-quick-category__media.has-image {
    padding: 0;
}

.bb-products-quick-category:hover .bb-products-quick-category__media {
    transform: translateY(-4px);
    background: #d4d0cb;
}

.bb-products-quick-category__label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(20, 20, 20, .72);
}

/* --------------------------------------------------------------------------
   Main shop layout
   -------------------------------------------------------------------------- */
.bb-products-main {
    padding: 72px 0 80px;
}

.bb-products-main__row {
    margin-right: -25px;
    margin-left: -25px;
}

.bb-products-main__row > [class*="col-"] {
    padding-right: 25px;
    padding-left: 25px;
}

.bb-products-sidebar {
    position: relative;
}

.bb-products-sidebar__inner {
    position: -webkit-sticky;
    position: sticky;
    top: 22px;
}

/* Keep the desktop filter panel following the product list while scrolling.
   The max-height is important: a sticky element taller than the viewport can
   otherwise look like a normal static block and disappear with the page. */
@media (min-width: 1200px) {
    .bb-products-main__row {
        align-items: stretch;
    }

    .bb-products-sidebar {
        align-self: stretch;
        overflow: visible !important;
    }

    .bb-products-sidebar__inner {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 22px !important;
        max-height: calc(100vh - 44px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        padding-left: 6px;
    }

    .bb-products-sidebar__inner::-webkit-scrollbar {
        width: 5px;
    }

    .bb-products-sidebar__inner::-webkit-scrollbar-thumb {
        background: rgba(20, 20, 20, .18);
        border-radius: 999px;
    }
}

.bb-products-sidebar__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--bb-border);
}

.bb-products-sidebar__mobile-head h3 {
    margin: 0;
    color: var(--bb-black);
    font-size: 20px;
    font-weight: 700;
}

.bb-products-sidebar__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--bb-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Reset the old MDB accordion into Bazaro's minimal sidebar. */
.bb-products-sidebar .accordion-search,
.bb-products-sidebar .accordion-search .card,
.bb-products-sidebar .Categorization-of-results {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bb-products-sidebar .accordion-search .card {
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid var(--bb-border) !important;
    transition: margin-bottom .32s ease, padding-bottom .32s ease !important;
}

.bb-products-sidebar .accordion-search:last-child .card {
    margin-bottom: 0 !important;
}

.bb-products-sidebar .accordion-search .card-header {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.bb-products-sidebar .accordion-search .card-header > a {
    display: block;
    color: var(--bb-black) !important;
    text-decoration: none !important;
}

.bb-products-sidebar .accordion-search .card-header h5 {
    min-height: 34px;
    margin: 0 !important;
    padding: 0 0 16px !important;
    color: var(--bb-black) !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.bb-products-sidebar .accordion-search .card-header .rotate-icon {
    font-size: 13px;
    color: var(--bb-black);
}

.bb-products-sidebar .accordion-search .collapse,
.bb-products-sidebar .accordion-search .collapsing {
    border: 0 !important;
}

.bb-products-sidebar .accordion-search .card-body {
    padding: 0 !important;
    background: transparent !important;
}


/* Collapsible sidebar filter sections ------------------------------------------------ */
.bb-products-sidebar .accordion-search .card-header {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.bb-products-sidebar .accordion-search .card-header h5 {
    padding-left: 38px !important;
}

.bb-products-sidebar .bb-products-filter-toggle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bb-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease;
}

.bb-products-sidebar .bb-products-filter-toggle:hover,
.bb-products-sidebar .bb-products-filter-toggle:focus-visible {
    background: #f4f4f2;
    outline: none;
}

.bb-products-sidebar .bb-products-filter-toggle__icon {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transform-origin: center;
    transition: transform .22s ease;
}

.bb-products-sidebar .bb-filter-collapsed .bb-products-filter-toggle__icon {
    transform: rotate(-45deg) translate(0, 0);
}

.bb-products-sidebar .bb-filter-collapsed .card-header h5 {
    padding-bottom: 0 !important;
}

/* Smooth filter panel open/close. The JS animates the exact measured height so
   both native card bodies and legacy Bootstrap/MDB collapse panels behave alike. */
.bb-products-sidebar .bb-products-filter-panel,
.bb-products-sidebar .bb-products-filter-panel.collapse,
.bb-products-sidebar .bb-products-filter-panel.collapsing {
    display: block !important;
    overflow: hidden !important;
    opacity: 1;
    will-change: height, opacity;
    transition: height .34s cubic-bezier(.4, 0, .2, 1), opacity .22s ease !important;
}

.bb-products-sidebar .bb-products-filter-panel--no-transition {
    transition: none !important;
}

.bb-products-sidebar .bb-filter-collapsed > .bb-products-filter-panel {
    opacity: 0;
}

.bb-products-sidebar .bb-filter-collapsed.card {
    margin-bottom: 18px !important;
    padding-bottom: 18px !important;
}

@media (prefers-reduced-motion: reduce) {
    .bb-products-sidebar .bb-products-filter-panel,
    .bb-products-sidebar .accordion-search .card,
    .bb-products-sidebar .bb-products-filter-toggle__icon {
        transition: none !important;
    }
}

/* Category tree */
.bb-products-sidebar .category-list,
.bb-products-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-products-sidebar li {
    color: rgba(20, 20, 20, .70);
}

.bb-products-sidebar li a {
    color: inherit;
}

.bb-products-sidebar li a:hover,
.bb-products-sidebar li a.active {
    color: var(--bb-black);
}

/* Search widget */
.bb-products-sidebar .form_searchCategory {
    position: relative;
    display: flex !important;
    width: 100%;
    margin: 0 !important;
}

.bb-products-sidebar .form_searchCategory .input_search_all {
    width: 100% !important;
    height: 44px !important;
    padding: 0 42px 0 38px !important;
    border: 1px solid var(--bb-border) !important;
    border-radius: 4px !important;
    color: var(--bb-black) !important;
    background: #fff !important;
    box-shadow: none !important;
    text-align: right !important;
}

.bb-products-sidebar .form_searchCategory .btn_search_all {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 42px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--bb-black) !important;
}

.bb-products-sidebar .form_searchCategory #srchBoxEmpty {
    right: auto !important;
    left: 0 !important;
    margin-left: 0 !important;
}

/* Checkboxes */
.bb-products-sidebar .custom-control,
.bb-products-sidebar .brand-area {
    margin: 0 !important;
    padding: 0 !important;
}

.bb-products-sidebar .brand-area + .brand-area {
    margin-top: 10px !important;
}

.bb-products-sidebar .custom-control-label {
    position: relative;
    min-height: 22px;
    padding-right: 28px;
    padding-left: 0;
    color: rgba(20, 20, 20, .72);
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}

.bb-products-sidebar .custom-control-label::before {
    position: absolute !important;
    top: 2px !important;
    right: 0 !important;
    left: auto !important;
    width: 18px !important;
    height: 18px !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.bb-products-sidebar .custom-control-label::after {
    top: 2px !important;
    right: 0 !important;
    left: auto !important;
    width: 18px !important;
    height: 18px !important;
}

.bb-products-sidebar .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--bb-black) !important;
    background-color: var(--bb-black) !important;
}

/* Availability switch */
.bb-products-sidebar .switch {
    margin: 0;
}

.bb-products-sidebar .switch label {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: rgba(20, 20, 20, .72) !important;
    font-size: 14px !important;
}

/* Price slider - matched to Bazaro product-default */
.bb-products-sidebar .price-range-slider,
.bb-products-sidebar .aq-product-sidebar-widget-filter {
    margin-top: 4px !important;
    padding-top: 8px;
}

.bb-products-sidebar .range-bar,
.bb-products-sidebar .ui-widget.ui-widget-content,
.bb-products-sidebar .ui-slider {
    position: relative;
    height: 3px !important;
    margin: 10px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ededed !important;
    box-shadow: none !important;
}

.bb-products-sidebar .ui-slider-range,
.bb-products-sidebar .ui-slider-horizontal .ui-slider-range {
    height: 3px !important;
    background: var(--bb-black) !important;
}

.bb-products-sidebar .ui-slider-handle {
    top: -8px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    border: 5px solid var(--bb-black) !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.bb-products-sidebar .ui-slider-handle:focus,
.bb-products-sidebar .ui-slider-handle.ui-state-focus {
    outline: 0 !important;
}

.bb-products-sidebar .ui-slider-handle.ui-state-active {
    background: #fff !important;
}

.bb-products-sidebar .bb-products-price-filter__info,
.bb-products-sidebar .aq-product-sidebar-widget-filter-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    line-height: 1;
}

.bb-products-sidebar .bb-products-price-filter__info .input-range {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1;
}

.bb-products-sidebar .bb-products-price-filter__info .amount-range {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bb-black) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

.bb-products-sidebar .bb-products-price-filter__button,
.bb-products-sidebar .aq-product-sidebar-widget-filter-btn {
    flex: 0 0 auto;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 17px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f5f5f5 !important;
    color: var(--bb-black) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease !important;
}

.bb-products-sidebar .bb-products-price-filter__button:hover,
.bb-products-sidebar .bb-products-price-filter__button:focus-visible {
    background: var(--bb-black) !important;
    color: #fff !important;
    outline: 0 !important;
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */
.bb-products-toolbar {
    min-height: 50px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(20,20,20,.06);
}

.bb-products-toolbar__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bb-products-filter-button {
    height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: var(--bb-black);
    font-size: 13px;
    font-weight: 600;
}

.bb-products-filter-button:hover {
    color: #fff;
    border-color: var(--bb-black);
    background: var(--bb-black);
}

.bb-products-result-count {
    margin: 0 !important;
    color: rgba(20, 20, 20, .62) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.bb-products-layout-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.bb-products-layout-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: .42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease;
}

.bb-products-layout-button:hover,
.bb-products-layout-button.is-active {
    opacity: 1;
}

.bb-layout-icon {
    width: 19px;
    height: 17px;
    display: grid;
    gap: 2px;
}

.bb-layout-icon i {
    display: block;
    border: 1px solid var(--bb-black);
    background: transparent;
}

.bb-layout-icon--3 {
    grid-template-columns: repeat(3, 1fr);
}

.bb-layout-icon--2 {
    grid-template-columns: repeat(2, 1fr);
}

.bb-layout-icon--list {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
}

.bb-products-sort {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    justify-self: end;
}

.bb-products-sort label {
    margin: 0;
    color: rgba(20,20,20,.62);
    font-size: 13px;
    white-space: nowrap;
}

.bb-products-sort__select {
    width: auto !important;
    min-width: 160px;
    height: 34px !important;
    padding: 0 8px 0 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: var(--bb-black) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Product grid - aligned with Bazaro product-default.html
   -------------------------------------------------------------------------- */
.bb-products-grid {
    display: grid !important;
    column-gap: 25px;
    row-gap: 38px;
    width: 100%;
    margin: 0 !important;
}

.bb-products-grid.bb-layout-col-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-products-grid.bb-layout-col-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-products-grid.bb-layout-list {
    grid-template-columns: 1fr;
    row-gap: 24px;
}

.bb-products-grid .category_item,
.bb-products-grid .bb-products-grid-item {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    display: block !important;
}

.bb-products-page .bb-product-grid-card,
.bb-products-page .category-card-body {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default;
}

.bb-products-page .bb-product-card__media,
.bb-products-page .category-img-card-wrap,
.bb-products-page .bb-product-media-full {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 0.82 / 1 !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--bb-image-bg) !important;
}

.bb-products-page .category-img-card,
.bb-products-page .bb-product-image-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.bb-products-page .img-item-cate,
.bb-products-page .bb-product-image-full {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transition: transform .7s cubic-bezier(0, 0, .44, 1.18) !important;
}

.bb-products-page .bb-product-grid-card:hover .bb-product-image-full {
    transform: scale(1.045);
}

/* Hover actions - same 42x42 circular behavior as Bazaro, placed left per current Bazarban spec. */
.bb-products-page .bb-product-card__actions {
    position: absolute !important;
    top: 16px !important;
    left: 0 !important;
    right: auto !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-8px) !important;
    transition: all .3s ease !important;
}

.bb-products-page .bb-product-grid-card:hover .bb-product-card__actions {
    left: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.bb-products-page .bb-product-card__action {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--bb-black) !important;
    box-shadow: 0 1px 2px rgba(1,15,28,.20) !important;
    text-decoration: none !important;
    transition: background .25s ease, color .25s ease, transform .25s ease !important;
}

.bb-products-page .bb-product-card__action i {
    margin: 0 !important;
    color: inherit !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.bb-products-page .bb-product-card__action:hover,
.bb-products-page .bb-product-card__action.is-active {
    background: var(--bb-black) !important;
    color: #fff !important;
}

.bb-products-page .bb-product-card__action.is-loading {
    opacity: .55 !important;
    pointer-events: none;
}

/* Badges */
.bb-products-page .bb-product-card__badges {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 18 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    pointer-events: none !important;
}

.bb-products-page .bb-product-label {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 5px 11px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.bb-products-page .bb-product-label--discount {
    background: var(--bb-sale) !important;
}

.bb-products-page .bb-product-label--status {
    background: var(--bb-status) !important;
}

/* Card content */
.bb-products-page .bb-product-card__content,
.bb-products-page .category-main-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: transparent !important;
    text-align: right !important;
}

.bb-products-page .bb-product-rating {
    min-height: 16px;
    margin: 0 0 4px !important;
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--bb-star) !important;
    font-size: 12px !important;
}

.bb-products-page .bb-product-rating i {
    color: var(--bb-star) !important;
    font-size: 11px !important;
}

.bb-products-page .bb-product-card__category,
.bb-products-page .category-title-body-percent {
    min-height: 18px !important;
    margin: 0 0 3px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: rgba(20,20,20,.52) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.bb-products-page .bb-product-card__meta {
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 1 !important;
}

.bb-products-page .bb-product-card__title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: #2a2c2d !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}

.bb-products-page .bb-product-card__title:hover {
    color: var(--bb-sale) !important;
}

.bb-products-page .bb-product-card__price-wrap {
    min-height: 38px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: right !important;
    line-height: 1.35 !important;
}

.bb-products-page .bb-product-card__current-price {
    direction: rtl;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.bb-products-page .bb-product-card__price-wrap .num-text-price {
    color: var(--bb-black) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.bb-products-page .bb-product-card__price-wrap .text-price {
    color: rgba(20,20,20,.72) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

.bb-products-page .bb-product-card__price-wrap .num-price {
    margin-top: 2px !important;
    color: rgba(20,20,20,.48) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.bb-products-page .bb-product-card__price-message {
    color: rgba(20,20,20,.7);
    font-size: 12px;
    font-weight: 600;
}

/* Color swatches */
.bb-products-page .bb-product-swatches {
    min-height: 23px !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.bb-products-page .bb-product-swatch {
    position: relative !important;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    margin: 0 1px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(42,44,45,.12) !important;
    border-radius: 50% !important;
    background: #fff !important;
}

.bb-products-page .bb-product-swatch__fill {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 50% !important;
    transform: scale(.72) !important;
}

.bb-products-page .bb-product-swatch:hover {
    border-color: var(--bb-black) !important;
}

.bb-products-page .bb-product-swatch--more {
    width: auto !important;
    min-width: 21px !important;
    padding: 0 4px !important;
    border-radius: 11px !important;
    color: rgba(20,20,20,.6) !important;
    font-size: 10px !important;
}

/* List mode */
.bb-products-grid.bb-layout-list .bb-product-grid-card {
    min-height: 360px !important;
    display: grid !important;
    grid-template-columns: minmax(290px, 36%) 1fr !important;
    align-items: stretch !important;
    border: 1px solid var(--bb-border) !important;
    background: #fff !important;
}

.bb-products-grid.bb-layout-list .bb-product-card__media {
    width: 100% !important;
    height: 100% !important;
    min-height: 360px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
}

.bb-products-grid.bb-layout-list .bb-product-card__content {
    padding: 38px 34px !important;
    justify-content: center !important;
}

.bb-products-grid.bb-layout-list .bb-product-card__meta {
    min-height: auto !important;
    max-height: none !important;
    margin-bottom: 12px !important;
}

.bb-products-grid.bb-layout-list .bb-product-card__title {
    font-size: 20px !important;
    -webkit-line-clamp: 3 !important;
}

.bb-products-grid.bb-layout-list .bb-product-card__price-wrap {
    margin-bottom: 16px !important;
}

.bb-products-grid.bb-layout-list .bb-product-card__price-wrap .num-text-price {
    font-size: 16px !important;
}

/* Loader / end state */
.bb-products-loader {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-products-loader img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

.bb-products-end-message {
    padding: 28px 0 8px;
    text-align: center;
    color: rgba(20,20,20,.48);
    font-size: 13px;
}

.bb-products-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 44px 0 8px;
}

.bb-products-pagination[hidden] {
    display: none !important;
}

.bb-products-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    direction: rtl;
}

.bb-products-pagination .pagination > li {
    margin: 0 !important;
    padding: 0 !important;
}

.bb-products-pagination .pagination button,
.bb-products-pagination .bb-products-pagination__ellipsis span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 20, 20, .16);
    border-radius: 50%;
    background: #fff;
    color: var(--bb-black);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.bb-products-pagination .pagination button {
    cursor: pointer;
}

.bb-products-pagination .pagination button:hover:not(:disabled),
.bb-products-pagination .pagination > li.is-active button {
    border-color: var(--bb-black);
    background: var(--bb-black);
    color: #fff;
}

.bb-products-pagination .pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.bb-products-pagination .pagination > li.is-disabled button {
    opacity: .32;
    cursor: default;
}

.bb-products-pagination .bb-products-pagination__ellipsis span {
    border-color: transparent;
    background: transparent;
    width: 30px;
}

.bb-products-pagination .bb-products-pagination__arrow button {
    font-size: 22px;
    font-weight: 400;
    padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Mobile filter offcanvas
   -------------------------------------------------------------------------- */
.bb-products-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    background: rgba(0,0,0,.45);
    transition: opacity .25s ease, visibility .25s ease;
}

.bb-products-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

body.bb-products-filter-open,
body.bb-product-preview-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Quick view modal
   -------------------------------------------------------------------------- */
.bb-product-preview {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.bb-product-preview.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bb-product-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .60);
    opacity: 0;
    transition: opacity .28s ease;
}

.bb-product-preview.is-open .bb-product-preview__backdrop {
    opacity: 1;
}

.bb-product-preview__dialog {
    position: relative;
    z-index: 2;
    width: min(940px, calc(100vw - 60px));
    max-height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(18px) scale(.975);
    transition: opacity .28s ease, transform .34s cubic-bezier(.2, .75, .2, 1);
    outline: 0;
}

.bb-product-preview.is-open .bb-product-preview__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bb-product-preview__close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--bb-black);
    box-shadow: 0 3px 18px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.bb-product-preview__close:hover {
    background: #141414;
    color: #fff;
    transform: rotate(90deg);
}

.bb-product-preview__media {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--bb-image-bg, #f6f6f6);
}

.bb-product-preview__media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 540px;
    display: block;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: opacity .25s ease, transform .35s ease;
}

.bb-product-preview.is-image-loading .bb-product-preview__media img {
    opacity: 0;
    transform: scale(.985);
}

.bb-product-preview__media-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgba(20, 20, 20, .16);
    border-top-color: #141414;
    border-radius: 50%;
    opacity: 0;
    animation: bbProductPreviewSpin .8s linear infinite;
    transition: opacity .2s ease;
}

.bb-product-preview.is-image-loading .bb-product-preview__media-loader {
    opacity: 1;
}

@keyframes bbProductPreviewSpin {
    to { transform: rotate(360deg); }
}

.bb-product-preview__content {
    min-width: 0;
    padding: 66px 52px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    direction: rtl;
    text-align: right;
}

.bb-product-preview__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.bb-product-preview__badges[hidden] {
    display: none !important;
}

.bb-product-preview__badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.bb-product-preview__badge[hidden] {
    display: none !important;
}

.bb-product-preview__badge--discount {
    background: #da3f3f;
}

.bb-product-preview__badge--status {
    background: #8b9501;
}

.bb-product-preview__category {
    display: block;
    margin-bottom: 8px;
    color: rgba(20, 20, 20, .52);
    font-size: 13px;
    line-height: 1.7;
}

.bb-product-preview__title {
    margin: 0 0 18px;
    color: var(--bb-black);
    font-size: 27px;
    line-height: 1.55;
    font-weight: 700;
}

.bb-product-preview__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.bb-product-preview__price {
    color: var(--bb-black);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.bb-product-preview__old-price {
    color: rgba(20, 20, 20, .42);
    font-size: 13px;
    font-weight: 500;
}

.bb-product-preview__old-price[hidden] {
    display: none !important;
}

.bb-product-preview__description {
    max-width: 410px;
    margin: 0 0 30px;
    color: rgba(20, 20, 20, .62);
    font-size: 13px;
    line-height: 2;
}

.bb-product-preview__link {
    width: fit-content;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #141414;
    background: #141414;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}

.bb-product-preview__link:hover {
    background: #fff;
    color: #141414 !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .bb-products-main__row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .bb-products-main__row > [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }

    .bb-products-sidebar {
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        width: min(390px, 88vw) !important;
        max-width: none !important;
        padding: 0 !important;
        overflow-y: auto;
        background: #fff;
        box-shadow: -10px 0 40px rgba(0,0,0,.12);
        transform: translateX(105%);
        transition: transform .3s ease;
    }

    .bb-products-sidebar.is-open {
        transform: translateX(0);
    }

    .bb-products-sidebar__inner {
        position: static;
        padding: 24px 22px 40px;
    }

    .bb-products-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .bb-products-quick-categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .bb-products-quick-categories::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .bb-products-hero {
        padding: 26px 0 28px;
    }

    .bb-products-hero__copy {
        min-height: auto;
        margin-bottom: 24px;
    }

    .bb-products-breadcrumb {
        margin-bottom: 28px;
    }

    .bb-products-quick-categories {
        min-height: 0;
    }

    .bb-products-main {
        padding-top: 42px;
    }

    .bb-products-toolbar {
        grid-template-columns: 1fr auto;
    }

    .bb-products-layout-switcher {
        order: 3;
        grid-column: 1 / -1;
        padding-top: 4px;
        border-top: 1px solid rgba(20,20,20,.05);
    }

    .bb-products-grid.bb-layout-col-4,
    .bb-products-grid.bb-layout-col-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bb-products-hero__title {
        font-size: 32px;
    }

    .bb-products-main {
        padding: 34px 0 55px;
    }

    .bb-products-toolbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bb-products-toolbar__left,
    .bb-products-sort {
        width: 100%;
        justify-content: space-between;
        justify-self: stretch;
    }

    .bb-products-layout-switcher {
        grid-column: auto;
        order: 2;
        justify-content: flex-start;
        border-top: 0;
        padding: 0;
    }

    .bb-products-sort {
        order: 3;
        padding-top: 8px;
        border-top: 1px solid rgba(20,20,20,.06);
    }

    .bb-products-sort__select {
        min-width: 145px;
    }

    .bb-products-grid.bb-layout-col-4,
    .bb-products-grid.bb-layout-col-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 30px;
    }

    .bb-products-page .bb-product-card__media {
        margin-bottom: 10px !important;
    }

    .bb-products-page .bb-product-card__title {
        font-size: 15px !important;
    }

    .bb-products-page .bb-product-card__meta {
        min-height: 48px !important;
        max-height: 48px !important;
    }

    .bb-products-page .bb-product-card__action {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .bb-products-grid.bb-layout-list .bb-product-grid-card {
        min-height: 0 !important;
        grid-template-columns: 38% 1fr !important;
    }

    .bb-products-grid.bb-layout-list .bb-product-card__media {
        min-height: 250px !important;
    }

    .bb-products-grid.bb-layout-list .bb-product-card__content {
        padding: 20px 18px !important;
    }

    .bb-product-preview__dialog {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .bb-product-preview__media,
    .bb-product-preview__media img {
        min-height: 330px;
        max-height: 45vh;
    }

    .bb-product-preview__content {
        padding: 30px 24px 34px;
    }

    .bb-product-preview__title {
        font-size: 22px;
    }

    .bb-product-preview__description {
        margin-bottom: 22px;
    }
}

@media (max-width: 575.98px) {
    .bb-product-preview {
        padding: 12px;
    }

    .bb-product-preview__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .bb-product-preview__close {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }

    .bb-product-preview__media,
    .bb-product-preview__media img {
        min-height: 280px;
        max-height: 40vh;
    }

    .bb-product-preview__content {
        padding: 26px 20px 28px;
    }

    .bb-product-preview__title {
        font-size: 20px;
    }

    .bb-product-preview__link {
        width: 100%;
    }

    .bb-products-quick-category {
        width: 86px;
    }

    .bb-products-quick-category__media {
        width: 78px;
        height: 78px;
        border-width: 5px;
        font-size: 23px;
    }

    .bb-products-grid.bb-layout-col-4,
    .bb-products-grid.bb-layout-col-6 {
        grid-template-columns: 1fr;
    }

    .bb-products-grid.bb-layout-list .bb-product-grid-card {
        display: flex !important;
        flex-direction: column !important;
    }

    .bb-products-grid.bb-layout-list .bb-product-card__media {
        min-height: 0 !important;
        aspect-ratio: 0.82 / 1 !important;
    }

    .bb-products-grid.bb-layout-list .bb-product-card__content {
        padding: 16px 0 0 !important;
    }
}

/* Generic /products filters: Bazaro-style checkboxes and category list */
.bb-products-page .bb-products-sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bb-products-page .bb-products-sidebar-category-list li {
    margin: 0 0 10px;
    padding: 0;
}

.bb-products-page .bb-products-sidebar-category-list li:last-child {
    margin-bottom: 0;
}

.bb-products-page .bb-products-sidebar-category-list a {
    display: inline-block;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    text-decoration: none;
    transition: color .2s ease;
}

.bb-products-page .bb-products-sidebar-category-list a:hover {
    color: #141414;
}

.bb-products-page .bb-products-filter-check {
    position: relative;
    margin-bottom: 10px;
}

.bb-products-page .bb-products-filter-check:last-child {
    margin-bottom: 0;
}

.bb-products-page .bb-products-filter-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bb-products-page .bb-products-filter-check label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding-right: 28px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.bb-products-page .bb-products-filter-check label::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 1px solid #cfcfcf;
    border-radius: 2px;
    background: #fff;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease;
}

.bb-products-page .bb-products-filter-check label::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: translateY(-58%) rotate(45deg);
}

.bb-products-page .bb-products-filter-check input[type="checkbox"]:checked + label::before {
    background: #141414;
    border-color: #141414;
}

.bb-products-page .bb-products-filter-check input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.bb-products-page .bb-products-filter-check input[type="checkbox"]:focus-visible + label::before {
    outline: 2px solid #141414;
    outline-offset: 2px;
}

/* Color filter - Bazaro circle selector (input remains hidden for filtering logic). */
.bb-products-page .bb-products-color-filter {
    max-height: 230px;
    overflow-y: auto;
    padding-left: 4px;
    scrollbar-width: thin;
    overscroll-behavior-y: contain;
}

.bb-products-page .bb-products-color-filter ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-products-page .bb-products-color-filter li {
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.bb-products-page .bb-products-color-filter li:last-child {
    margin-bottom: 0;
}

.bb-products-page .bb-products-color-option {
    position: relative;
    min-height: 24px;
}

.bb-products-page .bb-products-color-option input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bb-products-page .bb-products-color-option label {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 24px;
    margin: 0;
    padding-right: 35px;
    color: rgba(20, 20, 20, .8);
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    user-select: none;
}

.bb-products-page .bb-products-color-option__swatch {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(20, 20, 20, .08);
    border-radius: 50%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bb-products-page .bb-products-color-option label::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    width: 10px;
    height: 9px;
    opacity: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 9px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='9' viewBox='0 0 10 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.98904 1.58131L3.78442 7.36162L1.15701 4.99589' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: opacity .12s ease;
}

.bb-products-page .bb-products-color-option input:checked ~ label::before {
    opacity: 1;
}

.bb-products-page .bb-products-color-option input:checked ~ .bb-products-color-option__swatch {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(20, 20, 20, .20);
}

.bb-products-page .bb-products-color-option:hover .bb-products-color-option__swatch {
    transform: scale(1.08);
}

.bb-products-page .bb-products-color-option input:focus-visible ~ .bb-products-color-option__swatch {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(20, 20, 20, .28);
}


/* ========================================================================== 
   2026-09-26 - Product filter fidelity pass
   Price slider mirrors the supplied Bazaro reference image.
   ========================================================================== */
.bb-products-page .bb-products-price-card .card-body {
    padding-top: 12px !important;
}

.bb-products-page .bb-products-price-filter,
.bb-products-page .bb-products-price-filter.aq-product-sidebar-widget-filter {
    margin: 0 !important;
    padding: 0 0 2px !important;
}

.bb-products-page .bb-products-price-filter .range-bar,
.bb-products-page .bb-products-price-filter .ui-widget.ui-widget-content,
.bb-products-page .bb-products-price-filter .ui-slider {
    width: 100% !important;
    height: 3px !important;
    margin: 15px 0 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ededed !important;
    box-shadow: none !important;
}

.bb-products-page .bb-products-price-filter .ui-slider-range,
.bb-products-page .bb-products-price-filter .ui-slider-horizontal .ui-slider-range {
    top: 0 !important;
    height: 3px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #1b1b1b !important;
}

.bb-products-page .bb-products-price-filter .ui-slider-handle,
.bb-products-page .bb-products-price-filter .ui-slider-horizontal .ui-slider-handle {
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -10px !important;
    margin-left: -10px !important;
    padding: 0 !important;
    border: 5px solid #1b1b1b !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: 0 !important;
    cursor: pointer !important;
}

.bb-products-page .bb-products-price-filter__info,
.bb-products-page .bb-products-price-filter .aq-product-sidebar-widget-filter-info {
    display: block !important;
    width: 100% !important;
    margin-top: 25px !important;
    padding: 0 !important;
}

.bb-products-page .bb-products-price-filter__info .amount-range,
.bb-products-page #bbPriceAmount {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #141414 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-align: right !important;
    white-space: nowrap !important;
    direction: rtl !important;
}

/* This version applies the price filter when dragging finishes; no Bazaro button is shown. */
.bb-products-page .bb-products-price-filter__button,
.bb-products-page .aq-product-sidebar-widget-filter-btn {
    display: none !important;
}

/* Availability status: custom checkboxes, never browser-default UI. */
.bb-products-page .bb-products-availability-filter .card-body {
    padding-top: 4px !important;
}

.bb-products-page .bb-products-availability-filter .bb-products-filter-check {
    margin-bottom: 12px !important;
}

.bb-products-page .bb-products-availability-filter .bb-products-filter-check label {
    font-size: 14px !important;
    color: rgba(20, 20, 20, .80) !important;
}

/* ========================================================================== 
   2026-09-26 - Explicit min/max price handles
   Left handle = "از قیمت" (minimum), right handle = "تا قیمت" (maximum).
   Keep the slider LTR even though the storefront itself is RTL.
   ========================================================================== */
.bb-products-page .bb-products-price-filter #slider-range,
.bb-products-page .bb-products-price-filter .range-bar,
.bb-products-page .bb-products-price-filter .ui-slider {
    direction: ltr !important;
}

.bb-products-page .bb-products-price-filter .ui-slider-handle[data-price-role="min"] {
    cursor: ew-resize !important;
}

.bb-products-page .bb-products-price-filter .ui-slider-handle[data-price-role="max"] {
    cursor: ew-resize !important;
}

.bb-products-page .bb-products-price-range-values {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    direction: ltr !important;
    white-space: normal !important;
}

.bb-products-page .bb-products-price-range-value {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    color: #141414 !important;
    direction: rtl !important;
}

.bb-products-page .bb-products-price-range-value--min {
    align-items: flex-start !important;
    text-align: left !important;
}

.bb-products-page .bb-products-price-range-value--max {
    align-items: flex-end !important;
    text-align: right !important;
}

.bb-products-page .bb-products-price-range-label {
    display: block !important;
    color: #777 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

.bb-products-page .bb-products-price-range-value strong {
    display: block !important;
    color: #141414 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    white-space: nowrap !important;
}

@media (max-width: 575.98px) {
    .bb-products-page .bb-products-price-range-values {
        gap: 10px !important;
    }

    .bb-products-page .bb-products-price-range-value strong {
        font-size: 11px !important;
    }
}



/* ==========================================================================
   Bazaro exact price filter widget (product-default.html)
   ========================================================================== */
.bb-products-sidebar .bb-products-bazaro-filter-widget {
    margin: 0 0 25px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-top {
    min-height: 34px;
    padding: 0 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    cursor: pointer;
    border: 0 !important;
    background: transparent !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #141414 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-item-close {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: transform .28s ease !important;
    transform: rotate(0deg);
}

.bb-products-sidebar .bb-products-bazaro-filter-widget.is-collapsed .aq-product-sidebar-item-close {
    transform: rotate(180deg);
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-item-close svg {
    display: block;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-content {
    display: block !important;
    overflow: hidden !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-filter {
    padding-top: 10px !important;
    margin: 0 !important;
}

/* The range bar follows Bazaro: pale base, black selected range, round white handles. */
.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range,
.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range.ui-widget.ui-widget-content,
.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range.ui-slider {
    position: relative !important;
    direction: ltr !important;
    width: 100% !important;
    height: 3px !important;
    margin: 8px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e9e9e9 !important;
    box-shadow: none !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range .ui-slider-range,
.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range.ui-slider-horizontal .ui-slider-range {
    top: 0 !important;
    height: 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #141414 !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range .ui-slider-handle {
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin-left: -10px !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border: 5px solid #141414 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: grab !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range .ui-slider-handle:active,
.bb-products-sidebar .bb-products-bazaro-filter-widget .slider-range .ui-slider-handle.ui-state-active {
    cursor: grabbing !important;
    background: #fff !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-filter-info {
    margin-top: 14px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .input-range {
    width: 100% !important;
    display: block !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .amount-range {
    direction: rtl !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #141414 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-align: right !important;
    cursor: default !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .amount-range[readonly] {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-item-close {
        transition: none !important;
    }
}


/* /products: keep Bazaro price and color widgets visually separated. */
.bb-products-sidebar .bb-products-price-card,
.bb-products-sidebar .bb-products-color-card {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 0 24px !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid #e7e7e7 !important;
    background: transparent !important;
}

.bb-products-sidebar .bb-products-color-card {
    padding-top: 0 !important;
}

.bb-products-sidebar .bb-products-color-card .aq-product-sidebar-widget-content {
    padding-top: 10px !important;
}

/* Two explicit values under the dual-handle range: left=min, right=max. */
.bb-products-sidebar .bb-products-price-values {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 18px !important;
}

.bb-products-sidebar .bb-products-price-field {
    direction: rtl !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    cursor: text !important;
}

.bb-products-sidebar .bb-products-price-field__label {
    display: block !important;
    margin-bottom: 7px !important;
    color: rgba(20, 20, 20, .62) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.bb-products-sidebar .bb-products-price-field__control {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    border: 1px solid #dedede !important;
    border-radius: 5px !important;
    background: #fff !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.bb-products-sidebar .bb-products-price-field:focus-within .bb-products-price-field__control {
    border-color: #141414 !important;
    box-shadow: 0 0 0 1px #141414 !important;
}

.bb-products-sidebar .bb-products-price-field__input {
    direction: ltr !important;
    flex: 1 1 auto !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #141414 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 22px !important;
    text-align: left !important;
}

.bb-products-sidebar .bb-products-price-field__currency {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    color: rgba(20, 20, 20, .62) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

/* The range itself remains LTR intentionally: left handle=min and right handle=max. */
.bb-products-sidebar .bb-products-price-card .slider-range {
    direction: ltr !important;
    margin-bottom: 0 !important;
}

@media (max-width: 420px) {
    .bb-products-sidebar .bb-products-price-values {
        gap: 8px !important;
    }

    .bb-products-sidebar .bb-products-price-field__control {
        padding-inline: 8px !important;
    }

    .bb-products-sidebar .bb-products-price-field__currency {
        font-size: 10px !important;
    }
}


/* ========================================================================== 
   /products price filter - native dual draggable range
   Left round handle = "از قیمت" / right round handle = "تا قیمت"
   ========================================================================== */
.bb-products-sidebar .bb-products-price-card .bb-products-price-slider {
    position: relative !important;
    direction: ltr !important;
    width: 100% !important;
    height: 32px !important;
    margin: 2px 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__track,
.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__range {
    position: absolute !important;
    top: 50% !important;
    height: 3px !important;
    transform: translateY(-50%) !important;
    border-radius: 0 !important;
    pointer-events: none !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__track {
    left: 0 !important;
    right: 0 !important;
    background: #e9e9e9 !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__range {
    left: 0;
    width: 100%;
    background: #141414 !important;
    z-index: 2 !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input--min {
    z-index: 4 !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input--max {
    z-index: 5 !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input.is-active,
.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input:focus {
    z-index: 7 !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 3px !important;
    border: 0 !important;
    background: transparent !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -8.5px !important;
    border: 5px solid #141414 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: grab !important;
    pointer-events: auto !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input::-webkit-slider-thumb:active {
    cursor: grabbing !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input::-moz-range-track {
    width: 100% !important;
    height: 3px !important;
    border: 0 !important;
    background: transparent !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input::-moz-range-progress {
    height: 3px !important;
    background: transparent !important;
}

.bb-products-sidebar .bb-products-price-card .bb-products-price-slider__input::-moz-range-thumb {
    width: 10px !important;
    height: 10px !important;
    border: 5px solid #141414 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: grab !important;
    pointer-events: auto !important;
}

/* Disable the old jQuery UI slider pieces if that library is present globally. */
.bb-products-sidebar .bb-products-price-card .bb-products-price-slider > .ui-slider-range,
.bb-products-sidebar .bb-products-price-card .bb-products-price-slider > .ui-slider-handle {
    display: none !important;
}

/* ========================================================================== 
   Sidebar filter header alignment fix
   Keep every filter title and chevron on one horizontal row in RTL:
   title on the right, chevron consistently on the left.
   ========================================================================== */
.bb-products-sidebar .accordion-search .card-header,
.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-top {
    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 0 0 16px !important;
    margin: 0 !important;
    position: relative !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.bb-products-sidebar .accordion-search .card-header h5,
.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-widget-title {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 32px !important;
    white-space: nowrap !important;
    text-align: right !important;
    align-self: center !important;
}

.bb-products-sidebar .bb-products-filter-toggle,
.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-item-close {
    order: 2 !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-item-close svg {
    width: 12px !important;
    height: 7px !important;
    margin: 0 !important;
    display: block !important;
}

/* The header itself owns the vertical spacing; collapsed state must not move the title. */
.bb-products-sidebar .bb-filter-collapsed .card-header h5,
.bb-products-sidebar .bb-products-bazaro-filter-widget.is-collapsed .aq-product-sidebar-widget-title {
    padding: 0 !important;
    margin: 0 !important;
}

/* ========================================================================== 
   Bazaro price/color chevron direction fix
   The sidebar is on the right, so these chevrons must always point left,
   toward the products area, regardless of expanded/collapsed state.
   ========================================================================== */
.bb-products-sidebar .bb-products-bazaro-filter-widget .aq-product-sidebar-item-close,
.bb-products-sidebar .bb-products-bazaro-filter-widget.is-collapsed .aq-product-sidebar-item-close {
    transform: rotate(90deg) !important;
}

/* ========================================================================== 
   All legacy sidebar filter chevrons point toward the products (left)
   Category / Search / Size / Brand / Availability / dynamic property filters.
   Keep the direction fixed in both expanded and collapsed states so it matches
   the Bazaro Price and Color widgets.
   ========================================================================== */
.bb-products-sidebar .bb-products-filter-toggle__icon,
.bb-products-sidebar .bb-filter-collapsed .bb-products-filter-toggle__icon {
    transform: rotate(135deg) translate(0, 0) !important;
    transform-origin: center !important;
}

/* Some legacy PHP filter helpers still output their old MDB chevron.
   The shared JS creates the unified left-facing button, so hide the old icon
   to prevent a second/misaligned arrow. */
.bb-products-sidebar .accordion-search .card-header .rotate-icon {
    display: none !important;
}


/* Keep the products hero flush with the storefront header. */
main.bb-products-page,
main.bb-products-page > .bb-products-hero:first-child {
    margin-block-start: 0 !important;
}

main.bb-products-page > .bb-products-hero:first-child {
    position: relative;
    top: -1px;
    margin-bottom: -1px;
}

/* The legacy header/nav can carry a bottom margin. Remove it only on /products. */
body:has(main.bb-products-page) header,
body:has(main.bb-products-page) header .navbar {
    margin-bottom: 0 !important;
}


/* --------------------------------------------------------------------------
   Infinite scroll: 9 items per batch + smooth reveal
   -------------------------------------------------------------------------- */
.bb-products-infinite-sentinel {
    width: 100%;
    height: 2px;
    margin-top: 18px;
    pointer-events: none;
}

.bb-products-infinite-sentinel[hidden] {
    display: none !important;
}

.bb-products-loader {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.bb-products-loader.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bb-products-grid-item.bb-products-grid-item--enter {
    opacity: 0;
    transform: translateY(24px) scale(.985);
    filter: blur(2px);
    transition:
        opacity .52s cubic-bezier(.22,.61,.36,1),
        transform .58s cubic-bezier(.22,.61,.36,1),
        filter .42s ease;
    transition-delay: var(--bb-item-delay, 0ms);
    will-change: opacity, transform, filter;
}

.bb-products-grid-item.bb-products-grid-item--enter.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Numeric pagination was replaced by infinite scroll. */
.bb-products-pagination {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .bb-products-loader,
    .bb-products-grid-item.bb-products-grid-item--enter,
    .bb-products-grid-item.bb-products-grid-item--enter.is-visible {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   2026-09-26 - Infinite scroll + whole sticky filter panel follow-up
   Keep the complete filter stack together while it follows the viewport.
   Do not create an inner scrolling area that can hide the first filter
   ("دسته بندی"). The JS sets --bb-products-sticky-top dynamically so the
   panel stays below any visible sticky/fixed storefront header.
   ========================================================================== */
@media (min-width: 1200px) {
    .bb-products-sidebar {
        align-self: stretch !important;
        overflow: visible !important;
    }

    .bb-products-sidebar__inner {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--bb-products-sticky-top, 16px) !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
        scrollbar-width: auto !important;
        padding-left: 6px;
    }

    .bb-products-sidebar__inner::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   Product quick view - Bazaro product-default.html modal fidelity
   -------------------------------------------------------------------------- */
.bb-product-preview {
    padding: 30px !important;
    direction: rtl;
}

.bb-product-preview__dialog,
.bb-product-preview.aq-product-modal .modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    width: min(1000px, calc(100vw - 60px)) !important;
    max-width: 1000px !important;
    max-height: calc(100vh - 60px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    grid-template-columns: none !important;
}

.bb-product-preview__content-shell,
.bb-product-preview.aq-product-modal .modal-content {
    position: relative !important;
    width: 100% !important;
    padding: 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .24) !important;
    overflow: hidden !important;
}

.bb-product-preview__sr-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bb-product-preview__close,
.bb-product-preview.aq-product-modal .aq-product-modal-close-btn {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 8 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f5f5f5 !important;
    color: #141414 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transform: none !important;
    transition: background-color .25s ease, color .25s ease !important;
}

.bb-product-preview__close i,
.bb-product-preview.aq-product-modal .aq-product-modal-close-btn i {
    display: block;
    transition: transform .3s ease !important;
}

.bb-product-preview__close:hover,
.bb-product-preview.aq-product-modal .aq-product-modal-close-btn:hover {
    background: #141414 !important;
    color: #fff !important;
}

.bb-product-preview__close:hover i,
.bb-product-preview.aq-product-modal .aq-product-modal-close-btn:hover i {
    transform: rotate(-180deg) !important;
}

.bb-product-preview__frame-wrap {
    position: relative;
    width: 100%;
    height: min(650px, calc(100vh - 100px));
    min-height: 500px;
    overflow: hidden;
    background: #fff;
}

.bb-product-preview__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #fff;
    opacity: 1;
    transition: opacity .22s ease;
}

.bb-product-preview.is-loading .bb-product-preview__frame {
    opacity: 0;
}

.bb-product-preview__frame-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 2px solid rgba(20, 20, 20, .14);
    border-top-color: #141414;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: bbProductPreviewSpin .75s linear infinite;
    transition: opacity .18s ease;
}

.bb-product-preview.is-loading .bb-product-preview__frame-loader {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .bb-product-preview {
        padding: 18px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    .bb-product-preview__dialog,
    .bb-product-preview.aq-product-modal .modal-dialog {
        width: calc(100vw - 36px) !important;
        max-width: none !important;
        max-height: none !important;
        margin: 18px auto !important;
    }

    .bb-product-preview__content-shell,
    .bb-product-preview.aq-product-modal .modal-content {
        padding: 14px !important;
    }

    .bb-product-preview__frame-wrap {
        height: calc(100vh - 64px);
        min-height: 520px;
    }

    .bb-product-preview__close,
    .bb-product-preview.aq-product-modal .aq-product-modal-close-btn {
        top: 14px !important;
        left: 14px !important;
    }
}

@media (max-width: 575.98px) {
    .bb-product-preview {
        padding: 0 !important;
    }

    .bb-product-preview__dialog,
    .bb-product-preview.aq-product-modal .modal-dialog {
        width: 100vw !important;
        margin: 0 !important;
    }

    .bb-product-preview__content-shell,
    .bb-product-preview.aq-product-modal .modal-content {
        min-height: 100vh !important;
        padding: 0 !important;
    }

    .bb-product-preview__frame-wrap {
        height: 100vh;
        min-height: 100vh;
    }

    .bb-product-preview__close,
    .bb-product-preview.aq-product-modal .aq-product-modal-close-btn {
        top: 12px !important;
        left: 12px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

/* --------------------------------------------------------------------------
   Quick view refinement: edge-to-edge content + full-height preview shell
   -------------------------------------------------------------------------- */
.bb-product-preview {
    padding: 20px !important;
}

.bb-product-preview__dialog,
.bb-product-preview.aq-product-modal .modal-dialog {
    width: min(1180px, calc(100vw - 40px)) !important;
    max-width: 1180px !important;
    height: min(760px, calc(100vh - 40px)) !important;
    max-height: calc(100vh - 40px) !important;
    min-height: 560px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

.bb-product-preview__content-shell,
.bb-product-preview.aq-product-modal .modal-content {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
}

.bb-product-preview__frame-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.bb-product-preview__frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.bb-product-preview__close,
.bb-product-preview.aq-product-modal .aq-product-modal-close-btn {
    top: 16px !important;
    left: 16px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.12) !important;
}

@media (max-width: 991.98px) {
    .bb-product-preview {
        padding: 12px !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .bb-product-preview__dialog,
    .bb-product-preview.aq-product-modal .modal-dialog {
        width: calc(100vw - 24px) !important;
        height: calc(100vh - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        min-height: 0 !important;
        margin: 0 auto !important;
    }

    .bb-product-preview__content-shell,
    .bb-product-preview.aq-product-modal .modal-content,
    .bb-product-preview__frame-wrap {
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .bb-product-preview {
        padding: 0 !important;
    }

    .bb-product-preview__dialog,
    .bb-product-preview.aq-product-modal .modal-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
    }

    .bb-product-preview__content-shell,
    .bb-product-preview.aq-product-modal .modal-content,
    .bb-product-preview__frame-wrap,
    .bb-product-preview__frame {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .bb-product-preview__close,
    .bb-product-preview.aq-product-modal .aq-product-modal-close-btn {
        top: 10px !important;
        left: 10px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

/* --------------------------------------------------------------------------
   Quick view v2: native AJAX modal (no iframe)
   -------------------------------------------------------------------------- */
.bb-product-preview__content-shell {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.bb-qv-head {
    flex: 0 0 66px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    border-bottom: 1px solid #ececec;
    background: #fff;
    position: relative;
    z-index: 30;
}

.bb-qv-head__product-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #dfdfdf;
    border-radius: 999px;
    background: #fff;
    color: #141414 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.bb-qv-head__product-link:hover {
    background: #141414;
    border-color: #141414;
    color: #fff !important;
}

.bb-qv-head__close,
.bb-qv-head .bb-product-preview__close,
.bb-product-preview.aq-product-modal .bb-qv-head__close {
    position: static !important;
    inset: auto !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 50% !important;
    background: #f7f7f7 !important;
    color: #141414 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transform: none !important;
}

.bb-qv-head__close:hover,
.bb-qv-head .bb-product-preview__close:hover,
.bb-product-preview.aq-product-modal .bb-qv-head__close:hover {
    background: #141414 !important;
    border-color: #141414 !important;
    color: #fff !important;
}

.bb-qv-main {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    grid-template-areas: "gallery info";
    direction: rtl;
    overflow: hidden;
    background: #fff;
}

.bb-qv-gallery {
    grid-area: gallery;
    min-width: 0;
    min-height: 0;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 1px solid #ececec;
    background: #f7f7f7;
}

.bb-qv-gallery__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.bb-qv-gallery__stage > img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: opacity .18s ease, transform .24s ease;
}

.bb-qv-gallery__stage > img.is-changing {
    opacity: .25;
    transform: scale(.985);
}

.bb-qv-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid rgba(20,20,20,.10);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #141414;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.09);
    transition: all .2s ease;
}

.bb-qv-gallery__arrow--prev { right: 18px; }
.bb-qv-gallery__arrow--next { left: 18px; }
.bb-qv-gallery__stage:hover .bb-qv-gallery__arrow { opacity: 1; visibility: visible; }
.bb-qv-gallery__arrow:hover { background: #141414; color: #fff; }

.bb-qv-gallery__thumbs {
    flex: 0 0 82px;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 1px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: rtl;
    scrollbar-width: thin;
}

.bb-qv-gallery__thumbs::-webkit-scrollbar { height: 5px; }
.bb-qv-gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(20,20,20,.20); border-radius: 999px; }

.bb-qv-thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    padding: 4px;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bb-qv-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 7px;
}

.bb-qv-thumb:hover { transform: translateY(-1px); border-color: #8e8e8e; }
.bb-qv-thumb.is-active { border-color: #141414; box-shadow: 0 0 0 1px #141414; }

.bb-qv-info {
    grid-area: info;
    min-width: 0;
    min-height: 0;
    padding: 32px 34px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    background: #fff;
}

.bb-qv-category {
    margin: 0 0 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.bb-qv-title {
    margin: 0 0 13px;
    color: #141414;
    font-size: clamp(24px, 2.25vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.4px;
}

.bb-qv-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    margin-bottom: 17px;
    color: #686868;
    font-size: 12px;
}

.bb-qv-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    direction: ltr;
    color: #f4a623;
    font-size: 14px;
}

.bb-qv-rating-value { color: #141414; font-weight: 700; }
.bb-qv-comment-count { color: #858585; }

.bb-qv-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0 0 20px;
    border-bottom: 1px solid #ededed;
}

.bb-qv-price__old {
    color: #9a9a9a;
    font-size: 14px;
    text-decoration-thickness: 1px;
}

.bb-qv-price__current {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: #141414;
}

.bb-qv-price__current strong {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.bb-qv-price__current span { font-size: 12px; font-weight: 600; }

.bb-qv-variation {
    position: relative;
    transition: opacity .18s ease;
}
.bb-qv-variation.is-loading { opacity: .48; pointer-events: none; }

.bb-qv-option-group {
    margin: 0 0 17px;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 13px;
    background: #fbfbfb;
}

.bb-qv-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #141414;
    font-size: 13px;
    font-weight: 800;
}
.bb-qv-option-head strong { color: #666; font-size: 12px; font-weight: 600; }

.bb-qv-colors,
.bb-qv-sizes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.bb-qv-color {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bb-qv-color::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--bb-qv-color, #fff);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
}

.bb-qv-color:hover { transform: translateY(-1px); border-color: #777; }
.bb-qv-color.is-active { border-color: #141414; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #141414; }

.bb-qv-size {
    min-width: 48px;
    min-height: 39px;
    padding: 7px 13px;
    border: 1px solid #d8d8d8;
    border-radius: 9px;
    background: #fff;
    color: #141414;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bb-qv-size:hover { border-color: #141414; }
.bb-qv-size.is-active { background: #141414; border-color: #141414; color: #fff; }

.bb-qv-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin: 0 0 21px;
}

.bb-qv-feature {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bb-qv-feature span { color: #898989; font-size: 10px; line-height: 1.45; }
.bb-qv-feature strong { color: #282828; font-size: 12px; line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }

.bb-qv-short-description {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f7f7;
    color: #606060;
    font-size: 12px;
    line-height: 1.9;
}

.bb-qv-buy-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
}

.bb-qv-qty {
    flex: 0 0 142px;
    height: 48px;
    display: flex;
    direction: ltr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background: #fff;
}

.bb-qv-qty__btn {
    flex: 0 0 42px;
    width: 42px;
    border: 0;
    background: #fff;
    color: #141414;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease;
}
.bb-qv-qty__btn:hover { background: #f2f2f2; }

.bb-qv-qty__input {
    width: 56px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #ededed;
    border-right: 1px solid #ededed;
    background: #fff;
    color: #141414;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    outline: 0;
    -moz-appearance: textfield;
}
.bb-qv-qty__input::-webkit-outer-spin-button,
.bb-qv-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bb-qv-add-cart {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #141414;
    border-radius: 999px;
    background: #141414;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.bb-qv-add-cart:hover:not(:disabled) { transform: translateY(-1px); background: #2a2a2a; }
.bb-qv-add-cart:disabled { opacity: .45; cursor: not-allowed; }
.bb-qv-add-cart.is-loading { opacity: .65; }

.bb-qv-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

.bb-qv-action-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #141414;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.bb-qv-action-btn:hover { border-color: #141414; }
.bb-qv-action-btn--favorite.is-active { color: #da3f3f; border-color: rgba(218,63,63,.32); background: #fff8f8; }
.bb-qv-action-btn.is-loading { opacity: .55; pointer-events: none; }

.bb-qv-loader {
    position: absolute;
    inset: 66px 0 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.bb-product-preview.is-loading .bb-qv-loader { opacity: 1; visibility: visible; }
.bb-qv-loader span {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(20,20,20,.13);
    border-top-color: #141414;
    border-radius: 50%;
    animation: bbProductPreviewSpin .75s linear infinite;
}

.bb-qv-error {
    position: absolute;
    inset: 66px 0 0;
    z-index: 45;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #8d2222;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.bb-qv-error[hidden] { display: none !important; }

@media (max-width: 991.98px) {
    .bb-qv-head { flex-basis: 60px; min-height: 60px; padding: 0 14px; }
    .bb-qv-main {
        grid-template-columns: minmax(0,1fr) minmax(330px,.9fr);
    }
    .bb-qv-gallery { padding: 15px; }
    .bb-qv-info { padding: 24px 22px; }
    .bb-qv-title { font-size: 25px; }
    .bb-qv-loader,.bb-qv-error { inset: 60px 0 0; }
}

@media (max-width: 767.98px) {
    .bb-product-preview { overflow-y: auto !important; }
    .bb-product-preview__dialog,
    .bb-product-preview.aq-product-modal .modal-dialog {
        height: auto !important;
        min-height: calc(100vh - 24px) !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .bb-product-preview__content-shell { min-height: calc(100vh - 24px) !important; overflow: visible !important; }
    .bb-qv-main {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    .bb-qv-gallery {
        order: 1;
        min-height: 520px;
        border-left: 0;
        border-bottom: 1px solid #ececec;
    }
    .bb-qv-info { order: 2; overflow: visible; }
    .bb-qv-loader,.bb-qv-error { position: fixed; inset: 60px 12px 12px; }
}

@media (max-width: 575.98px) {
    .bb-qv-head { position: sticky; top: 0; padding: 0 10px; }
    .bb-qv-head__product-link { min-height: 39px; padding: 0 13px; font-size: 11px; }
    .bb-qv-head__close,
    .bb-qv-head .bb-product-preview__close,
    .bb-product-preview.aq-product-modal .bb-qv-head__close {
        width: 39px !important; height: 39px !important; min-width: 39px !important; min-height: 39px !important;
    }
    .bb-qv-gallery { min-height: 430px; padding: 10px; }
    .bb-qv-gallery__stage { min-height: 330px; border-radius: 10px; }
    .bb-qv-gallery__thumbs { min-height: 70px; flex-basis: 70px; }
    .bb-qv-thumb { width: 62px; height: 62px; flex-basis: 62px; }
    .bb-qv-info { padding: 22px 16px 28px; }
    .bb-qv-title { font-size: 22px; }
    .bb-qv-features { grid-template-columns: 1fr; }
    .bb-qv-buy-row { flex-direction: column; }
    .bb-qv-qty { flex-basis: 48px; width: 142px; align-self: flex-start; }
    .bb-qv-actions { flex-wrap: wrap; }
}

/* Quick view main-image reliability */
.bb-qv-gallery__stage {
    min-height: 400px;
}

.bb-qv-gallery__stage > img:not([src]),
.bb-qv-gallery__stage > img.is-broken {
    opacity: 0;
}

.bb-qv-thumb.is-broken {
    display: none;
}
