/**
 * Kelles Theme - Wishlist Styles
 * Optimized and clean styles for wishlist functionality
 */

/* Animation and Transition Effects */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.transition-all {
    transition: all 0.3s ease;
}

.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Wishlist Buttons */
.wishlist-toggle {
    border: none;
    background: none;
    color: var(--bs-gray-600);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.wishlist-toggle:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bs-danger);
}

.wishlist-toggle.active {
    color: var(--bs-danger);
}

.wishlist-toggle.is-processing {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-toggle.is-processing i {
    animation: pulse 1s infinite;
}

/* Product Cards in Wishlist */
.product-card {
    overflow: hidden;
    height: 100%;
}

.product-image-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Quick Actions Panel */
.quick-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .quick-actions {
    transform: translateY(0);
    opacity: 1;
}

.quick-actions .btn {
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Remove Button Styles */
.remove-from-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-gray-600);
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-from-wishlist:hover {
    background-color: var(--bs-danger) !important;
    color: white;
}

/* Product Information */
.product-meta {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-new {
    font-weight: bold;
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--bs-gray-500);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
}

.rating-stars {
    color: #FFD700;
    margin-right: 0.5rem;
}

.rating-count {
    color: var(--bs-gray-600);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--bs-light);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

/* Toast Notifications */
.toast-container {
    z-index: 1060;
}

.toast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal-content {
    overflow: hidden;
}

.quick-view-image {
    max-height: 400px;
    object-fit: contain;
}

/* Pagination Styling */
.pagination {
    margin-bottom: 0;
}

.page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.page-link {
    color: var(--bs-primary);
    border-radius: 0.5rem;
    margin: 0 0.15rem;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Debug Panel */
.debug-panel {
    background-color: var(--bs-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--bs-gray-300);
}

.debug-panel h4 {
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .product-image-wrapper {
        height: 180px;
    }
    
    .quick-actions {
        padding: 8px;
    }
    
    .quick-actions .btn {
        padding: 3px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .wishlist-item {
        width: 50%;
    }
    
    .product-image-wrapper {
        height: 150px;
    }
    
    .price-new {
        font-size: 1rem;
    }
}
