/* Reset aislado para evitar choques con CSS de tema, WooCommerce o Swiper externo */
.eicardv5-product-rotator,
.eicardv5-product-rotator * {
    box-sizing: border-box;
}

.eicardv5-product-rotator .eicardv5-swiper.swiper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    list-style: none;
    z-index: 1;
}

.eicardv5-product-rotator .eicardv5-swiper > .swiper-wrapper {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: auto;
    box-sizing: content-box;
    transition-property: transform;
    transform: translate3d(0, 0, 0);
}

.eicardv5-product-rotator .eicardv5-swiper > .swiper-wrapper > .swiper-slide {
    flex-shrink: 0 !important;
    width: 100%;
    height: auto;
    position: relative;
    transition-property: transform;
}

.eicardv5-product-rotator .swiper-notification {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0;
    z-index: -1000;
}

.eicardv5-product-rotator {
    --eicardv5-gap: 32px;
    position: relative;
    width: 100%;
    overflow: visible;
}

.eicardv5-product-rotator .eicardv5-swiper {
    overflow: hidden;
    padding: 18px 0 22px;
}

.eicardv5-product-rotator .swiper-wrapper {
    align-items: center;
}

.eicardv5-product-rotator .eicardv5-slide {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 1;
}

.eicardv5-product-rotator .eicardv5-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    gap: 16px;
    padding: 28px;
    border-radius: 36px;
    text-decoration: none !important;
    color: inherit;
    transition: transform .28s ease, box-shadow .28s ease;
    overflow: hidden;
}

.eicardv5-product-rotator .eicardv5-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
}

.eicardv5-product-rotator .eicardv5-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, .24);
}

.eicardv5-product-rotator .eicardv5-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.eicardv5-product-rotator .eicardv5-category-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    padding: .55em 1.05em;
    border-radius: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #fff;
    font-size: 12px;
}

.eicardv5-product-rotator .eicardv5-product-title {
    display: block;
    color: #061b3f;
    font-size: 21px;
    line-height: 1.13;
    font-weight: 400;
    margin: 0;
}

.eicardv5-product-rotator .eicardv5-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35em;
    color: #061b3f;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    margin-top: auto;
}

.eicardv5-product-rotator .eicardv5-product-price del {
    opacity: .75;
    font-size: .58em;
    font-weight: 600;
    text-decoration-thickness: 2px;
}

.eicardv5-product-rotator .eicardv5-product-price ins {
    text-decoration: none;
    font-weight: 800;
}

.eicardv5-product-rotator .eicardv5-join-icon {
    position: absolute;
    left: calc(var(--eicardv5-gap) / -2);
    top: 35%;
    z-index: 12;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%) rotate(-8deg);
    pointer-events: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .14));
}

.eicardv5-product-rotator .eicardv5-join-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-swiper > .swiper-wrapper > .swiper-slide {
    width: auto;
    transition: width .34s ease, opacity .34s ease;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-card-inner {
    transform: none;
    transform-origin: center center;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-card-inner:hover {
    transform: translateY(-4px);
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-pos-center {
    z-index: 5;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-pos-left {
    z-index: 3;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-pos-right {
    z-index: 2;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-slide:not(.eicardv5-pos-center):not(.eicardv5-pos-left):not(.eicardv5-pos-right) .eicardv5-join-icon,
.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-pos-left .eicardv5-join-icon {
    opacity: 0;
    visibility: hidden;
}

.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-pos-center .eicardv5-join-icon,
.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-pos-right .eicardv5-join-icon {
    opacity: 1;
    visibility: visible;
}

.eicardv5-product-rotator .eicardv5-arrow {
    position: absolute;
    top: 50%;
    z-index: 30;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: #061b3f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: background-color .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.eicardv5-product-rotator .eicardv5-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.eicardv5-product-rotator .eicardv5-arrow svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    transition: fill .25s ease;
}

.eicardv5-product-rotator .eicardv5-arrow-prev {
    left: 0;
}

.eicardv5-product-rotator .eicardv5-arrow-next {
    right: 0;
}

.eicardv5-product-rotator .swiper-button-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.eicardv5-notice {
    padding: 16px 18px;
    border-radius: 12px;
    background: #f6f7f8;
    color: #333;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .eicardv5-product-rotator .eicardv5-card-inner {
        padding: 22px;
        border-radius: 30px;
    }
}

@media (max-width: 767px) {
    .eicardv5-product-rotator .eicardv5-swiper {
        padding-left: 0;
        padding-right: 0;
    }

    .eicardv5-product-rotator .eicardv5-join-icon {
        opacity: .9;
    }
}

/* v2.1.3: modo escalonado controlado por el plugin, sin cálculo interno de Swiper */
.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-swiper.swiper {
    overflow: hidden;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-swiper > .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    transform: none !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-slide {
    min-width: 0 !important;
    transition: width .34s ease, flex-basis .34s ease, margin-right .34s ease, opacity .22s ease !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-is-hidden {
    display: none !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-pos-center {
    z-index: 5;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-pos-left {
    z-index: 3;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-pos-right {
    z-index: 2;
}

/* v2.1.4: posiciones verticales, tipografía proporcional e íconos siempre arriba */
.eicardv5-product-rotator .eicardv5-card-inner:hover,
.eicardv5-product-rotator.eicardv5-stagger-on .eicardv5-card-inner:hover {
    box-shadow: none !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-swiper.swiper,
.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-swiper {
    overflow: visible !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-swiper > .swiper-wrapper {
    align-items: flex-start !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-slide,
.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-pos-left,
.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-pos-center,
.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-pos-right {
    z-index: auto !important;
}

.eicardv5-product-rotator .eicardv5-card-inner {
    z-index: 1;
}

.eicardv5-product-rotator .eicardv5-join-icon {
    z-index: 80 !important;
}

.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-slide {
    transition: width .34s ease, flex-basis .34s ease, margin-right .34s ease, margin-top .34s ease, opacity .22s ease !important;
}


/* v2.1.5: en modo infinito, el orden visual lo controla JS para que 5, 6, 1 no se renderice como 1, 5, 6 al cerrar el loop. */
.eicardv5-product-rotator.eicardv5-custom-stagger-ready .eicardv5-slide {
    order: 99;
}

/* v2.1.6: ajuste móvil fijo a 2 tarjetas visibles, 35% / 65%, controlado por JS. */
