/* ===== CART STYLES ===== */

/* Плавные переходы для элементов корзины */
.checkout-section,
.order-summary,
.cart-actions,
.promotion-section,
.empty-cart-message,
.clear-cart-btn,
.row.g-5 {
    transition: opacity 0.3s ease, display 0.3s ease;
}

/* Стили для сообщения о пустой корзине */
.empty-cart-message {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 2rem 0;
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #ffc107;
}

.empty-cart-message h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.empty-cart-message p {
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

/* Стили для кнопки очистки корзины */
.clear-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для контролов количества */
.quantity-controls .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.quantity-controls .btn:hover {
    transform: scale(1.1);
}

.quantity-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Стили для таблицы корзины */
.cart-table {
    margin-bottom: 0;
}

.cart-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.cart-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.cart-table .item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-table .item-details h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #212529;
}

.cart-table .item-details .restaurant-name {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.cart-table .item-details .item-description {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

.cart-table .item-price {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
}

.cart-table .item-total {
    font-weight: 700;
    color: #212529;
    font-size: 1.1rem;
}

.cart-table .remove-btn {
    color: #dc3545;
    border: none;
    background: none;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-table .remove-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Стили для блока итогов */
.checkout-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
}

.checkout-section h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.order-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.order-summary .summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.order-summary .summary-label {
    color: rgba(255, 255, 255, 0.9);
}

.order-summary .summary-value {
    color: white;
    font-weight: 600;
}

/* Стили для кнопок */
.btn-checkout {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    color: #212529;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: #212529;
}

.btn-continue {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Стили для информации о доставке */
.delivery-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.delivery-info h6 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.delivery-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.delivery-info .info-item:last-child {
    margin-bottom: 0;
}

.delivery-info .info-item i {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .checkout-section {
        padding: 1.5rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .btn-checkout,
    .btn-continue {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cart-table .item-details {
        font-size: 0.9rem;
    }
    
    .cart-table .item-description {
        display: none;
    }
}
