        /* Дополнительные стили для карточки товара */
        .product-detail-page {
            padding: 20px 0 40px;
            background-color: #f8f9fa;
        }
        
        .product-detail-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            padding: 30px;
            margin-top: 20px;
        }
        
        .product-gallery {
            margin-bottom: 30px;
        }
        
        .main-product-image {
            width: 100%;
            height: 400px;
            object-fit: contain;
            background-color: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
        }
        
        .product-thumbnails {
            display: flex;
            gap: 10px;
            overflow-x: auto;
        }
        
        .thumbnail {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border: 2px solid #eee;
            border-radius: 4px;
            cursor: pointer;
            padding: 5px;
            background-color: white;
        }
        
        .thumbnail.active {
            border-color: #0066cc;
        }
        
        .product-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 5px;
            color: #333;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .rating-stars {
            color: #ffc107;
            margin-right: 10px;
        }
        
        .rating-count {
            color: #666;
            font-size: 14px;
        }
        
        .product-price-container {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
        }
        
        .price-block {
            margin-bottom: 15px;
        }
        
        .current-price {
            font-size: 32px;
            font-weight: 700;
            color: #e74c3c;
        }
        
        .old-price {
            font-size: 18px;
            color: #999;
            text-decoration: line-through;
            margin-left: 10px;
        }
        
        .discount-badge {
            display: inline-block;
            background-color: #e74c3c;
            color: white;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 14px;
            margin-left: 10px;
        }
        
        .availability {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            font-size: 16px;
        }
        
        .in-stock {
            color: #28a745;
            font-weight: 600;
            margin-left: 10px;
        }
        
        .out-of-stock {
            color: #e74c3c;
            font-weight: 600;
            margin-left: 10px;
        }
        
        .product-actions {
            margin-bottom: 25px;
        }
        
        .quantity-selector {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .quantity-btn {
            width: 40px;
            height: 40px;
            background-color: #f8f9fa;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            font-weight: 600;
        }
        
        .quantity-input {
            width: 60px;
            height: 40px;
            text-align: center;
            border: 1px solid #ddd;
            border-left: none;
            border-right: none;
            font-size: 16px;
        }
        
        /* Новые стили для кнопки "Купить" в одной строке с количеством */
        .buy-action-row {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .buy-btn {
            background-color: #ff7800;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 4px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 46px;
        }
        
        .buy-btn:hover {
            background-color: #ffa600;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 120, 0, 0.3);
        }
        
        .buy-btn i {
            margin-right: 8px;
        }
        
        .product-features {
            margin-top: 30px;
        }
        
        .feature-list {
            list-style: none;
            padding: 0;
        }
        
        .feature-list li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            display: flex;
        }
        
        .feature-name {
            color: #666;
            width: 40%;
        }
        
        .feature-value {
            color: #333;
            font-weight: 500;
            width: 60%;
        }
        
        .tabs-section {
            margin-top: 40px;
        }
        
        .product-tabs {
            border-bottom: 1px solid #ddd;
            margin-bottom: 20px;
        }
        
        .tab-link {
            background: none;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: 600;
            color: #666;
            cursor: pointer;
            position: relative;
        }
        
        .tab-link.active {
            color: #0066cc;
        }
        
        .tab-link.active:after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #0066cc;
        }
        
        .tab-content {
            padding: 20px 0;
            line-height: 1.6;
            color: #444;
        }
        
        .specs-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .specs-table tr {
            border-bottom: 1px solid #eee;
        }
        
        .specs-table td {
            padding: 12px 0;
        }
        
        .spec-name {
            color: #666;
            width: 40%;
        }
        
        .delivery-options {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 15px;
        }
        
        .delivery-option {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: calc(50% - 8px);
        }
        
        .delivery-icon {
            color: #0066cc;
            font-size: 20px;
            margin-right: 10px;
        }
        
        /* Стили для модального окна добавления в корзину */
        .cart-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }
        
        .cart-modal {
            background-color: white;
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            padding: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: translateY(-30px);
            animation: modalSlideIn 0.4s ease forwards;
            position: relative;
            overflow: hidden;
        }
        
        .cart-modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, #0066cc, #00aaff);
        }
        
        .modal-success-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #34d399, #10b981);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            color: white;
            font-size: 40px;
            box-shadow: 0 10px 20px rgba(52, 211, 153, 0.3);
        }
        
        .modal-title {
            text-align: center;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 15px;
            color: #333;
        }
        
        .modal-message {
            text-align: center;
            font-size: 16px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 25px;
        }
        
        .modal-product-info {
            background-color: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
        }
        
        .modal-product-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 8px;
            background-color: white;
            padding: 10px;
            margin-right: 15px;
            border: 1px solid #eee;
        }
        
        .modal-product-details {
            flex-grow: 1;
        }
        
        .modal-product-name {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 16px;
        }
        
        .modal-product-quantity {
            color: #666;
            font-size: 14px;
        }
        
        .modal-product-price {
            color: #e74c3c;
            font-weight: 700;
            font-size: 18px;
            margin-top: 5px;
        }
        
        .modal-actions {
            display: flex;
            gap: 15px;
        }
        
        .modal-btn {
            flex: 1;
            padding: 14px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            text-decoration: none;
        }
        
        .modal-btn-continue {
            background-color: #f8f9fa;
            color: #333;
            border: 2px solid #ddd;
        }
        
        .modal-btn-continue:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
        }
        
        .modal-btn-cart {
            background: linear-gradient(135deg, #0066cc, #00aaff);
            color: white;
            border: none;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-btn-cart:hover {
            background: linear-gradient(135deg, #0055aa, #0099ee);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
            color: white;
            text-decoration: none;
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
        }
        
        .modal-close:hover {
            background-color: #f8f9fa;
            color: #333;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes modalSlideIn {
            from { 
                opacity: 0;
                transform: translateY(-30px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Адаптивность для карточки товара */
        @media (max-width: 768px) {
            .product-detail-container {
                padding: 20px;
            }
            
            .main-product-image {
                height: 300px;
            }
            
            .product-title {
                font-size: 20px;
            }
            
            .current-price {
                font-size: 28px;
            }
            
            .delivery-option {
                width: 100%;
            }
            
            .feature-name, .feature-value {
                width: 50%;
            }
            
            .modal-actions {
                flex-direction: column;
            }
            
            .cart-modal {
                padding: 25px 20px;
            }
            
            /* Адаптивность для строки с количеством и кнопкой */
            .buy-action-row {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            
            .quantity-selector {
                justify-content: center;
            }
            
            .buy-btn {
                width: 100%;
            }
        }
        
        @media (max-width: 576px) {
            .main-product-image {
                height: 250px;
            }
            
            .product-title {
                font-size: 18px;
            }
            
            .current-price {
                font-size: 24px;
            }
            
            .buy-btn {
                padding: 12px 20px;
                font-size: 16px;
                height: 44px;
            }
            
            .modal-product-info {
                flex-direction: column;
                text-align: center;
            }
            
            .modal-product-image {
                margin-right: 0;
                margin-bottom: 15px;
            }
        }
        
        /* Для больших экранов - оптимизация */
        @media (min-width: 769px) {
            .buy-action-row {
                justify-content: flex-start;
            }
            
            .quantity-selector {
                margin-bottom: 0;
            }
        }
		.catalog-displayedItem-sku {
			padding: 1px 40px 0 0;
			position: relative;
			color: #cdcdcd;
			margin-bottom: 10px;
}

/* Добавить в конец styles_cart.css */

/* Оптимизация для изображений */
.main-product-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

.product-thumbnails {
    padding: 10px 0;
}

/* Для плавной смены изображений */
.main-product-image, .modal-product-image {
    transition: opacity 0.3s ease;
}

/* Для мобильных устройств - оптимизация */
@media (max-width: 768px) {
    .main-product-image {
        height: 300px;
        max-height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .main-product-image {
        height: 250px;
        max-height: 250px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}











/* Стили для полноэкранного просмотра изображения */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.image-modal {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

.image-modal-counter {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

/* Делаем основное изображение кликабельным */
.main-product-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.01);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптивность для полноэкранного просмотра */
@media (max-width: 768px) {
    .image-modal {
        max-width: 95%;
        max-height: 85%;
    }
    
    .image-modal-close {
        top: -40px;
        right: 10px;
    }
    
    .image-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .image-modal-prev {
        left: 10px;
    }
    
    .image-modal-next {
        right: 10px;
    }
    
    .image-modal-counter {
        bottom: -50px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .image-modal-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Стили для страницы корзины */
.cart-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
}

.cart-sidebar {
    position: sticky;
    top: 20px;
}

.cart-item {
    border: 1px solid #eee;
    border-radius: 8px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
}

.cart-item-title a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector input {
    max-width: 60px;
}

.empty-cart-icon {
    opacity: 0.3;
}

/* Кнопки на странице корзины */
.btn-lg {
    padding: 12px 24px;
    font-size: 18px;
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-item .row > div {
        margin-bottom: 10px;
    }
    
    .cart-item .row > div:last-child {
        margin-bottom: 0;
    }
    
    .cart-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-header h5 {
        margin-bottom: 10px;
    }
    
    .quantity-selector {
        justify-content: flex-start;
    }
}




/* Мобильная оптимизация корзины */
@media (max-width: 768px) {
    .cart-item .card-body {
        padding: 0.75rem;
    }
    
    .cart-item .row > div {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .cart-item-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.25rem !important;
    }
    
    .cart-item-sku {
        font-size: 0.7rem;
    }
    
    .cart-item-price, .cart-item-total {
        font-size: 0.85rem;
    }
    
    .quantity-selector .form-control-sm {
        width: 40px !important;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .quantity-selector .btn-sm {
        padding: 0.15rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .cart-header {
        padding: 0.75rem !important;
    }
    
    .cart-header h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cart-item .col-3 {
        width: 22%;
    }
    
    .cart-item .col-5 {
        width: 30%;
    }
    
    .cart-item .col-4,
    .cart-item .col-6 {
        width: 24%;
    }
}

/* Общие улучшения для корзины */
.cart-item-total {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    min-width: 60px;
}

.quantity-selector {
    min-width: 120px;
}


/* Исправление для модальных окон Bootstrap */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Убираем лишние overlay */
body.modal-open .modal-backdrop:not(:first-child) {
    display: none;
}

/* Очистка при закрытии модального окна */
.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
}



/* Красивая кнопка "Продолжить покупки" */
.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    min-width: 280px;
}

.continue-shopping-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4);
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.continue-shopping-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.continue-shopping-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
}

.continue-shopping-btn:hover::before {
    left: 100%;
}

.continue-shopping-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.continue-shopping-btn:hover i {
    transform: translateX(-5px);
}

.continue-shopping-btn span {
    position: relative;
    z-index: 1;
}

/* Альтернативный вариант кнопки (синий градиент) */
.continue-shopping-btn.blue-variant {
    background: linear-gradient(135deg, #0066cc 0%, #0055aa 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.continue-shopping-btn.blue-variant:hover {
    background: linear-gradient(135deg, #0055aa 0%, #004488 100%);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .continue-shopping-btn {
        padding: 14px 24px;
        font-size: 16px;
        min-width: 240px;
    }
    
    .continue-shopping-btn i {
        font-size: 18px;
    }
}

/* Контейнер для кнопки с выравниванием */
.continue-shopping-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px 0;
}

/* Стиль для кнопки внутри карточки */
.cart-container .continue-shopping-btn {
    margin: 15px auto;
    display: block;
}

/* Стили для формы оформления заказа */
.order-form-container {
    animation: fadeIn 0.5s ease;
}

#orderForm .form-control:focus,
#orderForm .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

#orderForm .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#orderForm .form-label.required:after {
    content: " *";
    color: #e74c3c;
}

#orderForm .is-invalid {
    border-color: #e74c3c !important;
}

#orderForm .invalid-feedback {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Стили для модального окна успешной отправки */
#orderSuccessModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#orderSuccessModal .modal-header {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    border-bottom: none;
}

#orderSuccessModal .modal-body {
    padding: 2rem;
}

/* Адаптивность формы */
@media (max-width: 768px) {
    #orderForm .row > div {
        margin-bottom: 1rem;
    }
    
    #orderForm .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Анимация для появления формы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимированные модальные окна заказа */

/* Модальное окно отправки */
.order-processing-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    animation: modalSlideUp 0.5s ease-out;
}

.order-processing-modal .modal-content {
    background: transparent;
    border: none;
}

.order-processing-modal .processing-animation {
    position: relative;
}

.order-processing-modal .loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.order-processing-modal .loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.6;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.order-processing-modal .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.order-processing-modal .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Модальное окно успеха */
.order-success-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    animation: successModalAppear 0.6s ease-out;
}

.success-icon-container {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: successIconScale 0.5s ease-out 0.3s both;
}

.check-icon {
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
}

.check-icon .icon-line {
    height: 5px;
    background-color: #10b981;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.check-icon .line-tip {
    top: 20px;
    left: 5px;
    width: 12px;
    transform: rotate(45deg);
    animation: iconLineTip 0.75s;
}

.check-icon .line-long {
    top: 16px;
    right: 5px;
    width: 25px;
    transform: rotate(-45deg);
    animation: iconLineLong 0.75s;
}

.check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(16, 185, 129, 0.2);
}

.check-icon .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: white;
}

@keyframes successIconScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconLineTip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 20px;
        left: -8px;
        top: 17px;
    }
    84% {
        width: 12px;
        left: 5px;
        top: 20px;
    }
    100% {
        width: 12px;
        left: 5px;
        top: 20px;
    }
}

