.wc-smart-recommendations {
    margin: 36px 0;
}

.wc-smart-recommendations__inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.wc-smart-recommendations__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.wc-smart-recommendations__card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.wc-smart-recommendations__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 420px;
    background: #fff;
    border: 0;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: hidden;
    text-decoration: none;
}

.wc-smart-recommendations__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wc-smart-recommendations__brand {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #171717;
    text-transform: uppercase;
}

.wc-smart-recommendations__name {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: #3d3d3d;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.wc-smart-recommendations__name a {
    color: inherit;
    text-decoration: none;
}

.wc-smart-recommendations__price {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    min-height: 1.4em;
}

.wc-smart-recommendations__price .amount {
    font-weight: 500;
}

.wc-smart-recommendations__wishlist {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.wc-smart-recommendations__wishlist .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.wc-smart-recommendations__wishlist ul,
.wc-smart-recommendations__wishlist li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-smart-recommendations__wishlist .yith-wcwl-icon,
.wc-smart-recommendations__wishlist i {
    display: none !important;
}

.wc-smart-recommendations__wishlist a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5a5a5a;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    box-shadow: none;
    padding: 0;
}

.wc-smart-recommendations__wishlist .feedback,
.wc-smart-recommendations__wishlist .yith-wcwl-wishlistaddedbrowse,
.wc-smart-recommendations__wishlist .yith-wcwl-wishlistexistsbrowse {
    margin: 0;
}

.wc-smart-recommendations__fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    margin-top: auto;
}

.wc-smart-recommendations__slider-wrap {
    position: relative;
    padding: 0 44px;
}

.wc-smart-recommendations__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid #cfd3d8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #121212;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(3px);
    cursor: pointer;
    z-index: 6;
    transition: all 0.2s ease;
}

.wc-smart-recommendations__button:hover {
    border-color: #8f959d;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.wc-smart-recommendations__button.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.wc-smart-recommendations__button--prev {
    left: 0;
}

.wc-smart-recommendations__button--next {
    right: 0;
}

.wc-smart-recommendations__swiper .swiper-wrapper {
    align-items: stretch;
}

.wc-smart-recommendations__swiper .swiper-slide {
    height: auto;
    display: flex;
}

.wc-smart-recommendations__swiper .swiper-slide .wc-smart-recommendations__card {
    width: 100%;
}

@media (max-width: 1024px) {
    .wc-smart-recommendations__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wc-smart-recommendations__image {
        height: 340px;
    }
}

@media (max-width: 767px) {
    .wc-smart-recommendations {
        margin: 26px 0;
    }

    .wc-smart-recommendations__inner {
        width: calc(100% - 16px);
    }

    .wc-smart-recommendations__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .wc-smart-recommendations__image {
        height: 220px;
    }

    .wc-smart-recommendations__brand {
        font-size: 14px;
    }

    .wc-smart-recommendations__name {
        font-size: 14px;
    }

    .wc-smart-recommendations__price {
        font-size: 17px;
    }

    .wc-smart-recommendations__wishlist a {
        font-size: 14px;
    }

    .wc-smart-recommendations__slider-wrap {
        padding: 0;
    }

    .wc-smart-recommendations__button {
        display: none;
    }
}
