.mm-product-carousel {
    --mm-slides: 4;
    --mm-slides-tablet: 2;
    --mm-slides-mobile: 1;
    --mm-gap: 24px;
    position: relative;
    overflow: hidden;
}

.mm-product-carousel .mm-card-title,
.mm-product-carousel .mm-card-title a {
    color: #0D1B39;
}

.mm-product-carousel .mm-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
}

.mm-product-carousel .mm-card-price {
    display: flex;
    justify-content: flex-start;
}

.mm-product-carousel .mm-card-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: 44px;
}

.mm-product-carousel .mm-card-btn > a {
    margin: 0;
}

.mm-product-carousel .mm-card-btn a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    min-width: 140px;
    height: 44px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.mm-product-carousel .mm-card-btn a.button.mm-card-plus {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    flex: 0 0 44px;
    box-sizing: border-box;
    transform: translate(30px, -1px);
    position: relative;
    text-indent: 0 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    font-family: inherit !important;
}

.mm-product-carousel .mm-card-btn a.button.mm-card-plus::before,
.mm-product-carousel .mm-card-btn a.button.mm-card-plus::after {
    content: none !important;
    display: none !important;
}

.mm-product-carousel .mm-card-btn .added_to_cart {
    display: none !important;
}

.mm-product-carousel .mm-card-body,
.mm-product-carousel .mm-card-body p,
.mm-product-carousel .woocommerce-product-details__short-description {
    color: #222222;
}

.mm-product-carousel .mm-card-btn .mm-card-buy {
    background: #002857;
    color: #ffffff;
    border-color: #002857;
}

.mm-product-carousel .mm-card-btn .mm-card-buy:hover {
    background: #002857;
    color: #ffffff;
    border-color: #002857;
}

.mm-product-carousel .mm-card-btn .mm-card-plus {
    background: #F6B76F;
    color: #ffffff;
    border-color: #F6B76F;
}

.mm-product-carousel .mm-card-btn .mm-card-plus:not(.loading) {
    color: #ffffff !important;
}

.mm-product-carousel .mm-card-btn .mm-card-plus:hover {
    background: #F6B76F;
    color: #ffffff;
    border-color: #F6B76F;
}

.mm-product-carousel .mm-card-btn .mm-card-plus.loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.mm-product-carousel .mm-card-btn .mm-card-plus.loading::before {
    display: none !important;
    content: none !important;
}

.mm-product-carousel .mm-card-btn .mm-card-plus.loading::after,
.mm-product-carousel .mm-card-btn .mm-card-plus.loading.added::after {
    display: block !important;
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    animation: mm-spin 0.8s linear infinite;
}

.mm-product-carousel .mm-card-btn .mm-card-plus.added {
    color: #ffffff !important;
}

.mm-product-carousel .mm-card-btn .mm-card-plus.added:not(.loading)::before,
.mm-product-carousel .mm-card-btn .mm-card-plus.added:not(.loading)::after {
    content: none !important;
    display: none !important;
}

.mm-carousel-viewport {
    overflow: hidden;
}

.mm-carousel-track {
    display: flex;
    gap: var(--mm-gap);
    list-style: none;
    margin: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
}

.mm-carousel-track.products {
    display: flex !important;
}

.mm-carousel-track > li {
    flex: 0 0 calc((100% - (var(--mm-slides) - 1) * var(--mm-gap)) / var(--mm-slides)) !important;
    width: calc((100% - (var(--mm-slides) - 1) * var(--mm-gap)) / var(--mm-slides)) !important;
    max-width: calc((100% - (var(--mm-slides) - 1) * var(--mm-gap)) / var(--mm-slides)) !important;
    scroll-snap-align: start;
}

.mm-product-carousel .mm-card-image-wrapper {
    background: #F8F8F8;
    border-radius: 16px;
}

.mm-product-carousel .mm-card-image-wrapper--ambient {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mm-product-carousel .mm-card-image-wrapper--ambient .mm-card-image {
    width: 100%;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
}

.mm-product-carousel .mm-card-image-wrapper--ambient .mm-card-image img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    transform: scale(1.02);
    transform-origin: center;
    -webkit-mask-image: radial-gradient(130% 130% at 50% 50%, #000 68%, transparent 100%);
    mask-image: radial-gradient(130% 130% at 50% 50%, #000 68%, transparent 100%);
}

.mm-product-carousel .mm-card-image-wrapper--ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: radial-gradient(120% 120% at 50% 50%, rgba(248, 248, 248, 0) 66%, rgba(248, 248, 248, 0.65) 100%);
}

.mm-carousel-track.products > li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.mm-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #1E1E1E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
}

.mm-carousel-btn:hover {
    border-color: #ffffff;
    background: #002857;
    color: #ffffff;
}

.mm-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.mm-carousel-btn.prev {
    left: -14px;
}

.mm-carousel-btn.next {
    right: -14px;
}

@media (max-width: 1200px) {
    .mm-product-carousel {
        --mm-slides: 3;
    }
}

@media (max-width: 1024px) {
    .mm-product-carousel {
        --mm-slides: 3 !important;
    }

    .mm-carousel-btn.prev {
        left: -10px;
    }

    .mm-carousel-btn.next {
        right: -10px;
    }

    .mm-product-carousel .mm-card-body {
        align-items: center;
        text-align: center;
    }

    .mm-product-carousel .mm-card-price {
        justify-content: center;
    }

    .mm-product-carousel .mm-card-btn {
        justify-content: center;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin-bottom: 10px;
    }

    .mm-product-carousel .mm-card-btn a.button {
        height: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        margin: 0 !important;
        vertical-align: middle !important;
    }

    .mm-product-carousel .mm-card-btn a.button.mm-card-plus {
        transform: translateY(0) !important;
        position: static !important;
        top: auto !important;
        line-height: 1 !important;
    }
}

@media (max-width: 640px) {
    .mm-product-carousel {
        --mm-slides: var(--mm-slides-mobile);
    }

    .mm-carousel-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-x;
        scrollbar-width: none;
    }

    .mm-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .mm-carousel-btn {
        width: 34px;
        height: 34px;
    }

    .mm-carousel-btn.prev {
        left: 8px;
    }

    .mm-carousel-btn.next {
        right: 8px;
    }

    .mm-product-carousel .mm-carousel-track > li,
    .mm-product-carousel ul.products.mm-carousel-track > li,
    .mm-product-carousel ul.products > li.product {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mm-product-carousel .mm-card-product {
        margin: 0 auto;
        text-align: center;
    }

.mm-product-carousel .mm-card-image-wrapper {
        display: flex;
        justify-content: center;
    }

    .mm-product-carousel .mm-card-image img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .mm-product-carousel .mm-card-body {
        align-items: center;
        text-align: center;
    }

    .mm-product-carousel .mm-card-price {
        justify-content: center;
    }

    .mm-product-carousel .mm-card-btn {
        justify-content: center;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin-bottom: 12px;
    }

    .mm-product-carousel .mm-card-btn a.button,
    .mm-product-carousel .mm-card-btn a.button.mm-card-plus {
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        vertical-align: middle !important;
    }

    .mm-product-carousel .mm-card-btn a.button.mm-card-plus {
        transform: translateY(0) !important;
        position: static !important;
        top: auto !important;
        line-height: 1 !important;
    }
}

@media (max-width: 640px) {
    .mm-product-carousel .mm-card-image-wrapper--ambient .mm-card-image {
        min-height: 240px;
    }
}
