/* Стили для попапа корзины */

/* Общие стили для модального окна */
#cart-popup-modal .modal-dialog {
    max-width: 900px;
    width: 90%;
    margin: 30px auto;
}

#cart-popup-modal .modal-content {
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#cart-popup-modal .modal-header {
    border-bottom: none;
    padding: 15px 15px 0 15px;
}

#cart-popup-modal .modal-body {
    padding: 0 20px 20px 20px;
}

/* Цвет успеха */
.success-color {
    color: #28a745;
}

/* Сообщение об успехе */
.success-message {
    margin-bottom: 20px;
}

.add-success {
    font-size: 22px;
    color: #28a745;
    margin-bottom: 20px;
}

.add-success i {
    margin-right: 10px;
}

/* Информация о добавленном товаре */
.added-product-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.added-product-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.added-product-info .model {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-details {
    margin-top: 15px;
}

.product-details .product-size,
.product-details .quantity {
    margin-bottom: 5px;
    color: #555;
}

.added-product-info .price {
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

/* Стили для итогов корзины */
.cart-totals {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.cart-summary-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.total-final {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.cart-buttons {
    margin-top: 20px;
}

#cart-popup-modal .btn {
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
}

#cart-popup-modal .btn-default {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

#cart-popup-modal .btn-default:hover {
    background-color: #e9ecef;
}

#cart-popup-modal .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

#cart-popup-modal .btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Стили для раздела сопутствующих товаров */
.related-products-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-products-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.related-product-item {
    padding: 10px;
}

.related-product-item .product-thumb {
    border: 1px solid #f0f0f0;
    padding: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.related-product-item .product-thumb:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.related-product-item .caption {
    text-align: center;
    padding: 10px 0 0;
}

.related-product-item h4 {
    font-size: 14px;
    margin: 0 0 5px;
    height: 40px;
    overflow: hidden;
}

.related-product-item .price {
    font-weight: bold;
    color: #333;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    #cart-popup-modal .modal-dialog {
        width: 95%;
        margin: 20px auto;
    }
    
    .related-product-item {
        width: 50%;
    }
    
    .add-success {
        font-size: 18px;
    }
    
    .cart-summary-title {
        font-size: 16px;
    }
} 