body.ff-catalog-headless-local .ws-catalog-app {
    width: 100%;
}

body.ff-catalog-headless-local,
html:has(body.ff-catalog-headless-local) {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.ff-catalog-headless-local::-webkit-scrollbar,
html:has(body.ff-catalog-headless-local)::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.ff-catalog-headless-local.ws-catalog-app-ready .ws-catalog-fallback {
    display: none !important;
}

.ws-catalog-shell {
    position: relative;
}

.ws-catalog-grid {
    min-height: 40vh;
}

.ws-catalog-item {
    position: relative;
    overflow: hidden;
}

.ws-catalog-item--new {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(8px);
    transition: opacity 0.42s ease, filter 0.42s ease, transform 0.42s ease;
    will-change: opacity, transform, filter;
}

.ws-catalog-item--new.ws-catalog-item--visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.ws-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: rgba(0, 0, 0, 0.04);
    touch-action: pan-y;
}

.ws-card-media-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

.ws-card-media-slide {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.ws-card-media-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ws-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.ws-card-media--empty::after {
    opacity: 1;
}

.ws-card-media--hydrated::after {
    opacity: 0;
}

.ws-card-gallery-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    gap: 0;
    pointer-events: auto;
}

.ws-card-gallery-dot {
    position: relative;
    display: block;
    flex: 1 1 0;
    height: 2px;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(151, 158, 152, 0.35);
    border-radius: 0;
    cursor: pointer;
}

.ws-card-gallery-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms ease;
    background: rgba(128, 144, 131, 0.95);
    border-radius: 0;
}

.ws-card-gallery-dot.is-active::after {
    transform: scaleX(1);
}

.ws-card-badges {
    position: absolute;
    left: 6px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.ws-card-badges--top {
    top: 6px;
}

.ws-card-badges--bottom {
    bottom: 8px;
}

.ws-card-badge {
    background: rgba(255, 255, 255, 0.88);
    color: #5e6f60;
    font-size: 10px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 1px;
    text-transform: uppercase;
}

.ws-card-badge.ws-card-badge--big-sale {
    color: #ff2d2d !important;
}

.ws-card-wishlist {
    position: absolute;
    z-index: 5;
    top: 3px;
    right: 3px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.ws-card-wishlist-icon {
    width: 20px;
    height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: var(--ws-wishlist-icon-empty, none);
}

.ws-card-wishlist.is-active .ws-card-wishlist-icon {
    background-image: var(--ws-wishlist-icon-active, none);
}

.ws-card-colors {
    z-index: 2;
}

@media (min-width: 768px) {
    body.ff-catalog-headless-local .color-palette.ws-card-colors {
        margin-top: -26px !important;
    }
}

.ws-card-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ws-catalog-skeleton {
    padding: 0;
    border: 1px solid #f0f0f0;
}

.ws-catalog-skeleton__media {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
    background-size: 180% 100%;
    animation: wsCatalogSkeleton 1.1s ease infinite;
}

.ws-catalog-skeleton__line {
    height: 11px;
    margin: 10px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.03));
    background-size: 180% 100%;
    animation: wsCatalogSkeleton 1.1s ease infinite;
}

.ws-catalog-skeleton__line--title {
    width: 82%;
}

.ws-catalog-skeleton__line--price {
    width: 52%;
    margin-top: 6px;
    margin-bottom: 12px;
}

.ws-catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 12px;
    border: 1px solid #f1f1f1;
    color: #606060;
}

body.ff-catalog-headless-wishlist .ws-catalog-empty.ws-catalog-empty--wishlist {
    border: 0;
    padding: 40px 0 80px;
}

body.ff-catalog-headless-wishlist .ws-wishlist-empty {
    width: min(540px, 100%);
    margin: 50px auto;
    display: grid;
    justify-items: center;
    row-gap: 48px;
}

body.ff-catalog-headless-wishlist .ws-wishlist-empty__text {
    margin: 0;
    color: #34383b;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.1;
    text-align: center;
}

