/* Page Favoris */
body.favorites-page {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.favorites-main {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
}

@media (max-width: 1024px) {
    .favorites-main {
        padding-top: calc(var(--header-mobile-height) + var(--spacing-lg));
    }
}

.favorites-hero {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.favorites-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.favorites-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.favorites-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sidebar-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: white;
}

.sidebar-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.sidebar-email {
    font-size: 14px;
    color: #6b7280;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: #f3f4f6;
    color: #D4AF37;
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
}

.sidebar-logout {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-logout:hover {
    background: #fecaca;
}

/* Content */
.favorites-content {
    min-height: 400px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.favorite-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.favorite-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.favorite-content {
    padding: 20px;
}

.favorite-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.favorite-price {
    font-size: 24px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 16px;
}

.favorite-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #D4AF37;
    color: white;
}

.btn-primary:hover {
    background: #B8941F;
}

.btn-remove {
    background: #fee2e2;
    color: #991b1b;
}

.btn-remove:hover {
    background: #fecaca;
}

.empty-favorites {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.empty-favorites i {
    font-size: 64px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.empty-favorites h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #111827;
}

.empty-favorites p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
}

.btn-shop {
    padding: 16px 48px;
    background: #D4AF37;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .favorites-container {
        grid-template-columns: 1fr;
    }
    
    .favorites-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .favorites-hero h1 {
        font-size: 32px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

/* Favorite Card Styles */
.favorite-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

.favorite-card__remove:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.favorite-card__image {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.favorite-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.favorite-card:hover .favorite-card__image img {
    transform: scale(1.05);
}

.favorite-card__body {
    padding: 20px;
}

.favorite-card__brand {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.favorite-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.favorite-card__title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.favorite-card__title a:hover {
    color: #d4af37;
}

.favorite-card__price {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-card__price .price {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
}

.favorite-card__price .price--sale {
    color: #ef4444;
}

.favorite-card__price .price--original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.favorite-card__btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #d4af37;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.favorite-card__btn:hover {
    background: #b8941f;
}

.favorites-loading,
.favorites-error {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.favorites-error {
    color: #ef4444;
}
