/* Transparent product photos show this gray through empty pixels. Opaque photos cover it. */
[class*="tp-product-thumb"] img,
[class*="tp-product-thumb"] img.flx-lazy-img.flx-loaded {
    background-color: #f4f5f7;
    background-image: none;
}

.fx-shop-filters {
    --color-white: #fff;
    --color-gray-100: #f3f3f3;
    --color-gray-200: #e6e6e6;
    --color-gray-300: #c1c1c1;
    --color-gray-400: #888;
    --color-gray-500: #555;
    --color-gray-700: #333;
    --color-heading: #212b36;
    --color-primary: #212b36;
    --color-primary-hover: #0f1620;
    --color-brand-300: #f1f3f5;
    --color-border: #ebebeb;
    --color-muted: #637381;
    --radius: 6px;
    --radius-12: 12px;
    --radius-full: 500px;
    --f-medium: 500;
    --f-semi-bold: 600;
    --f-bold: 700;
    --font-size-b1: 16px;
    --font-size-b2: 15px;
    --font-size-b3: 14px;
    --font-size-b4: 12px;
    --line-height-b1: 1.5;
    --line-height-b2: 1.46;
    --line-height-b4: 1.5;
    --border-width: 2px;
    --transition: 0.3s ease;
    position: relative;
    z-index: 2;
}

main:has(.fx-shop-filters) {
    overflow: visible;
}

@media (min-width: 992px) {
    .tp-shop-area .row > :has(.fx-shop-filters) {
        position: sticky;
        top: 16px;
        z-index: 5;
        align-self: flex-start;
        max-height: calc(100vh - 32px);
        overflow: auto;
        scrollbar-width: thin;
    }
}

