/* Shopping Cart Page Styles */
.cart-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-container h1 {
    margin-bottom: 30px;
    color: #333;
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart > div:first-child {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-cart h2 {
    color: #666;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

.cart-container-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
}

.cart-items {
    /* Container for cart items list */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.cart-header h2 {
    margin: 0;
    color: #333;
}

.cart-header button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    background: white;
}

.cart-item-image {
    flex-shrink: 0;
}

.cart-item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.cart-item-details h3 a {
    color: #333;
    text-decoration: none;
}

.cart-item-details p {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control label {
    color: #666;
    font-size: 14px;
}

.quantity-control form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.quantity-control button {
    padding: 5px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.item-price {
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.cart-item-actions form button[type="submit"] {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.cart-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
}

.summary-card h2 {
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.summary-details {
    margin-bottom: 20px;
}

.summary-details > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.summary-details .total-section {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.summary-details .total-section > div {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.checkout-actions {
    margin-top: 25px;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3;
}

.checkout-actions a:last-child {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #007bff;
    border-radius: 5px;
}

.checkout-actions a:last-child:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .cart-container-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