body.ff-catalog-headless-wishlist .ws-wishlist-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #859584;
    border: 1px solid #859584;
    color: #f2f2f2;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transition: opacity 0.2s ease;
}

body.ff-catalog-headless-wishlist .ws-wishlist-empty__button:hover {
    opacity: 0.9;
}

.ws-catalog-sentinel {
    width: 100%;
    height: 1px;
}

html.ws-sort-scroll-locked,
body.ws-sort-scroll-locked {
    overflow: hidden;
}

body.ff-catalog-headless-catalog .woocommerce-ordering {
    position: relative;
    float: right;
    margin: 0 0 18px auto;
    z-index: 80;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .orderby {
    display: none !important;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper {
    position: relative;
    width: auto;
    min-width: 252px;
    user-select: none;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .ws-sort-mobile-backdrop,
body.ff-catalog-headless-catalog .woocommerce-ordering .ws-sort-mobile-head {
    display: none;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-trigger {
    position: relative;
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #292c2e;
    text-transform: uppercase;
    font: 400 16px/1 "Montserrat", sans-serif;
    letter-spacing: 0.02em;
    padding: 8px 34px 8px 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .list-sort-trigger {
    font: inherit;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .vector-icon,
body.ff-catalog-headless-catalog .woocommerce-ordering .ws-sort-arrow {
    display: inline-block !important;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .vector-icon {
    position: absolute;
    right: 0;
    top: 50%;
    width: 9px;
    height: 18px;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-open .vector-icon {
    transform: translateY(-50%) rotate(90deg);
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(285px, calc(100vw - 20px));
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
        opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 220ms;
    z-index: 90;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-options.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 14px 24px;
    margin: 0;
    color: #292c2e;
    font: 400 16px/1.2 "Montserrat", sans-serif;
    border-bottom: 1px solid #e8e8e8;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option:last-child {
    border-bottom: 0;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option .checkmark {
    opacity: 0;
    display: inline-block;
    width: 14px;
    height: 10px;
    min-width: 14px;
    min-height: 10px;
    line-height: 1;
    color: transparent;
    background: center / contain no-repeat url('./sort-check.svg');
    transform: translateX(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option.selected .checkmark {
    opacity: 1;
    transform: translateX(0);
}

body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option:hover {
    background: #f7f7f7;
}

body.ff-catalog-headless-wishlist .catalog-filters,
body.ff-catalog-headless-wishlist .woocommerce-result-count,
body.ff-catalog-headless-wishlist .woocommerce-ordering,
body.ff-catalog-headless-wishlist .wpc-filters-open-button-container,
body.ff-catalog-headless-wishlist .woocommerce-pagination {
    display: none !important;
}

body.ff-catalog-headless-wishlist .catalog-cards {
    width: 100% !important;
    float: none !important;
    margin-top: 0 !important;
}

body.ff-catalog-headless-wishlist .ws-wishlist-title {
    text-transform: uppercase;
    font-size: 44px;
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 28px;
}

body.ff-catalog-headless-wishlist .ws-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ff-catalog-headless-wishlist .ws-wishlist-page {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-top: 20px;
}

body.ff-catalog-headless-wishlist .ws-wishlist-page .ws-catalog-app,
body.ff-catalog-headless-wishlist .ws-wishlist-page .ws-catalog-shell {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@keyframes wsCatalogSkeleton {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -180% 0;
    }
}

@media (max-width: 560px) {
    .ws-card-wishlist {
        width: 34px;
        height: 34px;
    }

    .ws-card-wishlist-icon {
        width: 20px;
        height: 20px;
    }

    .ws-card-color {
        width: 14px;
        height: 14px;
        margin-left: 2px;
    }

}

@media (max-width: 1024px) {
    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-trigger {
        min-height: 40px;
        font-size: 15px;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-trigger::after {
        content: none;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option {
        font-size: 15px;
        padding: 13px 18px;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option .checkmark {
        width: 14px;
        height: 10px;
    }

    body.ff-catalog-headless-wishlist .ws-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__sort .woocommerce-ordering {
        float: none;
        margin: 0;
        width: auto;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__filter .fflf-mobile-trigger {
        display: block;
        margin-bottom: 0;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__sort .custom-select-wrapper {
        min-width: 0;
        width: auto;
        height: auto !important;
        margin-top: 0 !important;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__filter .fflf-open-btn,
    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__sort .custom-select-trigger {
        min-height: 37px;
        padding: 0 10px;
        border: 0;
        background: #fff;
        color: #7e8e7e;
        text-transform: none;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0;
        display: inline-flex;
        align-items: center;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__filter .fflf-open-btn {
        justify-content: flex-start;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__sort .custom-select-trigger {
        justify-content: flex-end;
        padding-right: 0;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__sort .vector-icon {
        display: none !important;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .ws-sort-mobile-backdrop {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: var(--ws-sort-mobile-top-offset, 0px);
        bottom: 0;
        z-index: 100080;
        background: rgb(245 245 245 / 58%);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .ws-sort-mobile-head {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        top: var(--ws-sort-mobile-top-offset, 0px);
        min-height: 50px;
        z-index: 100081;
        justify-content: flex-end;
        align-items: center;
        padding: 5px 18px;
        border-bottom: 1px solid #d8ddd8;
        background: #fff;
        transform: translateX(102%);
        transition: transform 0.25s ease;
        pointer-events: none;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-options {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(var(--ws-sort-mobile-top-offset, 0px) + 50px);
        width: auto;
        margin: 0;
        border: 0;
        box-shadow: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        z-index: 100081;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: translateX(102%);
        transition: transform 0.25s ease;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-open .ws-sort-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-open .ws-sort-mobile-head,
    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-open .custom-select-options {
        transform: translateX(0);
        pointer-events: auto;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-closing .ws-sort-mobile-backdrop {
        opacity: 0;
        pointer-events: none;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-closing .ws-sort-mobile-head,
    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-select-wrapper.is-closing .custom-select-options {
        transform: translateX(102%);
        pointer-events: none;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option {
        padding: 16px 30px;
        font-size: 16px;
        line-height: 1.2;
        border-bottom: 1px solid #e8e8e8;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option .checkmark {
        width: 18px;
        height: 14px;
        min-width: 18px;
        min-height: 14px;
    }
}

@media (max-width: 767px) {
    body.ff-catalog-headless-catalog .woocommerce-ordering .list-sort-trigger {
        padding-right: 10px;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile {
        align-items: center;
    }

    body.ff-catalog-headless-catalog.ws-catalog-mobile-toolbar-active .catalog-toolbar-mobile__sort .woocommerce-ordering {
        margin: 0;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering {
        float: none;
        margin: 0 0 10px auto;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option {
        font-size: 16px;
        line-height: 1.2;
        padding: 16px 18px;
    }

    body.ff-catalog-headless-catalog .woocommerce-ordering .custom-option .checkmark {
        width: 16px;
        height: 12px;
    }

    .ws-card-badge {
        background: rgb(244 243 242 / 86%);
        color: #5e6f60;
        font-size: 7px;
        line-height: 1;
        padding: 3px 4px;
        border-radius: 1px;
        text-transform: uppercase;
    }

    .ws-card-badges {
        left: 2px;
    }

    .ws-card-badges--top {
        top: 2px;
    }

    .ws-card-badges--bottom {
        bottom: 5px;
    }

    body.ff-catalog-headless-wishlist .ws-wishlist-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    body.ff-catalog-headless-wishlist .ws-catalog-empty.ws-catalog-empty--wishlist {
        padding: 24px 0 48px;
    }

    body.ff-catalog-headless-wishlist .ws-wishlist-empty__text {
        font-size: 14px;
    }

    body.ff-catalog-headless-wishlist .ws-wishlist-empty__button {
        font-size: 14px;
        font-weight: 600;
        padding: 12px 24px;
    }

}
