/* Base Styles */
body
{
    padding-top:155px;
}
.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: white; /* Added white text */
}

.cart-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #444; /* Darker border for contrast */
    color: white; /* Ensure text is white */
}

.item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
    color: white; /* Explicit white text */
}

.item-details h3 {
    color: white;
    margin: 0 0 0.5rem 0;
}

.item-details p {
    color: white;
    margin: 0;
}

.item-total {
    text-align: right;
    color: white;
}

.item-total p {
    color: white;
    margin: 0 0 0.5rem 0;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #666;
    background: #333;
    color: white; /* White text for buttons */
    border-radius: 4px;
    cursor: pointer;
}

.quantity {
    color: white;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ff6666; /* Slightly lighter red for visibility */
}

/* Cart Summary */
.cart-summary {
    background: #333; /* Darker background for contrast */
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    color: white; /* White text */
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: white;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    color: white;
}

/* Buttons */
.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #45a049;
}

.clear-btn {
    width: 100%;
    padding: 0.75rem;
    background: #444;
    color: white;
    border: 1px solid #666;
    border-radius: 4px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #555;
}

/* Empty Cart Message */
#empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: white; /* White text */
}

#empty-cart-message .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#empty-cart-message .btn:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (min-width: 768px) {
    .cart-content {
        flex-direction: row;
    }
    
    .cart-items {
        flex: 2;
    }
    
    .cart-summary {
        flex: 1;
    }
}