/* Favorites Page Styles */

/* Page header styling */
.favorites-header {
    border-bottom: 3px solid #f0f0f0;
    padding: 2rem 0 0.25rem;
    margin-bottom: 0;
    background: #fafafa;
}

.favorites-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
    letter-spacing: -0.5px;
}

.favorites-header .icon-wrapper {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    padding: 0.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(73, 80, 87, 0.2);
}

.favorites-header .icon-wrapper i {
    font-size: 1.25rem;
    color: white;
}

.favorites-header .subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.favorites-count-badge {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.875rem;
}

/* Breadcrumb styling */
.breadcrumb-nav {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-nav ol {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-nav a {
    color: #868e96;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #495057;
    text-decoration: underline;
}

.breadcrumb-nav .active {
    color: #6c757d;
    font-weight: 600;
}

/* Container adjustments */
.favorites-container {
    margin-top: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove top margin from main container */
.container[data-locale] {
    margin-top: 0 !important;
}

/* Empty state improvements */
.empty-favorites {
    padding: 4rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 2rem;
}

.empty-favorites i {
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-favorites h3 {
    color: #495057;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Grid improvements */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 20px 0 30px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .favorites-header {
        padding: 1.5rem 0 1rem;
        margin: -1rem -15px 1.5rem -15px;
    }
    
    .favorites-header h1 {
        font-size: 1.5rem;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

/* Clickable image hover effects */
.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image-link:hover {
    transform: scale(1.02);
}

.product-image-link:hover .card-image {
    opacity: 0.95;
}

/* Clickable title hover effects */
.product-title-link {
    display: block;
    transition: color 0.3s ease;
}

.product-title-link:hover {
    color: #007bff !important;
}

.product-title-link:hover .product-title {
    text-decoration: underline;
}

/* Product card styling */
.favorite-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.favorite-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
}

.product-brand {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.price-section {
    margin: 0.5rem 0;
}

.old-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.current-price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Action buttons styles removed - using global styles from main.css */

/* Keep remove button above the image link */
.btn-remove-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #6c757d;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-remove-favorite:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-remove-favorite:hover i {
    color: white;
}

.btn-remove-favorite i {
    color: #6c757d;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Card image wrapper positioning - Override conflicts */
.card-image-wrapper {
    position: relative !important;
    padding-top: 0 !important;
    background: #f8f9fa !important;
    overflow: visible !important;
    height: 240px !important;
    border-bottom: 1px solid #e9ecef;
}

.favorites-grid .card-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 240px !important;
    object-fit: contain !important;
    display: block !important;
    padding: 15px !important;
}

.favorites-grid .product-image-link {
    display: block !important;
    height: 240px !important;
    overflow: hidden !important;
}