/* Стили для уведомлений корзины */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.5;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification--success {
    border-left: 4px solid #4caf50;
    background: #f1f8f4;
}

.cart-notification--success i {
    color: #4caf50;
    font-size: 20px;
}

.cart-notification--remove {
    border-left: 4px solid #ff9800;
    background: #fff8f0;
}

.cart-notification--remove i {
    color: #ff9800;
    font-size: 20px;
}

.cart-notification--error {
    border-left: 4px solid #eb3838;
    background: #fff5f5;
}

.cart-notification--error i {
    color: #eb3838;
    font-size: 20px;
}

@media screen and (max-width: 768px) {
    .cart-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        transform: translateY(-100px);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
}

/* Стили для счетчика корзины */
.navbar__cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

/* Стили для пустой корзины */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty h2 {
    margin-bottom: 20px;
    color: var(--black);
}

.cart-empty p {
    margin-bottom: 30px;
    color: #666;
    font-size: 18px;
}

/* Стили для названия товара в корзине */
.cart-product__title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--black);
}

.cart-product__title a {
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cart-product__title a:hover {
    opacity: 0.7;
}

/* Стили для модального окна подтверждения удаления */
.remove-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.remove-confirm-modal.active {
    visibility: visible;
    opacity: 1;
}

.remove-confirm-modal__content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.remove-confirm-modal.active .remove-confirm-modal__content {
    transform: scale(1);
}

.remove-confirm-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 50%;
}

.remove-confirm-modal__icon i {
    font-size: 32px;
    color: #eb3838;
}

.remove-confirm-modal__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 12px;
}

.remove-confirm-modal__text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 32px;
}

.remove-confirm-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.remove-confirm-modal__actions .btn {
    min-width: 140px;
    font-size: 16px;
}

.remove-confirm-modal__confirm {
    background: #eb3838;
    color: white;
}

.remove-confirm-modal__confirm:hover {
    background: #d32f2f;
    opacity: 1;
    color: white;
}

@media screen and (max-width: 480px) {
    .remove-confirm-modal__content {
        padding: 30px 20px;
    }
    
    .remove-confirm-modal__actions {
        flex-direction: column;
    }
    
    .remove-confirm-modal__actions .btn {
        width: 100%;
    }
}

