/* Cart Page Styles */
.cart-header {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
}

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.container-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Product Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #fdbb2d; /* Reference Yellow */
    color: #333;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.cart-product-details h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #333;
}

.cart-product-details span {
    color: #888;
    font-size: 0.9rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: #555;
    font-size: 1.2rem;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #ff4d4d;
}

/* Order Summary */
.order-summary {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    height: fit-content;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.summary-row.total {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
}

.btn-checkout:hover {
    background-color: #34495e;
}

@media (max-width: 768px) {
    .container-cart {
        grid-template-columns: 1fr;
    }
    
    .cart-table th {
        display: none;
    }
    
    .cart-table td {
        display: block;
        text-align: right;
        padding: 10px 0;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
    
    .cart-product-info {
        flex-direction: row;
        text-align: left;
    }
}
