/* Wishlist Modal */
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: flex-end;
    z-index: 3600;
    backdrop-filter: blur(5px);
}

.wishlist-overlay.active {
    display: flex;
}

.wishlist-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

.wishlist-header {
    padding: 25px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    position: relative;
    flex-shrink: 0;
}

.wishlist-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-header p {
    opacity: 0.9;
    font-size: 14px;
}

.close-wishlist {
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.close-wishlist:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wishlist-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.wishlist-empty i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fecaca;
}

.wishlist-empty h3 {
    font-size: 20px;
    color: #334155;
    margin-bottom: 10px;
}

.wishlist-empty p {
    font-size: 14px;
    margin-bottom: 25px;
}

.wishlist-empty .design-btn {
    max-width: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.wishlist-items-container {
    display: none;
}

.wishlist-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wishlist-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wishlist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.wishlist-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #004370;
}

.wishlist-item-category {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.wishlist-item-tier {
    font-size: 12px;
    background: #fee2e2;
    color: #dc2626;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 10px;
    flex-shrink: 0;
}

.wishlist-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.wishlist-detail-group {
    margin-bottom: 10px;
}

.wishlist-detail-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.wishlist-detail-value {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

.wishlist-item-price {
    color: #009B5B;
    font-size: 18px;
    font-weight: 700;
}

.wishlist-item-description {
    font-size: 13px;
    color: #64748b;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.wishlist-item-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.wishlist-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wishlist-item-remove:hover {
    color: #dc2626;
}

.wishlist-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.wishlist-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wishlist-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wishlist-btn.primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.wishlist-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.wishlist-btn.secondary {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.wishlist-btn.secondary:hover {
    background: #e2e8f0;
}

.wishlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-container { max-width: 100%; width: 100%; }
    .wishlist-header { padding: 20px; }
    .wishlist-body { padding: 15px; }
    .wishlist-item { padding: 15px; }
    .wishlist-item-details { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
    .wishlist-header h2 { font-size: 20px; }
    .wishlist-item-title { font-size: 14px; }
    .wishlist-item-tier { font-size: 11px; padding: 2px 8px; }
}