/**
 * ================================================================
 * WISHLIST STYLES
 * ================================================================
 */

/* ========== WISHLIST BADGE (Header) ========== */
.wishlist-icon-wrapper {
    position: relative;
    display: inline-block;
}

#wishlist-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    z-index: 10;
}

/* ========== HEART TOGGLE BUTTON ========== */
.wishlist-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.wishlist-toggle:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #ff4757;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.wishlist-toggle.active svg {
    fill: #ff4757;
    stroke: #ff4757;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
}

/* ========== WISHLIST PAGE ========== */
.wishlist-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.wishlist-page-header {
    margin-bottom: 30px;
}

.wishlist-page-header h1 {
    font-size: 32px;
    color: #2d3436;
    margin-bottom: 10px;
}

.wishlist-count {
    font-size: 16px;
    color: #636e72;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.wishlist-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wishlist-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.wishlist-remove-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.wishlist-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wishlist-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .wishlist-card-image img {
    transform: scale(1.05);
}

.wishlist-type-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wishlist-card-content {
    padding: 20px;
}

.wishlist-card-content h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #2d3436;
    line-height: 1.4;
}

.wishlist-card-content p {
    font-size: 14px;
    color: #636e72;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.wishlist-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.wishlist-price {
    font-size: 20px;
    font-weight: 700;
    color: #0984e3;
}

.wishlist-date {
    font-size: 12px;
    color: #b2bec3;
}

.wishlist-card-actions {
    padding: 0 20px 20px 20px;
}

.wishlist-card-actions .btn-add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* Empty Wishlist */
.empty-wishlist-page {
    text-align: center;
    padding: 80px 20px;
}

.empty-wishlist-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-wishlist-page h2 {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #2d3436;
}

.empty-wishlist-page p {
    font-size: 16px;
    color: #636e72;
    margin: 0 0 30px 0;
}

/* Toast Notification */
.wishlist-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.wishlist-toast-success {
    border-left: 4px solid #00b894;
    color: #00b894;
}

.wishlist-toast-warning {
    border-left: 4px solid #fdcb6e;
    color: #e17055;
}

.wishlist-toast-error {
    border-left: 4px solid #ff4757;
    color: #ff4757;
}

.wishlist-toast-info {
    border-left: 4px solid #0984e3;
    color: #0984e3;
}

/* Animations */
@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-page-header h1 {
        font-size: 24px;
    }
}

/* Dark Mode Support */
body.dark-mode .wishlist-card,
body.dark-mode .wishlist-toast {
    background: #2d3436;
    color: #dfe6e9;
}

body.dark-mode .wishlist-card-content h3 {
    color: #dfe6e9;
}

body.dark-mode .wishlist-remove-btn {
    background: rgba(45, 52, 54, 0.95);
    color: #dfe6e9;
}

body.dark-mode .wishlist-card-footer {
    border-top-color: #3a3f47;
}
