/* PRODUCT LOOP */

.wcb-filter-loading {
    position: relative;
    pointer-events: none !important;
    opacity: .6 !important;
}

.wcb-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 45px;
    color: #007cba;
}

.wcb-preloader>div {
    position: relative;
    width: 1em;
    height: .45em;
}

.wcb-preloader>div div {
    position: absolute;
    top: .1em;
    width: .25em;
    height: .25em;
    background-color: currentColor;
    border-radius: 100%;
}

.wcb-preloader>div div:nth-child(1) {
    left: 0;
    animation: preloader-dots-animation .9s cubic-bezier(0.2, 0.68, 0.18, 1.08) .12s infinite normal both running;
}

.wcb-preloader>div div:nth-child(2) {
    left: .375em;
    animation: preloader-dots-animation .9s cubic-bezier(0.2, 0.68, 0.18, 1.08) .24s infinite normal both running;
}

.wcb-preloader>div div:nth-child(3) {
    left: .75em;
    animation: jsf_provider-preloader-dots-elastic-animation .9s cubic-bezier(0.2, 0.68, 0.18, 1.08) .36s infinite normal both running;
}

.wcb-empty-message {
    text-align: center;
    margin: 40px 0;
}

.wcb-products {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding: 0 !important;
    list-style: none !important;
    transition: 0.6s;
}

.wcb-products>li {
    padding: 0 12px !important;
    margin: 0 0 20px 0 !important;
    clear: none !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.wcb-products.columns-2>li {
    max-width: 50% !important;
}

.wcb-products.columns-3>li {
    max-width: 33.333% !important;
}

.wcb-products.columns-4>li {
    max-width: 25% !important;
}

@media (max-width: 1200px) {
    .wcb-products.columns-4>li {
        max-width: 33.333% !important;
    }
}

@media (max-width: 767px) {

    .wcb-products.columns-3>li,
    .wcb-products.columns-4>li {
        max-width: 50% !important;
    }
}

.wcb-products>li .woocommerce-loop-product__title {
    color: #000 !important;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3em !important;
    display: block !important;
    min-height: 40px !important;
    margin: 0px 0 0px 0 !important;
    font-family: inherit !important;
}

/*
 * The card price row, the card add-to-cart button and the discount badge are
 * declared in product-card.css. They used to live here; keeping a second copy would
 * mean two sources of truth for the same card.
 */

.wcb-products li.product a {
    display: block !important;
}

/* THUMBNAIL BG AND PADDING FOR Sleek Mockup */
.wcb-product-thumbs,
.wcb-products li.product a img {
    background-color: #f4f4f4 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: background-color 0.3s ease !important;
}

.wcb-product-thumbs {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    /* Force perfect square */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.wcb-product-thumbs__inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.wcb-product-thumbs img,
.wcb-products li.product a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Center and expand without clipping */
}

/* END PRODUCT LOOP */


/* THUMBNAIL EFFECTS */
.wcb-product-thumbs {
    position: relative;
    overflow: hidden;
}

.wcb-products>li img {
    margin: 0 !important;
}

.wcb-product-thumbs img {
    transition: all 400ms linear;
}

.wcb-product-thumbs.effect-slide-bottom img+img,
.wcb-product-thumbs.effect-slide-top img+img,
.wcb-product-thumbs.effect-slide-right img+img,
.wcb-product-thumbs.effect-slide-left img+img {
    position: absolute;
    will-change: transform;
}

.wcb-product-thumbs.effect-slide-left img+img {
    top: 0;
    right: 100%;
}

.wcb-products>li:hover .wcb-product-thumbs.effect-slide-left img {
    transform: translateX(100%);
}

.wcb-product-thumbs.effect-slide-right img+img {
    top: 0;
    left: 100%;
}

.wcb-products>li:hover .wcb-product-thumbs.effect-slide-right img {
    transform: translateX(-100%);
}

.wcb-product-thumbs.effect-slide-top img+img {
    bottom: 100%;
    right: 0;
}

.wcb-products>li:hover .wcb-product-thumbs.effect-slide-top img {
    transform: translateY(100%);
}

.wcb-product-thumbs.effect-slide-bottom img+img {
    top: 100%;
    right: 0;
}

.wcb-products>li:hover .wcb-product-thumbs.effect-slide-bottom img {
    transform: translateY(-100%);
}

.wcb-product-thumbs.effect-fade-with-zoom img {
    position: relative;
    opacity: 1;
    transition: all .6s ease;
    transform: scale(1.1);
    will-change: opacity;
}

.wcb-product-thumbs.effect-fade-with-zoom img+img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1);
}

.wcb-products>li:hover .wcb-product-thumbs.effect-fade-with-zoom img {
    opacity: 0;
    will-change: opacity;
    transform: scale(1);
}

