/* Cart Page Styles */

.cart-items-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

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

.cart-item-img {
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.quantity-input {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.quantity-input .form-control {
    border: none;
    padding: 0.375rem 0.5rem;
    text-align: center;
}

.quantity-input .form-control:focus {
    box-shadow: none;
    border: none;
}

.quantity-input .btn {
    border: none;
    border-radius: 0;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    color: #004d8c;
}

.quantity-input .btn:hover {
    background-color: #f0f0f0;
}

/* Cart Summary Card */
.cart-summary-card {
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0, 77, 140, 0.1);
    border: 1px solid #e9ecef;
}

.cart-summary-card .card-title {
    color: #004d8c;
    font-weight: 600;
    border-bottom: 2px solid #004d8c;
    padding-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #495057;
}

.summary-row span:last-child {
    font-weight: 500;
}

.total-row {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004d8c;
}

.total-row span:last-child {
    color: #ff8236;
}

/* Coupon Section */
.coupon-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.coupon-section .input-group {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.coupon-section .form-control {
    border: none;
    padding: 0.5rem 0.75rem;
}

.coupon-section .form-control:focus {
    box-shadow: none;
    border: none;
}

.coupon-section .btn {
    border: none;
    border-radius: 0;
    color: #004d8c;
    font-weight: 500;
}

.coupon-section .btn:hover {
    background-color: #004d8c;
    color: #fff;
}

/* Buttons */
.btn-primary {
    background-color: #004d8c;
    border-color: #004d8c;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.btn-primary:hover {
    background-color: #003d6b;
    border-color: #003d6b;
}

.btn-outline-secondary {
    color: #495057;
    border-color: #dee2e6;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.remove-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Table Styles */
table {
    border-color: #e9ecef;
    margin-bottom: 0;
}

table thead {
    background-color: #f8f9fa;
}

table th {
    color: #495057;
    font-weight: 600;
    border-color: #e9ecef;
    padding: 1rem 0.75rem;
}

table td {
    border-color: #e9ecef;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-summary-card {
        position: static;
        margin-top: 2rem;
    }

    .quantity-input {
        width: 100px !important;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem 0.25rem;
    }

    .cart-item-img {
        width: 60px !important;
        height: 60px !important;
    }
}
