/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    color: #fff;
    font-weight: bold;
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification--success {
    background-color: #28a745;
}

.notification--error {
    background-color: #dc3545;
}

/* Стили для кнопки избранного */
._favorites {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

._favorites:hover {
    opacity: 1;
}

._favorites.active {
    opacity: 1;
    color: #e74c3c;
}

._favorites.active svg path {
    fill: #e74c3c;
    stroke: #e74c3c;
}

._favorites:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Стили для страницы избранного */
.favorites-page {
    padding: 40px 0;
}

.favorites-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.favorites-page__title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.favorites-page__counter {
    font-size: 1.1rem;
    color: #666;
}

.favorites-count {
    font-weight: bold;
    color: #e74c3c;
}

/* Стили для пустого состояния */
.favorites-page__empty {
    text-align: center;
    padding: 60px 20px;
}

.favorites-page__empty-box {
    max-width: 400px;
    margin: 0 auto;
}

.favorites-page__empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.favorites-page__empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: #ccc;
}

.favorites-page__empty h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.favorites-page__empty p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Стили для формы входа */
.favorites-page__login-prompt {
    text-align: center;
    padding: 60px 20px;
}

.favorites-page__login-box {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.favorites-page__login-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.favorites-page__login-box p {
    color: #666;
    margin-bottom: 25px;
}

.favorites-page__login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Стили для действий на странице избранного */
.favorites-page__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.favorites-page__sort label {
    margin-right: 10px;
    font-weight: 500;
}

.favorites-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Стили для сетки товаров */
.favorites-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.favorites-item {
    transition: transform 0.3s ease;
}

.favorites-item:hover {
    transform: translateY(-5px);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn--primary:hover {
    background-color: #0056b3;
    color: white;
}

.btn--secondary {
    background-color: #6c757d;
    color: white;
}

.btn--secondary:hover {
    background-color: #545b62;
    color: white;
}

.btn--danger {
    background-color: #dc3545;
    color: white;
}

.btn--danger:hover {
    background-color: #c82333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .favorites-page__actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .favorites-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .favorites-page__login-actions {
        flex-direction: column;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
} 