.wcb-products>li:hover .wcb-product-thumbs.effect-fade-with-zoom img+img {
    opacity: 1;
    transform: scale(1.1);
}

.wcb-product-thumbs.effect-fade img {
    position: relative !important;
    opacity: 1 !important;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out !important;
}

.wcb-product-thumbs.effect-fade img~img {
    position: absolute !important;
    top: 0px !important;
    left: 0px !important;
    opacity: 0 !important;
    z-index: 2 !important;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out !important;
}

.wcb-products>li:hover .wcb-product-thumbs.effect-fade img:first-child {
    opacity: 0 !important;
}

.wcb-products>li:hover .wcb-product-thumbs.effect-fade img~img {
    opacity: 1 !important;
}

/* END THUMBNAIL EFFECTS */

/* COMPARE-WISHLIST */

.wcb-products .jet-wishlist-button__link,
.wcb-products .jet-compare-button__link {
    padding: 0;
    width: 40px;
    height: 40px;
}

.wcb-products .jet-compare-button__state::after {
    color: var(--wcb-color-icons);
    font-size: 24px;
    content: "\3d";
    font-family: "Font Awesome 6 Free";
}

.wcb-products .jet-wishlist-button__state::after {
    color: #000 !important;
    font-size: 20px !important;
    content: "\f004" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.wcb-products .jet-wishlist-button__state span,
.wcb-products .jet-compare-button__state span {
    display: none;
}

.wcb-products .jet-wishlist-button__state-added::after {
    font-weight: 900 !important;
}

.wcb-products>li .jet-wishlist-button__container {
    top: 5px !important;
    position: absolute !important;
    right: 15px !important;
    left: auto !important;
    margin: 0 !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.wcb-products>li .jet-compare-button__container {
    top: 40px !important;
    position: absolute !important;
    right: 15px !important;
    left: auto !important;
    margin: 0 !important;
    align-items: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: .3s ease all;
}

.wcb-products>li:hover .jet-compare-button__container {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.wcb-products .jet-wishlist-button__link[data-widget-id=default] .jet-wishlist-button__plane-normal,
.wcb-products .jet-wishlist-button__link[data-widget-id=default] .jet-wishlist-button__plane-added,
.wcb-products .jet-compare-button__link[data-widget-id=default] .jet-compare-button__plane-normal,
.wcb-products .jet-compare-button__link[data-widget-id=default] .jet-compare-button__plane-added {
    background-color: transparent !important;
}

/* END COMPARE-WISHLIST */


/* FILTER SIDEBAR */

.wcb-filter-list label {
    display: flex;
    align-items: center;
    padding: 2px 0;
    line-height: 1.2;
    cursor: pointer;
}

.wcb-filter-list .wcb-filter-group[data-taxonomy=pa_tallas] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.wcb-filter-list label .list-option {
    width: 16px;
    height: 16px;
    border: 1px solid #cbcbcb;
    border-radius: 0;
    margin-right: 6px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.wcb-filter-list label .list-option::after {
    content: '';
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: 0.3s ease-in-out;
}

.wcb-filter-list input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.wcb-filter-list label:hover .list-option::after,
.wcb-filter-list input:checked+.list-option::after {
    opacity: 1;
    visibility: visible;
    background-color: #0d00aa;
}

/* ENDFILTER SIDEBAR */

/* FILTER SORTING */

#wcb-filter-sorting {
    margin-bottom: 20px;
}

/*
 * JS moves the result count in here (it is rendered by its own shortcode, in a different
 * Elementor container). As a flex row the count sits at the left end and the select at the
 * right, on one line. The select's own margin-left:auto would fight space-between, so it is
 * neutralised inside the row only.
 */
#wcb-filter-sorting.wcb-sorting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#wcb-filter-sorting.wcb-sorting-row .wcb-result-count {
    order: 1;
    margin: 0;
    font-size: 0.95rem;
}

#wcb-filter-sorting.wcb-sorting-row .wcb-sorting-select {
    order: 2;
    margin-left: 0;
    align-self: center;
}

/*
 * The button is a third flex child, and space-between would centre it between the count
 * and the select. order: 2 puts it in the right-hand pair and margin-left: auto eats the
 * free space, so the count stays at the far left and the two controls sit together.
 * No display is declared: the button keeps its intrinsic width and the hidden attribute
 * keeps working.
 */
#wcb-filter-sorting.wcb-sorting-row .wcb-clear-filters {
    order: 2;
    margin-left: auto;
    align-self: center;
}

/*
 * Scoped under #wcb-filter-sorting on purpose. Hello Elementor's reset styles bare
 * `[type=button]` elements with a crimson border, a transparent background and a 3px
 * radius, and that rule ties with a single class on specificity while the plugin CSS
 * loads first. The ancestor prefix is what lets the filled black treatment win.
 */