@keyframes iconLineLong {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 30px;
        right: 0px;
        top: 20px;
    }
    100% {
        width: 25px;
        right: 5px;
        top: 16px;
    }
}

.order-success-modal .modal-body {
    padding-top: 2rem;
}

.success-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.success-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-actions {
    margin-top: 1.5rem;
}

/* Модальное окно ошибки */
.order-error-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    animation: errorModalShake 0.5s ease-out;
}

.order-error-modal .modal-body {
    padding: 2rem;
}

.error-icon {
    animation: errorIconPulse 1.5s ease-in-out infinite;
}

@keyframes errorIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes errorModalShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Анимации для модальных окон */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successModalAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(-10deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

/* Улучшенные уведомления */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #4CAF50;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification.notification-error {
    border-left-color: #f44336;
}

.cart-notification.notification-warning {
    border-left-color: #ff9800;
}

.cart-notification.notification-info {
    border-left-color: #2196f3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    font-size: 20px;
}

.notification-success .notification-icon {
    color: #4CAF50;
}

.notification-error .notification-icon {
    color: #f44336;
}

.notification-warning .notification-icon {
    color: #ff9800;
}

.notification-info .notification-icon {
    color: #2196f3;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 10px;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Анимация очистки корзины */
.cart-item.fade-out {
    animation: fadeOutItem 0.3s ease forwards;
}

@keyframes fadeOutItem {
    from {
        opacity: 1;
        transform: translateX(0);
        height: auto;
        margin: 0 0 1rem 0;
        padding: 1rem;
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Стили для формы оформления заказа */
.order-form-container {
    animation: fadeIn 0.5s ease;
}

#orderForm .form-control:focus,
#orderForm .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

#orderForm .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#orderForm .form-label.required:after {
    content: " *";
    color: #e74c3c;
}

#orderForm .is-invalid {
    border-color: #e74c3c !important;
}

#orderForm .invalid-feedback {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность модальных окон */
@media (max-width: 768px) {
    .order-processing-modal,
    .order-success-modal,
    .order-error-modal {
        margin: 1rem;
    }
    
    .cart-notification {
        min-width: auto;
        max-width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .success-icon-container {
        height: 100px;
    }
    
    .success-checkmark {
        width: 60px;
        height: 60px;
    }
    
    .check-icon {
        width: 30px;
        height: 30px;
    }
}

/* Для темной темы */
@media (prefers-color-scheme: dark) {
    .cart-notification {
        background: #2d3748;
        color: white;
    }
    
    .notification-text {
        color: #e2e8f0;
    }
    
    .notification-close:hover {
        background: #4a5568;
        color: white;
    }
    
    .success-details {
        background: #2d3748;
        color: #cbd5e0;
    }
}

/* Исправление для мобильных устройств */
@media (max-width: 576px) {
    .cart-item .col-3 {
        width: 22%;
    }
    
    .cart-item .col-5 {
        width: 30%;
    }
    
    .cart-item .col-4,
    .cart-item .col-6 {
        width: 24%;
    }
}

/* Стили для синхронизации данных корзины */
.cart-quantity-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.cart-quantity-input.changed {
    background-color: #fff3cd;
    border-color: #ffc107;
}

/* Плавная анимация изменения количества */
.cart-item-updating {
    position: relative;
    overflow: hidden;
}

.cart-item-updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-updating::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Стили для индикатора обновления */
.quantity-updating {
    position: relative;
}

.quantity-updating .cart-quantity-input {
    opacity: 0.7;
    pointer-events: none;
}