/**
 * roomvo-wishlist.css
 * Wishlist page grid (mirrors the PLP listing), header count badge, and the
 * active state for the PDP heart (the card heart's active state already lives
 * in the theme's plp-product-card.css).
 */

/* ---------- wishlist page ---------- */

.roomvo-wishlist {
    margin: 0 auto;
    padding-bottom: 50px;
}

.roomvo-wishlist__loading {
    padding: 60px 0;
    text-align: center;
    color: #777;
}

.roomvo-wishlist-grid {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 20px;
}
.overflow-btn-visible a{
    overflow: visible;
}
.wishlist-heart-icon{
    z-index:2
}
@media (max-width: 1200px) {
    .roomvo-wishlist-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

@media (max-width: 768px) {
    .roomvo-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }
}

/* The grid supplies its own columns — neutralise WooCommerce's float/::before
   clearing that would otherwise break the CSS grid layout. */
.roomvo-wishlist-grid::before,
.roomvo-wishlist-grid::after {
    content: none;
}

.roomvo-wishlist-grid .plp-product-card {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.roomvo-wishlist-empty {
    padding: 48px 0;
    text-align: center;
}

.roomvo-wishlist-empty p {
    margin: 0 0 16px;
    font-size: 18px;
    color: #555;
}

/* ---------- header count badge ---------- */

.roomvo-wishlist-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(227, 53, 5, 1);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.roomvo-wishlist-count.is-empty {
    display: none;
}

/* Badge bound to the heart icon (e.g. the header .wishlist-heart-icon). */
.wishlist-heart-icon {
    position: relative;
}

.wishlist-heart-icon .roomvo-wishlist-count {
    position: absolute;
    top: 0px;
    right: -3px;
    pointer-events: none;
}

/* ---------- PDP heart active state ---------- */

.rv-product-summary__wishlist {
    cursor: pointer;
}

.rv-product-summary__wishlist.active path {
    fill: rgba(227, 53, 5, 1);
    stroke: rgba(227, 53, 5, 1);
    stroke-opacity: 1;
}
