/* ============================================
   BC Wishlist – Styles v1.1.1
   ============================================ */

/* ── Button in Product Card ── */
.bcw-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent !important;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 5;
}

.bcw-btn:hover,
.bcw-btn:focus,
.bcw-btn:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Circle background variant */
.bcw-btn--circle {
    background: var(--bcw-bg-color, #ffffff) !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.bcw-btn--circle:hover {
    background: var(--bcw-bg-color, #ffffff) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
}

.bcw-btn:hover {
    transform: scale(1.1);
}

.bcw-heart {
    width: calc(var(--bcw-btn-size, 32px) * 0.625);
    height: calc(var(--bcw-btn-size, 32px) * 0.625);
    transition: transform 0.2s ease;
}

.bcw-heart .bcw-heart-outline {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.bcw-heart .bcw-heart-filled {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bcw-btn.active .bcw-heart-filled {
    opacity: 1;
}

.bcw-btn.active .bcw-heart-outline {
    opacity: 0;
}

/* ── Pulse animation on toggle ── */
@keyframes bcw-pulse {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.3); }
    50%  { transform: scale(0.95); }
    75%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.bcw-btn.bcw-animating .bcw-heart {
    animation: bcw-pulse 0.4s ease-in-out;
}

/* ── Header Wishlist Icon ── */
/* Matches minicart icon pattern exactly */
.bcw-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: none !important;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}

/* Hover: heart AND badge change to accent simultaneously */
.bcw-header-icon:hover {
    color: #C75E3D;
}

.bcw-header-icon:hover .bcw-badge {
    background: #C75E3D;
}

.bcw-header-heart {
    width: 22px;
    height: 22px;
}

/* Badge – 17x17px circle, matches minicart badge exactly */
.bcw-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    min-width: 17px;
    padding: 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: #fff;
    background: #333;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

@keyframes bcw-badge-bounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.bcw-badge.bcw-badge-updated {
    animation: bcw-badge-bounce 0.3s ease;
}

/* ── Override JetEngine / Listing Grid gap ── */
.bcw-list .jet-listing-grid__items,
.bcw-list .jet-listing-grid__items[style],
.bcw-list.bcw-list--jetengine .jet-listing-grid__items {
    gap: var(--bcw-grid-gap, 9px) !important;
    grid-gap: var(--bcw-grid-gap, 9px) !important;
    grid-row-gap: var(--bcw-grid-gap, 9px) !important;
    grid-column-gap: var(--bcw-grid-gap, 9px) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bcw-list .jet-listing-grid__item {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Wishlist Listing Page ── */
.bcw-list-item {
    position: relative;
    border: 1px solid #eee;
    padding: 0;
    overflow: hidden;
}

.bcw-list-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bcw-list-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bcw-list-item-title {
    font-size: 14px;
    font-weight: 500;
    margin: 10px 12px 4px;
    line-height: 1.3;
}

.bcw-list-item-price {
    display: block;
    font-size: 13px;
    margin: 0 12px 10px;
    color: #333;
}

.bcw-list-item .bcw-list-remove {
    position: absolute;
    top: 8px;
    right: 8px;
}