#wcb-filter-sorting .wcb-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background-color: var(--wcb-color-primary);
    border: 1px solid var(--wcb-color-primary);
    border-radius: 0;
    padding: 5px 12px;
    cursor: pointer;
    -webkit-appearance: none;
}

/* The X follows the label colour, so it stays white on the filled button. */
#wcb-filter-sorting .wcb-clear-filters__icon {
    display: block;
    flex: 0 0 auto;
}

/* The button is only ever hidden by JS, and the theme may style buttons with display. */
#wcb-filter-sorting .wcb-clear-filters[hidden] {
    display: none !important;
}

/* The button is already filled, so hover only softens it instead of inverting it. */
#wcb-filter-sorting .wcb-clear-filters:hover {
    opacity: 0.85;
}

#wcb-filter-sorting .wcb-clear-filters:focus-visible {
    outline: 2px solid var(--wcb-color-primary);
    outline-offset: 2px;
}

/* From tablet down the sort control is dropped; the count stays on the row. */
@media (max-width: 1024px) {
    #wcb-filter-sorting .wcb-sorting-select,
    #wcb-filter-sorting .wcb-clear-filters {
        display: none !important;
    }
}

/* On mobile the count goes too: just the grid. */
@media (max-width: 767px) {
    #wcb-filter-sorting,
    #wcb-products-result-count {
        display: none !important;
    }
}

.wcb-sorting-select {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 200px;
    border-style: solid;
    color: var(--wcb-color-primary);
    border: 1px solid var(--wcb-color-primary);
    border-radius: 0;
    padding: 5px 20px 5px 10px;
    margin-left: auto;
    align-self: flex-end;
    -webkit-appearance: none;
}

.wcb-sorting-select:focus-visible {
    outline: var(--wcb-color-primary);
}

/* END FILTER SORTING */


/* FILTER PAGINATION */

.wcb-pagination-nav {
    display: flex;
    justify-content: center;
}

.wcb-pagination-nav>a,
.wcb-pagination-nav>span {
    color: var(--e-global-color-primary);
    margin: calc(6px / 2);
    font-family: "Roboto", Sans-serif;
    font-size: 1em;
    font-weight: 600;
    padding: 10px;
}

.wcb-pagination-nav>.wcb-page-link.current {
    color: var(--e-global-color-772df5d);
}

/* END FILTER PAGINATION */

/* KEYFRAMES */

@keyframes preloader-dots-animation {
    0% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(1, 1.6);
    }

    50% {
        transform: scale(1, 0.7);
    }

    75% {
        transform: scale(1, 1);
    }

    100% {
        transform: scale(1, 1);
    }
}

/* END KEYFRAMES */

/* Applies only when the screen is 768px wide or smaller */
@media (max-width: 768px) {
    .wcb-products>li .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.1em !important;
    }
}

/* PRODUCT CAROUSEL */

.wcb-carousel {
    --wcb-slides: 4;
    --wcb-slides-tablet: 3;
    --wcb-slides-mobile: 2;
    --wcb-gap: 12px;
    --wcb-carousel-button-offset: 50px;
    position: relative;
}

.wcb-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.wcb-carousel__viewport.wcb-dragging {
    cursor: grabbing;
}

.wcb-carousel__viewport img {
    -webkit-user-drag: none;
    user-drag: none;
}

.wcb-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.wcb-carousel__track.wcb-products {
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    column-gap: var(--wcb-gap);
}

.wcb-carousel__track.wcb-products>li {
    flex: 0 0 calc((100% - (var(--wcb-slides) - 1) * var(--wcb-gap)) / var(--wcb-slides));
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.wcb-carousel .wcb-carousel__track.wcb-products>li .woocommerce-loop-product__title {
    margin-top: 10px !important;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wcb-carousel .wcb-carousel__track.wcb-products>li .jet-wishlist-button__container,
.wcb-carousel .wcb-carousel__track.wcb-products>li .jet-compare-button__container {
    display: none !important;
}

@media (max-width: 1024px) {
    .wcb-carousel {
        --wcb-slides: var(--wcb-slides-tablet);
    }
}

@media (max-width: 767px) {
    .wcb-carousel {
        --wcb-slides: var(--wcb-slides-mobile);
    }
}

.wcb-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.wcb-carousel .wcb-carousel__dots .wcb-carousel__dot {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .25s ease, transform .25s ease;
}

.wcb-carousel .wcb-carousel__dots .wcb-carousel__dot:hover {
    background-color: #000 !important;
}

.wcb-carousel .wcb-carousel__dots .wcb-carousel__dot.is-active {
    background-color: #000 !important;
    transform: scale(1.3);
}

/* END PRODUCT CAROUSEL */