
.orders-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}
.orders-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.orders-header p {
    color: #7f8c8d;
    font-size: 1rem;
}


.cart-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}


.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.cart-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}
.cart-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border: none;
     width: auto; 
}
.cart-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}
.cart-table tbody tr:hover {
    background-color: #f8f9fa;
}
.cart-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: #212529;
     width: auto; 
}
.cart-table .text-right {
    text-align: right;
    padding-right: 1rem;
}
.cart-table tfoot {
    background-color: #f1f8ff;
    border-top: 2px solid #dee2e6;
    font-weight: bold;
}
.cart-table tfoot td {
    padding: 1.25rem 0.75rem;
}


.cart-table .quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-table .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}
.cart-table .quantity-input {
    width: 50px;
    height: 28px;
    font-size: 0.85rem;
    margin: 0 5px;
}


.cart-table .remove-btn {
    padding: 0.4rem 0.8rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}
.cart-table .remove-btn:hover {
    background-color: #c0392b;
}


.checkout-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    min-width: 140px;
    max-width: 200px;
    margin: 0 auto;
}
.checkout-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.3);
}
.checkout-btn:active {
    transform: translateY(0);
}


.cart-empty-row td {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #95a5a6;
    font-style: italic;
}
.cart-empty-row a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}
.cart-empty-row a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .cart-container {
        overflow-x: auto;
    }
    .cart-table {
        min-width: 700px; 
    }
    .orders-header h2 {
        font-size: 1.5rem;
    }
    .checkout-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}
