/* ── Shop Engine – Favorites ─────────────────────────────────── */

/* ── Favorite toggle button (heart) ──────────────────────────── */
button.se-fav-btn,
button.se-fav-btn:hover,
button.se-fav-btn:focus,
button.se-fav-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    outline: none;
    cursor: pointer;
    transition: transform 0.2s;
    vertical-align: middle;
    line-height: 1;
}

button.se-fav-btn:hover {
    transform: scale(1.15);
}

.se-fav-btn__icon {
    width: 24px;
    height: 24px;
    fill: #bbb;
    stroke: #999;
    stroke-width: 1;
    filter: none;
    transition: fill 0.25s, stroke 0.25s, filter 0.25s;
}

.se-fav-btn--active .se-fav-btn__icon {
    fill: url(#se-heart-grad);
    stroke: none;
    stroke-width: 0;
    filter: url(#se-heart-shadow);
}

/* ── My Account – Favorites page ─────────────────────────────── */
.se-favorites-page h2 {
    margin-bottom: 1em;
}

.se-favorites-empty {
    color: #666;
    margin-bottom: 2em;
}

/* Grid: match Elementor loop grid layout (5 columns) */
.se-fav-loop .se-favorites-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.se-fav-loop--carousel .se-favorites-swiper {
    overflow: hidden;
    width: 100%;
    padding: 0 0 34px;
}

.se-fav-loop--carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.se-fav-loop--carousel .swiper-slide {
    height: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.se-fav-loop--carousel .swiper-slide > .elementor-element-3d12e85 {
    height: 100%;
}

.se-fav-loop--carousel .se-favorites-swiper-button-prev,
.se-fav-loop--carousel .se-favorites-swiper-button-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    color: #1c244b;
}

.se-fav-loop--carousel .se-favorites-swiper-button-prev::after,
.se-fav-loop--carousel .se-favorites-swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.se-fav-loop--carousel .se-favorites-swiper-pagination {
    bottom: 0 !important;
}

.se-fav-loop--carousel .se-favorites-swiper-pagination .swiper-pagination-bullet {
    background: rgba(28, 36, 75, 0.25);
    opacity: 1;
}

.se-fav-loop--carousel .se-favorites-swiper-pagination .swiper-pagination-bullet-active {
    background: #1c244b;
}

/* Card wrapper: position relative for heart overlay */
.se-fav-loop .se-favorites-item {
    position: relative;
}

/* Heart button overlay: absolute top-right on the card */
.se-fav-loop .se-favorites-item > .se-fav-btn,
.se-fav-loop .se-favorites-item > .se-fav-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Force smaller card title – override Elementor globals */
.se-fav-loop .elementor-575 h2.elementor-heading-title {
    font-size: 1em !important;
    line-height: 1.3 !important;
}

/* Fade-out animation when removing */
.se-favorites-item--removing {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .se-fav-loop .se-favorites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .se-fav-loop .se-favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .se-fav-loop .se-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .se-fav-loop--carousel .se-favorites-swiper {
        padding-bottom: 28px;
    }

    .se-fav-loop--carousel .se-favorites-swiper-button-prev,
    .se-fav-loop--carousel .se-favorites-swiper-button-next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
}
