﻿/* CartCustom.css - Modern Shopping Cart Design */
/* Author: Your Name | Last Updated: 2025 */
/* Linked to: Views/GioHang/index.cshtml */

/* cart.css */

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --danger-color: #e63946;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --secondary-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s ease;
}

/* Container */
.container.mt-4 {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cart Header */
h2.mb-4 {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

h2.mb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Alert Messages */
.alert {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 1.5rem;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.table {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: white;
}

.table.table-bordered {
    border: 1px solid #dee2e6;
}

.table.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.thead-dark {
    background-color: var(--dark-color);
    color: white;
}

.table th {
    padding: 1rem;
    vertical-align: middle;
    font-weight: 500;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Summary Table */
.table-summary {
    background-color: #f8f9fa;
}

.table-summary tr:last-child {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }

    .table thead {
        display: none;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }

    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #dee2e6;
    }

    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 15px);
        padding-right: 15px;
        text-align: left;
        font-weight: bold;
    }

    .d-flex {
        flex-direction: column;
        gap: 5px;
    }

    .btn {
        width: 100
