body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(to right, #2c3e50, #3498db);
    padding: 1.5rem;  
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-container {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 15px;
}

.cart-header h1 {
    margin: 0;
    font-size: 1.8rem;
    text-align: center;
}

.cart-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cart-content {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
    align-items: flex-start;
}


.cart-item img {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}


.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    margin: 0 0 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    margin: 3px 0;
    color: #007bff;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #dc3545;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

 .cart-summary {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.total-main {
    font-weight: bold;
    font-size: 1.1rem;
}

 .cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.continue-shopping {
    padding: 12px 16px;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #007bff;
    color: #fff;
}

.start-shopping {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-top: 1rem;
}

.start-shopping:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

#checkout-btn {
    padding: 12px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

#checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

 @media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item img {
        width: 100%;
        max-width: 200px;
    }

    .cart-item-controls {
        flex-direction: column;
        gap: 8px;
    }
}
