/* ============================================================
   BRG TriBrahm Build — Wishlist Styles
   ============================================================ */

:root {
    --heart-red: #ff4d4d;
    --heart-white: #ffffff;
    --wishlist-overlay: #FAF7F2;
}

/* --- Heart Icon on Product Cards --- */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 0;
    line-height: 1;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #FFFFFF;
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.active {
    color: var(--heart-red);
    background: #FFFFFF;
    border-color: var(--heart-red);
}

.wishlist-btn i {
    transition: transform 0.2s ease;
}

.wishlist-btn:active i {
    transform: scale(0.8);
}

/* --- Nav Link Badge --- */
.nav-link.wishlist-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.wishlist-count-badge {
    background: var(--gold);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-count-badge:empty {
    display: none;
}

/* --- Wishlist Modal Section --- */
.wishlist-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wishlist-overlay);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 100px 0 60px;
}

.wishlist-section.active {
    opacity: 1;
    visibility: visible;
}

.wishlist-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.wishlist-title {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin: 0;
}

.wishlist-title span {
    color: var(--gold);
}

.wishlist-close {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.wishlist-close:hover {
    background: var(--gold);
    color: #FFFFFF;
}

/* --- Wishlist Grid --- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.wishlist-item {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.5s ease forwards;
}

.wishlist-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.wishlist-item-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.wishlist-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wishlist-item:hover .wishlist-item-img img {
    transform: scale(1.1);
}

.wishlist-item-body {
    padding: 20px;
    text-align: center;
}

.wishlist-item-name {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 15px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wishlist-remove {
    background: rgba(255, 77, 77, 0.05);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-remove:hover {
    background: #ff4d4d;
    color: white;
}

/* --- Empty State --- */
.wishlist-empty {
    text-align: center;
    padding: 100px 0;
}

.wishlist-empty-icon {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.wishlist-empty-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* --- Footer Actions --- */
.wishlist-footer {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.whatsapp-share-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    background: #20bd5a;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .wishlist-section {
        padding: 80px 0 40px;
    }
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .wishlist-close {
        width: 100%;
    }
}
