/* BUNDLIV Favorites Feature Styles */

:root {
    --fav-color: #ef4444; /* Standard heart red */
    --fav-hover: #dc2626;
    --fav-bg-light: rgba(239, 68, 68, 0.1);
    --fav-glass: rgba(255, 255, 255, 0.7);
}

/* Heart Icon Styles */
.fav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fav-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fav-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.fav-toggle:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: var(--fav-color);
}

.fav-toggle.active {
    background: #ffffff;
    color: var(--fav-color);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.fav-toggle.active i {
    animation: heartBeat 0.3s ease-out;
}

/* Floating Heart on Product Card */
.card-img-box .fav-toggle, 
.cl-img-box .fav-toggle, 
.clothing-img-box .fav-toggle,
.product-img-container .fav-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Badge count */
.fav-icon-container {
    position: relative;
    display: inline-flex;
}

.fav-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--fav-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: 2px solid #fff;
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animations */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.pulse {
    animation: btnPulse 0.5s ease-out;
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Favorites Page Specifics */
.favorites-empty {
    text-align: center;
    padding: 100px 20px;
}

.empty-fav-icon {
    font-size: 60px;
    color: #e2e8f0;
    margin-bottom: 20px;
    display: block;
}

.remove-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.remove-fav-btn:hover {
    background: #ef4444;
    color: white;
}
