/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    z-index: 9999;
    color: #fff;
    font-weight: bold;
    transform: translateX(40rem);
    transition: transform 0.3s ease-in-out;
    max-width: 30rem;
    box-shadow: 0 0.4rem 1.2rem 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: 4rem 0;
}

.favorites-page__header {
    text-align: center;
    margin-bottom: 4rem;
}

.favorites-page__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    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: 6rem 2rem;
}

.favorites-page__empty-box {
    max-width: 40rem;
    margin: 0 auto;
}

.favorites-page__empty-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    opacity: 0.3;
}

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

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

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

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

.favorites-page__login-box {
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem;
    border: 0.1rem solid #ddd;
    border-radius: 0.8rem;
    background: #f9f9f9;
}

.favorites-page__login-box h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.favorites-page__login-box p {
    color: #666;
    margin-bottom: 2.5rem;
}

.favorites-page__login-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

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

.favorites-page__sort label {
    margin-right: 1rem;
    font-weight: 500;
}

.favorites-sort-select {
    padding: 0.8rem 1.2rem;
    border: 0.1rem solid #ddd;
    border-radius: 0.4rem;
    background: white;
}

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

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

.favorites-item:hover {
    transform: translateY(-0.5rem);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: 0.4rem;
    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: 1.5rem;
        text-align: center;
    }
    
    .favorites-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
        gap: 2rem;
    }
    
    .favorites-page__login-actions {
        flex-direction: column;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-10rem);
    }
} 

.mom-favorites-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mom-favorites-btn.active {
    color: #e74c3c;
}

.mom-favorites-btn:hover {
    opacity: 0.7;
}

.mom-favorites-notification {
    position: fixed;
    bottom: 3rem;
    right: -100%;
    padding: calc(1.6rem + 8 * var(--resizer));
    z-index: 9999;
    color: #fff;
    background-color: rgba(118, 118, 118, 0.85);
    font-weight: bold;
    transition: right 0.3s ease-in-out;
    font-size: calc(1.2rem + 2 * var(--resizer));
    line-height: 130%;
}

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

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

.mom-favorites-notification.show {
    right: calc(0rem + 30 * var(--resizer));
}

@media (max-width: 991.98px) {
    .mom-favorites-notification {
        width: 100%;
    }
}