.mmpc-carousel,
.mmpc-carousel * {
    box-sizing: border-box;
}

.mmpc-carousel {
    position: relative;
    width: 100%;
    direction: rtl;
    --mmpc-speed: 450ms;
    --mmpc-image-rotate: -4deg;
    --mmpc-image-scale: 1.05;
    --mmpc-title-min-height: 58px;
    --mmpc-price-min-height: 34px;
}

.mmpc-carousel.mmpc-has-arrows {
    padding-right: 56px;
    padding-left: 56px;
}

.mmpc-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 18px 0 24px;
}

.mmpc-track {
    display: flex;
    align-items: stretch;
    direction: ltr;
    will-change: transform;
    transition: transform var(--mmpc-speed) cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mmpc-slide {
    flex: 0 0 auto;
    min-width: 0;
    direction: rtl;
    padding: 0 10px;
}

.mmpc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 380px;
    text-decoration: none !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 22px 18px;
    isolation: isolate;
    transition:
        background-color 260ms ease,
        box-shadow 260ms ease,
        border-color 260ms ease;
}

.mmpc-card:hover {
    text-decoration: none !important;
    transform: none !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.mmpc-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FEECCC;
    color: #FBA95C;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.mmpc-image-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
    background: transparent !important;
}

.mmpc-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent !important;
}

.mmpc-product-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    transform: rotate(0deg) scale(1);
    transform-origin: center center;
    transition:
        opacity 260ms ease,
        transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
    backface-visibility: hidden;
}

.mmpc-main-image {
    z-index: 1;
    opacity: 1;
}

.mmpc-hover-image {
    z-index: 2;
    opacity: 0;
}

.mmpc-card:hover .mmpc-image-stack.has-hover .mmpc-main-image {
    opacity: 0;
    transform: rotate(calc(var(--mmpc-image-rotate) * -0.35)) scale(0.98);
}

.mmpc-card:hover .mmpc-image-stack.has-hover .mmpc-hover-image {
    opacity: 1;
    transform: rotate(var(--mmpc-image-rotate)) scale(var(--mmpc-image-scale));
}

.mmpc-card:hover .mmpc-image-stack:not(.has-hover) .mmpc-main-image,
.mmpc-image-wrap:hover .mmpc-image-stack:not(.has-hover) .mmpc-main-image {
    transform: rotate(var(--mmpc-image-rotate)) scale(var(--mmpc-image-scale));
}

.mmpc-title {
    margin: 0 0 10px;
    padding: 0;
    min-height: var(--mmpc-title-min-height, 58px);
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    transition: color 260ms ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mmpc-price {
    width: 100%;
    min-height: var(--mmpc-price-min-height, 34px);
    margin: 0 0 18px;
    color: #1f1f1f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.mmpc-price .amount {
    color: inherit;
    font-weight: inherit;
}

.mmpc-price del {
    display: inline-flex;
    margin-inline-end: 8px;
    color: #9a9a9a;
    font-size: 0.92em;
    font-weight: 600;
    opacity: 0.8;
    text-decoration-thickness: 1px;
}

.mmpc-price del .amount {
    color: inherit;
}

.mmpc-price ins {
    display: inline-flex;
    color: #1f1f1f;
    font-weight: 800;
    text-decoration: none !important;
}

.mmpc-price ins .amount {
    color: inherit;
}

.mmpc-button-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    direction: rtl;
}

.mmpc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    transition:
        background-color 260ms ease,
        color 260ms ease,
        transform 260ms ease;
}

.mmpc-card:hover .mmpc-button {
    background: #FBA95C;
    color: #ffffff;
}

.mmpc-nav {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    margin: 0;
}

.mmpc-arrow {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #1f1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-50%);
    transition:
        background-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
}

.mmpc-prev {
    right: 0;
}

.mmpc-next {
    left: 0;
}

.mmpc-arrow:hover {
    background: #FBA95C;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(251, 169, 92, 0.28);
}

.mmpc-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mmpc-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    direction: rtl;
}

.mmpc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition:
        width 220ms ease,
        height 220ms ease,
        background-color 220ms ease,
        opacity 220ms ease;
}

.mmpc-dot.is-active {
    width: 22px;
    background: #FBA95C;
}

.mmpc-notice {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff7e8;
    color: #8a5a12;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
    text-align: center;
}

@media (max-width: 1024px) {
    .mmpc-carousel.mmpc-has-arrows {
        padding-right: 50px;
        padding-left: 50px;
    }

    .mmpc-card {
        min-height: 350px;
    }

    .mmpc-image-wrap {
        height: 190px;
    }
}

@media (max-width: 767px) {
    .mmpc-carousel.mmpc-has-arrows {
        padding-right: 44px;
        padding-left: 44px;
    }

    .mmpc-card {
        min-height: 330px;
        padding: 18px 14px;
    }

    .mmpc-image-wrap {
        height: 180px;
        margin-bottom: 14px;
    }

    .mmpc-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .mmpc-price {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .mmpc-button {
        min-height: 42px;
        font-size: 13px;
    }

    .mmpc-discount-badge {
        top: 12px;
        left: 12px;
        min-width: 48px;
        min-height: 30px;
        font-size: 13px;
    }

    .mmpc-arrow {
        width: 38px;
        height: 38px;
    }
}


.mmpc-card:focus,
.mmpc-card:active {
    transform: none !important;
    outline: none;
}

.mmpc-card:focus-visible {
    outline: 2px solid rgba(251, 169, 92, 0.65);
    outline-offset: 3px;
}