.fx-shop-filters .rbt-sidebar-widget-wrapper .rbt-sidebar-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-heading);
    font-size: 16px;
    font-weight: var(--f-bold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.fx-shop-filters .fx-filter-icon {
    flex: 0 0 auto;
}

/* Clean borderless sample style: drop the folder-tab decoration. */
.fx-shop-filters .rbt-fshape-right-portion {
    display: none;
}

.fx-shop-filters .rbt-sidebar-bottom {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.fx-shop-filters .rbt-single-widget {
    margin-top: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.fx-shop-filters .rbt-single-widget:first-child {
    margin-top: 0;
    border-top: 0;
}

.fx-shop-filters .rbt-widget-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: var(--font-size-b2);
    font-weight: var(--f-bold);
    line-height: 1.4;
}

.fx-shop-filters .rbt-widget-title a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.fx-shop-filters .rbt-widget-title > .fx-filter-heading {
    padding: 11px 0;
}

.fx-shop-filters .fx-filter-heading {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fx-shop-filters .rbt-widget-title a .fx-filter-heading {
    padding: 0;
}

.fx-shop-filters .fx-filter-heading__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: #f4f5f7;
    color: var(--color-heading);
}

.fx-shop-filters .fx-filter-heading__icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.fx-shop-filters .fx-filter-heading__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-shop-filters .rbt-widget-title a:not(.collapsed) {
    padding-bottom: 8px;
}

.fx-shop-filters .rbt-widget-title .icon {
    display: inline-flex;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.fx-shop-filters .rbt-widget-title a.collapsed .icon {
    transform: rotate(0deg);
}

.fx-shop-filters .rbt-sidebar-list-wrapper {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-shop-filters .rbt-check-group {
    position: relative;
    z-index: 1;
    margin: 2px 0;
}

.fx-shop-filters .rbt-check-group input[type="checkbox"],
.fx-shop-filters .rbt-review-group input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.fx-shop-filters .rbt-check-group {
    margin: 4px 0;
}

.fx-shop-filters .rbt-check-group label,
.fx-shop-filters .fx-filter-check {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 3px 6px 3px 26px;
    border: 0;
    background: transparent;
    color: var(--color-gray-700);
    font-size: 13px;
    font-weight: var(--f-medium);
    line-height: 1.45;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.fx-shop-filters .rbt-check-group label::before,
.fx-shop-filters .fx-filter-check .fx-filter-check-box {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--color-gray-300);
    border-radius: 3px;
    background: #fff;
    transform: translateY(-50%);
    transition: var(--transition);
}

.fx-shop-filters .rbt-check-group label::after,
.fx-shop-filters .fx-filter-check .fx-filter-check-box::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 7px;
    width: 8px;
    height: 5px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    opacity: 0;
    transform: translateY(-70%) rotate(-45deg);
}

.fx-shop-filters .fx-filter-check .fx-filter-check-box::after {
    left: 3px;
}

.fx-shop-filters .rbt-check-group input:checked + label,
.fx-shop-filters .fx-filter-check.is-checked {
    color: var(--color-heading);
    font-weight: var(--f-semi-bold);
}

.fx-shop-filters .rbt-check-group input:checked + label::before,
.fx-shop-filters .fx-filter-check.is-checked .fx-filter-check-box {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.fx-shop-filters .rbt-check-group input:checked + label::after,
.fx-shop-filters .fx-filter-check.is-checked .fx-filter-check-box::after {
    opacity: 1;
}

.fx-shop-filters .rbt-lable-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fx-shop-filters .rbt-lable-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
    flex: 0 0 24px;
}

.fx-shop-filters .rbt-lable-img img {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fx-shop-filters .rbt-lable,
.fx-shop-filters .rbt-lable-text {
    color: inherit;
}

.fx-shop-filters .fx-filter-children {
    display: none;
    margin: 2px 0 2px 18px;
    padding: 0;
}

.fx-shop-filters .fx-filter-children.is-open {
    display: block;
}

.fx-shop-filters .rbt-review-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 6px;
    cursor: pointer;
}

.fx-shop-filters .rbt-rating-icon-list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-shop-filters .rbt-rating-icon-list li {
    display: flex;
    margin: 0;
}

.fx-shop-filters .fx-star {
    fill: #d5d5d5;
}

.fx-shop-filters .fx-star.is-filled {
    fill: #fcc418;
}

.fx-shop-filters .rbt-review-group input:checked + label .rbt-rating-text,
.fx-shop-filters .rbt-rating-text {
    margin: 0;
    color: var(--color-heading);
    font-size: var(--font-size-b2);
    font-weight: var(--f-medium);
}

.fx-shop-filters .bb-product-price-filter {
    padding-top: 8px;
}

.fx-shop-filters .rbt-price-range-slider {
    padding: 8px 8px 0;
}

.fx-shop-filters .price-slider,
.fx-shop-filters .bb-product-price-filter .ui-widget.ui-widget-content {
    height: 3px;
    margin: 18px 8px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--color-border);
    max-width: none;
}

.fx-shop-filters .bb-product-price-filter .ui-slider-horizontal .ui-slider-range,
.fx-shop-filters .price-slider .ui-slider-range {
    height: 4px;
    background: var(--color-primary);
}

.fx-shop-filters .bb-product-price-filter .ui-slider .ui-slider-handle {
    top: 50%;
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: -9px;
    margin-left: -9px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: none;
    cursor: ew-resize;
}

.fx-shop-filters .rbt-range-value,
.fx-shop-filters .input-range-label {
    margin: 0;
    color: var(--color-gray-700);
    font-size: var(--font-size-b2);
    font-weight: var(--f-semi-bold);
    text-align: center;
}

.fx-shop-filters .rbt-inner-search-field {
    /* padding: 0 0 12px; */
}

.fx-shop-filters .rbt-search-input-section {
    position: relative;
}

.fx-shop-filters .rbt-filter-search-field {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-heading);
    font-size: 13px;
}

.fx-shop-filters .rbt-filter-search-field:focus {
    border-color: var(--color-primary);
    outline: none;
}

.fx-shop-filters .search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-gray-400);
    transform: translateY(-50%);
    pointer-events: none;
}

.fx-shop-filters .fx-filter-query {
    margin-bottom: 16px;
}

.fx-shop-filters .fx-filter-query .search-btn {
    pointer-events: auto;
    cursor: pointer;
}

.fx-shop-filters .rbt-color-swatch-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0;
}

.fx-shop-filters .rbt-color-swatch-group input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fx-shop-filters .rbt-color-swatch-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    margin: 0;
    padding: 4px 6px;
    cursor: pointer;
}

.fx-shop-filters .rbt-color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fx-shop-filters .rbt-color-swatch-bg {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
}

.fx-shop-filters .rbt-color-swatch-bg::before,
.fx-shop-filters .rbt-color-swatch-bg::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 5px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    opacity: 0;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.fx-shop-filters .rbt-color-swatch-content.active .rbt-color-swatch-bg::before,
.fx-shop-filters .rbt-color-swatch-group input:checked + .rbt-color-swatch-content .rbt-color-swatch-bg::before {
    opacity: 1;
}

.fx-shop-filters .rbt-color-swatch-text {
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: var(--f-medium);
}

