.shopping-cart {
    background-color: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.cart-header {
    margin-bottom: 2rem;
    text-align: center;
}

.cart-title {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.cart-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-table thead {
    background: linear-gradient(90deg, #3498db, #9b59b6);
    color: white;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cart-table tbody tr {
    background: white;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
}

.product-info {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.product-details {
    flex: 1;
}

.product-details strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.product-details div {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.quantity-input {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.quantity-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
    transition: all 0.3s;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: scale(1.05);
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-totals {
    margin-bottom: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.cart-total-row:last-child {
    border-bottom: none;
}

.grand-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 10px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cart-actions .btn {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-actions .btn:hover {
    transform: translateY(-2px);
}

/* Updated Continue Shopping button styles */
.btn-outline-primary {
    color: #3498db;
    border: 2px solid #3498db;
    background: transparent;
}

.btn-outline-primary:hover {
    color: white;
    background-color: #3498db;
    border-color: #3498db;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.empty-cart .alert {
    max-width: 500px;
    margin: 0 auto 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-table tbody tr {
    animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        text-align: right;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: auto;
        padding-right: 20px;
        color: #2c3e50;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-product-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* [Previous CSS styles remain the same] */
.inventory-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}