/* =====================================================
   Stela Climo — Out-of-stock Upsell Block
   ===================================================== */

/* ── Основен контейнер ── */

.ems-upsell-block {
    margin: 18px 0 22px;
    padding: 22px 20px 20px;
    background: #ffffff;
    border: 1.5px solid #2a27e940;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: visible;
}

/* ── Хедър ── */
.ems-upsell-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ems-upsell-icon {
    font-size: 40px;
    color: #e0a800;
    flex-shrink: 0;
    line-height: 1;
}

.ems-upsell-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ems-upsell-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: left;
}

.ems-upsell-subtitle {
    margin: 0;
    font-size: 13px;
    color: #777777;
    line-height: 1.3;
}

/* ── Swiper обвивка ── */
.ems-upsell-swiper {
    width: 100%;
    /* хоризонтален padding — осигурява място за стрелките вътре в блока */
    
    box-sizing: border-box;
    position: relative;
}

/* ── Продуктова картичка ── */
.ems-upsell-card {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ems-upsell-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

/* ── Снимка ── */
.ems-upsell-card__image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
}

.ems-upsell-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    transition: transform 0.3s ease;
}

.ems-upsell-card:hover .ems-upsell-card__image-wrap img {
    transform: scale(1.04);
}

/* ── Body ── */
.ems-upsell-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ems-upsell-card__title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #222222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Цена ── */
.ems-upsell-card__price {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.ems-upsell-card__price .woocommerce-Price-amount {
    font-size: 13px;
    font-weight: 700;
    /* color: #1a1a1a; */
}

.ems-upsell-card__price del {
    font-weight: 400;
    color: #2a27e970;
    font-size: 11px;
    margin-right: 4px;
}

.ems-upsell-card__price ins {
    text-decoration: none;
    color: #2a27e9;
}

/* ── Бутон ── */
.ems-upsell-card__btn {
    display: inline-block;
    text-align: center;
    padding: 7px 10px;
    background: #2a27e9;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    margin-top: auto;
}

.ems-upsell-card__btn:hover {
    background: #333333;
    color: #ffffff !important;
}

/* ── Swiper стрелки ── */
.ems-upsell-slider-wrap .swiper-button-prev,
.ems-upsell-slider-wrap .swiper-button-next {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 50%;
    top: calc(50% - 38px); /* центрирай спрямо снимката, компенсирай padding-bottom */
    z-index: 100; /* Държи ги над продуктите */
}

.ems-upsell-slider-wrap .swiper-button-prev::after,
.ems-upsell-slider-wrap .swiper-button-next::after {
    font-size: 12px;
    color: #ffffff;
    font-weight: 700;
}

.ems-upsell-slider-wrap .swiper-button-prev {
    left: -15px;
}

.ems-upsell-slider-wrap .swiper-button-next {
    right: -15px;
}

.ems-upsell-slider-wrap .swiper-button-disabled {
    opacity: 0.25;
    pointer-events: auto !important;
    cursor: default;
}

/* ── Пагинация ── */
.ems-upsell-slider-wrap .swiper-pagination {
    bottom: -5px;
}

.ems-upsell-slider-wrap .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #cccccc;
    opacity: 1;
}

.ems-upsell-slider-wrap .swiper-pagination-bullet-active {
    background: #1a1a1a;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .ems-upsell-block {
        padding: 16px 14px 16px;
    }

    .ems-upsell-card__title {
        font-size: 11.5px;
    }
}
