#cart-section {
    padding: 100px 0;
}

:root {
    --blue: #1a9ed4;
    --dark: #222;
    --mid: #555;
    --light: #888;
    --border: #e8e8e8;
    --bg: #f8f8f8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    color: var(--dark);
    background: #fff;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.checkout-progress-bar {
    list-style: none;
    padding: 0;
    margin: 30px 0 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.checkout-progress-bar li {
    position: relative;
    text-align: center;
    padding: 0 30px;
}

.checkout-progress-bar li::before {
    content: '';
    position: absolute;
    top: 14px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.checkout-progress-bar li:last-child::before {
    display: none;
}

.checkout-progress-bar li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--light);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.checkout-progress-bar li a::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-progress-bar li.active a {
    color: var(--dark);
}

.checkout-progress-bar li.active a::before {
    background: var(--dark);
    border-color: var(--dark);
}

.checkout-progress-bar li.disabled a {
    color: #ccc;
    pointer-events: none;
}

/* ── Cart Table ───────────────────────────────────────────── */
.cart-table-container {
    margin-bottom: 30px;
}

.table-cart {
    border-collapse: collapse;
    width: 100%;
}

.table-cart thead tr {
    border-bottom: 2px solid var(--border);
}

.table-cart thead th {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark);
    padding: 12px 10px;
    border: none;
}

.table-cart tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.table-cart tbody tr:hover {
    background: var(--bg);
}

.table-cart td {
    padding: 14px 10px;
    vertical-align: middle;
    border: none;
    font-size: 14px;
    color: var(--mid);
}

/* Product image cell */
.product-image-container {
    position: relative;
    display: inline-block;
    margin: 0;
}

.product-image-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 3px;
    display: block;
}

.btn-remove {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: 2px solid #fff;
    text-decoration: none;
    transition: background 0.2s;
    z-index: 2;
}

.btn-remove:hover {
    background: #c62828;
    color: #fff;
}

/* Product name */
.product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--blue);
}

/* Quantity input */
.qty-wrap-cart {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    width: fit-content;
    height: 36px;
}

.qty-btn-cart {
    width: 30px;
    height: 36px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 14px;
    color: var(--mid);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.qty-btn-cart:hover {
    background: var(--blue);
    color: #fff;
}

.qty-input-cart {
    width: 46px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    font-family: 'Barlow', sans-serif;
}

.qty-input-cart::-webkit-outer-spin-button,
.qty-input-cart::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.qty-input-cart[type=number] {
    -moz-appearance: textfield;
}

/* Subtotal */
.subtotal-price {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

/* Table footer */
.table-cart tfoot td {
    padding: 16px 10px;
    border-top: 2px solid var(--border);
}

/* Coupon */
.cart-discount .input-group {
    max-width: 280px;
}

.cart-discount .form-control {
    font-size: 13px;
    border-color: var(--border);
    height: 38px;
}

.cart-discount .form-control:focus {
    box-shadow: none;
    border-color: var(--blue);
}

.cart-discount .btn {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    padding: 0 16px;
    height: 38px;
    transition: background 0.2s;
}

.cart-discount .btn:hover {
    background: var(--blue);
}

/* Update cart button */
.btn-update-cart {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    height: 38px;
}

.btn-update-cart:hover {
    background: var(--blue);
}

/* Empty cart */
.empty-cart-msg {
    text-align: center;
    padding: 50px 20px;
    color: var(--light);
}

.empty-cart-msg i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #ddd;
}

.empty-cart-msg p {
    font-size: 15px;
    margin-bottom: 16px;
}

.empty-cart-msg a {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 10px 24px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.empty-cart-msg a:hover {
    background: #1585b5;
}

/* ── Cart Summary ─────────────────────────────────────────── */
.cart-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 24px;
}

.cart-summary h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.cart-summary h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blue);
}

.table-totals {
    width: 100%;
    margin-bottom: 16px;
}

.table-totals td {
    padding: 10px 0;
    font-size: 14px;
    color: var(--mid);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-totals td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--dark);
}

.table-totals tfoot td {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    padding-top: 14px;
    border-bottom: none;
}

/* Shipping section */
.shipping-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 10px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--mid);
}

.shipping-option input[type="radio"] {
    accent-color: var(--blue);
    cursor: pointer;
    width: 15px;
    height: 15px;
}

.shipping-cost-badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
}

/* Checkout button */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-checkout:hover {
    background: var(--blue);
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .cart-summary {
        margin-top: 24px;
    }

    .table-cart thead th.price-col,
    .table-cart td.price-col {
        display: none;
    }
}

@media (max-width: 767px) {
    .checkout-progress-bar li {
        padding: 0 16px;
    }

    .checkout-progress-bar li::before {
        width: 28px;
        right: -14px;
    }

    .table-cart thead {
        display: none;
    }

    .table-cart tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 14px 10px;
        position: relative;
        gap: 10px;
    }

    .table-cart tbody td {
        padding: 4px 6px;
        border: none;
    }

    .table-cart tbody td:nth-child(1) {
        order: 1;
    }

    .table-cart tbody td:nth-child(2) {
        order: 2;
        flex: 1;
    }

    .table-cart tbody td:nth-child(3) {
        order: 3;
        width: 100%;
    }

    .table-cart tbody td:nth-child(4) {
        order: 4;
    }

    .table-cart tbody td:nth-child(5) {
        order: 5;
        margin-left: auto;
    }

    .cart-discount .input-group {
        max-width: 100%;
    }

    .table-cart tfoot td {
        display: block;
    }

    .float-right {
        float: none !important;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .checkout-progress-bar li a {
        font-size: 10px;
    }

    .product-image-container img {
        width: 60px;
        height: 60px;
    }
}