.fx-shop-filters .rbt-color-swatch-group input:checked + .rbt-color-swatch-content .rbt-color-swatch-text {
    color: var(--color-heading);
    font-weight: var(--f-semi-bold);
}

.fx-shop-filters .rbt-has-show-more-inner-content {
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.fx-shop-filters .rbt-has-show-more.active .rbt-has-show-more-inner-content {
    max-height: none;
}

.fx-shop-filters .rbt-show-more-btn-area {
    padding-top: 10px;
}

.fx-shop-filters .rbt-show-more-btn {
    position: relative;
    display: inline-block;
    padding: 4px 28px 4px 12px;
    border: 0;
    border-radius: 60px;
    background: var(--color-brand-300);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: var(--f-semi-bold);
    line-height: 1.5;
    cursor: pointer;
}

.fx-shop-filters .rbt-show-more-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
}

.fx-shop-filters .rbt-has-show-more.active .rbt-show-more-btn::after {
    transform: translateY(-20%) rotate(225deg);
}

.fx-shop-filters .rbt-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0;
}

.fx-shop-filters .fx-filter-tag {
    display: inline-flex;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: var(--f-medium);
    line-height: 1.4;
    cursor: pointer;
}

.fx-shop-filters .fx-filter-tag input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fx-shop-filters .fx-filter-tag:hover,
.fx-shop-filters .fx-filter-tag.active,
.fx-shop-filters .fx-filter-tag:has(input:checked) {
    background: transparent;
    color: var(--color-heading);
    font-weight: var(--f-semi-bold);
}

.fx-shop-filters .bb-product-form-filter,
.fx-shop-filters .bb-product-filter,
.fx-shop-filters .bb-product-filter-attributes {
    margin: 0;
    padding: 0;
    background: transparent;
}

@media (min-width: 992px) {
    .fx-filter-sheet__bar,
    .fx-filter-sheet__footer {
        display: none;
    }

    .fx-filter-sheet__body {
        display: contents;
    }
}

@media (max-width: 991.98px) {
    .fx-shop-filters,
    .tp-shop-area .row > :has(.fx-shop-filters) {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }

    .bb-filter-offcanvas-area {
        top: auto !important;
        bottom: 0 !important;
        inset-inline-start: 0 !important;
        inset-inline-end: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: min(92vh, 760px);
        border-radius: 22px 22px 0 0;
        transform: translateY(105%) !important;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(16, 24, 40, 0.16);
    }

    .bb-filter-offcanvas-area.offcanvas-opened {
        transform: translateY(0) !important;
    }

    .bb-filter-offcanvas-area .bb-filter-offcanvas-wrapper {
        display: flex;
        flex-direction: column;
        max-height: min(92vh, 760px);
        min-height: 0 !important;
        padding: 0 !important;
    }

    .fx-filter-sheet__bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        padding: 16px 16px 12px;
        border-bottom: 1px solid #ebebeb;
        background: #fff;
    }

    .fx-filter-sheet__reset {
        justify-self: start;
        color: #212b36;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .fx-filter-sheet__title {
        margin: 0;
        color: #212b36;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-align: center;
    }

    .fx-filter-sheet__close {
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #212b36;
    }

    .fx-filter-sheet__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        padding: 4px 18px 8px;
        -webkit-overflow-scrolling: touch;
    }

    .bb-filter-offcanvas-area .fx-shop-filters .rbt-sidebar-top {
        display: none;
    }

    .bb-filter-offcanvas-area .fx-shop-filters .rbt-sidebar-bottom {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .fx-filter-sheet__footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #ebebeb;
        background: #fff;
    }

    .fx-filter-sheet__apply {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 52px;
        padding: 0 20px;
        border: 0;
        border-radius: 999px;
        background: #212b36;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
}

/* Brand / category name and description share one row. The description sits
   on the opposite side and clips to one line. */
.fx-listing-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.fx-listing-heading .h1 {
    flex: 0 0 auto;
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
}

@media (max-width: 768px) {
    .tp-shop-area > .container.position-relative.pt-50 {
        padding-top: 3px;
    }
}

/* Style 1 card: wishlist and compare sit on the image, cart and quick view
   share the bottom edge. */
.tp-product-item .tp-product-thumb {
    position: relative;
}

.tp-product-item .tp-product-badge {
    right: auto;
    left: 12px;
    top: 12px;
}

.tp-product-item .fx-style1-actions {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.tp-product-item .fx-style1-icon,
.tp-product-item .fx-style1-bar {
    pointer-events: auto;
}

.tp-product-item .fx-style1-icon {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(235, 235, 235, 0.9);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.86);
    color: #637381;
    box-shadow: 0 1px 2px rgba(33, 43, 54, 0.08);
    backdrop-filter: blur(6px);
}

