/**
 * 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: var(--rv-accent);
    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;
}

/* ---------- Heart look (cards + PDP) ----------
 * Kept in sync with the theme rules in assets/css/plp-product-card.css and
 * assets/css/single-product.css: the theme sheet may not be loaded (or may be
 * printed before this one), so both must describe the same heart.
 * Idle = solid white on a round grey pill, hover/saved = accent red.
 */

.plp-product-wishlist,
.rv-product-summary__wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--rv-wishlist-bg, rgba(0, 0, 0, .35));
    cursor: pointer;
    transition: background .2s ease;
}

.plp-product-wishlist svg path,
.rv-product-summary__wishlist svg path {
    fill: #fff;
    stroke: #fff;
    stroke-opacity: 1;
    transition: fill .2s ease, stroke .2s ease;
}

.plp-product-wishlist:hover svg path,
.plp-product-wishlist:focus-visible svg path,
.plp-product-wishlist.active svg path,
.rv-product-summary__wishlist:hover svg path,
.rv-product-summary__wishlist:focus-visible svg path,
.rv-product-summary__wishlist.active svg path {
    fill: var(--rv-accent, #f95204);
    stroke: var(--rv-accent, #f95204);
}

/* Kadence repaints every <button> white on :hover/:focus/:active
   (--global-palette-btn-bg-hover). The heart keeps :focus after a click, so
   without this the pill goes white under the white idle heart and the control
   disappears. Mirrors the theme rules in plp-product-card.css /
   single-product.css. */
.plp-product-wishlist:hover,
.plp-product-wishlist:focus,
.plp-product-wishlist:focus-visible,
.plp-product-wishlist:active,
.rv-product-summary__wishlist:hover,
.rv-product-summary__wishlist:focus,
.rv-product-summary__wishlist:focus-visible,
.rv-product-summary__wishlist:active {
    background: var(--rv-wishlist-bg, rgba(0, 0, 0, .35));
}
