/* === WC Products Elementor Widget === */
.wcpew-wrapper {
    position: relative;
    padding: 0 50px;
}

/* Swiper — allow overflow so images can bleed out of slides */
/* Clip only horizontally on the swiper to hide next/prev slides, allow vertical overflow */
.wcpew-wrapper .wcpew-swiper {
    overflow: visible;
    clip-path: inset(-100% 0 -100% 0);
}

/* === CARD === */
.wcpew-card {
    display: block;
    text-decoration: none;
    text-align: center;
    position: relative;
    padding-top: 60px;
    /* space for image to bleed above the bg box */
    transition: transform 0.3s ease;
}

.wcpew-card:hover {
    transform: translateY(-4px);
}

/* === IMAGE WRAP — floats above the gray bg === */
.wcpew-card__img-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* negative margin so image overlaps with the bg box below */
    margin-bottom: -174px;
    pointer-events: none;
}

.wcpew-card__img-wrap img {
    width: 100%;
    max-width: 85%;
    height: auto;
    object-fit: contain;
    transition: transform 0.8s ease, opacity 0.8s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

/* Hover image swap */
.wcpew-has-hover {
    position: relative;
}

.wcpew-has-hover .wcpew-img-hover {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.wcpew-card:hover .wcpew-has-hover .wcpew-img-main {
    opacity: 0;
}

.wcpew-card:hover .wcpew-has-hover .wcpew-img-hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}

/* Scale on hover only when no gallery swap */
.wcpew-card:hover .wcpew-card__img-wrap:not(.wcpew-has-hover) img {
    transform: scale(1.05);
}

/* === GRAY BG BOX === */
.wcpew-card__bg {
    position: relative;
    background-color: #f0f0f0;
    border-radius: 16px;
    height: 200px !important;
    z-index: 1;
    overflow: visible;
}

/* === BADGE — bottom-left of the bg box === */
.wcpew-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background-color: #2bbcb3;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(43, 188, 179, 0.45);
}

/* === INFO === */
.wcpew-card__info {
    padding: 16px 4px 6px;
}

.wcpew-card__category {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.wcpew-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    font-style: italic;
    line-height: 1.3;
}

.wcpew-card__price {
    font-size: 15px;
    font-weight: 600;
    color: #2bbcb3;
}

.wcpew-card__price del {
    opacity: 0.5;
    margin-right: 4px;
}

/* === NAVIGATION ARROWS === */
/* High specificity to prevent Woodmart / other themes from overriding */
.wcpew-wrapper .wcpew-nav-btn,
.wcpew-wrapper button.wcpew-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #2bbcb3 !important;
    background: #fff !important;
    color: #2bbcb3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: 0 !important; /* hide any injected pseudo-element text */
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
}

/* Ensure icons inside are visible */
.wcpew-wrapper .wcpew-nav-btn i,
.wcpew-wrapper .wcpew-nav-btn svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 16px !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.wcpew-wrapper .wcpew-nav-btn svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

/* Remove any Swiper default arrow pseudo-elements */
.wcpew-wrapper .wcpew-nav-btn::before,
.wcpew-wrapper .wcpew-nav-btn::after {
    content: none !important;
    display: none !important;
}

.wcpew-wrapper .wcpew-nav-btn:hover {
    background: #2bbcb3 !important;
    color: #fff !important;
}

.wcpew-wrapper .wcpew-nav-btn:hover svg {
    fill: #fff !important;
}

.wcpew-wrapper .wcpew-nav-btn.swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.wcpew-wrapper .wcpew-nav-prev,
.wcpew-wrapper button.wcpew-nav-prev {
    left: 0 !important;
    right: auto !important;
}

.wcpew-wrapper .wcpew-nav-next,
.wcpew-wrapper button.wcpew-nav-next {
    right: 0 !important;
    left: auto !important;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .wcpew-wrapper {
        padding: 0 36px;
    }

    .wcpew-card {
        padding-top: 40px;
    }

    .wcpew-card__img-wrap {
        margin-bottom: -60px;
    }

    .wcpew-card__title {
        font-size: 15px;
    }

    .wcpew-card__price {
        font-size: 13px;
    }

    .wcpew-nav-btn {
        width: 32px;
        height: 32px;
    }
}