.tp-product-item .fx-style1-icon--wish {
    top: 12px;
}

.tp-product-item .fx-style1-icon--compare {
    top: 64px;
}

.tp-product-item .fx-style1-icon--go {
    display: none;
}

.tp-product-item .fx-style1-actions:not(:has(.fx-style1-icon--wish)) .fx-style1-icon--compare {
    top: 12px;
}

.tp-product-item .fx-style1-icon svg {
    width: 20px;
    height: 20px;
}

.tp-product-item .fx-style1-icon:hover,
.tp-product-item .fx-style1-icon.is-active,
.tp-product-item .fx-style1-icon.active {
    background: #fff;
    color: #212b36;
}

.tp-product-item .fx-style1-icon--wish.is-active,
.tp-product-item .fx-style1-icon--wish.active,
.tp-product-item .fx-style1-icon--wish.is-active:hover,
.tp-product-item .fx-style1-icon--wish.active:hover {
    color: var(--tp-theme-primary, var(--primary-color));
}

.tp-product-item .fx-style1-icon--wish.is-active svg,
.tp-product-item .fx-style1-icon--wish.active svg {
    fill: currentColor;
}

.tp-product-item .fx-style1-bar {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.tp-product-item .fx-style1-bar:has(.fx-style1-btn:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.tp-product-item .fx-style1-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(33, 43, 54, 0.12);
}

.tp-product-item .fx-style1-btn svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.tp-product-item .fx-style1-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-product-item .fx-style1-btn--cart {
    border: 0;
    background: #212b36;
    color: #fff;
}

.tp-product-item .fx-style1-btn--cart:hover {
    background: #1a222b;
    color: #fff;
}

.tp-product-item .fx-style1-btn--view {
    border: 1px solid rgba(235, 235, 235, 0.9);
    background: rgba(255, 255, 255, 0.95);
    color: #212b36;
}

.tp-product-item .fx-style1-btn--view:hover {
    background: #fff;
    color: #212b36;
}

@media (hover: hover) {
    .tp-product-item .fx-style1-icon,
    .tp-product-item .fx-style1-bar {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .tp-product-item .fx-style1-bar {
        transform: translateY(8px);
    }

    .tp-product-item:hover .fx-style1-icon,
    .tp-product-item:hover .fx-style1-bar,
    .tp-product-item:focus-within .fx-style1-icon,
    .tp-product-item:focus-within .fx-style1-bar,
    .tp-product-item .fx-style1-icon--wish.is-active,
    .tp-product-item .fx-style1-icon--wish.active {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .tp-product-item .fx-style1-icon {
        right: 8px;
        width: 28px;
        height: 28px;
    }

    .tp-product-item .fx-style1-icon--wish {
        top: 8px;
    }

    .tp-product-item .fx-style1-icon--compare {
        top: 44px;
    }

    .tp-product-item .fx-style1-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* PWA: no text buttons. Quick view is the dark arrow on the image. */
@media (max-width: 768px) {
    .tp-product-item .fx-style1-bar {
        display: none;
    }

    .tp-product-item .fx-style1-icon {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .tp-product-item .fx-style1-icon--go {
        display: flex;
        top: auto;
        right: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 8px;
        background: #212b36;
        color: #fff;
        box-shadow: 0 6px 14px rgba(33, 43, 54, 0.22);
        backdrop-filter: none;
    }

    .tp-product-item .fx-style1-icon--go:hover,
    .tp-product-item .fx-style1-icon--go.is-active,
    .tp-product-item .fx-style1-icon--go.active {
        background: #1a222b;
        color: #fff;
    }
}

/* Mobile / PWA: filter, sort, page size, layout, and the result count
   share one horizontal slider. Filter and sort lead. */
@media (max-width: 991.98px) {
    .fx-shop-toolbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        margin-top: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fx-shop-toolbar::-webkit-scrollbar {
        display: none;
    }

    .fx-shop-toolbar:has(.nice-select.open) {
        overflow: visible;
    }

    .fx-shop-toolbar > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .fx-shop-toolbar__filter { order: 1; }
    .fx-shop-toolbar__sort { order: 2; }
    .fx-shop-toolbar__per { order: 3; }
    .fx-shop-toolbar__layout { order: 4; margin-right: 0; }
    .fx-shop-toolbar__result { order: 5; }

    .fx-shop-toolbar .tp-shop-top-select .nice-select {
        width: auto;
        min-width: 0;
        max-width: none;
        height: 40px;
        padding: 0 34px 0 14px;
        line-height: 38px;
    }

    .fx-shop-toolbar .tp-filter-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        height: 40px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .fx-shop-toolbar .tp-filter-btn span {
        display: inline-flex;
    }

    .fx-shop-toolbar .tp-shop-top-tab .nav-tabs {
        flex-wrap: nowrap;
        border: 0;
    }

    .fx-shop-toolbar .tp-shop-top-result p {
        margin: 0;
        font-size: 13px;
        line-height: 40px;
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .fx-shop-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
    }

    .fx-shop-toolbar__layout { order: 1; }
    .fx-shop-toolbar__result { order: 2; margin-right: auto; }
    .fx-shop-toolbar__sort { order: 3; }
    .fx-shop-toolbar__per { order: 4; }
}

.fx-listing-heading__desc {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    margin-inline-start: auto;
    overflow: hidden;
    color: #637381;
    font-size: 14px;
    line-height: 1.4;
    text-align: end;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* PWA: shopping cart opens as a bottom sheet, with the same button pair as the cards. */
@media (max-width: 768px) {
    .cartmini__area {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10001;
        width: 100%;
        height: auto;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
        overflow: hidden;
        transform: translate3d(0, 110%, 0);
        transition: transform 0.32s ease;
    }

    .cartmini__area.cartmini-opened {
        transform: translate3d(0, 0, 0);
    }

    .cartmini__area::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        z-index: 2;
        width: 36px;
        height: 4px;
        border-radius: 4px;
        background: #d0d5dd;
        transform: translateX(-50%);
    }

    .cartmini__area .cartmini__wrapper {
        min-height: 0;
        max-height: 92dvh;
        padding: 6px 16px calc(12px + env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .cartmini__area .cartmini__top-title {
        padding-top: 22px;
    }

    .cartmini__area .cartmini__widget {
        height: auto;
        max-height: calc(92dvh - 230px);
    }

    .cartmini__area .cartmini__checkout {
        padding-top: 12px;
        padding-bottom: 4px;
    }

    .cartmini__area .cartmini__checkout-title {
        margin-bottom: 12px;
    }

    .cartmini__area .cartmini__empty {
        margin-top: 36px;
        margin-bottom: 20px;
    }

    .cartmini__area .cartmini__checkout-btn {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px;
    }

    .cartmini__area .cartmini__checkout-btn .tp-btn,
    .cartmini__area .cartmini__empty .tp-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        text-align: center;
    }

    .cartmini__area .cartmini__checkout-btn .tp-btn:only-child,
    .cartmini__area .cartmini__empty .tp-btn {
        grid-column: 1 / -1;
    }

    .cartmini__area .cartmini__checkout-btn .tp-btn:not(.tp-btn-border),
    .cartmini__area .cartmini__empty .tp-btn {
        border: 0;
        background: #212b36;
        color: #fff;
    }

    .cartmini__area .cartmini__checkout-btn .tp-btn:not(.tp-btn-border):hover,
    .cartmini__area .cartmini__empty .tp-btn:hover {
        background: #1a222b;
        color: #fff;
    }

    .cartmini__area .cartmini__checkout-btn .tp-btn-border {
        border: 1px solid rgba(235, 235, 235, 0.9);
        background: #fff;
        color: #212b36;
    }

    .cartmini__area .cartmini__checkout-btn .tp-btn-border:hover {
        border-color: rgba(235, 235, 235, 0.9);
        background: #fff;
        color: #212b36;
    }
}

/* Keep the page still while a modal, cart sheet, menu, or filter sheet is open.
   The gutter stays reserved so hiding the scrollbar does not widen the page. */
html.fx-scroll-lock,
html.fx-scroll-lock body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

html.fx-scroll-lock {
    scrollbar-gutter: stable;
}

html.fx-scroll-lock body {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

html.fx-scroll-lock .modal,
html.fx-scroll-lock .cartmini__area,
html.fx-scroll-lock .flx-sheet,
html.fx-scroll-lock .offcanvas,
html.fx-scroll-lock .offcanvas__area,
html.fx-scroll-lock .bb-filter-offcanvas-area,
html.fx-scroll-lock .fx-qv-panel,
html.fx-scroll-lock .cartmini__widget,
html.fx-scroll-lock .flx-sheet__body,
html.fx-scroll-lock .modal-body {
    overscroll-behavior: contain;
}
