/**
 * Wishlist Styles
 * Hadra Home Theme
 */

/* Wishlist Button */
.wishlist-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #E5E5E5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #666;
    transition: all 0.3s ease;
}

.wishlist-button:hover {
    border-color: #D4AF37;
    transform: scale(1.1);
}

.wishlist-button:hover svg {
    stroke: #D4AF37;
}

.wishlist-button.active {
    background: #D4AF37;
    border-color: #D4AF37;
}

.wishlist-button.active svg {
    fill: white;
    stroke: white;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Wishlist Count Badge */
.wishlist-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #D4AF37;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wishlist Notification */
.wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.wishlist-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-notification.success {
    border-left: 4px solid #4CAF50;
}

.wishlist-notification.info {
    border-left: 4px solid #2196F3;
}

/* Wishlist Page */
.wishlist-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.wishlist-empty svg {
    color: #D4AF37;
    margin-bottom: 24px;
}

.wishlist-empty h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.wishlist-empty p {
    font-size: 16px;
    margin-bottom: 24px;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #E5E5E5;
}

.wishlist-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.btn-clear-wishlist {
    padding: 8px 16px;
    background: transparent;
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-wishlist:hover {
    background: #f44336;
    color: white;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.wishlist-item {
    position: relative;
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.wishlist-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

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

.wishlist-remove svg {
    stroke: currentColor;
}

.wishlist-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wishlist-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.wishlist-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-image .no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
}

.wishlist-info {
    padding: 16px;
}

.wishlist-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.wishlist-price {
    font-size: 18px;
    font-weight: 700;
    color: #D4AF37;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .wishlist-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
}

