﻿/* ===== Cart Page Background ===== */
body {
    background: #f8f9fa;
}

/* ===== Page Title ===== */
h2 {
    letter-spacing: 0.5px;
}

/* ===== Cart Card ===== */
.card {
    border-radius: 20px;
}

/* ===== Table ===== */
.table thead th {
    vertical-align: middle;
    font-size: 14px;
}

.table tbody tr {
    transition: background 0.2s ease;
}

    .table tbody tr:hover {
        background: #f1f5ff;
    }

/* ===== Product Name ===== */
.table td:first-child {
    max-width: 260px;
}

/* ===== Quantity Buttons ===== */
.btn-outline-secondary.rounded-circle {
    transition: all 0.2s ease;
}

    .btn-outline-secondary.rounded-circle:hover {
        background: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

/* ===== Remove Button ===== */
.btn-outline-danger {
    transition: all 0.2s ease;
}

    .btn-outline-danger:hover {
        background: #dc3545;
        color: #fff;
    }

/* ===== Total Price ===== */
.text-primary {
    font-size: 17px;
}

/* ===== Summary Card ===== */
.card-body h4 {
    font-size: 22px;
}

/* ===== Action Buttons ===== */
.card-body button {
    font-weight: 600;
}

.btn-success {
    background: linear-gradient(135deg, #198754, #146c43);
    border: none;
}

    .btn-success:hover {
        box-shadow: 0 10px 25px rgba(25,135,84,0.35);
        transform: translateY(-1px);
    }

/* ===== Empty Cart ===== */
.alert-info {
    border-radius: 18px;
    font-size: 16px;
    text-align: center;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
    }

        .table tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #666;
        }
}
